Cleanup.
[llvm.git] / configure
blob3e0ca0a680b6316c6984aab46d19a39e66627694
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
545 case X$ECHO in
546 X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550 esac
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
562 else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
573 exit 0
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
591 done
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
598 else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
607 IFS="$lt_save_ifs"
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
615 done
616 IFS="$lt_save_ifs"
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
664 prev="$cmd"
665 done
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 # Initializations.
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 # include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 # include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
811 HOST_OS
812 TARGET_OS
813 LINKALL
814 NOLINKALL
815 LLVM_ON_UNIX
816 LLVM_ON_WIN32
817 ARCH
818 ENDIAN
820 CFLAGS
821 LDFLAGS
822 CPPFLAGS
823 ac_ct_CC
824 EXEEXT
825 OBJEXT
827 GREP
828 EGREP
829 LLVM_CROSS_COMPILING
830 BUILD_CC
831 BUILD_EXEEXT
832 BUILD_CXX
833 CVSBUILD
834 ENABLE_OPTIMIZED
835 ENABLE_PROFILING
836 DISABLE_ASSERTIONS
837 ENABLE_EXPENSIVE_CHECKS
838 EXPENSIVE_CHECKS
839 DEBUG_RUNTIME
840 DEBUG_SYMBOLS
842 TARGET_HAS_JIT
843 ENABLE_DOXYGEN
844 ENABLE_THREADS
845 ENABLE_PIC
846 TARGETS_TO_BUILD
847 LLVM_ENUM_TARGETS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
850 LLVM_ENUM_DISASSEMBLERS
851 ENABLE_CBE_PRINTF_A
852 OPTIMIZE_OPTION
853 EXTRA_OPTIONS
854 BINUTILS_INCDIR
855 ENABLE_LLVMC_DYNAMIC
856 ENABLE_LLVMC_DYNAMIC_PLUGINS
858 CXXFLAGS
859 ac_ct_CXX
861 ifGNUmake
862 LN_S
865 DATE
866 FIND
867 MKDIR
869 RANLIB
873 BINPWD
874 GRAPHVIZ
877 NEATO
878 TWOPI
879 CIRCO
881 DOTTY
882 PERL
883 HAVE_PERL
884 INSTALL_PROGRAM
885 INSTALL_SCRIPT
886 INSTALL_DATA
887 BZIP2
888 DOXYGEN
889 GROFF
890 GZIP
891 POD2HTML
892 POD2MAN
893 RUNTEST
894 TCLSH
896 OCAMLC
897 OCAMLOPT
898 OCAMLDEP
899 OCAMLDOC
901 INSTALL_LTDL_TRUE
902 INSTALL_LTDL_FALSE
903 CONVENIENCE_LTDL_TRUE
904 CONVENIENCE_LTDL_FALSE
905 LIBADD_DL
906 ECHO
908 STRIP
909 CXXCPP
911 FFLAGS
912 ac_ct_F77
913 LIBTOOL
914 LLVMGCCCOMMAND
915 LLVMGXXCOMMAND
916 LLVMGCC
917 LLVMGXX
918 NO_VARIADIC_MACROS
919 NO_MISSING_FIELD_INITIALIZERS
920 USE_UDIS86
921 USE_OPROFILE
922 HAVE_PTHREAD
923 HUGE_VAL_SANITY
924 ALLOCA
925 MMAP_FILE
926 LLVMCC1
927 LLVMCC1PLUS
928 LLVMGCCDIR
929 LLVMGCCLIBEXEC
930 LLVMGCC_VERSION
931 LLVMGCC_MAJVERS
932 LLVMGCC_LANGS
933 SHLIBEXT
934 LLVM_PREFIX
935 LLVM_BINDIR
936 LLVM_LIBDIR
937 LLVM_DATADIR
938 LLVM_DOCSDIR
939 LLVM_ETCDIR
940 LLVM_INCLUDEDIR
941 LLVM_INFODIR
942 LLVM_MANDIR
943 LLVM_CONFIGTIME
944 BINDINGS_TO_BUILD
945 ALL_BINDINGS
946 OCAML_LIBDIR
947 ENABLE_VISIBILITY_INLINES_HIDDEN
948 RPATH
949 RDYNAMIC
950 LIBOBJS
951 LTLIBOBJS'
952 ac_subst_files=''
953 ac_precious_vars='build_alias
954 host_alias
955 target_alias
957 CFLAGS
958 LDFLAGS
959 CPPFLAGS
962 CXXFLAGS
964 CXXCPP
966 FFLAGS'
967 ac_subdirs_all='projects/sample
968 projects/privbracket
969 projects/llvm-stacker
970 projects/llvm-test
971 projects/test-suite
972 projects/llvm-reopt
973 projects/llvm-gcc
974 projects/llvm-java
975 projects/llvm-tv
976 projects/llvm-poolalloc
977 projects/poolalloc
978 projects/llvm-kernel'
980 # Initialize some variables set by options.
981 ac_init_help=
982 ac_init_version=false
983 # The variables have the same names as the options, with
984 # dashes changed to underlines.
985 cache_file=/dev/null
986 exec_prefix=NONE
987 no_create=
988 no_recursion=
989 prefix=NONE
990 program_prefix=NONE
991 program_suffix=NONE
992 program_transform_name=s,x,x,
993 silent=
994 site=
995 srcdir=
996 verbose=
997 x_includes=NONE
998 x_libraries=NONE
1000 # Installation directory options.
1001 # These are left unexpanded so users can "make install exec_prefix=/foo"
1002 # and all the variables that are supposed to be based on exec_prefix
1003 # by default will actually change.
1004 # Use braces instead of parens because sh, perl, etc. also accept them.
1005 # (The list follows the same order as the GNU Coding Standards.)
1006 bindir='${exec_prefix}/bin'
1007 sbindir='${exec_prefix}/sbin'
1008 libexecdir='${exec_prefix}/libexec'
1009 datarootdir='${prefix}/share'
1010 datadir='${datarootdir}'
1011 sysconfdir='${prefix}/etc'
1012 sharedstatedir='${prefix}/com'
1013 localstatedir='${prefix}/var'
1014 includedir='${prefix}/include'
1015 oldincludedir='/usr/include'
1016 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1017 infodir='${datarootdir}/info'
1018 htmldir='${docdir}'
1019 dvidir='${docdir}'
1020 pdfdir='${docdir}'
1021 psdir='${docdir}'
1022 libdir='${exec_prefix}/lib'
1023 localedir='${datarootdir}/locale'
1024 mandir='${datarootdir}/man'
1026 ac_prev=
1027 ac_dashdash=
1028 for ac_option
1030 # If the previous option needs an argument, assign it.
1031 if test -n "$ac_prev"; then
1032 eval $ac_prev=\$ac_option
1033 ac_prev=
1034 continue
1037 case $ac_option in
1038 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 *) ac_optarg=yes ;;
1040 esac
1042 # Accept the important Cygnus configure options, so we can diagnose typos.
1044 case $ac_dashdash$ac_option in
1046 ac_dashdash=yes ;;
1048 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 ac_prev=bindir ;;
1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051 bindir=$ac_optarg ;;
1053 -build | --build | --buil | --bui | --bu)
1054 ac_prev=build_alias ;;
1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056 build_alias=$ac_optarg ;;
1058 -cache-file | --cache-file | --cache-fil | --cache-fi \
1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060 ac_prev=cache_file ;;
1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063 cache_file=$ac_optarg ;;
1065 --config-cache | -C)
1066 cache_file=config.cache ;;
1068 -datadir | --datadir | --datadi | --datad)
1069 ac_prev=datadir ;;
1070 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071 datadir=$ac_optarg ;;
1073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074 | --dataroo | --dataro | --datar)
1075 ac_prev=datarootdir ;;
1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078 datarootdir=$ac_optarg ;;
1080 -disable-* | --disable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1099 -enable-* | --enable-*)
1100 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1106 eval enable_$ac_feature=\$ac_optarg ;;
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1119 with_gas=yes ;;
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 ac_prev=htmldir ;;
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 | --ht=*)
1137 htmldir=$ac_optarg ;;
1139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 ac_prev=infodir ;;
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1151 -libdir | --libdir | --libdi | --libd)
1152 ac_prev=libdir ;;
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1168 -localstatedir | --localstatedir | --localstatedi | --localstated \
1169 | --localstate | --localstat | --localsta | --localst | --locals)
1170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173 localstatedir=$ac_optarg ;;
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 ac_prev=mandir ;;
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1182 with_fp=no ;;
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1186 no_create=yes ;;
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190 no_recursion=yes ;;
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 ac_prev=prefix ;;
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 ac_prev=pdfdir ;;
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1242 -psdir | --psdir | --psdi | --psd | --ps)
1243 ac_prev=psdir ;;
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245 psdir=$ac_optarg ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 silent=yes ;;
1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 ac_prev=sbindir ;;
1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 | --sbi=* | --sb=*)
1255 sbindir=$ac_optarg ;;
1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259 | --sharedst | --shareds | --shared | --share | --shar \
1260 | --sha | --sh)
1261 ac_prev=sharedstatedir ;;
1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 | --sha=* | --sh=*)
1266 sharedstatedir=$ac_optarg ;;
1268 -site | --site | --sit)
1269 ac_prev=site ;;
1270 -site=* | --site=* | --sit=*)
1271 site=$ac_optarg ;;
1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 ac_prev=srcdir ;;
1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276 srcdir=$ac_optarg ;;
1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279 | --syscon | --sysco | --sysc | --sys | --sy)
1280 ac_prev=sysconfdir ;;
1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283 sysconfdir=$ac_optarg ;;
1285 -target | --target | --targe | --targ | --tar | --ta | --t)
1286 ac_prev=target_alias ;;
1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288 target_alias=$ac_optarg ;;
1290 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291 verbose=yes ;;
1293 -version | --version | --versio | --versi | --vers | -V)
1294 ac_init_version=: ;;
1296 -with-* | --with-*)
1297 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1300 { echo "$as_me: error: invalid package name: $ac_package" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_package=`echo $ac_package| sed 's/-/_/g'`
1303 eval with_$ac_package=\$ac_optarg ;;
1305 -without-* | --without-*)
1306 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1309 { echo "$as_me: error: invalid package name: $ac_package" >&2
1310 { (exit 1); exit 1; }; }
1311 ac_package=`echo $ac_package | sed 's/-/_/g'`
1312 eval with_$ac_package=no ;;
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) { echo "$as_me: error: unrecognized option: $ac_option
1333 Try \`$0 --help' for more information." >&2
1334 { (exit 1); exit 1; }; }
1337 *=*)
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1341 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1342 { (exit 1); exit 1; }; }
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 esac
1355 done
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 { echo "$as_me: error: missing argument to $ac_option" >&2
1360 { (exit 1); exit 1; }; }
1363 # Be sure to have absolute directory names.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val=\$$ac_var
1370 case $ac_val in
1371 [\\/$]* | ?:[\\/]* ) continue;;
1372 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 esac
1374 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1375 { (exit 1); exit 1; }; }
1376 done
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1392 cross_compiling=yes
1396 ac_tool_prefix=
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399 test "$silent" = yes && exec 6>/dev/null
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 { echo "$as_me: error: Working directory cannot be determined" >&2
1406 { (exit 1); exit 1; }; }
1407 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408 { echo "$as_me: error: pwd does not report name of working directory" >&2
1409 { (exit 1); exit 1; }; }
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir=`$as_dirname -- "$0" ||
1417 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$0" : 'X\(//\)[^/]' \| \
1419 X"$0" : 'X\(//\)$' \| \
1420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1421 echo X"$0" |
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 s//\1/
1426 /^X\(\/\/\)[^/].*/{
1427 s//\1/
1430 /^X\(\/\/\)$/{
1431 s//\1/
1434 /^X\(\/\).*/{
1435 s//\1/
1438 s/.*/./; q'`
1439 srcdir=$ac_confdir
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 srcdir=..
1443 else
1444 ac_srcdir_defaulted=no
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1449 { (exit 1); exit 1; }; }
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1454 { (exit 1); exit 1; }; }
1455 pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
1480 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1489 Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 [PREFIX]
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1535 cat <<\_ACEOF
1537 System types:
1538 --build=BUILD configure for building on BUILD [guessed]
1539 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1540 --target=TARGET configure for building compilers for TARGET [HOST]
1541 _ACEOF
1544 if test -n "$ac_init_help"; then
1545 case $ac_init_help in
1546 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1547 esac
1548 cat <<\_ACEOF
1550 Optional Features:
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-optimized Compile with optimizations enabled (default is NO)
1554 --enable-profiling Compile with profiling enabled (default is NO)
1555 --enable-assertions Compile with assertion checks enabled (default is
1556 YES)
1557 --enable-expensive-checks
1558 Compile with expensive debug checks enabled (default
1559 is NO)
1560 --enable-debug-runtime Build runtime libs with debug symbols (default is
1562 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1563 optimization is on and YES if it's off)
1564 --enable-jit Enable Just In Time Compiling (default is YES)
1565 --enable-doxygen Build doxygen documentation (default is NO)
1566 --enable-threads Use threads if available (default is YES)
1567 --enable-pic Build LLVM with Position Independent Code (default
1568 is YES)
1569 --enable-targets Build specific host targets: all or
1570 target1,target2,... Valid targets are: host, x86,
1571 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1572 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1573 and cpp (default=all)
1574 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1575 %a (default is YES)
1576 --enable-bindings Build specific language bindings:
1577 all,auto,none,{binding-name} (default=auto)
1578 --enable-libffi Check for the presence of libffi (default is YES)
1579 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1580 Win32)
1581 --enable-llvmc-dynamic-plugins
1582 Enable dynamic LLVMC plugins (default is YES)
1583 --enable-ltdl-install install libltdl
1584 --enable-shared[=PKGS] build shared libraries
1585 [default=yes]
1586 --enable-static[=PKGS] build static libraries
1587 [default=yes]
1588 --enable-fast-install[=PKGS]
1589 optimize for fast installation
1590 [default=yes]
1591 --disable-libtool-lock avoid locking (might break parallel builds)
1593 Optional Packages:
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1596 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1597 searches PATH)
1598 --with-llvmgcc Specify location of llvm-gcc driver (default
1599 searches PATH)
1600 --with-llvmgxx Specify location of llvm-g++ driver (default
1601 searches PATH)
1602 --with-optimize-option Select the compiler options to use for optimized
1603 builds
1604 --with-extra-options Specify additional options to compile LLVM with
1605 --with-ocaml-libdir Specify install location for ocaml bindings (default
1606 is stdlib)
1607 --with-c-include-dirs Colon separated list of directories clang will
1608 search for headers
1609 --with-cxx-include-root Directory with the libstdc++ headers.
1610 --with-cxx-include-arch Architecture of the libstdc++ headers.
1611 --with-cxx-include-32bit-dir
1612 32 bit multilib dir.
1613 --with-cxx-include-64bit-dir
1614 64 bit multilib directory.
1615 --with-binutils-include Specify path to binutils/include/ containing
1616 plugin-api.h file for gold plugin.
1617 --with-tclinclude directory where tcl headers are
1618 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1619 --with-pic try to use only PIC/non-PIC objects [default=use
1620 both]
1621 --with-tags[=TAGS] include additional configurations [automatic]
1622 --with-udis86=<path> Use udis86 external x86 disassembler library
1623 --with-oprofile=<prefix>
1624 Tell OProfile >= 0.9.4 how to symbolize JIT output
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1632 you have headers in a nonstandard directory <include dir>
1633 CPP C preprocessor
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1636 CXXCPP C++ preprocessor
1637 F77 Fortran 77 compiler command
1638 FFLAGS Fortran 77 compiler flags
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1643 Report bugs to <llvmbugs@cs.uiuc.edu>.
1644 _ACEOF
1645 ac_status=$?
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" || continue
1652 ac_builddir=.
1654 case "$ac_dir" in
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664 esac
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1670 case $srcdir in
1671 .) # We are building in place.
1672 ac_srcdir=.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 esac
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1694 else
1695 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1698 done
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1703 cat <<\_ACEOF
1704 llvm configure 2.7svn
1705 generated by GNU Autoconf 2.60
1707 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1708 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1712 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1713 _ACEOF
1714 exit
1716 cat >config.log <<_ACEOF
1717 This file contains any messages produced by compilers while
1718 running configure, to aid debugging if configure makes a mistake.
1720 It was created by llvm $as_me 2.7svn, which was
1721 generated by GNU Autoconf 2.60. Invocation command line was
1723 $ $0 $@
1725 _ACEOF
1726 exec 5>>config.log
1728 cat <<_ASUNAME
1729 ## --------- ##
1730 ## Platform. ##
1731 ## --------- ##
1733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1742 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1743 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1746 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1747 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1748 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1750 _ASUNAME
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 echo "PATH: $as_dir"
1758 done
1759 IFS=$as_save_IFS
1761 } >&5
1763 cat >&5 <<_ACEOF
1766 ## ----------- ##
1767 ## Core tests. ##
1768 ## ----------- ##
1770 _ACEOF
1773 # Keep a trace of the command line.
1774 # Strip out --no-create and --no-recursion so they do not pile up.
1775 # Strip out --silent because we don't want to record it for future runs.
1776 # Also quote any args containing shell meta-characters.
1777 # Make two passes to allow for proper duplicate-argument suppression.
1778 ac_configure_args=
1779 ac_configure_args0=
1780 ac_configure_args1=
1781 ac_must_keep_next=false
1782 for ac_pass in 1 2
1784 for ac_arg
1786 case $ac_arg in
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1790 continue ;;
1791 *\'*)
1792 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 esac
1794 case $ac_pass in
1795 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1797 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
1799 ac_must_keep_next=false # Got value, back to normal.
1800 else
1801 case $ac_arg in
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808 esac
1810 -* ) ac_must_keep_next=true ;;
1811 esac
1813 ac_configure_args="$ac_configure_args '$ac_arg'"
1815 esac
1816 done
1817 done
1818 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1819 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1821 # When interrupted or exit'd, cleanup temporary files, and complete
1822 # config.log. We remove comments because anyway the quotes in there
1823 # would cause problems or look ugly.
1824 # WARNING: Use '\'' to represent an apostrophe within the trap.
1825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826 trap 'exit_status=$?
1827 # Save into config.log some information that might help in debugging.
1829 echo
1831 cat <<\_ASBOX
1832 ## ---------------- ##
1833 ## Cache variables. ##
1834 ## ---------------- ##
1835 _ASBOX
1836 echo
1837 # The following way of writing the cache mishandles newlines in values,
1839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1840 eval ac_val=\$$ac_var
1841 case $ac_val in #(
1842 *${as_nl}*)
1843 case $ac_var in #(
1844 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1845 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1846 esac
1847 case $ac_var in #(
1848 _ | IFS | as_nl) ;; #(
1849 *) $as_unset $ac_var ;;
1850 esac ;;
1851 esac
1852 done
1853 (set) 2>&1 |
1854 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1855 *${as_nl}ac_space=\ *)
1856 sed -n \
1857 "s/'\''/'\''\\\\'\'''\''/g;
1858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1859 ;; #(
1861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1863 esac |
1864 sort
1866 echo
1868 cat <<\_ASBOX
1869 ## ----------------- ##
1870 ## Output variables. ##
1871 ## ----------------- ##
1872 _ASBOX
1873 echo
1874 for ac_var in $ac_subst_vars
1876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 echo "$ac_var='\''$ac_val'\''"
1881 done | sort
1882 echo
1884 if test -n "$ac_subst_files"; then
1885 cat <<\_ASBOX
1886 ## ------------------- ##
1887 ## File substitutions. ##
1888 ## ------------------- ##
1889 _ASBOX
1890 echo
1891 for ac_var in $ac_subst_files
1893 eval ac_val=\$$ac_var
1894 case $ac_val in
1895 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 esac
1897 echo "$ac_var='\''$ac_val'\''"
1898 done | sort
1899 echo
1902 if test -s confdefs.h; then
1903 cat <<\_ASBOX
1904 ## ----------- ##
1905 ## confdefs.h. ##
1906 ## ----------- ##
1907 _ASBOX
1908 echo
1909 cat confdefs.h
1910 echo
1912 test "$ac_signal" != 0 &&
1913 echo "$as_me: caught signal $ac_signal"
1914 echo "$as_me: exit $exit_status"
1915 } >&5
1916 rm -f core *.core core.conftest.* &&
1917 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1918 exit $exit_status
1920 for ac_signal in 1 2 13 15; do
1921 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1922 done
1923 ac_signal=0
1925 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1926 rm -f -r conftest* confdefs.h
1928 # Predefined preprocessor variables.
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_NAME "$PACKAGE_NAME"
1932 _ACEOF
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1937 _ACEOF
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1942 _ACEOF
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_STRING "$PACKAGE_STRING"
1947 _ACEOF
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1952 _ACEOF
1955 # Let the site file select an alternate cache file if it wants to.
1956 # Prefer explicitly selected file to automatically selected ones.
1957 if test -n "$CONFIG_SITE"; then
1958 set x "$CONFIG_SITE"
1959 elif test "x$prefix" != xNONE; then
1960 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1961 else
1962 set x "$ac_default_prefix/share/config.site" \
1963 "$ac_default_prefix/etc/config.site"
1965 shift
1966 for ac_site_file
1968 if test -r "$ac_site_file"; then
1969 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970 echo "$as_me: loading site script $ac_site_file" >&6;}
1971 sed 's/^/| /' "$ac_site_file" >&5
1972 . "$ac_site_file"
1974 done
1976 if test -r "$cache_file"; then
1977 # Some versions of bash will fail to source /dev/null (special
1978 # files actually), so we avoid doing that.
1979 if test -f "$cache_file"; then
1980 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981 echo "$as_me: loading cache $cache_file" >&6;}
1982 case $cache_file in
1983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984 *) . "./$cache_file";;
1985 esac
1987 else
1988 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989 echo "$as_me: creating cache $cache_file" >&6;}
1990 >$cache_file
1993 # Check that the precious variables saved in the cache have kept the same
1994 # value.
1995 ac_cache_corrupted=false
1996 for ac_var in $ac_precious_vars; do
1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998 eval ac_new_set=\$ac_env_${ac_var}_set
1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000 eval ac_new_val=\$ac_env_${ac_var}_value
2001 case $ac_old_set,$ac_new_set in
2002 set,)
2003 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2006 ,set)
2007 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2010 ,);;
2012 if test "x$ac_old_val" != "x$ac_new_val"; then
2013 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2014 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2015 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2016 echo "$as_me: former value: $ac_old_val" >&2;}
2017 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2018 echo "$as_me: current value: $ac_new_val" >&2;}
2019 ac_cache_corrupted=:
2020 fi;;
2021 esac
2022 # Pass precious variables to config.status.
2023 if test "$ac_new_set" = set; then
2024 case $ac_new_val in
2025 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 *) ac_arg=$ac_var=$ac_new_val ;;
2027 esac
2028 case " $ac_configure_args " in
2029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2030 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2031 esac
2033 done
2034 if $ac_cache_corrupted; then
2035 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2036 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2037 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2038 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2039 { (exit 1); exit 1; }; }
2066 ac_ext=c
2067 ac_cpp='$CPP $CPPFLAGS'
2068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2082 ac_aux_dir=
2083 for ac_dir in autoconf "$srcdir"/autoconf; do
2084 if test -f "$ac_dir/install-sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install-sh -c"
2087 break
2088 elif test -f "$ac_dir/install.sh"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/install.sh -c"
2091 break
2092 elif test -f "$ac_dir/shtool"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/shtool install -c"
2095 break
2097 done
2098 if test -z "$ac_aux_dir"; then
2099 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2101 { (exit 1); exit 1; }; }
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2114 if test ${srcdir} != "." ; then
2115 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2116 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2117 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2118 { (exit 1); exit 1; }; }
2122 for i in `ls ${srcdir}/projects`
2124 if test -d ${srcdir}/projects/${i} ; then
2125 case ${i} in
2126 CVS) ;;
2127 sample) subdirs="$subdirs projects/sample"
2129 privbracket) subdirs="$subdirs projects/privbracket"
2131 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2133 # llvm-test is the old name of the test-suite, kept here for backwards
2134 # compatibility
2135 llvm-test) subdirs="$subdirs projects/llvm-test"
2137 test-suite) subdirs="$subdirs projects/test-suite"
2139 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2141 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2143 llvm-java) subdirs="$subdirs projects/llvm-java"
2145 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2147 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2149 poolalloc) subdirs="$subdirs projects/poolalloc"
2151 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2154 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2155 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2157 esac
2159 done
2162 # Make sure we can run config.sub.
2163 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2164 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2165 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2166 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: checking build system type" >&5
2169 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_build+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 ac_build_alias=$build_alias
2174 test "x$ac_build_alias" = x &&
2175 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2176 test "x$ac_build_alias" = x &&
2177 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2178 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2179 { (exit 1); exit 1; }; }
2180 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2187 echo "${ECHO_T}$ac_cv_build" >&6; }
2188 case $ac_cv_build in
2189 *-*-*) ;;
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2191 echo "$as_me: error: invalid value of canonical build" >&2;}
2192 { (exit 1); exit 1; }; };;
2193 esac
2194 build=$ac_cv_build
2195 ac_save_IFS=$IFS; IFS='-'
2196 set x $ac_cv_build
2197 shift
2198 build_cpu=$1
2199 build_vendor=$2
2200 shift; shift
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2203 build_os=$*
2204 IFS=$ac_save_IFS
2205 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2208 { echo "$as_me:$LINENO: checking host system type" >&5
2209 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2210 if test "${ac_cv_host+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 if test "x$host_alias" = x; then
2214 ac_cv_host=$ac_cv_build
2215 else
2216 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2218 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2219 { (exit 1); exit 1; }; }
2223 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2224 echo "${ECHO_T}$ac_cv_host" >&6; }
2225 case $ac_cv_host in
2226 *-*-*) ;;
2227 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2228 echo "$as_me: error: invalid value of canonical host" >&2;}
2229 { (exit 1); exit 1; }; };;
2230 esac
2231 host=$ac_cv_host
2232 ac_save_IFS=$IFS; IFS='-'
2233 set x $ac_cv_host
2234 shift
2235 host_cpu=$1
2236 host_vendor=$2
2237 shift; shift
2238 # Remember, the first character of IFS is used to create $*,
2239 # except with old shells:
2240 host_os=$*
2241 IFS=$ac_save_IFS
2242 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2245 { echo "$as_me:$LINENO: checking target system type" >&5
2246 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2247 if test "${ac_cv_target+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 if test "x$target_alias" = x; then
2251 ac_cv_target=$ac_cv_host
2252 else
2253 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2254 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2255 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2256 { (exit 1); exit 1; }; }
2260 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2261 echo "${ECHO_T}$ac_cv_target" >&6; }
2262 case $ac_cv_target in
2263 *-*-*) ;;
2264 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2265 echo "$as_me: error: invalid value of canonical target" >&2;}
2266 { (exit 1); exit 1; }; };;
2267 esac
2268 target=$ac_cv_target
2269 ac_save_IFS=$IFS; IFS='-'
2270 set x $ac_cv_target
2271 shift
2272 target_cpu=$1
2273 target_vendor=$2
2274 shift; shift
2275 # Remember, the first character of IFS is used to create $*,
2276 # except with old shells:
2277 target_os=$*
2278 IFS=$ac_save_IFS
2279 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2282 # The aliases save the names the user supplied, while $host etc.
2283 # will get canonicalized.
2284 test -n "$target_alias" &&
2285 test "$program_prefix$program_suffix$program_transform_name" = \
2286 NONENONEs,x,x, &&
2287 program_prefix=${target_alias}-
2289 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2290 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2291 if test "${llvm_cv_os_type+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294 case $host in
2295 *-*-aix*)
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="AIX"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-irix*)
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="IRIX"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-cygwin*)
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="Cygwin"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-darwin*)
2311 llvm_cv_link_all_option="-Wl,-all_load"
2312 llvm_cv_no_link_all_option="-Wl,-noall_load"
2313 llvm_cv_os_type="Darwin"
2314 llvm_cv_platform_type="Unix" ;;
2315 *-*-freebsd*)
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="FreeBSD"
2319 llvm_cv_platform_type="Unix" ;;
2320 *-*-openbsd*)
2321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323 llvm_cv_os_type="OpenBSD"
2324 llvm_cv_platform_type="Unix" ;;
2325 *-*-netbsd*)
2326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328 llvm_cv_os_type="NetBSD"
2329 llvm_cv_platform_type="Unix" ;;
2330 *-*-dragonfly*)
2331 llvm_cv_link_all_option="-Wl,--whole-archive"
2332 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2333 llvm_cv_os_type="DragonFly"
2334 llvm_cv_platform_type="Unix" ;;
2335 *-*-hpux*)
2336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338 llvm_cv_os_type="HP-UX"
2339 llvm_cv_platform_type="Unix" ;;
2340 *-*-interix*)
2341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343 llvm_cv_os_type="Interix"
2344 llvm_cv_platform_type="Unix" ;;
2345 *-*-linux*)
2346 llvm_cv_link_all_option="-Wl,--whole-archive"
2347 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2348 llvm_cv_os_type="Linux"
2349 llvm_cv_platform_type="Unix" ;;
2350 *-*-solaris*)
2351 llvm_cv_link_all_option="-Wl,-z,allextract"
2352 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2353 llvm_cv_os_type="SunOS"
2354 llvm_cv_platform_type="Unix" ;;
2355 *-*-auroraux*)
2356 llvm_cv_link_all_option="-Wl,-z,allextract"
2357 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2358 llvm_cv_os_type="AuroraUX"
2359 llvm_cv_platform_type="Unix" ;;
2360 *-*-win32*)
2361 llvm_cv_link_all_option="-Wl,--whole-archive"
2362 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2363 llvm_cv_os_type="Win32"
2364 llvm_cv_platform_type="Win32" ;;
2365 *-*-mingw*)
2366 llvm_cv_link_all_option="-Wl,--whole-archive"
2367 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2368 llvm_cv_os_type="MingW"
2369 llvm_cv_platform_type="Win32" ;;
2370 *-*-haiku*)
2371 llvm_cv_link_all_option="-Wl,--whole-archive"
2372 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2373 llvm_cv_os_type="Haiku"
2374 llvm_cv_platform_type="Unix" ;;
2375 *-unknown-eabi*)
2376 llvm_cv_link_all_option="-Wl,--whole-archive"
2377 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2378 llvm_cv_os_type="Freestanding"
2379 llvm_cv_platform_type="Unix" ;;
2380 *-unknown-elf*)
2381 llvm_cv_link_all_option="-Wl,--whole-archive"
2382 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2383 llvm_cv_os_type="Freestanding"
2384 llvm_cv_platform_type="Unix" ;;
2386 llvm_cv_link_all_option=""
2387 llvm_cv_no_link_all_option=""
2388 llvm_cv_os_type="Unknown"
2389 llvm_cv_platform_type="Unknown" ;;
2390 esac
2392 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2393 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2395 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2396 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2397 if test "${llvm_cv_target_os_type+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 case $target in
2401 *-*-aix*)
2402 llvm_cv_target_os_type="AIX" ;;
2403 *-*-irix*)
2404 llvm_cv_target_os_type="IRIX" ;;
2405 *-*-cygwin*)
2406 llvm_cv_target_os_type="Cygwin" ;;
2407 *-*-darwin*)
2408 llvm_cv_target_os_type="Darwin" ;;
2409 *-*-freebsd*)
2410 llvm_cv_target_os_type="FreeBSD" ;;
2411 *-*-openbsd*)
2412 llvm_cv_target_os_type="OpenBSD" ;;
2413 *-*-netbsd*)
2414 llvm_cv_target_os_type="NetBSD" ;;
2415 *-*-dragonfly*)
2416 llvm_cv_target_os_type="DragonFly" ;;
2417 *-*-hpux*)
2418 llvm_cv_target_os_type="HP-UX" ;;
2419 *-*-interix*)
2420 llvm_cv_target_os_type="Interix" ;;
2421 *-*-linux*)
2422 llvm_cv_target_os_type="Linux" ;;
2423 *-*-solaris*)
2424 llvm_cv_target_os_type="SunOS" ;;
2425 *-*-auroraux*)
2426 llvm_cv_target_os_type="AuroraUX" ;;
2427 *-*-win32*)
2428 llvm_cv_target_os_type="Win32" ;;
2429 *-*-mingw*)
2430 llvm_cv_target_os_type="MingW" ;;
2431 *-*-haiku*)
2432 llvm_cv_target_os_type="Haiku" ;;
2433 *-unknown-eabi*)
2434 llvm_cv_target_os_type="Freestanding" ;;
2436 llvm_cv_target_os_type="Unknown" ;;
2437 esac
2439 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2440 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2442 if test "$llvm_cv_os_type" = "Unknown" ; then
2443 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2444 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2445 { (exit 1); exit 1; }; }
2448 OS=$llvm_cv_os_type
2450 HOST_OS=$llvm_cv_os_type
2452 TARGET_OS=$llvm_cv_target_os_type
2455 LINKALL=$llvm_cv_link_all_option
2457 NOLINKALL=$llvm_cv_no_link_all_option
2460 case $llvm_cv_platform_type in
2461 Unix)
2463 cat >>confdefs.h <<\_ACEOF
2464 #define LLVM_ON_UNIX 1
2465 _ACEOF
2467 LLVM_ON_UNIX=1
2469 LLVM_ON_WIN32=0
2472 Win32)
2474 cat >>confdefs.h <<\_ACEOF
2475 #define LLVM_ON_WIN32 1
2476 _ACEOF
2478 LLVM_ON_UNIX=0
2480 LLVM_ON_WIN32=1
2483 esac
2485 { echo "$as_me:$LINENO: checking target architecture" >&5
2486 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2487 if test "${llvm_cv_target_arch+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 case $target in
2491 i?86-*) llvm_cv_target_arch="x86" ;;
2492 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2493 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2494 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2495 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2496 arm*-*) llvm_cv_target_arch="ARM" ;;
2497 mips-*) llvm_cv_target_arch="Mips" ;;
2498 pic16-*) llvm_cv_target_arch="PIC16" ;;
2499 xcore-*) llvm_cv_target_arch="XCore" ;;
2500 msp430-*) llvm_cv_target_arch="MSP430" ;;
2501 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2502 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2503 *) llvm_cv_target_arch="Unknown" ;;
2504 esac
2506 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2507 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2509 if test "$llvm_cv_target_arch" = "Unknown" ; then
2510 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2511 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2514 # Determine the LLVM native architecture for the target
2515 case "$llvm_cv_target_arch" in
2516 x86) LLVM_NATIVE_ARCH="X86" ;;
2517 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2518 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2519 esac
2521 ARCH=$llvm_cv_target_arch
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}gcc; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2551 done
2552 done
2553 IFS=$as_save_IFS
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559 { echo "$as_me:$LINENO: result: $CC" >&5
2560 echo "${ECHO_T}$CC" >&6; }
2561 else
2562 { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2568 if test -z "$ac_cv_prog_CC"; then
2569 ac_ct_CC=$CC
2570 # Extract the first word of "gcc", so it can be a program name with args.
2571 set dummy gcc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_CC="gcc"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2591 done
2592 done
2593 IFS=$as_save_IFS
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600 echo "${ECHO_T}$ac_ct_CC" >&6; }
2601 else
2602 { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2606 if test "x$ac_ct_CC" = x; then
2607 CC=""
2608 else
2609 case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&5
2614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2615 whose name does not start with the host triplet. If you think this
2616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2617 ac_tool_warned=yes ;;
2618 esac
2619 CC=$ac_ct_CC
2621 else
2622 CC="$ac_cv_prog_CC"
2625 if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2628 set dummy ${ac_tool_prefix}cc; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_CC="${ac_tool_prefix}cc"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2648 done
2649 done
2650 IFS=$as_save_IFS
2654 CC=$ac_cv_prog_CC
2655 if test -n "$CC"; then
2656 { echo "$as_me:$LINENO: result: $CC" >&5
2657 echo "${ECHO_T}$CC" >&6; }
2658 else
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2666 if test -z "$CC"; then
2667 # Extract the first word of "cc", so it can be a program name with args.
2668 set dummy cc; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676 else
2677 ac_prog_rejected=no
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2686 ac_prog_rejected=yes
2687 continue
2689 ac_cv_prog_CC="cc"
2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2693 done
2694 done
2695 IFS=$as_save_IFS
2697 if test $ac_prog_rejected = yes; then
2698 # We found a bogon in the path, so make sure we never use it.
2699 set dummy $ac_cv_prog_CC
2700 shift
2701 if test $# != 0; then
2702 # We chose a different compiler from the bogus one.
2703 # However, it has the same basename, so the bogon will be chosen
2704 # first if we set CC to just the basename; use the full file name.
2705 shift
2706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2711 CC=$ac_cv_prog_CC
2712 if test -n "$CC"; then
2713 { echo "$as_me:$LINENO: result: $CC" >&5
2714 echo "${ECHO_T}$CC" >&6; }
2715 else
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2722 if test -z "$CC"; then
2723 if test -n "$ac_tool_prefix"; then
2724 for ac_prog in cl.exe
2726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2747 done
2748 done
2749 IFS=$as_save_IFS
2753 CC=$ac_cv_prog_CC
2754 if test -n "$CC"; then
2755 { echo "$as_me:$LINENO: result: $CC" >&5
2756 echo "${ECHO_T}$CC" >&6; }
2757 else
2758 { echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6; }
2763 test -n "$CC" && break
2764 done
2766 if test -z "$CC"; then
2767 ac_ct_CC=$CC
2768 for ac_prog in cl.exe
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 if test -n "$ac_ct_CC"; then
2778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_ac_ct_CC="$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2791 done
2792 done
2793 IFS=$as_save_IFS
2797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798 if test -n "$ac_ct_CC"; then
2799 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2800 echo "${ECHO_T}$ac_ct_CC" >&6; }
2801 else
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2807 test -n "$ac_ct_CC" && break
2808 done
2810 if test "x$ac_ct_CC" = x; then
2811 CC=""
2812 else
2813 case $cross_compiling:$ac_tool_warned in
2814 yes:)
2815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2816 whose name does not start with the host triplet. If you think this
2817 configuration is useful to you, please write to autoconf@gnu.org." >&5
2818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2819 whose name does not start with the host triplet. If you think this
2820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 CC=$ac_ct_CC
2830 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2831 See \`config.log' for more details." >&5
2832 echo "$as_me: error: no acceptable C compiler found in \$PATH
2833 See \`config.log' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2836 # Provide some information about the compiler.
2837 echo "$as_me:$LINENO: checking for C compiler version" >&5
2838 ac_compiler=`set X $ac_compile; echo $2`
2839 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2849 { (ac_try="$ac_compiler -v >&5"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compiler -v >&5") 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }
2859 { (ac_try="$ac_compiler -V >&5"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_compiler -V >&5") 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h. */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2878 main ()
2882 return 0;
2884 _ACEOF
2885 ac_clean_files_save=$ac_clean_files
2886 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2887 # Try to create an executable without -o first, disregard a.out.
2888 # It will help us diagnose broken compilers, and finding out an intuition
2889 # of exeext.
2890 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2891 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2892 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2894 # List of possible output files, starting from the most likely.
2895 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2896 # only as a last resort. b.out is created by i960 compilers.
2897 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2899 # The IRIX 6 linker writes into existing files which may not be
2900 # executable, retaining their permissions. Remove them first so a
2901 # subsequent execution test works.
2902 ac_rmfiles=
2903 for ac_file in $ac_files
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2908 esac
2909 done
2910 rm -f $ac_rmfiles
2912 if { (ac_try="$ac_link_default"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link_default") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2924 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2925 # so that the user can short-circuit this test for compilers unknown to
2926 # Autoconf.
2927 for ac_file in $ac_files
2929 test -f "$ac_file" || continue
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2933 [ab].out )
2934 # We found the default executable, but exeext='' is most
2935 # certainly right.
2936 break;;
2937 *.* )
2938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2939 then :; else
2940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 # We set ac_cv_exeext here because the later test for it is not
2943 # safe: cross compilers may not add the suffix if given an `-o'
2944 # argument, so we may need to know it at that point already.
2945 # Even if this section looks crufty: it has the advantage of
2946 # actually working.
2947 break;;
2949 break;;
2950 esac
2951 done
2952 test "$ac_cv_exeext" = no && ac_cv_exeext=
2954 else
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: C compiler cannot create executables
2961 See \`config.log' for more details." >&2;}
2962 { (exit 77); exit 77; }; }
2965 ac_exeext=$ac_cv_exeext
2966 { echo "$as_me:$LINENO: result: $ac_file" >&5
2967 echo "${ECHO_T}$ac_file" >&6; }
2969 # Check that the compiler produces executables we can run. If not, either
2970 # the compiler is broken, or we cross compile.
2971 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2972 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2973 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2974 # If not cross compiling, check that we can run a simple program.
2975 if test "$cross_compiling" != yes; then
2976 if { ac_try='./$ac_file'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 cross_compiling=no
2987 else
2988 if test "$cross_compiling" = maybe; then
2989 cross_compiling=yes
2990 else
2991 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2992 If you meant to cross compile, use \`--host'.
2993 See \`config.log' for more details." >&5
2994 echo "$as_me: error: cannot run C compiled programs.
2995 If you meant to cross compile, use \`--host'.
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
3001 { echo "$as_me:$LINENO: result: yes" >&5
3002 echo "${ECHO_T}yes" >&6; }
3004 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3005 ac_clean_files=$ac_clean_files_save
3006 # Check that the compiler produces executables we can run. If not, either
3007 # the compiler is broken, or we cross compile.
3008 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3009 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3010 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3011 echo "${ECHO_T}$cross_compiling" >&6; }
3013 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3014 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3015 if { (ac_try="$ac_link"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_link") 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; then
3025 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3026 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3027 # work properly (i.e., refer to `conftest.exe'), while it won't with
3028 # `rm'.
3029 for ac_file in conftest.exe conftest conftest.*; do
3030 test -f "$ac_file" || continue
3031 case $ac_file in
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3033 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034 break;;
3035 * ) break;;
3036 esac
3037 done
3038 else
3039 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3040 See \`config.log' for more details." >&5
3041 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3042 See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3046 rm -f conftest$ac_cv_exeext
3047 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3048 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3050 rm -f conftest.$ac_ext
3051 EXEEXT=$ac_cv_exeext
3052 ac_exeext=$EXEEXT
3053 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3054 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3055 if test "${ac_cv_objext+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058 cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h. */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3066 main ()
3070 return 0;
3072 _ACEOF
3073 rm -f conftest.o conftest.obj
3074 if { (ac_try="$ac_compile"
3075 case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_compile") 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; then
3084 for ac_file in conftest.o conftest.obj conftest.*; do
3085 test -f "$ac_file" || continue;
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089 break;;
3090 esac
3091 done
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3103 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3105 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3106 echo "${ECHO_T}$ac_cv_objext" >&6; }
3107 OBJEXT=$ac_cv_objext
3108 ac_objext=$OBJEXT
3109 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3110 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3111 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 main ()
3124 #ifndef __GNUC__
3125 choke me
3126 #endif
3129 return 0;
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_compiler_gnu=yes
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 ac_compiler_gnu=no
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3178 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3179 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3180 GCC=`test $ac_compiler_gnu = yes && echo yes`
3181 ac_test_CFLAGS=${CFLAGS+set}
3182 ac_save_CFLAGS=$CFLAGS
3183 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3184 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3185 if test "${ac_cv_prog_cc_g+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 else
3188 ac_save_c_werror_flag=$ac_c_werror_flag
3189 ac_c_werror_flag=yes
3190 ac_cv_prog_cc_g=no
3191 CFLAGS="-g"
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3200 main ()
3204 return 0;
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_try") 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_prog_cc_g=yes
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 CFLAGS=""
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3255 main ()
3259 return 0;
3261 _ACEOF
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_try") 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3302 CFLAGS="-g"
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3311 main ()
3315 return 0;
3317 _ACEOF
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3333 { (case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try='test -s conftest.$ac_objext'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_prog_cc_g=yes
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_c_werror_flag=$ac_save_c_werror_flag
3369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3370 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3371 if test "$ac_test_CFLAGS" = set; then
3372 CFLAGS=$ac_save_CFLAGS
3373 elif test $ac_cv_prog_cc_g = yes; then
3374 if test "$GCC" = yes; then
3375 CFLAGS="-g -O2"
3376 else
3377 CFLAGS="-g"
3379 else
3380 if test "$GCC" = yes; then
3381 CFLAGS="-O2"
3382 else
3383 CFLAGS=
3386 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3387 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3388 if test "${ac_cv_prog_cc_c89+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 ac_cv_prog_cc_c89=no
3392 ac_save_CC=$CC
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include <stdarg.h>
3400 #include <stdio.h>
3401 #include <sys/types.h>
3402 #include <sys/stat.h>
3403 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3404 struct buf { int x; };
3405 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406 static char *e (p, i)
3407 char **p;
3408 int i;
3410 return p[i];
3412 static char *f (char * (*g) (char **, int), char **p, ...)
3414 char *s;
3415 va_list v;
3416 va_start (v,p);
3417 s = g (p, va_arg (v,int));
3418 va_end (v);
3419 return s;
3422 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3423 function prototypes and stuff, but not '\xHH' hex character constants.
3424 These don't provoke an error unfortunately, instead are silently treated
3425 as 'x'. The following induces an error, until -std is added to get
3426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3427 array size at least. It's necessary to write '\x00'==0 to get something
3428 that's true only with -std. */
3429 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3431 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3432 inside strings and character constants. */
3433 #define FOO(x) 'x'
3434 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3436 int test (int i, double x);
3437 struct s1 {int (*f) (int a);};
3438 struct s2 {int (*f) (double a);};
3439 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3440 int argc;
3441 char **argv;
3443 main ()
3445 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3447 return 0;
3449 _ACEOF
3450 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3453 CC="$ac_save_CC $ac_arg"
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
3462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3469 { (case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_try") 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_try") 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_prog_cc_c89=$ac_arg
3489 else
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3496 rm -f core conftest.err conftest.$ac_objext
3497 test "x$ac_cv_prog_cc_c89" != "xno" && break
3498 done
3499 rm -f conftest.$ac_ext
3500 CC=$ac_save_CC
3503 # AC_CACHE_VAL
3504 case "x$ac_cv_prog_cc_c89" in
3506 { echo "$as_me:$LINENO: result: none needed" >&5
3507 echo "${ECHO_T}none needed" >&6; } ;;
3508 xno)
3509 { echo "$as_me:$LINENO: result: unsupported" >&5
3510 echo "${ECHO_T}unsupported" >&6; } ;;
3512 CC="$CC $ac_cv_prog_cc_c89"
3513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3515 esac
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3532 # On Suns, sometimes $CPP names a directory.
3533 if test -n "$CPP" && test -d "$CPP"; then
3534 CPP=
3536 if test -z "$CPP"; then
3537 if test "${ac_cv_prog_CPP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 # Double quotes because CPP needs to be expanded
3541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3543 ac_preproc_ok=false
3544 for ac_c_preproc_warn_flag in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 #ifdef __STDC__
3559 # include <limits.h>
3560 #else
3561 # include <assert.h>
3562 #endif
3563 Syntax error
3564 _ACEOF
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581 else
3582 ac_cpp_err=
3584 else
3585 ac_cpp_err=yes
3587 if test -z "$ac_cpp_err"; then
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3594 continue
3597 rm -f conftest.err conftest.$ac_ext
3599 # OK, works on sane cases. Now check whether nonexistent headers
3600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #include <ac_nonexistent.h>
3608 _ACEOF
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev/null; then
3622 if test -s conftest.err; then
3623 ac_cpp_err=$ac_c_preproc_warn_flag
3624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625 else
3626 ac_cpp_err=
3628 else
3629 ac_cpp_err=yes
3631 if test -z "$ac_cpp_err"; then
3632 # Broken: success on invalid input.
3633 continue
3634 else
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 # Passes both tests.
3639 ac_preproc_ok=:
3640 break
3643 rm -f conftest.err conftest.$ac_ext
3645 done
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then
3649 break
3652 done
3653 ac_cv_prog_CPP=$CPP
3656 CPP=$ac_cv_prog_CPP
3657 else
3658 ac_cv_prog_CPP=$CPP
3660 { echo "$as_me:$LINENO: result: $CPP" >&5
3661 echo "${ECHO_T}$CPP" >&6; }
3662 ac_preproc_ok=false
3663 for ac_c_preproc_warn_flag in '' yes
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h. */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 #ifdef __STDC__
3678 # include <limits.h>
3679 #else
3680 # include <assert.h>
3681 #endif
3682 Syntax error
3683 _ACEOF
3684 if { (ac_try="$ac_cpp conftest.$ac_ext"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null; then
3697 if test -s conftest.err; then
3698 ac_cpp_err=$ac_c_preproc_warn_flag
3699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3700 else
3701 ac_cpp_err=
3703 else
3704 ac_cpp_err=yes
3706 if test -z "$ac_cpp_err"; then
3708 else
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 # Broken: fails on valid input.
3713 continue
3716 rm -f conftest.err conftest.$ac_ext
3718 # OK, works on sane cases. Now check whether nonexistent headers
3719 # can be detected and how.
3720 cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h. */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 #include <ac_nonexistent.h>
3727 _ACEOF
3728 if { (ac_try="$ac_cpp conftest.$ac_ext"
3729 case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } >/dev/null; then
3741 if test -s conftest.err; then
3742 ac_cpp_err=$ac_c_preproc_warn_flag
3743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3744 else
3745 ac_cpp_err=
3747 else
3748 ac_cpp_err=yes
3750 if test -z "$ac_cpp_err"; then
3751 # Broken: success on invalid input.
3752 continue
3753 else
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 # Passes both tests.
3758 ac_preproc_ok=:
3759 break
3762 rm -f conftest.err conftest.$ac_ext
3764 done
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.err conftest.$ac_ext
3767 if $ac_preproc_ok; then
3769 else
3770 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3771 See \`config.log' for more details." >&5
3772 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3773 See \`config.log' for more details." >&2;}
3774 { (exit 1); exit 1; }; }
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3785 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3786 if test "${ac_cv_path_GREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 # Extract the first word of "grep ggrep" to use in msg output
3790 if test -z "$GREP"; then
3791 set dummy grep ggrep; ac_prog_name=$2
3792 if test "${ac_cv_path_GREP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 ac_path_GREP_found=false
3796 # Loop through the user's path and test for each of PROGNAME-LIST
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_prog in grep ggrep; do
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3805 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3806 # Check for GNU ac_path_GREP and select it if it is found.
3807 # Check for GNU $ac_path_GREP
3808 case `"$ac_path_GREP" --version 2>&1` in
3809 *GNU*)
3810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3812 ac_count=0
3813 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3814 while :
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 echo 'GREP' >> "conftest.nl"
3820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 ac_count=`expr $ac_count + 1`
3823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_GREP="$ac_path_GREP"
3826 ac_path_GREP_max=$ac_count
3828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3830 done
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832 esac
3835 $ac_path_GREP_found && break 3
3836 done
3837 done
3839 done
3840 IFS=$as_save_IFS
3845 GREP="$ac_cv_path_GREP"
3846 if test -z "$GREP"; then
3847 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3848 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3849 { (exit 1); exit 1; }; }
3852 else
3853 ac_cv_path_GREP=$GREP
3858 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3859 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3860 GREP="$ac_cv_path_GREP"
3863 { echo "$as_me:$LINENO: checking for egrep" >&5
3864 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3869 then ac_cv_path_EGREP="$GREP -E"
3870 else
3871 # Extract the first word of "egrep" to use in msg output
3872 if test -z "$EGREP"; then
3873 set dummy egrep; ac_prog_name=$2
3874 if test "${ac_cv_path_EGREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 ac_path_EGREP_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in egrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3887 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3888 # Check for GNU ac_path_EGREP and select it if it is found.
3889 # Check for GNU $ac_path_EGREP
3890 case `"$ac_path_EGREP" --version 2>&1` in
3891 *GNU*)
3892 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3894 ac_count=0
3895 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3896 while :
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 echo 'EGREP' >> "conftest.nl"
3902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 ac_count=`expr $ac_count + 1`
3905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_EGREP="$ac_path_EGREP"
3908 ac_path_EGREP_max=$ac_count
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3912 done
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914 esac
3917 $ac_path_EGREP_found && break 3
3918 done
3919 done
3921 done
3922 IFS=$as_save_IFS
3927 EGREP="$ac_cv_path_EGREP"
3928 if test -z "$EGREP"; then
3929 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931 { (exit 1); exit 1; }; }
3934 else
3935 ac_cv_path_EGREP=$EGREP
3941 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3943 EGREP="$ac_cv_path_EGREP"
3946 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3948 if test "${ac_cv_header_stdc+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h. */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3957 #include <stdlib.h>
3958 #include <stdarg.h>
3959 #include <string.h>
3960 #include <float.h>
3963 main ()
3967 return 0;
3969 _ACEOF
3970 rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_compile") 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985 { (case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_try") 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_cv_header_stdc=yes
4005 else
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 ac_cv_header_stdc=no
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 if test $ac_cv_header_stdc = yes; then
4015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4016 cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h. */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 #include <string.h>
4024 _ACEOF
4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026 $EGREP "memchr" >/dev/null 2>&1; then
4028 else
4029 ac_cv_header_stdc=no
4031 rm -f conftest*
4035 if test $ac_cv_header_stdc = yes; then
4036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4037 cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h. */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 #include <stdlib.h>
4045 _ACEOF
4046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047 $EGREP "free" >/dev/null 2>&1; then
4049 else
4050 ac_cv_header_stdc=no
4052 rm -f conftest*
4056 if test $ac_cv_header_stdc = yes; then
4057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4058 if test "$cross_compiling" = yes; then
4060 else
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 #include <ctype.h>
4068 #include <stdlib.h>
4069 #if ((' ' & 0x0FF) == 0x020)
4070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4072 #else
4073 # define ISLOWER(c) \
4074 (('a' <= (c) && (c) <= 'i') \
4075 || ('j' <= (c) && (c) <= 'r') \
4076 || ('s' <= (c) && (c) <= 'z'))
4077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4078 #endif
4080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4082 main ()
4084 int i;
4085 for (i = 0; i < 256; i++)
4086 if (XOR (islower (i), ISLOWER (i))
4087 || toupper (i) != TOUPPER (i))
4088 return 2;
4089 return 0;
4091 _ACEOF
4092 rm -f conftest$ac_exeext
4093 if { (ac_try="$ac_link"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_link") 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4113 else
4114 echo "$as_me: program exited with status $ac_status" >&5
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 ( exit $ac_status )
4119 ac_cv_header_stdc=no
4121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4127 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4128 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4129 if test $ac_cv_header_stdc = yes; then
4131 cat >>confdefs.h <<\_ACEOF
4132 #define STDC_HEADERS 1
4133 _ACEOF
4137 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4147 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4148 inttypes.h stdint.h unistd.h
4150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 $ac_includes_default
4164 #include <$ac_header>
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 eval "$as_ac_Header=yes"
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 eval "$as_ac_Header=no"
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_res=`eval echo '${'$as_ac_Header'}'`
4211 { echo "$as_me:$LINENO: result: $ac_res" >&5
4212 echo "${ECHO_T}$ac_res" >&6; }
4213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4214 cat >>confdefs.h <<_ACEOF
4215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4216 _ACEOF
4220 done
4223 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4224 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4225 if test "${ac_cv_c_bigendian+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 # See if sys/param.h defines the BYTE_ORDER macro.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <sys/types.h>
4236 #include <sys/param.h>
4239 main ()
4241 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4242 bogus endian macros
4243 #endif
4246 return 0;
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4251 case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267 esac
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 # It does; now see whether it defined to BIG_ENDIAN or not.
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 #include <sys/types.h>
4291 #include <sys/param.h>
4294 main ()
4296 #if BYTE_ORDER != BIG_ENDIAN
4297 not big endian
4298 #endif
4301 return 0;
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (ac_try="$ac_compile"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_compile") 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_c_bigendian=yes
4339 else
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_cv_c_bigendian=no
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 else
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4351 # It does not; compile a test program.
4352 if test "$cross_compiling" = yes; then
4353 # try to guess the endianness by grepping values into an object file
4354 ac_cv_c_bigendian=unknown
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h. */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4362 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4363 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4364 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4365 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4366 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4368 main ()
4370 _ascii (); _ebcdic ();
4372 return 0;
4374 _ACEOF
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390 { (case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393 esac
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_try") 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4410 ac_cv_c_bigendian=yes
4412 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4413 if test "$ac_cv_c_bigendian" = unknown; then
4414 ac_cv_c_bigendian=no
4415 else
4416 # finding both strings is unlikely to happen, but who knows?
4417 ac_cv_c_bigendian=unknown
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 else
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h. */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 $ac_includes_default
4437 main ()
4440 /* Are we little or big endian? From Harbison&Steele. */
4441 union
4443 long int l;
4444 char c[sizeof (long int)];
4445 } u;
4446 u.l = 1;
4447 return u.c[sizeof (long int) - 1] == 1;
4450 return 0;
4452 _ACEOF
4453 rm -f conftest$ac_exeext
4454 if { (ac_try="$ac_link"
4455 case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_link") 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4464 { (case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469 (eval "$ac_try") 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_c_bigendian=no
4474 else
4475 echo "$as_me: program exited with status $ac_status" >&5
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 ( exit $ac_status )
4480 ac_cv_c_bigendian=yes
4482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4491 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4492 case $ac_cv_c_bigendian in
4493 yes)
4494 ENDIAN=big
4497 ENDIAN=little
4500 { { echo "$as_me:$LINENO: error: unknown endianness
4501 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4502 echo "$as_me: error: unknown endianness
4503 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4504 { (exit 1); exit 1; }; } ;;
4505 esac
4508 if test "$cross_compiling" = yes; then
4509 LLVM_CROSS_COMPILING=1
4512 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4513 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4514 if test "${ac_cv_build_exeext+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4518 ac_cv_build_exeext=.exe
4519 else
4520 ac_build_prefix=${build_alias}-
4522 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4523 set dummy ${ac_build_prefix}gcc; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 if test -n "$BUILD_CC"; then
4530 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4543 done
4544 done
4545 IFS=$as_save_IFS
4549 BUILD_CC=$ac_cv_prog_BUILD_CC
4550 if test -n "$BUILD_CC"; then
4551 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4552 echo "${ECHO_T}$BUILD_CC" >&6; }
4553 else
4554 { echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6; }
4559 if test -z "$BUILD_CC"; then
4560 # Extract the first word of "gcc", so it can be a program name with args.
4561 set dummy gcc; ac_word=$2
4562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4564 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 if test -n "$BUILD_CC"; then
4568 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_BUILD_CC="gcc"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 BUILD_CC=$ac_cv_prog_BUILD_CC
4588 if test -n "$BUILD_CC"; then
4589 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4590 echo "${ECHO_T}$BUILD_CC" >&6; }
4591 else
4592 { echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6; }
4597 if test -z "$BUILD_CC"; then
4598 # Extract the first word of "cc", so it can be a program name with args.
4599 set dummy cc; ac_word=$2
4600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4602 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$BUILD_CC"; then
4606 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4607 else
4608 ac_prog_rejected=no
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4617 ac_prog_rejected=yes
4618 continue
4620 ac_cv_prog_BUILD_CC="cc"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4624 done
4625 done
4626 IFS=$as_save_IFS
4628 if test $ac_prog_rejected = yes; then
4629 # We found a bogon in the path, so make sure we never use it.
4630 set dummy $ac_cv_prog_BUILD_CC
4631 shift
4632 if test $# != 0; then
4633 # We chose a different compiler from the bogus one.
4634 # However, it has the same basename, so the bogon will be chosen
4635 # first if we set BUILD_CC to just the basename; use the full file name.
4636 shift
4637 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4642 BUILD_CC=$ac_cv_prog_BUILD_CC
4643 if test -n "$BUILD_CC"; then
4644 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4645 echo "${ECHO_T}$BUILD_CC" >&6; }
4646 else
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4654 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4655 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4656 { (exit 1); exit 1; }; }
4657 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4658 rm -f conftest*
4659 echo 'int main () { return 0; }' > conftest.$ac_ext
4660 ac_cv_build_exeext=
4661 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4662 (eval $ac_build_link) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; then
4666 for file in conftest.*; do
4667 case $file in
4668 *.c | *.o | *.obj | *.dSYM) ;;
4669 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4670 esac
4671 done
4672 else
4673 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4674 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4675 { (exit 1); exit 1; }; }
4677 rm -f conftest*
4678 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4682 BUILD_EXEEXT=""
4683 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4684 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4685 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4686 ac_build_exeext=$BUILD_EXEEXT
4688 ac_build_prefix=${build_alias}-
4689 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4690 set dummy ${ac_build_prefix}g++; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 if test -n "$BUILD_CXX"; then
4697 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4710 done
4711 done
4712 IFS=$as_save_IFS
4716 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4717 if test -n "$BUILD_CXX"; then
4718 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4719 echo "${ECHO_T}$BUILD_CXX" >&6; }
4720 else
4721 { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4726 if test -z "$BUILD_CXX"; then
4727 # Extract the first word of "g++", so it can be a program name with args.
4728 set dummy g++; ac_word=$2
4729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4731 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734 if test -n "$BUILD_CXX"; then
4735 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4736 else
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_BUILD_CXX="g++"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4748 done
4749 done
4750 IFS=$as_save_IFS
4754 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4755 if test -n "$BUILD_CXX"; then
4756 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4757 echo "${ECHO_T}$BUILD_CXX" >&6; }
4758 else
4759 { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; }
4764 if test -z "$BUILD_CXX"; then
4765 # Extract the first word of "c++", so it can be a program name with args.
4766 set dummy c++; ac_word=$2
4767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 if test -n "$BUILD_CXX"; then
4773 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4774 else
4775 ac_prog_rejected=no
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4784 ac_prog_rejected=yes
4785 continue
4787 ac_cv_prog_BUILD_CXX="c++"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4791 done
4792 done
4793 IFS=$as_save_IFS
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_BUILD_CXX
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set BUILD_CXX to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4809 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4810 if test -n "$BUILD_CXX"; then
4811 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4812 echo "${ECHO_T}$BUILD_CXX" >&6; }
4813 else
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4821 else
4822 LLVM_CROSS_COMPILING=0
4826 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4827 cvsbuild="yes"
4828 optimize="no"
4829 CVSBUILD=CVSBUILD=1
4831 else
4832 cvsbuild="no"
4833 optimize="yes"
4837 # Check whether --enable-optimized was given.
4838 if test "${enable_optimized+set}" = set; then
4839 enableval=$enable_optimized;
4840 else
4841 enableval=$optimize
4844 if test ${enableval} = "no" ; then
4845 ENABLE_OPTIMIZED=
4847 else
4848 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4852 # Check whether --enable-profiling was given.
4853 if test "${enable_profiling+set}" = set; then
4854 enableval=$enable_profiling;
4855 else
4856 enableval="no"
4859 if test ${enableval} = "no" ; then
4860 ENABLE_PROFILING=
4862 else
4863 ENABLE_PROFILING=ENABLE_PROFILING=1
4867 # Check whether --enable-assertions was given.
4868 if test "${enable_assertions+set}" = set; then
4869 enableval=$enable_assertions;
4870 else
4871 enableval="yes"
4874 if test ${enableval} = "yes" ; then
4875 DISABLE_ASSERTIONS=
4877 else
4878 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4882 # Check whether --enable-expensive-checks was given.
4883 if test "${enable_expensive_checks+set}" = set; then
4884 enableval=$enable_expensive_checks;
4885 else
4886 enableval="no"
4889 if test ${enableval} = "yes" ; then
4890 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4892 EXPENSIVE_CHECKS=yes
4894 else
4895 ENABLE_EXPENSIVE_CHECKS=
4897 EXPENSIVE_CHECKS=no
4901 # Check whether --enable-debug-runtime was given.
4902 if test "${enable_debug_runtime+set}" = set; then
4903 enableval=$enable_debug_runtime;
4904 else
4905 enableval=no
4908 if test ${enableval} = "no" ; then
4909 DEBUG_RUNTIME=
4911 else
4912 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4916 # Check whether --enable-debug-symbols was given.
4917 if test "${enable_debug_symbols+set}" = set; then
4918 enableval=$enable_debug_symbols;
4919 else
4920 enableval=no
4923 if test ${enableval} = "no" ; then
4924 DEBUG_SYMBOLS=
4926 else
4927 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4931 # Check whether --enable-jit was given.
4932 if test "${enable_jit+set}" = set; then
4933 enableval=$enable_jit;
4934 else
4935 enableval=default
4938 if test ${enableval} = "no"
4939 then
4940 JIT=
4942 else
4943 case "$llvm_cv_target_arch" in
4944 x86) TARGET_HAS_JIT=1
4946 Sparc) TARGET_HAS_JIT=0
4948 PowerPC) TARGET_HAS_JIT=1
4950 x86_64) TARGET_HAS_JIT=1
4952 Alpha) TARGET_HAS_JIT=1
4954 ARM) TARGET_HAS_JIT=1
4956 Mips) TARGET_HAS_JIT=0
4958 PIC16) TARGET_HAS_JIT=0
4960 XCore) TARGET_HAS_JIT=0
4962 MSP430) TARGET_HAS_JIT=0
4964 SystemZ) TARGET_HAS_JIT=0
4966 Blackfin) TARGET_HAS_JIT=0
4968 *) TARGET_HAS_JIT=0
4970 esac
4973 # Check whether --enable-doxygen was given.
4974 if test "${enable_doxygen+set}" = set; then
4975 enableval=$enable_doxygen;
4976 else
4977 enableval=default
4980 case "$enableval" in
4981 yes) ENABLE_DOXYGEN=1
4983 no) ENABLE_DOXYGEN=0
4985 default) ENABLE_DOXYGEN=0
4987 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4988 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4989 { (exit 1); exit 1; }; } ;;
4990 esac
4992 # Check whether --enable-threads was given.
4993 if test "${enable_threads+set}" = set; then
4994 enableval=$enable_threads;
4995 else
4996 enableval=default
4999 case "$enableval" in
5000 yes) ENABLE_THREADS=1
5002 no) ENABLE_THREADS=0
5004 default) ENABLE_THREADS=1
5006 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5007 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5008 { (exit 1); exit 1; }; } ;;
5009 esac
5011 cat >>confdefs.h <<_ACEOF
5012 #define ENABLE_THREADS $ENABLE_THREADS
5013 _ACEOF
5016 # Check whether --enable-pic was given.
5017 if test "${enable_pic+set}" = set; then
5018 enableval=$enable_pic;
5019 else
5020 enableval=default
5023 case "$enableval" in
5024 yes) ENABLE_PIC=1
5026 no) ENABLE_PIC=0
5028 default) ENABLE_PIC=1
5030 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5031 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5032 { (exit 1); exit 1; }; } ;;
5033 esac
5035 cat >>confdefs.h <<_ACEOF
5036 #define ENABLE_PIC $ENABLE_PIC
5037 _ACEOF
5040 TARGETS_TO_BUILD=""
5041 # Check whether --enable-targets was given.
5042 if test "${enable_targets+set}" = set; then
5043 enableval=$enable_targets;
5044 else
5045 enableval=all
5048 if test "$enableval" = host-only ; then
5049 enableval=host
5051 case "$enableval" in
5052 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5053 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5054 case "$a_target" in
5055 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5056 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5057 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5058 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5059 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5060 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5061 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5062 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5063 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5064 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5065 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5066 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5067 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5068 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5069 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5070 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5071 host) case "$llvm_cv_target_arch" in
5072 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5073 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5074 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5075 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5076 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5077 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5078 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5079 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5080 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5081 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5082 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5083 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5084 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5085 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5086 echo "$as_me: error: Can not set target to build" >&2;}
5087 { (exit 1); exit 1; }; } ;;
5088 esac ;;
5089 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5090 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5091 { (exit 1); exit 1; }; } ;;
5092 esac
5093 done
5095 esac
5096 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5099 # Determine whether we are building LLVM support for the native architecture.
5100 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5101 for a_target in $TARGETS_TO_BUILD; do
5102 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5103 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5105 cat >>confdefs.h <<_ACEOF
5106 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5107 _ACEOF
5110 done
5112 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5113 # target feature def files.
5114 LLVM_ENUM_TARGETS=""
5115 LLVM_ENUM_ASM_PRINTERS=""
5116 LLVM_ENUM_ASM_PARSERS=""
5117 LLVM_ENUM_DISASSEMBLERS=""
5118 for target_to_build in $TARGETS_TO_BUILD; do
5119 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5120 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5121 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5123 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5124 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5126 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5127 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5129 done
5135 # Check whether --enable-cbe-printf-a was given.
5136 if test "${enable_cbe_printf_a+set}" = set; then
5137 enableval=$enable_cbe_printf_a;
5138 else
5139 enableval=default
5142 case "$enableval" in
5143 yes) ENABLE_CBE_PRINTF_A=1
5145 no) ENABLE_CBE_PRINTF_A=0
5147 default) ENABLE_CBE_PRINTF_A=1
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5152 esac
5154 cat >>confdefs.h <<_ACEOF
5155 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5156 _ACEOF
5160 # Check whether --with-llvmgccdir was given.
5161 if test "${with_llvmgccdir+set}" = set; then
5162 withval=$with_llvmgccdir;
5163 else
5164 withval=default
5167 case "$withval" in
5168 default) WITH_LLVMGCCDIR=default ;;
5169 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5170 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5171 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5173 esac
5176 # Check whether --with-llvmgcc was given.
5177 if test "${with_llvmgcc+set}" = set; then
5178 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5179 WITH_LLVMGCCDIR=""
5184 # Check whether --with-llvmgxx was given.
5185 if test "${with_llvmgxx+set}" = set; then
5186 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5187 WITH_LLVMGCCDIR=""
5191 if test -n "$LLVMGCC"; then
5192 LLVMGCCCOMMAND="$LLVMGCC"
5195 if test -n "$LLVMGXX"; then
5196 LLVMGXXCOMMAND="$LLVMGXX"
5199 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5200 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5201 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5202 { (exit 1); exit 1; }; };
5205 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5206 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5207 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5208 { (exit 1); exit 1; }; };
5212 # Check whether --with-optimize-option was given.
5213 if test "${with_optimize_option+set}" = set; then
5214 withval=$with_optimize_option;
5215 else
5216 withval=default
5219 { echo "$as_me:$LINENO: checking optimization flags" >&5
5220 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5221 case "$withval" in
5222 default)
5223 case "$llvm_cv_os_type" in
5224 MingW) optimize_option=-O3 ;;
5225 *) optimize_option=-O2 ;;
5226 esac ;;
5227 *) optimize_option="$withval" ;;
5228 esac
5229 OPTIMIZE_OPTION=$optimize_option
5231 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5232 echo "${ECHO_T}$optimize_option" >&6; }
5235 # Check whether --with-extra-options was given.
5236 if test "${with_extra_options+set}" = set; then
5237 withval=$with_extra_options;
5238 else
5239 withval=default
5242 case "$withval" in
5243 default) EXTRA_OPTIONS= ;;
5244 *) EXTRA_OPTIONS=$withval ;;
5245 esac
5246 EXTRA_OPTIONS=$EXTRA_OPTIONS
5249 # Check whether --enable-bindings was given.
5250 if test "${enable_bindings+set}" = set; then
5251 enableval=$enable_bindings;
5252 else
5253 enableval=default
5256 BINDINGS_TO_BUILD=""
5257 case "$enableval" in
5258 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5259 all ) BINDINGS_TO_BUILD="ocaml" ;;
5260 none | no) BINDINGS_TO_BUILD="" ;;
5261 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5262 case "$a_binding" in
5263 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5264 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5265 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5267 esac
5268 done
5270 esac
5273 # Check whether --with-ocaml-libdir was given.
5274 if test "${with_ocaml_libdir+set}" = set; then
5275 withval=$with_ocaml_libdir;
5276 else
5277 withval=auto
5280 case "$withval" in
5281 auto) with_ocaml_libdir="$withval" ;;
5282 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5283 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5284 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5286 esac
5289 # Check whether --with-c-include-dirs was given.
5290 if test "${with_c_include_dirs+set}" = set; then
5291 withval=$with_c_include_dirs;
5292 else
5293 withval=""
5297 cat >>confdefs.h <<_ACEOF
5298 #define C_INCLUDE_DIRS "$withval"
5299 _ACEOF
5303 # Check whether --with-cxx-include-root was given.
5304 if test "${with_cxx_include_root+set}" = set; then
5305 withval=$with_cxx_include_root;
5306 else
5307 withval=""
5311 cat >>confdefs.h <<_ACEOF
5312 #define CXX_INCLUDE_ROOT "$withval"
5313 _ACEOF
5317 # Check whether --with-cxx-include-arch was given.
5318 if test "${with_cxx_include_arch+set}" = set; then
5319 withval=$with_cxx_include_arch;
5320 else
5321 withval=""
5325 cat >>confdefs.h <<_ACEOF
5326 #define CXX_INCLUDE_ARCH "$withval"
5327 _ACEOF
5331 # Check whether --with-cxx-include-32bit-dir was given.
5332 if test "${with_cxx_include_32bit_dir+set}" = set; then
5333 withval=$with_cxx_include_32bit_dir;
5334 else
5335 withval=""
5339 cat >>confdefs.h <<_ACEOF
5340 #define CXX_INCLUDE_32BIT_DIR "$withval"
5341 _ACEOF
5345 # Check whether --with-cxx-include-64bit-dir was given.
5346 if test "${with_cxx_include_64bit_dir+set}" = set; then
5347 withval=$with_cxx_include_64bit_dir;
5348 else
5349 withval=""
5353 cat >>confdefs.h <<_ACEOF
5354 #define CXX_INCLUDE_64BIT_DIR "$withval"
5355 _ACEOF
5359 # Check whether --with-binutils-include was given.
5360 if test "${with_binutils_include+set}" = set; then
5361 withval=$with_binutils_include;
5362 else
5363 withval=default
5366 case "$withval" in
5367 default) WITH_BINUTILS_INCDIR=default ;;
5368 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5369 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5370 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5371 { (exit 1); exit 1; }; } ;;
5372 esac
5373 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5374 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5376 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5377 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5378 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5379 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5380 { (exit 1); exit 1; }; };
5384 # Check whether --enable-libffi was given.
5385 if test "${enable_libffi+set}" = set; then
5386 enableval=$enable_libffi;
5387 else
5388 enableval=yes
5391 case "$enableval" in
5392 yes) llvm_cv_enable_libffi="yes" ;;
5393 no) llvm_cv_enable_libffi="no" ;;
5394 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5395 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5396 { (exit 1); exit 1; }; } ;;
5397 esac
5399 if test "$llvm_cv_os_type" = "Win32" ; then
5400 llvmc_dynamic="yes"
5401 else
5402 llvmc_dynamic="no"
5405 # Check whether --enable-llvmc-dynamic was given.
5406 if test "${enable_llvmc_dynamic+set}" = set; then
5407 enableval=$enable_llvmc_dynamic;
5408 else
5409 enableval=$llvmc_dynamic
5412 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5413 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5415 else
5416 ENABLE_LLVMC_DYNAMIC=
5420 # Check whether --enable-llvmc-dynamic-plugins was given.
5421 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5422 enableval=$enable_llvmc_dynamic_plugins;
5423 else
5424 enableval=yes
5427 if test ${enableval} = "yes" ; then
5428 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5430 else
5431 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5436 ac_ext=c
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5442 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5443 # On Suns, sometimes $CPP names a directory.
5444 if test -n "$CPP" && test -d "$CPP"; then
5445 CPP=
5447 if test -z "$CPP"; then
5448 if test "${ac_cv_prog_CPP+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 # Double quotes because CPP needs to be expanded
5452 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5454 ac_preproc_ok=false
5455 for ac_c_preproc_warn_flag in '' yes
5457 # Use a header file that comes with gcc, so configuring glibc
5458 # with a fresh cross-compiler works.
5459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460 # <limits.h> exists even on freestanding compilers.
5461 # On the NeXT, cc -E runs the code through the compiler's parser,
5462 # not just through cpp. "Syntax error" is here to catch this case.
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 #ifdef __STDC__
5470 # include <limits.h>
5471 #else
5472 # include <assert.h>
5473 #endif
5474 Syntax error
5475 _ACEOF
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492 else
5493 ac_cpp_err=
5495 else
5496 ac_cpp_err=yes
5498 if test -z "$ac_cpp_err"; then
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 # Broken: fails on valid input.
5505 continue
5508 rm -f conftest.err conftest.$ac_ext
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <ac_nonexistent.h>
5519 _ACEOF
5520 if { (ac_try="$ac_cpp conftest.$ac_ext"
5521 case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } >/dev/null; then
5533 if test -s conftest.err; then
5534 ac_cpp_err=$ac_c_preproc_warn_flag
5535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5536 else
5537 ac_cpp_err=
5539 else
5540 ac_cpp_err=yes
5542 if test -z "$ac_cpp_err"; then
5543 # Broken: success on invalid input.
5544 continue
5545 else
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 # Passes both tests.
5550 ac_preproc_ok=:
5551 break
5554 rm -f conftest.err conftest.$ac_ext
5556 done
5557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558 rm -f conftest.err conftest.$ac_ext
5559 if $ac_preproc_ok; then
5560 break
5563 done
5564 ac_cv_prog_CPP=$CPP
5567 CPP=$ac_cv_prog_CPP
5568 else
5569 ac_cv_prog_CPP=$CPP
5571 { echo "$as_me:$LINENO: result: $CPP" >&5
5572 echo "${ECHO_T}$CPP" >&6; }
5573 ac_preproc_ok=false
5574 for ac_c_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #ifdef __STDC__
5589 # include <limits.h>
5590 #else
5591 # include <assert.h>
5592 #endif
5593 Syntax error
5594 _ACEOF
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5596 case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null; then
5608 if test -s conftest.err; then
5609 ac_cpp_err=$ac_c_preproc_warn_flag
5610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5611 else
5612 ac_cpp_err=
5614 else
5615 ac_cpp_err=yes
5617 if test -z "$ac_cpp_err"; then
5619 else
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 # Broken: fails on valid input.
5624 continue
5627 rm -f conftest.err conftest.$ac_ext
5629 # OK, works on sane cases. Now check whether nonexistent headers
5630 # can be detected and how.
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <ac_nonexistent.h>
5638 _ACEOF
5639 if { (ac_try="$ac_cpp conftest.$ac_ext"
5640 case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643 esac
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } >/dev/null; then
5652 if test -s conftest.err; then
5653 ac_cpp_err=$ac_c_preproc_warn_flag
5654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5655 else
5656 ac_cpp_err=
5658 else
5659 ac_cpp_err=yes
5661 if test -z "$ac_cpp_err"; then
5662 # Broken: success on invalid input.
5663 continue
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 # Passes both tests.
5669 ac_preproc_ok=:
5670 break
5673 rm -f conftest.err conftest.$ac_ext
5675 done
5676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5677 rm -f conftest.err conftest.$ac_ext
5678 if $ac_preproc_ok; then
5680 else
5681 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5682 See \`config.log' for more details." >&5
5683 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5684 See \`config.log' for more details." >&2;}
5685 { (exit 1); exit 1; }; }
5688 ac_ext=c
5689 ac_cpp='$CPP $CPPFLAGS'
5690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5694 ac_ext=c
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 if test -n "$ac_tool_prefix"; then
5700 for ac_prog in gcc
5702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_CC+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 if test -n "$CC"; then
5710 ac_cv_prog_CC="$CC" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5723 done
5724 done
5725 IFS=$as_save_IFS
5729 CC=$ac_cv_prog_CC
5730 if test -n "$CC"; then
5731 { echo "$as_me:$LINENO: result: $CC" >&5
5732 echo "${ECHO_T}$CC" >&6; }
5733 else
5734 { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5739 test -n "$CC" && break
5740 done
5742 if test -z "$CC"; then
5743 ac_ct_CC=$CC
5744 for ac_prog in gcc
5746 # Extract the first word of "$ac_prog", so it can be a program name with args.
5747 set dummy $ac_prog; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 if test -n "$ac_ct_CC"; then
5754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_prog_ac_ct_CC="$ac_prog"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5767 done
5768 done
5769 IFS=$as_save_IFS
5773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5774 if test -n "$ac_ct_CC"; then
5775 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5776 echo "${ECHO_T}$ac_ct_CC" >&6; }
5777 else
5778 { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5783 test -n "$ac_ct_CC" && break
5784 done
5786 if test "x$ac_ct_CC" = x; then
5787 CC=""
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790 yes:)
5791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5792 whose name does not start with the host triplet. If you think this
5793 configuration is useful to you, please write to autoconf@gnu.org." >&5
5794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5795 whose name does not start with the host triplet. If you think this
5796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5797 ac_tool_warned=yes ;;
5798 esac
5799 CC=$ac_ct_CC
5804 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5805 See \`config.log' for more details." >&5
5806 echo "$as_me: error: no acceptable C compiler found in \$PATH
5807 See \`config.log' for more details." >&2;}
5808 { (exit 1); exit 1; }; }
5810 # Provide some information about the compiler.
5811 echo "$as_me:$LINENO: checking for C compiler version" >&5
5812 ac_compiler=`set X $ac_compile; echo $2`
5813 { (ac_try="$ac_compiler --version >&5"
5814 case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compiler --version >&5") 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }
5823 { (ac_try="$ac_compiler -v >&5"
5824 case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compiler -v >&5") 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }
5833 { (ac_try="$ac_compiler -V >&5"
5834 case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compiler -V >&5") 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }
5844 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5845 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5846 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5857 main ()
5859 #ifndef __GNUC__
5860 choke me
5861 #endif
5864 return 0;
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_compile") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5882 { (case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_try") 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_try") 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_compiler_gnu=yes
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 ac_compiler_gnu=no
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5913 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5915 GCC=`test $ac_compiler_gnu = yes && echo yes`
5916 ac_test_CFLAGS=${CFLAGS+set}
5917 ac_save_CFLAGS=$CFLAGS
5918 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5920 if test "${ac_cv_prog_cc_g+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 ac_save_c_werror_flag=$ac_c_werror_flag
5924 ac_c_werror_flag=yes
5925 ac_cv_prog_cc_g=no
5926 CFLAGS="-g"
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5935 main ()
5939 return 0;
5941 _ACEOF
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5944 case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compile") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_prog_cc_g=yes
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 CFLAGS=""
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5990 main ()
5994 return 0;
5996 _ACEOF
5997 rm -f conftest.$ac_objext
5998 if { (ac_try="$ac_compile"
5999 case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002 esac
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_compile") 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6012 { (case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_try") 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try='test -s conftest.$ac_objext'
6022 { (case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_try") 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_c_werror_flag=$ac_save_c_werror_flag
6037 CFLAGS="-g"
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6046 main ()
6050 return 0;
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (ac_try="$ac_compile"
6055 case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6068 { (case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_try") 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try='test -s conftest.$ac_objext'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_prog_cc_g=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 ac_c_werror_flag=$ac_save_c_werror_flag
6104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6106 if test "$ac_test_CFLAGS" = set; then
6107 CFLAGS=$ac_save_CFLAGS
6108 elif test $ac_cv_prog_cc_g = yes; then
6109 if test "$GCC" = yes; then
6110 CFLAGS="-g -O2"
6111 else
6112 CFLAGS="-g"
6114 else
6115 if test "$GCC" = yes; then
6116 CFLAGS="-O2"
6117 else
6118 CFLAGS=
6121 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6122 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6123 if test "${ac_cv_prog_cc_c89+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 ac_cv_prog_cc_c89=no
6127 ac_save_CC=$CC
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <stdarg.h>
6135 #include <stdio.h>
6136 #include <sys/types.h>
6137 #include <sys/stat.h>
6138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6139 struct buf { int x; };
6140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6141 static char *e (p, i)
6142 char **p;
6143 int i;
6145 return p[i];
6147 static char *f (char * (*g) (char **, int), char **p, ...)
6149 char *s;
6150 va_list v;
6151 va_start (v,p);
6152 s = g (p, va_arg (v,int));
6153 va_end (v);
6154 return s;
6157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6158 function prototypes and stuff, but not '\xHH' hex character constants.
6159 These don't provoke an error unfortunately, instead are silently treated
6160 as 'x'. The following induces an error, until -std is added to get
6161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6162 array size at least. It's necessary to write '\x00'==0 to get something
6163 that's true only with -std. */
6164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6166 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6167 inside strings and character constants. */
6168 #define FOO(x) 'x'
6169 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6171 int test (int i, double x);
6172 struct s1 {int (*f) (int a);};
6173 struct s2 {int (*f) (double a);};
6174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6175 int argc;
6176 char **argv;
6178 main ()
6180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6182 return 0;
6184 _ACEOF
6185 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6188 CC="$ac_save_CC $ac_arg"
6189 rm -f conftest.$ac_objext
6190 if { (ac_try="$ac_compile"
6191 case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6204 { (case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_try") 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217 esac
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_try") 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 ac_cv_prog_cc_c89=$ac_arg
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6231 rm -f core conftest.err conftest.$ac_objext
6232 test "x$ac_cv_prog_cc_c89" != "xno" && break
6233 done
6234 rm -f conftest.$ac_ext
6235 CC=$ac_save_CC
6238 # AC_CACHE_VAL
6239 case "x$ac_cv_prog_cc_c89" in
6241 { echo "$as_me:$LINENO: result: none needed" >&5
6242 echo "${ECHO_T}none needed" >&6; } ;;
6243 xno)
6244 { echo "$as_me:$LINENO: result: unsupported" >&5
6245 echo "${ECHO_T}unsupported" >&6; } ;;
6247 CC="$CC $ac_cv_prog_cc_c89"
6248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6249 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6250 esac
6253 ac_ext=c
6254 ac_cpp='$CPP $CPPFLAGS'
6255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6259 ac_ext=cpp
6260 ac_cpp='$CXXCPP $CPPFLAGS'
6261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6264 if test -z "$CXX"; then
6265 if test -n "$CCC"; then
6266 CXX=$CCC
6267 else
6268 if test -n "$ac_tool_prefix"; then
6269 for ac_prog in g++
6271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_prog_CXX+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 if test -n "$CXX"; then
6279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6292 done
6293 done
6294 IFS=$as_save_IFS
6298 CXX=$ac_cv_prog_CXX
6299 if test -n "$CXX"; then
6300 { echo "$as_me:$LINENO: result: $CXX" >&5
6301 echo "${ECHO_T}$CXX" >&6; }
6302 else
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 test -n "$CXX" && break
6309 done
6311 if test -z "$CXX"; then
6312 ac_ct_CXX=$CXX
6313 for ac_prog in g++
6315 # Extract the first word of "$ac_prog", so it can be a program name with args.
6316 set dummy $ac_prog; ac_word=$2
6317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 else
6322 if test -n "$ac_ct_CXX"; then
6323 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_prog_ac_ct_CXX="$ac_prog"
6333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6336 done
6337 done
6338 IFS=$as_save_IFS
6342 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6343 if test -n "$ac_ct_CXX"; then
6344 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6345 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6346 else
6347 { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6352 test -n "$ac_ct_CXX" && break
6353 done
6355 if test "x$ac_ct_CXX" = x; then
6356 CXX="g++"
6357 else
6358 case $cross_compiling:$ac_tool_warned in
6359 yes:)
6360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6361 whose name does not start with the host triplet. If you think this
6362 configuration is useful to you, please write to autoconf@gnu.org." >&5
6363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6364 whose name does not start with the host triplet. If you think this
6365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368 CXX=$ac_ct_CXX
6374 # Provide some information about the compiler.
6375 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6376 ac_compiler=`set X $ac_compile; echo $2`
6377 { (ac_try="$ac_compiler --version >&5"
6378 case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_compiler --version >&5") 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }
6387 { (ac_try="$ac_compiler -v >&5"
6388 case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compiler -v >&5") 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }
6397 { (ac_try="$ac_compiler -V >&5"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_compiler -V >&5") 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }
6408 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6409 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6410 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6421 main ()
6423 #ifndef __GNUC__
6424 choke me
6425 #endif
6428 return 0;
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (ac_try="$ac_compile"
6433 case "(($ac_try" in
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436 esac
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_compile") 2>conftest.er1
6439 ac_status=$?
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6446 { (case "(($ac_try" in
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6449 esac
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_try") 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459 esac
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_try") 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_compiler_gnu=yes
6466 else
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6470 ac_compiler_gnu=no
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6477 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6478 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6479 GXX=`test $ac_compiler_gnu = yes && echo yes`
6480 ac_test_CXXFLAGS=${CXXFLAGS+set}
6481 ac_save_CXXFLAGS=$CXXFLAGS
6482 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6483 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_cxx_g+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6488 ac_cxx_werror_flag=yes
6489 ac_cv_prog_cxx_g=no
6490 CXXFLAGS="-g"
6491 cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6499 main ()
6503 return 0;
6505 _ACEOF
6506 rm -f conftest.$ac_objext
6507 if { (ac_try="$ac_compile"
6508 case "(($ac_try" in
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6511 esac
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534 esac
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_try") 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_prog_cxx_g=yes
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 CXXFLAGS=""
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h. */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6554 main ()
6558 return 0;
6560 _ACEOF
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6576 { (case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579 esac
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_try") 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_try") 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6596 else
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6601 CXXFLAGS="-g"
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6610 main ()
6614 return 0;
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (ac_try="$ac_compile"
6619 case "(($ac_try" in
6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6622 esac
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6632 { (case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_try") 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest.$ac_objext'
6642 { (case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6645 esac
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_try") 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
6651 ac_cv_prog_cxx_g=yes
6652 else
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6668 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6669 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6670 if test "$ac_test_CXXFLAGS" = set; then
6671 CXXFLAGS=$ac_save_CXXFLAGS
6672 elif test $ac_cv_prog_cxx_g = yes; then
6673 if test "$GXX" = yes; then
6674 CXXFLAGS="-g -O2"
6675 else
6676 CXXFLAGS="-g"
6678 else
6679 if test "$GXX" = yes; then
6680 CXXFLAGS="-O2"
6681 else
6682 CXXFLAGS=
6685 ac_ext=c
6686 ac_cpp='$CPP $CPPFLAGS'
6687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6693 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6694 if test "${lt_cv_path_NM+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 if test -n "$NM"; then
6698 # Let the user override the test.
6699 lt_cv_path_NM="$NM"
6700 else
6701 lt_nm_to_check="${ac_tool_prefix}nm"
6702 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6703 lt_nm_to_check="$lt_nm_to_check nm"
6705 for lt_tmp_nm in $lt_nm_to_check; do
6706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6707 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6708 IFS="$lt_save_ifs"
6709 test -z "$ac_dir" && ac_dir=.
6710 tmp_nm="$ac_dir/$lt_tmp_nm"
6711 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6712 # Check to see if the nm accepts a BSD-compat flag.
6713 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6714 # nm: unknown option "B" ignored
6715 # Tru64's nm complains that /dev/null is an invalid object file
6716 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6717 */dev/null* | *'Invalid file or object type'*)
6718 lt_cv_path_NM="$tmp_nm -B"
6719 break
6722 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6723 */dev/null*)
6724 lt_cv_path_NM="$tmp_nm -p"
6725 break
6728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6729 continue # so that we can try to find one that supports BSD flags
6731 esac
6733 esac
6735 done
6736 IFS="$lt_save_ifs"
6737 done
6738 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6741 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6742 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6743 NM="$lt_cv_path_NM"
6747 { echo "$as_me:$LINENO: checking for GNU make" >&5
6748 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6749 if test "${llvm_cv_gnu_make_command+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752 llvm_cv_gnu_make_command=''
6753 for a in "$MAKE" make gmake gnumake ; do
6754 if test -z "$a" ; then continue ; fi ;
6755 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6756 then
6757 llvm_cv_gnu_make_command=$a ;
6758 break;
6760 done
6762 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6763 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6764 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6765 ifGNUmake='' ;
6766 else
6767 ifGNUmake='#' ;
6768 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6769 echo "${ECHO_T}\"Not found\"" >&6; };
6773 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6774 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6775 LN_S=$as_ln_s
6776 if test "$LN_S" = "ln -s"; then
6777 { echo "$as_me:$LINENO: result: yes" >&5
6778 echo "${ECHO_T}yes" >&6; }
6779 else
6780 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6781 echo "${ECHO_T}no, using $LN_S" >&6; }
6784 # Extract the first word of "cmp", so it can be a program name with args.
6785 set dummy cmp; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_CMP+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 case $CMP in
6792 [\\/]* | ?:[\\/]*)
6793 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6807 done
6808 done
6809 IFS=$as_save_IFS
6811 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6813 esac
6815 CMP=$ac_cv_path_CMP
6816 if test -n "$CMP"; then
6817 { echo "$as_me:$LINENO: result: $CMP" >&5
6818 echo "${ECHO_T}$CMP" >&6; }
6819 else
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6825 # Extract the first word of "cp", so it can be a program name with args.
6826 set dummy cp; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_path_CP+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832 case $CP in
6833 [\\/]* | ?:[\\/]*)
6834 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6848 done
6849 done
6850 IFS=$as_save_IFS
6852 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6854 esac
6856 CP=$ac_cv_path_CP
6857 if test -n "$CP"; then
6858 { echo "$as_me:$LINENO: result: $CP" >&5
6859 echo "${ECHO_T}$CP" >&6; }
6860 else
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6866 # Extract the first word of "date", so it can be a program name with args.
6867 set dummy date; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_DATE+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873 case $DATE in
6874 [\\/]* | ?:[\\/]*)
6875 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6889 done
6890 done
6891 IFS=$as_save_IFS
6893 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6895 esac
6897 DATE=$ac_cv_path_DATE
6898 if test -n "$DATE"; then
6899 { echo "$as_me:$LINENO: result: $DATE" >&5
6900 echo "${ECHO_T}$DATE" >&6; }
6901 else
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6907 # Extract the first word of "find", so it can be a program name with args.
6908 set dummy find; 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_path_FIND+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 case $FIND in
6915 [\\/]* | ?:[\\/]*)
6916 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6930 done
6931 done
6932 IFS=$as_save_IFS
6934 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6936 esac
6938 FIND=$ac_cv_path_FIND
6939 if test -n "$FIND"; then
6940 { echo "$as_me:$LINENO: result: $FIND" >&5
6941 echo "${ECHO_T}$FIND" >&6; }
6942 else
6943 { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6948 # Extract the first word of "grep", so it can be a program name with args.
6949 set dummy grep; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_path_GREP+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 case $GREP in
6956 [\\/]* | ?:[\\/]*)
6957 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6971 done
6972 done
6973 IFS=$as_save_IFS
6975 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6977 esac
6979 GREP=$ac_cv_path_GREP
6980 if test -n "$GREP"; then
6981 { echo "$as_me:$LINENO: result: $GREP" >&5
6982 echo "${ECHO_T}$GREP" >&6; }
6983 else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6989 # Extract the first word of "mkdir", so it can be a program name with args.
6990 set dummy mkdir; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_MKDIR+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996 case $MKDIR in
6997 [\\/]* | ?:[\\/]*)
6998 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7012 done
7013 done
7014 IFS=$as_save_IFS
7016 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7018 esac
7020 MKDIR=$ac_cv_path_MKDIR
7021 if test -n "$MKDIR"; then
7022 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7023 echo "${ECHO_T}$MKDIR" >&6; }
7024 else
7025 { echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6; }
7030 # Extract the first word of "mv", so it can be a program name with args.
7031 set dummy mv; ac_word=$2
7032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034 if test "${ac_cv_path_MV+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037 case $MV in
7038 [\\/]* | ?:[\\/]*)
7039 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7053 done
7054 done
7055 IFS=$as_save_IFS
7057 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7059 esac
7061 MV=$ac_cv_path_MV
7062 if test -n "$MV"; then
7063 { echo "$as_me:$LINENO: result: $MV" >&5
7064 echo "${ECHO_T}$MV" >&6; }
7065 else
7066 { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_prog_RANLIB+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 if test -n "$RANLIB"; then
7080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7093 done
7094 done
7095 IFS=$as_save_IFS
7099 RANLIB=$ac_cv_prog_RANLIB
7100 if test -n "$RANLIB"; then
7101 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7102 echo "${ECHO_T}$RANLIB" >&6; }
7103 else
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7110 if test -z "$ac_cv_prog_RANLIB"; then
7111 ac_ct_RANLIB=$RANLIB
7112 # Extract the first word of "ranlib", so it can be a program name with args.
7113 set dummy ranlib; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119 if test -n "$ac_ct_RANLIB"; then
7120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_ac_ct_RANLIB="ranlib"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7133 done
7134 done
7135 IFS=$as_save_IFS
7139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7140 if test -n "$ac_ct_RANLIB"; then
7141 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7142 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7143 else
7144 { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7148 if test "x$ac_ct_RANLIB" = x; then
7149 RANLIB=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152 yes:)
7153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7154 whose name does not start with the host triplet. If you think this
7155 configuration is useful to you, please write to autoconf@gnu.org." >&5
7156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7157 whose name does not start with the host triplet. If you think this
7158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 RANLIB=$ac_ct_RANLIB
7163 else
7164 RANLIB="$ac_cv_prog_RANLIB"
7167 # Extract the first word of "rm", so it can be a program name with args.
7168 set dummy rm; 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_RM+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 case $RM in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_RM="$RM" # 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_RM="$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_RM" && ac_cv_path_RM="rm"
7196 esac
7198 RM=$ac_cv_path_RM
7199 if test -n "$RM"; then
7200 { echo "$as_me:$LINENO: result: $RM" >&5
7201 echo "${ECHO_T}$RM" >&6; }
7202 else
7203 { echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6; }
7208 # Extract the first word of "sed", so it can be a program name with args.
7209 set dummy sed; ac_word=$2
7210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212 if test "${ac_cv_path_SED+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215 case $SED in
7216 [\\/]* | ?:[\\/]*)
7217 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7231 done
7232 done
7233 IFS=$as_save_IFS
7235 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7237 esac
7239 SED=$ac_cv_path_SED
7240 if test -n "$SED"; then
7241 { echo "$as_me:$LINENO: result: $SED" >&5
7242 echo "${ECHO_T}$SED" >&6; }
7243 else
7244 { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7249 # Extract the first word of "tar", so it can be a program name with args.
7250 set dummy tar; ac_word=$2
7251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7253 if test "${ac_cv_path_TAR+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 case $TAR in
7257 [\\/]* | ?:[\\/]*)
7258 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7272 done
7273 done
7274 IFS=$as_save_IFS
7276 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7278 esac
7280 TAR=$ac_cv_path_TAR
7281 if test -n "$TAR"; then
7282 { echo "$as_me:$LINENO: result: $TAR" >&5
7283 echo "${ECHO_T}$TAR" >&6; }
7284 else
7285 { echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6; }
7290 # Extract the first word of "pwd", so it can be a program name with args.
7291 set dummy pwd; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_path_BINPWD+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 case $BINPWD in
7298 [\\/]* | ?:[\\/]*)
7299 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7313 done
7314 done
7315 IFS=$as_save_IFS
7317 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7319 esac
7321 BINPWD=$ac_cv_path_BINPWD
7322 if test -n "$BINPWD"; then
7323 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7324 echo "${ECHO_T}$BINPWD" >&6; }
7325 else
7326 { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7332 # Extract the first word of "Graphviz", so it can be a program name with args.
7333 set dummy Graphviz; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339 case $GRAPHVIZ in
7340 [\\/]* | ?:[\\/]*)
7341 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7359 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7361 esac
7363 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7364 if test -n "$GRAPHVIZ"; then
7365 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7366 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7367 else
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7373 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7375 cat >>confdefs.h <<\_ACEOF
7376 #define HAVE_GRAPHVIZ 1
7377 _ACEOF
7379 if test "$llvm_cv_os_type" = "MingW" ; then
7380 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7383 cat >>confdefs.h <<_ACEOF
7384 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7385 _ACEOF
7388 # Extract the first word of "dot", so it can be a program name with args.
7389 set dummy dot; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_DOT+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 case $DOT in
7396 [\\/]* | ?:[\\/]*)
7397 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7411 done
7412 done
7413 IFS=$as_save_IFS
7415 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7417 esac
7419 DOT=$ac_cv_path_DOT
7420 if test -n "$DOT"; then
7421 { echo "$as_me:$LINENO: result: $DOT" >&5
7422 echo "${ECHO_T}$DOT" >&6; }
7423 else
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7429 if test "$DOT" != "echo dot" ; then
7431 cat >>confdefs.h <<\_ACEOF
7432 #define HAVE_DOT 1
7433 _ACEOF
7435 if test "$llvm_cv_os_type" = "MingW" ; then
7436 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7439 cat >>confdefs.h <<_ACEOF
7440 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7441 _ACEOF
7444 # Extract the first word of "fdp", so it can be a program name with args.
7445 set dummy fdp; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_path_FDP+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 case $FDP in
7452 [\\/]* | ?:[\\/]*)
7453 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7467 done
7468 done
7469 IFS=$as_save_IFS
7471 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7473 esac
7475 FDP=$ac_cv_path_FDP
7476 if test -n "$FDP"; then
7477 { echo "$as_me:$LINENO: result: $FDP" >&5
7478 echo "${ECHO_T}$FDP" >&6; }
7479 else
7480 { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7485 if test "$FDP" != "echo fdp" ; then
7487 cat >>confdefs.h <<\_ACEOF
7488 #define HAVE_FDP 1
7489 _ACEOF
7491 if test "$llvm_cv_os_type" = "MingW" ; then
7492 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7495 cat >>confdefs.h <<_ACEOF
7496 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7497 _ACEOF
7500 # Extract the first word of "neato", so it can be a program name with args.
7501 set dummy neato; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_path_NEATO+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507 case $NEATO in
7508 [\\/]* | ?:[\\/]*)
7509 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7523 done
7524 done
7525 IFS=$as_save_IFS
7527 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7529 esac
7531 NEATO=$ac_cv_path_NEATO
7532 if test -n "$NEATO"; then
7533 { echo "$as_me:$LINENO: result: $NEATO" >&5
7534 echo "${ECHO_T}$NEATO" >&6; }
7535 else
7536 { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7541 if test "$NEATO" != "echo neato" ; then
7543 cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_NEATO 1
7545 _ACEOF
7547 if test "$llvm_cv_os_type" = "MingW" ; then
7548 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7551 cat >>confdefs.h <<_ACEOF
7552 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7553 _ACEOF
7556 # Extract the first word of "twopi", so it can be a program name with args.
7557 set dummy twopi; ac_word=$2
7558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560 if test "${ac_cv_path_TWOPI+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 case $TWOPI in
7564 [\\/]* | ?:[\\/]*)
7565 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7583 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7585 esac
7587 TWOPI=$ac_cv_path_TWOPI
7588 if test -n "$TWOPI"; then
7589 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7590 echo "${ECHO_T}$TWOPI" >&6; }
7591 else
7592 { echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6; }
7597 if test "$TWOPI" != "echo twopi" ; then
7599 cat >>confdefs.h <<\_ACEOF
7600 #define HAVE_TWOPI 1
7601 _ACEOF
7603 if test "$llvm_cv_os_type" = "MingW" ; then
7604 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7607 cat >>confdefs.h <<_ACEOF
7608 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7609 _ACEOF
7612 # Extract the first word of "circo", so it can be a program name with args.
7613 set dummy circo; ac_word=$2
7614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7616 if test "${ac_cv_path_CIRCO+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 case $CIRCO in
7620 [\\/]* | ?:[\\/]*)
7621 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7635 done
7636 done
7637 IFS=$as_save_IFS
7639 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7641 esac
7643 CIRCO=$ac_cv_path_CIRCO
7644 if test -n "$CIRCO"; then
7645 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7646 echo "${ECHO_T}$CIRCO" >&6; }
7647 else
7648 { echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6; }
7653 if test "$CIRCO" != "echo circo" ; then
7655 cat >>confdefs.h <<\_ACEOF
7656 #define HAVE_CIRCO 1
7657 _ACEOF
7659 if test "$llvm_cv_os_type" = "MingW" ; then
7660 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7663 cat >>confdefs.h <<_ACEOF
7664 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7665 _ACEOF
7668 for ac_prog in gv gsview32
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_GV+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 case $GV in
7678 [\\/]* | ?:[\\/]*)
7679 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7693 done
7694 done
7695 IFS=$as_save_IFS
7698 esac
7700 GV=$ac_cv_path_GV
7701 if test -n "$GV"; then
7702 { echo "$as_me:$LINENO: result: $GV" >&5
7703 echo "${ECHO_T}$GV" >&6; }
7704 else
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7710 test -n "$GV" && break
7711 done
7712 test -n "$GV" || GV="echo gv"
7714 if test "$GV" != "echo gv" ; then
7716 cat >>confdefs.h <<\_ACEOF
7717 #define HAVE_GV 1
7718 _ACEOF
7720 if test "$llvm_cv_os_type" = "MingW" ; then
7721 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7724 cat >>confdefs.h <<_ACEOF
7725 #define LLVM_PATH_GV "$GV${EXEEXT}"
7726 _ACEOF
7729 # Extract the first word of "dotty", so it can be a program name with args.
7730 set dummy dotty; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_path_DOTTY+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 case $DOTTY in
7737 [\\/]* | ?:[\\/]*)
7738 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7748 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7752 done
7753 done
7754 IFS=$as_save_IFS
7756 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7758 esac
7760 DOTTY=$ac_cv_path_DOTTY
7761 if test -n "$DOTTY"; then
7762 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7763 echo "${ECHO_T}$DOTTY" >&6; }
7764 else
7765 { echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6; }
7770 if test "$DOTTY" != "echo dotty" ; then
7772 cat >>confdefs.h <<\_ACEOF
7773 #define HAVE_DOTTY 1
7774 _ACEOF
7776 if test "$llvm_cv_os_type" = "MingW" ; then
7777 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7780 cat >>confdefs.h <<_ACEOF
7781 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7782 _ACEOF
7787 # Extract the first word of "perl", so it can be a program name with args.
7788 set dummy perl; ac_word=$2
7789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791 if test "${ac_cv_path_PERL+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794 case $PERL in
7795 [\\/]* | ?:[\\/]*)
7796 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7806 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7810 done
7811 done
7812 IFS=$as_save_IFS
7814 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7816 esac
7818 PERL=$ac_cv_path_PERL
7819 if test -n "$PERL"; then
7820 { echo "$as_me:$LINENO: result: $PERL" >&5
7821 echo "${ECHO_T}$PERL" >&6; }
7822 else
7823 { echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6; }
7828 if test "$PERL" != "none"; then
7829 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7830 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7831 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7832 { echo "$as_me:$LINENO: result: yes" >&5
7833 echo "${ECHO_T}yes" >&6; }
7834 else
7835 PERL=none
7836 { echo "$as_me:$LINENO: result: not found" >&5
7837 echo "${ECHO_T}not found" >&6; }
7842 if test x"$PERL" = xnone; then
7843 HAVE_PERL=0
7845 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7846 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7847 { (exit 1); exit 1; }; }
7848 else
7849 HAVE_PERL=1
7853 # Find a good install program. We prefer a C program (faster),
7854 # so one script is as good as another. But avoid the broken or
7855 # incompatible versions:
7856 # SysV /etc/install, /usr/sbin/install
7857 # SunOS /usr/etc/install
7858 # IRIX /sbin/install
7859 # AIX /bin/install
7860 # AmigaOS /C/install, which installs bootblocks on floppy discs
7861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7864 # OS/2's system install, which has a completely different semantic
7865 # ./install, which can be erroneously created by make from ./install.sh.
7866 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7867 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7868 if test -z "$INSTALL"; then
7869 if test "${ac_cv_path_install+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 # Account for people who put trailing slashes in PATH elements.
7878 case $as_dir/ in
7879 ./ | .// | /cC/* | \
7880 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7881 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7882 /usr/ucb/* ) ;;
7884 # OSF1 and SCO ODT 3.0 have their own names for install.
7885 # Don't use installbsd from OSF since it installs stuff as root
7886 # by default.
7887 for ac_prog in ginstall scoinst install; do
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7890 if test $ac_prog = install &&
7891 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7892 # AIX install. It has an incompatible calling convention.
7894 elif test $ac_prog = install &&
7895 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7896 # program-specific install script used by HP pwplus--don't use.
7898 else
7899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7900 break 3
7903 done
7904 done
7906 esac
7907 done
7908 IFS=$as_save_IFS
7912 if test "${ac_cv_path_install+set}" = set; then
7913 INSTALL=$ac_cv_path_install
7914 else
7915 # As a last resort, use the slow shell script. Don't cache a
7916 # value for INSTALL within a source directory, because that will
7917 # break other packages using the cache if that directory is
7918 # removed, or if the value is a relative name.
7919 INSTALL=$ac_install_sh
7922 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7923 echo "${ECHO_T}$INSTALL" >&6; }
7925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7926 # It thinks the first close brace ends the variable substitution.
7927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7934 # Extract the first word of "bzip2", so it can be a program name with args.
7935 set dummy bzip2; ac_word=$2
7936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7938 if test "${ac_cv_path_BZIP2+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941 case $BZIP2 in
7942 [\\/]* | ?:[\\/]*)
7943 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7953 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7957 done
7958 done
7959 IFS=$as_save_IFS
7962 esac
7964 BZIP2=$ac_cv_path_BZIP2
7965 if test -n "$BZIP2"; then
7966 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7967 echo "${ECHO_T}$BZIP2" >&6; }
7968 else
7969 { echo "$as_me:$LINENO: result: no" >&5
7970 echo "${ECHO_T}no" >&6; }
7974 # Extract the first word of "doxygen", so it can be a program name with args.
7975 set dummy doxygen; ac_word=$2
7976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7978 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 case $DOXYGEN in
7982 [\\/]* | ?:[\\/]*)
7983 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7997 done
7998 done
7999 IFS=$as_save_IFS
8002 esac
8004 DOXYGEN=$ac_cv_path_DOXYGEN
8005 if test -n "$DOXYGEN"; then
8006 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8007 echo "${ECHO_T}$DOXYGEN" >&6; }
8008 else
8009 { echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6; }
8014 # Extract the first word of "groff", so it can be a program name with args.
8015 set dummy groff; ac_word=$2
8016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8018 if test "${ac_cv_path_GROFF+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021 case $GROFF in
8022 [\\/]* | ?:[\\/]*)
8023 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8037 done
8038 done
8039 IFS=$as_save_IFS
8042 esac
8044 GROFF=$ac_cv_path_GROFF
8045 if test -n "$GROFF"; then
8046 { echo "$as_me:$LINENO: result: $GROFF" >&5
8047 echo "${ECHO_T}$GROFF" >&6; }
8048 else
8049 { echo "$as_me:$LINENO: result: no" >&5
8050 echo "${ECHO_T}no" >&6; }
8054 # Extract the first word of "gzip", so it can be a program name with args.
8055 set dummy gzip; ac_word=$2
8056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058 if test "${ac_cv_path_GZIP+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061 case $GZIP in
8062 [\\/]* | ?:[\\/]*)
8063 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8077 done
8078 done
8079 IFS=$as_save_IFS
8082 esac
8084 GZIP=$ac_cv_path_GZIP
8085 if test -n "$GZIP"; then
8086 { echo "$as_me:$LINENO: result: $GZIP" >&5
8087 echo "${ECHO_T}$GZIP" >&6; }
8088 else
8089 { echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6; }
8094 # Extract the first word of "pod2html", so it can be a program name with args.
8095 set dummy pod2html; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_POD2HTML+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101 case $POD2HTML in
8102 [\\/]* | ?:[\\/]*)
8103 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8113 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8117 done
8118 done
8119 IFS=$as_save_IFS
8122 esac
8124 POD2HTML=$ac_cv_path_POD2HTML
8125 if test -n "$POD2HTML"; then
8126 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8127 echo "${ECHO_T}$POD2HTML" >&6; }
8128 else
8129 { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8134 # Extract the first word of "pod2man", so it can be a program name with args.
8135 set dummy pod2man; ac_word=$2
8136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138 if test "${ac_cv_path_POD2MAN+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141 case $POD2MAN in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8157 done
8158 done
8159 IFS=$as_save_IFS
8162 esac
8164 POD2MAN=$ac_cv_path_POD2MAN
8165 if test -n "$POD2MAN"; then
8166 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8167 echo "${ECHO_T}$POD2MAN" >&6; }
8168 else
8169 { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8174 # Extract the first word of "runtest", so it can be a program name with args.
8175 set dummy runtest; ac_word=$2
8176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178 if test "${ac_cv_path_RUNTEST+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 case $RUNTEST in
8182 [\\/]* | ?:[\\/]*)
8183 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8193 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 break 2
8197 done
8198 done
8199 IFS=$as_save_IFS
8202 esac
8204 RUNTEST=$ac_cv_path_RUNTEST
8205 if test -n "$RUNTEST"; then
8206 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8207 echo "${ECHO_T}$RUNTEST" >&6; }
8208 else
8209 { echo "$as_me:$LINENO: result: no" >&5
8210 echo "${ECHO_T}no" >&6; }
8215 no_itcl=true
8216 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8217 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8219 # Check whether --with-tclinclude was given.
8220 if test "${with_tclinclude+set}" = set; then
8221 withval=$with_tclinclude; with_tclinclude=${withval}
8222 else
8223 with_tclinclude=''
8226 if test "${ac_cv_path_tclsh+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8230 if test x"${with_tclinclude}" != x ; then
8231 if test -f ${with_tclinclude}/tclsh ; then
8232 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8233 elif test -f ${with_tclinclude}/src/tclsh ; then
8234 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8235 else
8236 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8237 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8238 { (exit 1); exit 1; }; }
8242 if test x"${ac_cv_path_tclsh}" = x ; then
8243 { echo "$as_me:$LINENO: result: none" >&5
8244 echo "${ECHO_T}none" >&6; }
8245 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
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy $ac_prog; ac_word=$2
8249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251 if test "${ac_cv_path_TCLSH+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 case $TCLSH in
8255 [\\/]* | ?:[\\/]*)
8256 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8266 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 break 2
8270 done
8271 done
8272 IFS=$as_save_IFS
8275 esac
8277 TCLSH=$ac_cv_path_TCLSH
8278 if test -n "$TCLSH"; then
8279 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8280 echo "${ECHO_T}$TCLSH" >&6; }
8281 else
8282 { echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6; }
8287 test -n "$TCLSH" && break
8288 done
8290 if test x"${TCLSH}" = x ; then
8291 ac_cv_path_tclsh='';
8292 else
8293 ac_cv_path_tclsh="${TCLSH}";
8295 else
8296 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8297 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8298 TCLSH="${ac_cv_path_tclsh}"
8304 # Extract the first word of "zip", so it can be a program name with args.
8305 set dummy zip; ac_word=$2
8306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308 if test "${ac_cv_path_ZIP+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311 case $ZIP in
8312 [\\/]* | ?:[\\/]*)
8313 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8327 done
8328 done
8329 IFS=$as_save_IFS
8332 esac
8334 ZIP=$ac_cv_path_ZIP
8335 if test -n "$ZIP"; then
8336 { echo "$as_me:$LINENO: result: $ZIP" >&5
8337 echo "${ECHO_T}$ZIP" >&6; }
8338 else
8339 { echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6; }
8344 for ac_prog in ocamlc
8346 # Extract the first word of "$ac_prog", so it can be a program name with args.
8347 set dummy $ac_prog; ac_word=$2
8348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8350 if test "${ac_cv_path_OCAMLC+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353 case $OCAMLC in
8354 [\\/]* | ?:[\\/]*)
8355 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8369 done
8370 done
8371 IFS=$as_save_IFS
8374 esac
8376 OCAMLC=$ac_cv_path_OCAMLC
8377 if test -n "$OCAMLC"; then
8378 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8379 echo "${ECHO_T}$OCAMLC" >&6; }
8380 else
8381 { echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6; }
8386 test -n "$OCAMLC" && break
8387 done
8389 for ac_prog in ocamlopt
8391 # Extract the first word of "$ac_prog", so it can be a program name with args.
8392 set dummy $ac_prog; ac_word=$2
8393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8395 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398 case $OCAMLOPT in
8399 [\\/]* | ?:[\\/]*)
8400 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8410 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 break 2
8414 done
8415 done
8416 IFS=$as_save_IFS
8419 esac
8421 OCAMLOPT=$ac_cv_path_OCAMLOPT
8422 if test -n "$OCAMLOPT"; then
8423 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8424 echo "${ECHO_T}$OCAMLOPT" >&6; }
8425 else
8426 { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8431 test -n "$OCAMLOPT" && break
8432 done
8434 for ac_prog in ocamldep
8436 # Extract the first word of "$ac_prog", so it can be a program name with args.
8437 set dummy $ac_prog; ac_word=$2
8438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8440 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443 case $OCAMLDEP in
8444 [\\/]* | ?:[\\/]*)
8445 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 for as_dir in $PATH
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8455 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 break 2
8459 done
8460 done
8461 IFS=$as_save_IFS
8464 esac
8466 OCAMLDEP=$ac_cv_path_OCAMLDEP
8467 if test -n "$OCAMLDEP"; then
8468 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8469 echo "${ECHO_T}$OCAMLDEP" >&6; }
8470 else
8471 { echo "$as_me:$LINENO: result: no" >&5
8472 echo "${ECHO_T}no" >&6; }
8476 test -n "$OCAMLDEP" && break
8477 done
8479 for ac_prog in ocamldoc
8481 # Extract the first word of "$ac_prog", so it can be a program name with args.
8482 set dummy $ac_prog; ac_word=$2
8483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8485 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 case $OCAMLDOC in
8489 [\\/]* | ?:[\\/]*)
8490 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8504 done
8505 done
8506 IFS=$as_save_IFS
8509 esac
8511 OCAMLDOC=$ac_cv_path_OCAMLDOC
8512 if test -n "$OCAMLDOC"; then
8513 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8514 echo "${ECHO_T}$OCAMLDOC" >&6; }
8515 else
8516 { echo "$as_me:$LINENO: result: no" >&5
8517 echo "${ECHO_T}no" >&6; }
8521 test -n "$OCAMLDOC" && break
8522 done
8524 for ac_prog in gas as
8526 # Extract the first word of "$ac_prog", so it can be a program name with args.
8527 set dummy $ac_prog; ac_word=$2
8528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530 if test "${ac_cv_path_GAS+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 case $GAS in
8534 [\\/]* | ?:[\\/]*)
8535 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8545 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 break 2
8549 done
8550 done
8551 IFS=$as_save_IFS
8554 esac
8556 GAS=$ac_cv_path_GAS
8557 if test -n "$GAS"; then
8558 { echo "$as_me:$LINENO: result: $GAS" >&5
8559 echo "${ECHO_T}$GAS" >&6; }
8560 else
8561 { echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6; }
8566 test -n "$GAS" && break
8567 done
8570 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8571 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8572 if test "${llvm_cv_link_use_r+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 ac_ext=c
8576 ac_cpp='$CPP $CPPFLAGS'
8577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8581 oldcflags="$CFLAGS"
8582 CFLAGS="$CFLAGS -Wl,-R."
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h. */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8591 main ()
8593 int main() { return 0; }
8595 return 0;
8597 _ACEOF
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (ac_try="$ac_link"
8600 case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_link") 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613 { (case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_try") 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest$ac_exeext'
8623 { (case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_try") 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 llvm_cv_link_use_r=yes
8633 else
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8637 llvm_cv_link_use_r=no
8640 rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 CFLAGS="$oldcflags"
8643 ac_ext=c
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8651 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8652 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8653 if test "$llvm_cv_link_use_r" = yes ; then
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_LINK_R 1
8657 _ACEOF
8662 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8663 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8664 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667 ac_ext=c
8668 ac_cpp='$CPP $CPPFLAGS'
8669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8673 oldcflags="$CFLAGS"
8674 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h. */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8683 main ()
8685 int main() { return 0; }
8687 return 0;
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (ac_try="$ac_link"
8692 case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_link") 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8705 { (case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_try") 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718 esac
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_try") 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 llvm_cv_link_use_export_dynamic=yes
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 llvm_cv_link_use_export_dynamic=no
8732 rm -f core conftest.err conftest.$ac_objext \
8733 conftest$ac_exeext conftest.$ac_ext
8734 CFLAGS="$oldcflags"
8735 ac_ext=c
8736 ac_cpp='$CPP $CPPFLAGS'
8737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8744 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8745 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_LINK_EXPORT_DYNAMIC 1
8749 _ACEOF
8756 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8757 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8758 if test "${ac_cv_c_const+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8769 main ()
8771 /* FIXME: Include the comments suggested by Paul. */
8772 #ifndef __cplusplus
8773 /* Ultrix mips cc rejects this. */
8774 typedef int charset[2];
8775 const charset x;
8776 /* SunOS 4.1.1 cc rejects this. */
8777 char const *const *ccp;
8778 char **p;
8779 /* NEC SVR4.0.2 mips cc rejects this. */
8780 struct point {int x, y;};
8781 static struct point const zero = {0,0};
8782 /* AIX XL C 1.02.0.0 rejects this.
8783 It does not let you subtract one const X* pointer from another in
8784 an arm of an if-expression whose if-part is not a constant
8785 expression */
8786 const char *g = "string";
8787 ccp = &g + (g ? g-g : 0);
8788 /* HPUX 7.0 cc rejects these. */
8789 ++ccp;
8790 p = (char**) ccp;
8791 ccp = (char const *const *) p;
8792 { /* SCO 3.2v4 cc rejects this. */
8793 char *t;
8794 char const *s = 0 ? (char *) 0 : (char const *) 0;
8796 *t++ = 0;
8797 if (s) return 0;
8799 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8800 int x[] = {25, 17};
8801 const int *foo = &x[0];
8802 ++foo;
8804 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8805 typedef const int *iptr;
8806 iptr p = 0;
8807 ++p;
8809 { /* AIX XL C 1.02.0.0 rejects this saying
8810 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8811 struct s { int j; const int *ap[3]; };
8812 struct s *b; b->j = 5;
8814 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8815 const int foo = 10;
8816 if (!foo) return 0;
8818 return !x[0] && !zero.x;
8819 #endif
8822 return 0;
8824 _ACEOF
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8827 case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; } &&
8849 { ac_try='test -s conftest.$ac_objext'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853 esac
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 ac_cv_c_const=yes
8860 else
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 ac_cv_c_const=no
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8870 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8871 if test $ac_cv_c_const = no; then
8873 cat >>confdefs.h <<\_ACEOF
8874 #define const
8875 _ACEOF
8884 ac_header_dirent=no
8885 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8886 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8887 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8888 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h. */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 #include <sys/types.h>
8899 #include <$ac_hdr>
8902 main ()
8904 if ((DIR *) 0)
8905 return 0;
8907 return 0;
8909 _ACEOF
8910 rm -f conftest.$ac_objext
8911 if { (ac_try="$ac_compile"
8912 case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8915 esac
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } &&
8924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8925 { (case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928 esac
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_try") 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest.$ac_objext'
8935 { (case "(($ac_try" in
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8938 esac
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_try") 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 eval "$as_ac_Header=yes"
8945 else
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 eval "$as_ac_Header=no"
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 ac_res=`eval echo '${'$as_ac_Header'}'`
8955 { echo "$as_me:$LINENO: result: $ac_res" >&5
8956 echo "${ECHO_T}$ac_res" >&6; }
8957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8958 cat >>confdefs.h <<_ACEOF
8959 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8960 _ACEOF
8962 ac_header_dirent=$ac_hdr; break
8965 done
8966 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8967 if test $ac_header_dirent = dirent.h; then
8968 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8969 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8970 if test "${ac_cv_search_opendir+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973 ac_func_search_save_LIBS=$LIBS
8974 cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h. */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8981 /* Override any GCC internal prototype to avoid an error.
8982 Use char because int might match the return type of a GCC
8983 builtin and then its argument prototype would still apply. */
8984 #ifdef __cplusplus
8985 extern "C"
8986 #endif
8987 char opendir ();
8989 main ()
8991 return opendir ();
8993 return 0;
8995 _ACEOF
8996 for ac_lib in '' dir; do
8997 if test -z "$ac_lib"; then
8998 ac_res="none required"
8999 else
9000 ac_res=-l$ac_lib
9001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9003 rm -f conftest.$ac_objext conftest$ac_exeext
9004 if { (ac_try="$ac_link"
9005 case "(($ac_try" in
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9008 esac
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_link") 2>conftest.er1
9011 ac_status=$?
9012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9018 { (case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_try") 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; } &&
9027 { ac_try='test -s conftest$ac_exeext'
9028 { (case "(($ac_try" in
9029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9031 esac
9032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033 (eval "$ac_try") 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 ac_cv_search_opendir=$ac_res
9038 else
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9045 rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext
9047 if test "${ac_cv_search_opendir+set}" = set; then
9048 break
9050 done
9051 if test "${ac_cv_search_opendir+set}" = set; then
9053 else
9054 ac_cv_search_opendir=no
9056 rm conftest.$ac_ext
9057 LIBS=$ac_func_search_save_LIBS
9059 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9060 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9061 ac_res=$ac_cv_search_opendir
9062 if test "$ac_res" != no; then
9063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9067 else
9068 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9069 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9070 if test "${ac_cv_search_opendir+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073 ac_func_search_save_LIBS=$LIBS
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h. */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 char opendir ();
9089 main ()
9091 return opendir ();
9093 return 0;
9095 _ACEOF
9096 for ac_lib in '' x; do
9097 if test -z "$ac_lib"; then
9098 ac_res="none required"
9099 else
9100 ac_res=-l$ac_lib
9101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (ac_try="$ac_link"
9105 case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108 esac
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_link") 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9118 { (case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121 esac
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_try") 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9131 esac
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_try") 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_search_opendir=$ac_res
9138 else
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9145 rm -f core conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext
9147 if test "${ac_cv_search_opendir+set}" = set; then
9148 break
9150 done
9151 if test "${ac_cv_search_opendir+set}" = set; then
9153 else
9154 ac_cv_search_opendir=no
9156 rm conftest.$ac_ext
9157 LIBS=$ac_func_search_save_LIBS
9159 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9160 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9161 ac_res=$ac_cv_search_opendir
9162 if test "$ac_res" != no; then
9163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9170 for ac_header in dlfcn.h
9172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 ac_res=`eval echo '${'$as_ac_Header'}'`
9180 { echo "$as_me:$LINENO: result: $ac_res" >&5
9181 echo "${ECHO_T}$ac_res" >&6; }
9182 else
9183 # Is the header compilable?
9184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9192 $ac_includes_default
9193 #include <$ac_header>
9194 _ACEOF
9195 rm -f conftest.$ac_objext
9196 if { (ac_try="$ac_compile"
9197 case "(($ac_try" in
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9200 esac
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_compile") 2>conftest.er1
9203 ac_status=$?
9204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_try") 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_header_compiler=yes
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_header_compiler=no
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9239 echo "${ECHO_T}$ac_header_compiler" >&6; }
9241 # Is the header present?
9242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9244 cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h. */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 #include <$ac_header>
9251 _ACEOF
9252 if { (ac_try="$ac_cpp conftest.$ac_ext"
9253 case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9259 ac_status=$?
9260 grep -v '^ *+' conftest.er1 >conftest.err
9261 rm -f conftest.er1
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } >/dev/null; then
9265 if test -s conftest.err; then
9266 ac_cpp_err=$ac_c_preproc_warn_flag
9267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9268 else
9269 ac_cpp_err=
9271 else
9272 ac_cpp_err=yes
9274 if test -z "$ac_cpp_err"; then
9275 ac_header_preproc=yes
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9280 ac_header_preproc=no
9283 rm -f conftest.err conftest.$ac_ext
9284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285 echo "${ECHO_T}$ac_header_preproc" >&6; }
9287 # So? What about this header?
9288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9289 yes:no: )
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9294 ac_header_preproc=yes
9296 no:yes:* )
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9309 ( cat <<\_ASBOX
9310 ## ----------------------------------- ##
9311 ## Report this to llvmbugs@cs.uiuc.edu ##
9312 ## ----------------------------------- ##
9313 _ASBOX
9314 ) | sed "s/^/$as_me: WARNING: /" >&2
9316 esac
9317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322 eval "$as_ac_Header=\$ac_header_preproc"
9324 ac_res=`eval echo '${'$as_ac_Header'}'`
9325 { echo "$as_me:$LINENO: result: $ac_res" >&5
9326 echo "${ECHO_T}$ac_res" >&6; }
9329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9330 cat >>confdefs.h <<_ACEOF
9331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9332 _ACEOF
9336 done
9338 # Check whether --enable-ltdl-install was given.
9339 if test "${enable_ltdl_install+set}" = set; then
9340 enableval=$enable_ltdl_install;
9346 if test x"${enable_ltdl_install-no}" != xno; then
9347 INSTALL_LTDL_TRUE=
9348 INSTALL_LTDL_FALSE='#'
9349 else
9350 INSTALL_LTDL_TRUE='#'
9351 INSTALL_LTDL_FALSE=
9356 if test x"${enable_ltdl_convenience-no}" != xno; then
9357 CONVENIENCE_LTDL_TRUE=
9358 CONVENIENCE_LTDL_FALSE='#'
9359 else
9360 CONVENIENCE_LTDL_TRUE='#'
9361 CONVENIENCE_LTDL_FALSE=
9365 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9366 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9367 library_names_spec=
9368 libname_spec='lib$name'
9369 soname_spec=
9370 shrext_cmds=".so"
9371 postinstall_cmds=
9372 postuninstall_cmds=
9373 finish_cmds=
9374 finish_eval=
9375 shlibpath_var=
9376 shlibpath_overrides_runpath=unknown
9377 version_type=none
9378 dynamic_linker="$host_os ld.so"
9379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9380 if test "$GCC" = yes; then
9381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9382 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9383 # if the path contains ";" then we assume it to be the separator
9384 # otherwise default to the standard path separator (i.e. ":") - it is
9385 # assumed that no part of a normal pathname contains ";" but that should
9386 # okay in the real world where ";" in dirpaths is itself problematic.
9387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9388 else
9389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9391 else
9392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9394 need_lib_prefix=unknown
9395 hardcode_into_libs=no
9397 # when you set need_version to no, make sure it does not cause -set_version
9398 # flags to be left without arguments
9399 need_version=unknown
9401 case $host_os in
9402 aix3*)
9403 version_type=linux
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9405 shlibpath_var=LIBPATH
9407 # AIX 3 has no versioning support, so we append a major version to the name.
9408 soname_spec='${libname}${release}${shared_ext}$major'
9411 aix4* | aix5*)
9412 version_type=linux
9413 need_lib_prefix=no
9414 need_version=no
9415 hardcode_into_libs=yes
9416 if test "$host_cpu" = ia64; then
9417 # AIX 5 supports IA64
9418 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 else
9421 # With GCC up to 2.95.x, collect2 would create an import file
9422 # for dependence libraries. The import file would start with
9423 # the line `#! .'. This would cause the generated library to
9424 # depend on `.', always an invalid library. This was fixed in
9425 # development snapshots of GCC prior to 3.0.
9426 case $host_os in
9427 aix4 | aix4.[01] | aix4.[01].*)
9428 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9429 echo ' yes '
9430 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9432 else
9433 can_build_shared=no
9436 esac
9437 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9438 # soname into executable. Probably we can add versioning support to
9439 # collect2, so additional links can be useful in future.
9440 if test "$aix_use_runtimelinking" = yes; then
9441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9442 # instead of lib<name>.a to let people know that these are not
9443 # typical AIX shared libraries.
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445 else
9446 # We preserve .a as extension for shared libraries through AIX4.2
9447 # and later when we are not doing run time linking.
9448 library_names_spec='${libname}${release}.a $libname.a'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9451 shlibpath_var=LIBPATH
9455 amigaos*)
9456 library_names_spec='$libname.ixlibrary $libname.a'
9457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9458 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'
9461 beos*)
9462 library_names_spec='${libname}${shared_ext}'
9463 dynamic_linker="$host_os ld.so"
9464 shlibpath_var=LIBRARY_PATH
9467 bsdi[45]*)
9468 version_type=linux
9469 need_version=no
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9476 # the default ld.so.conf also contains /usr/contrib/lib and
9477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9478 # libtool to hard-code these into programs
9481 cygwin* | mingw* | pw32*)
9482 version_type=windows
9483 shrext_cmds=".dll"
9484 need_version=no
9485 need_lib_prefix=no
9487 case $GCC,$host_os in
9488 yes,cygwin* | yes,mingw* | yes,pw32*)
9489 library_names_spec='$libname.dll.a'
9490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9491 postinstall_cmds='base_file=`basename \${file}`~
9492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9493 dldir=$destdir/`dirname \$dlpath`~
9494 test -d \$dldir || mkdir -p \$dldir~
9495 $install_prog $dir/$dlname \$dldir/$dlname~
9496 chmod a+x \$dldir/$dlname'
9497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9498 dlpath=$dir/\$dldll~
9499 $rm \$dlpath'
9500 shlibpath_overrides_runpath=yes
9502 case $host_os in
9503 cygwin*)
9504 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9505 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9506 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9508 mingw*)
9509 # MinGW DLLs use traditional 'lib' prefix
9510 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9511 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9512 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9513 # It is most probably a Windows format PATH printed by
9514 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9515 # path with ; separators, and with drive letters. We can handle the
9516 # drive letters (cygwin fileutils understands them), so leave them,
9517 # especially as we might pass files found there to a mingw objdump,
9518 # which wouldn't understand a cygwinified path. Ahh.
9519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9520 else
9521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9524 pw32*)
9525 # pw32 DLLs use 'pw' prefix rather than 'lib'
9526 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9528 esac
9532 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9534 esac
9535 dynamic_linker='Win32 ld.exe'
9536 # FIXME: first we should search . and the directory the executable is in
9537 shlibpath_var=PATH
9540 darwin* | rhapsody*)
9541 dynamic_linker="$host_os dyld"
9542 version_type=darwin
9543 need_lib_prefix=no
9544 need_version=no
9545 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9546 soname_spec='${libname}${release}${major}$shared_ext'
9547 shlibpath_overrides_runpath=yes
9548 shlibpath_var=DYLD_LIBRARY_PATH
9549 shrext_cmds='.dylib'
9550 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9551 if test "$GCC" = yes; then
9552 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"`
9553 else
9554 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9559 dgux*)
9560 version_type=linux
9561 need_lib_prefix=no
9562 need_version=no
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 shlibpath_var=LD_LIBRARY_PATH
9568 freebsd1*)
9569 dynamic_linker=no
9572 kfreebsd*-gnu)
9573 version_type=linux
9574 need_lib_prefix=no
9575 need_version=no
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 shlibpath_overrides_runpath=no
9580 hardcode_into_libs=yes
9581 dynamic_linker='GNU ld.so'
9584 freebsd* | dragonfly*)
9585 # DragonFly does not have aout. When/if they implement a new
9586 # versioning mechanism, adjust this.
9587 if test -x /usr/bin/objformat; then
9588 objformat=`/usr/bin/objformat`
9589 else
9590 case $host_os in
9591 freebsd[123]*) objformat=aout ;;
9592 *) objformat=elf ;;
9593 esac
9595 version_type=freebsd-$objformat
9596 case $version_type in
9597 freebsd-elf*)
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9599 need_version=no
9600 need_lib_prefix=no
9602 freebsd-*)
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9604 need_version=yes
9606 esac
9607 shlibpath_var=LD_LIBRARY_PATH
9608 case $host_os in
9609 freebsd2*)
9610 shlibpath_overrides_runpath=yes
9612 freebsd3.[01]* | freebsdelf3.[01]*)
9613 shlibpath_overrides_runpath=yes
9614 hardcode_into_libs=yes
9616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9618 shlibpath_overrides_runpath=no
9619 hardcode_into_libs=yes
9621 freebsd*) # from 4.6 on
9622 shlibpath_overrides_runpath=yes
9623 hardcode_into_libs=yes
9625 esac
9628 gnu*)
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 hardcode_into_libs=yes
9638 hpux9* | hpux10* | hpux11*)
9639 # Give a soname corresponding to the major version so that dld.sl refuses to
9640 # link against other versions.
9641 version_type=sunos
9642 need_lib_prefix=no
9643 need_version=no
9644 case $host_cpu in
9645 ia64*)
9646 shrext_cmds='.so'
9647 hardcode_into_libs=yes
9648 dynamic_linker="$host_os dld.so"
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 if test "X$HPUX_IA64_MODE" = X32; then
9654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9655 else
9656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9660 hppa*64*)
9661 shrext_cmds='.sl'
9662 hardcode_into_libs=yes
9663 dynamic_linker="$host_os dld.sl"
9664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9672 shrext_cmds='.sl'
9673 dynamic_linker="$host_os dld.sl"
9674 shlibpath_var=SHLIB_PATH
9675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9679 esac
9680 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9681 postinstall_cmds='chmod 555 $lib'
9684 interix3*)
9685 version_type=linux
9686 need_lib_prefix=no
9687 need_version=no
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 shlibpath_overrides_runpath=no
9693 hardcode_into_libs=yes
9696 irix5* | irix6* | nonstopux*)
9697 case $host_os in
9698 nonstopux*) version_type=nonstopux ;;
9700 if test "$lt_cv_prog_gnu_ld" = yes; then
9701 version_type=linux
9702 else
9703 version_type=irix
9704 fi ;;
9705 esac
9706 need_lib_prefix=no
9707 need_version=no
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9710 case $host_os in
9711 irix5* | nonstopux*)
9712 libsuff= shlibsuff=
9715 case $LD in # libtool.m4 will add one of these switches to LD
9716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9717 libsuff= shlibsuff= libmagic=32-bit;;
9718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9719 libsuff=32 shlibsuff=N32 libmagic=N32;;
9720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9721 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9722 *) libsuff= shlibsuff= libmagic=never-match;;
9723 esac
9725 esac
9726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9727 shlibpath_overrides_runpath=no
9728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9730 hardcode_into_libs=yes
9733 # No shared lib support for Linux oldld, aout, or coff.
9734 linux*oldld* | linux*aout* | linux*coff*)
9735 dynamic_linker=no
9738 # This must be Linux ELF.
9739 linux*)
9740 version_type=linux
9741 need_lib_prefix=no
9742 need_version=no
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=no
9748 # This implies no fast_install, which is unacceptable.
9749 # Some rework will be needed to allow for fast_install
9750 # before this can be enabled.
9751 hardcode_into_libs=yes
9753 # Append ld.so.conf contents to the search path
9754 if test -f /etc/ld.so.conf; then
9755 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' ' '`
9756 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9759 # We used to test for /lib/ld.so.1 and disable shared libraries on
9760 # powerpc, because MkLinux only supported shared libraries with the
9761 # GNU dynamic linker. Since this was broken with cross compilers,
9762 # most powerpc-linux boxes support dynamic linking these days and
9763 # people can always --disable-shared, the test was removed, and we
9764 # assume the GNU/Linux dynamic linker is in use.
9765 dynamic_linker='GNU/Linux ld.so'
9768 knetbsd*-gnu)
9769 version_type=linux
9770 need_lib_prefix=no
9771 need_version=no
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 shlibpath_overrides_runpath=no
9776 hardcode_into_libs=yes
9777 dynamic_linker='GNU ld.so'
9780 netbsd*)
9781 version_type=sunos
9782 need_lib_prefix=no
9783 need_version=no
9784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9787 dynamic_linker='NetBSD (a.out) ld.so'
9788 else
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 dynamic_linker='NetBSD ld.elf_so'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 shlibpath_overrides_runpath=yes
9795 hardcode_into_libs=yes
9798 newsos6)
9799 version_type=linux
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 shlibpath_overrides_runpath=yes
9805 nto-qnx*)
9806 version_type=linux
9807 need_lib_prefix=no
9808 need_version=no
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810 soname_spec='${libname}${release}${shared_ext}$major'
9811 shlibpath_var=LD_LIBRARY_PATH
9812 shlibpath_overrides_runpath=yes
9815 openbsd*)
9816 version_type=sunos
9817 sys_lib_dlsearch_path_spec="/usr/lib"
9818 need_lib_prefix=no
9819 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9820 case $host_os in
9821 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9822 *) need_version=no ;;
9823 esac
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9826 shlibpath_var=LD_LIBRARY_PATH
9827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9828 case $host_os in
9829 openbsd2.[89] | openbsd2.[89].*)
9830 shlibpath_overrides_runpath=no
9833 shlibpath_overrides_runpath=yes
9835 esac
9836 else
9837 shlibpath_overrides_runpath=yes
9841 os2*)
9842 libname_spec='$name'
9843 shrext_cmds=".dll"
9844 need_lib_prefix=no
9845 library_names_spec='$libname${shared_ext} $libname.a'
9846 dynamic_linker='OS/2 ld.exe'
9847 shlibpath_var=LIBPATH
9850 osf3* | osf4* | osf5*)
9851 version_type=osf
9852 need_lib_prefix=no
9853 need_version=no
9854 soname_spec='${libname}${release}${shared_ext}$major'
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9858 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9861 solaris*)
9862 version_type=linux
9863 need_lib_prefix=no
9864 need_version=no
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 shlibpath_overrides_runpath=yes
9869 hardcode_into_libs=yes
9870 # ldd complains unless libraries are executable
9871 postinstall_cmds='chmod +x $lib'
9874 sunos4*)
9875 version_type=sunos
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 shlibpath_overrides_runpath=yes
9880 if test "$with_gnu_ld" = yes; then
9881 need_lib_prefix=no
9883 need_version=yes
9886 sysv4 | sysv4.3*)
9887 version_type=linux
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 case $host_vendor in
9892 sni)
9893 shlibpath_overrides_runpath=no
9894 need_lib_prefix=no
9895 export_dynamic_flag_spec='${wl}-Blargedynsym'
9896 runpath_var=LD_RUN_PATH
9898 siemens)
9899 need_lib_prefix=no
9901 motorola)
9902 need_lib_prefix=no
9903 need_version=no
9904 shlibpath_overrides_runpath=no
9905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9907 esac
9910 sysv4*MP*)
9911 if test -d /usr/nec ;then
9912 version_type=linux
9913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9914 soname_spec='$libname${shared_ext}.$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9920 version_type=freebsd-elf
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 hardcode_into_libs=yes
9927 if test "$with_gnu_ld" = yes; then
9928 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9929 shlibpath_overrides_runpath=no
9930 else
9931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9932 shlibpath_overrides_runpath=yes
9933 case $host_os in
9934 sco3.2v5*)
9935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9937 esac
9939 sys_lib_dlsearch_path_spec='/usr/lib'
9942 uts4*)
9943 version_type=linux
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9950 dynamic_linker=no
9952 esac
9953 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9954 echo "${ECHO_T}$dynamic_linker" >&6; }
9955 test "$dynamic_linker" = no && can_build_shared=no
9957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9958 if test "$GCC" = yes; then
9959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9963 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9964 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9965 if test "${libltdl_cv_shlibext+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9969 module=yes
9970 eval libltdl_cv_shlibext=$shrext_cmds
9973 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9974 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9975 if test -n "$libltdl_cv_shlibext"; then
9977 cat >>confdefs.h <<_ACEOF
9978 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9979 _ACEOF
9984 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9985 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9986 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989 libltdl_cv_shlibpath_var="$shlibpath_var"
9991 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9992 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9993 if test -n "$libltdl_cv_shlibpath_var"; then
9995 cat >>confdefs.h <<_ACEOF
9996 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9997 _ACEOF
10002 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10003 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10004 if test "${libltdl_cv_sys_search_path+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10009 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10010 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10011 if test -n "$libltdl_cv_sys_search_path"; then
10012 sys_search_path=
10013 for dir in $libltdl_cv_sys_search_path; do
10014 if test -z "$sys_search_path"; then
10015 sys_search_path="$dir"
10016 else
10017 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10019 done
10021 cat >>confdefs.h <<_ACEOF
10022 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10023 _ACEOF
10027 { echo "$as_me:$LINENO: checking for objdir" >&5
10028 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10029 if test "${libltdl_cv_objdir+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032 libltdl_cv_objdir="$objdir"
10033 if test -n "$objdir"; then
10035 else
10036 rm -f .libs 2>/dev/null
10037 mkdir .libs 2>/dev/null
10038 if test -d .libs; then
10039 libltdl_cv_objdir=.libs
10040 else
10041 # MS-DOS does not allow filenames that begin with a dot.
10042 libltdl_cv_objdir=_libs
10044 rmdir .libs 2>/dev/null
10048 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10049 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10051 cat >>confdefs.h <<_ACEOF
10052 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10053 _ACEOF
10060 # Check for command to grab the raw symbol name followed by C symbol from nm.
10061 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10062 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10063 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10067 # These are sane defaults that work on at least a few old systems.
10068 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10070 # Character class describing NM global symbol codes.
10071 symcode='[BCDEGRST]'
10073 # Regexp to match symbols that can be accessed directly from C.
10074 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10076 # Transform an extracted symbol line into a proper C declaration
10077 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10079 # Transform an extracted symbol line into symbol name and symbol address
10080 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'"
10082 # Define system-specific variables.
10083 case $host_os in
10084 aix*)
10085 symcode='[BCDT]'
10087 cygwin* | mingw* | pw32*)
10088 symcode='[ABCDGISTW]'
10090 hpux*) # Its linker distinguishes data from code symbols
10091 if test "$host_cpu" = ia64; then
10092 symcode='[ABCDEGRST]'
10094 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10095 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'"
10097 linux*)
10098 if test "$host_cpu" = ia64; then
10099 symcode='[ABCDGIRSTW]'
10100 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10101 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'"
10104 irix* | nonstopux*)
10105 symcode='[BCDEGRST]'
10107 osf*)
10108 symcode='[BCDEGQRST]'
10110 solaris*)
10111 symcode='[BDRT]'
10113 sco3.2v5*)
10114 symcode='[DT]'
10116 sysv4.2uw2*)
10117 symcode='[DT]'
10119 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10120 symcode='[ABDT]'
10122 sysv4)
10123 symcode='[DFNSTU]'
10125 esac
10127 # Handle CRLF in mingw tool chain
10128 opt_cr=
10129 case $build_os in
10130 mingw*)
10131 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10133 esac
10135 # If we're using GNU nm, then use its standard symbol codes.
10136 case `$NM -V 2>&1` in
10137 *GNU* | *'with BFD'*)
10138 symcode='[ABCDGIRSTW]' ;;
10139 esac
10141 # Try without a prefix undercore, then with it.
10142 for ac_symprfx in "" "_"; do
10144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10145 symxfrm="\\1 $ac_symprfx\\2 \\2"
10147 # Write the raw and C identifiers.
10148 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10150 # Check to see that the pipe works correctly.
10151 pipe_works=no
10153 rm -f conftest*
10154 cat > conftest.$ac_ext <<EOF
10155 #ifdef __cplusplus
10156 extern "C" {
10157 #endif
10158 char nm_test_var;
10159 void nm_test_func(){}
10160 #ifdef __cplusplus
10162 #endif
10163 int main(){nm_test_var='a';nm_test_func();return(0);}
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; then
10171 # Now try to grab the symbols.
10172 nlist=conftest.nm
10173 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10174 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && test -s "$nlist"; then
10178 # Try sorting and uniquifying the output.
10179 if sort "$nlist" | uniq > "$nlist"T; then
10180 mv -f "$nlist"T "$nlist"
10181 else
10182 rm -f "$nlist"T
10185 # Make sure that we snagged all the symbols we need.
10186 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10187 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10188 cat <<EOF > conftest.$ac_ext
10189 #ifdef __cplusplus
10190 extern "C" {
10191 #endif
10194 # Now generate the symbol file.
10195 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10197 cat <<EOF >> conftest.$ac_ext
10198 #if defined (__STDC__) && __STDC__
10199 # define lt_ptr_t void *
10200 #else
10201 # define lt_ptr_t char *
10202 # define const
10203 #endif
10205 /* The mapping between symbol names and symbols. */
10206 const struct {
10207 const char *name;
10208 lt_ptr_t address;
10210 lt_preloaded_symbols[] =
10213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10214 cat <<\EOF >> conftest.$ac_ext
10215 {0, (lt_ptr_t) 0}
10218 #ifdef __cplusplus
10220 #endif
10222 # Now try linking the two files.
10223 mv conftest.$ac_objext conftstm.$ac_objext
10224 lt_save_LIBS="$LIBS"
10225 lt_save_CFLAGS="$CFLAGS"
10226 LIBS="conftstm.$ac_objext"
10227 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10233 pipe_works=yes
10235 LIBS="$lt_save_LIBS"
10236 CFLAGS="$lt_save_CFLAGS"
10237 else
10238 echo "cannot find nm_test_func in $nlist" >&5
10240 else
10241 echo "cannot find nm_test_var in $nlist" >&5
10243 else
10244 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10246 else
10247 echo "$progname: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10250 rm -f conftest* conftst*
10252 # Do not use the global_symbol_pipe unless it works.
10253 if test "$pipe_works" = yes; then
10254 break
10255 else
10256 lt_cv_sys_global_symbol_pipe=
10258 done
10262 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10263 lt_cv_sys_global_symbol_to_cdecl=
10265 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10266 { echo "$as_me:$LINENO: result: failed" >&5
10267 echo "${ECHO_T}failed" >&6; }
10268 else
10269 { echo "$as_me:$LINENO: result: ok" >&5
10270 echo "${ECHO_T}ok" >&6; }
10274 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10275 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10276 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10280 libltdl_cv_preloaded_symbols=yes
10281 else
10282 libltdl_cv_preloaded_symbols=no
10286 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10287 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10288 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10290 cat >>confdefs.h <<\_ACEOF
10291 #define HAVE_PRELOADED_SYMBOLS 1
10292 _ACEOF
10296 LIBADD_DL=
10298 ac_ext=c
10299 ac_cpp='$CPP $CPPFLAGS'
10300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10305 { echo "$as_me:$LINENO: checking for shl_load" >&5
10306 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10307 if test "${ac_cv_func_shl_load+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10318 #define shl_load innocuous_shl_load
10320 /* System header to define __stub macros and hopefully few prototypes,
10321 which can conflict with char shl_load (); below.
10322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10323 <limits.h> exists even on freestanding compilers. */
10325 #ifdef __STDC__
10326 # include <limits.h>
10327 #else
10328 # include <assert.h>
10329 #endif
10331 #undef shl_load
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10336 #ifdef __cplusplus
10337 extern "C"
10338 #endif
10339 char shl_load ();
10340 /* The GNU C library defines this for functions which it implements
10341 to always fail with ENOSYS. Some functions are actually named
10342 something starting with __ and the normal name is an alias. */
10343 #if defined __stub_shl_load || defined __stub___shl_load
10344 choke me
10345 #endif
10348 main ()
10350 return shl_load ();
10352 return 0;
10354 _ACEOF
10355 rm -f conftest.$ac_objext conftest$ac_exeext
10356 if { (ac_try="$ac_link"
10357 case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 *) ac_try_echo=$ac_try;;
10360 esac
10361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_link") 2>conftest.er1
10363 ac_status=$?
10364 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10370 { (case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373 esac
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_try") 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; } &&
10379 { ac_try='test -s conftest$ac_exeext'
10380 { (case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_try") 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 ac_cv_func_shl_load=yes
10390 else
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 ac_cv_func_shl_load=no
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10400 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10401 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10402 if test $ac_cv_func_shl_load = yes; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_SHL_LOAD 1
10406 _ACEOF
10408 else
10409 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10410 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10411 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-ldld $LIBS"
10416 cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h. */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char shl_load ();
10431 main ()
10433 return shl_load ();
10435 return 0;
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10453 { (case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_try") 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; } &&
10462 { ac_try='test -s conftest$ac_exeext'
10463 { (case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10466 esac
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_try") 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_lib_dld_shl_load=yes
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_lib_dld_shl_load=no
10480 rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LIBS=$ac_check_lib_save_LIBS
10484 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10485 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10486 if test $ac_cv_lib_dld_shl_load = yes; then
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_SHL_LOAD 1
10490 _ACEOF
10492 LIBADD_DL="$LIBADD_DL -ldld"
10493 else
10494 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499 ac_check_lib_save_LIBS=$LIBS
10500 LIBS="-ldl $LIBS"
10501 cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h. */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10508 /* Override any GCC internal prototype to avoid an error.
10509 Use char because int might match the return type of a GCC
10510 builtin and then its argument prototype would still apply. */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 char dlopen ();
10516 main ()
10518 return dlopen ();
10520 return 0;
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (ac_try="$ac_link"
10525 case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_link") 2>conftest.er1
10531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10538 { (case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_try") 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; } &&
10547 { ac_try='test -s conftest$ac_exeext'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551 esac
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_cv_lib_dl_dlopen=yes
10558 else
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ac_cv_lib_dl_dlopen=no
10565 rm -f core conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10569 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10570 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10571 if test $ac_cv_lib_dl_dlopen = yes; then
10573 cat >>confdefs.h <<\_ACEOF
10574 #define HAVE_LIBDL 1
10575 _ACEOF
10577 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10578 else
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h. */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 #if HAVE_DLFCN_H
10586 # include <dlfcn.h>
10587 #endif
10590 main ()
10592 dlopen(0, 0);
10594 return 0;
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; } &&
10621 { ac_try='test -s conftest$ac_exeext'
10622 { (case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625 esac
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_try") 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10632 cat >>confdefs.h <<\_ACEOF
10633 #define HAVE_LIBDL 1
10634 _ACEOF
10635 libltdl_cv_func_dlopen="yes"
10636 else
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10641 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10642 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645 ac_check_lib_save_LIBS=$LIBS
10646 LIBS="-lsvld $LIBS"
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 char dlopen ();
10662 main ()
10664 return dlopen ();
10666 return 0;
10668 _ACEOF
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10674 esac
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_cv_lib_svld_dlopen=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_cv_lib_svld_dlopen=no
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10715 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10716 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10717 if test $ac_cv_lib_svld_dlopen = yes; then
10719 cat >>confdefs.h <<\_ACEOF
10720 #define HAVE_LIBDL 1
10721 _ACEOF
10723 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10724 else
10725 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10726 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10727 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730 ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-ldld $LIBS"
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h. */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char dld_link ();
10747 main ()
10749 return dld_link ();
10751 return 0;
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759 esac
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_link") 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
10768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10769 { (case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772 esac
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_try") 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10788 ac_cv_lib_dld_dld_link=yes
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_cv_lib_dld_dld_link=no
10796 rm -f core conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10800 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10801 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10802 if test $ac_cv_lib_dld_dld_link = yes; then
10804 cat >>confdefs.h <<\_ACEOF
10805 #define HAVE_DLD 1
10806 _ACEOF
10808 LIBADD_DL="$LIBADD_DL -ldld"
10809 else
10810 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10811 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10812 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10821 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10823 #define _dyld_func_lookup innocuous__dyld_func_lookup
10825 /* System header to define __stub macros and hopefully few prototypes,
10826 which can conflict with char _dyld_func_lookup (); below.
10827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10828 <limits.h> exists even on freestanding compilers. */
10830 #ifdef __STDC__
10831 # include <limits.h>
10832 #else
10833 # include <assert.h>
10834 #endif
10836 #undef _dyld_func_lookup
10838 /* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10841 #ifdef __cplusplus
10842 extern "C"
10843 #endif
10844 char _dyld_func_lookup ();
10845 /* The GNU C library defines this for functions which it implements
10846 to always fail with ENOSYS. Some functions are actually named
10847 something starting with __ and the normal name is an alias. */
10848 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10849 choke me
10850 #endif
10853 main ()
10855 return _dyld_func_lookup ();
10857 return 0;
10859 _ACEOF
10860 rm -f conftest.$ac_objext conftest$ac_exeext
10861 if { (ac_try="$ac_link"
10862 case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest$ac_exeext'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_cv_func__dyld_func_lookup=yes
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_cv_func__dyld_func_lookup=no
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10905 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10906 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10907 if test $ac_cv_func__dyld_func_lookup = yes; then
10909 cat >>confdefs.h <<\_ACEOF
10910 #define HAVE_DYLD 1
10911 _ACEOF
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10936 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10937 then
10938 lt_save_LIBS="$LIBS"
10939 LIBS="$LIBS $LIBADD_DL"
10941 for ac_func in dlerror
10943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949 cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h. */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10957 #define $ac_func innocuous_$ac_func
10959 /* System header to define __stub macros and hopefully few prototypes,
10960 which can conflict with char $ac_func (); below.
10961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10962 <limits.h> exists even on freestanding compilers. */
10964 #ifdef __STDC__
10965 # include <limits.h>
10966 #else
10967 # include <assert.h>
10968 #endif
10970 #undef $ac_func
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char $ac_func ();
10979 /* The GNU C library defines this for functions which it implements
10980 to always fail with ENOSYS. Some functions are actually named
10981 something starting with __ and the normal name is an alias. */
10982 #if defined __stub_$ac_func || defined __stub___$ac_func
10983 choke me
10984 #endif
10987 main ()
10989 return $ac_func ();
10991 return 0;
10993 _ACEOF
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_link") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; } &&
11018 { ac_try='test -s conftest$ac_exeext'
11019 { (case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11022 esac
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_try") 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 eval "$as_ac_var=yes"
11029 else
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 eval "$as_ac_var=no"
11036 rm -f core conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11039 ac_res=`eval echo '${'$as_ac_var'}'`
11040 { echo "$as_me:$LINENO: result: $ac_res" >&5
11041 echo "${ECHO_T}$ac_res" >&6; }
11042 if test `eval echo '${'$as_ac_var'}'` = yes; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11045 _ACEOF
11048 done
11050 LIBS="$lt_save_LIBS"
11052 ac_ext=c
11053 ac_cpp='$CPP $CPPFLAGS'
11054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11060 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11061 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11062 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065 ac_cv_sys_symbol_underscore=no
11066 cat > conftest.$ac_ext <<EOF
11067 void nm_test_func(){}
11068 int main(){nm_test_func;return 0;}
11070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071 (eval $ac_compile) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; then
11075 # Now try to grab the symbols.
11076 ac_nlist=conftest.nm
11077 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11078 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && test -s "$ac_nlist"; then
11082 # See whether the symbols have a leading underscore.
11083 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11084 ac_cv_sys_symbol_underscore=yes
11085 else
11086 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11088 else
11089 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11092 else
11093 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11095 else
11096 echo "configure: failed program was:" >&5
11097 cat conftest.c >&5
11099 rm -rf conftest*
11102 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11103 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11106 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11107 if test x"$libltdl_cv_func_dlopen" = xyes ||
11108 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11109 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11110 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11111 if test "${libltdl_cv_need_uscore+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11114 libltdl_cv_need_uscore=unknown
11115 save_LIBS="$LIBS"
11116 LIBS="$LIBS $LIBADD_DL"
11117 if test "$cross_compiling" = yes; then :
11118 libltdl_cv_need_uscore=cross
11119 else
11120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11121 lt_status=$lt_dlunknown
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11123 "configure"
11124 #include "confdefs.h"
11126 #if HAVE_DLFCN_H
11127 #include <dlfcn.h>
11128 #endif
11130 #include <stdio.h>
11132 #ifdef RTLD_GLOBAL
11133 # define LT_DLGLOBAL RTLD_GLOBAL
11134 #else
11135 # ifdef DL_GLOBAL
11136 # define LT_DLGLOBAL DL_GLOBAL
11137 # else
11138 # define LT_DLGLOBAL 0
11139 # endif
11140 #endif
11142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11143 find out it does not work in some platform. */
11144 #ifndef LT_DLLAZY_OR_NOW
11145 # ifdef RTLD_LAZY
11146 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11147 # else
11148 # ifdef DL_LAZY
11149 # define LT_DLLAZY_OR_NOW DL_LAZY
11150 # else
11151 # ifdef RTLD_NOW
11152 # define LT_DLLAZY_OR_NOW RTLD_NOW
11153 # else
11154 # ifdef DL_NOW
11155 # define LT_DLLAZY_OR_NOW DL_NOW
11156 # else
11157 # define LT_DLLAZY_OR_NOW 0
11158 # endif
11159 # endif
11160 # endif
11161 # endif
11162 #endif
11164 #ifdef __cplusplus
11165 extern "C" void exit (int);
11166 #endif
11168 void fnord() { int i=42;}
11169 int main ()
11171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11172 int status = $lt_dlunknown;
11174 if (self)
11176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11178 /* dlclose (self); */
11180 else
11181 puts (dlerror ());
11183 exit (status);
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11191 (./conftest; exit; ) >&5 2>/dev/null
11192 lt_status=$?
11193 case x$lt_status in
11194 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11195 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11196 x$lt_dlunknown|x*) ;;
11197 esac
11198 else :
11199 # compilation failed
11203 rm -fr conftest*
11205 LIBS="$save_LIBS"
11208 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11209 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11213 if test x"$libltdl_cv_need_uscore" = xyes; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define NEED_USCORE 1
11217 _ACEOF
11222 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11223 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11224 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227 # PORTME does your system automatically load deplibs for dlopen?
11228 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11229 # For now, we just catch OSes we know something about -- in the
11230 # future, we'll try test this programmatically.
11231 libltdl_cv_sys_dlopen_deplibs=unknown
11232 case "$host_os" in
11233 aix3*|aix4.1.*|aix4.2.*)
11234 # Unknown whether this is true for these versions of AIX, but
11235 # we want this `case' here to explicitly catch those versions.
11236 libltdl_cv_sys_dlopen_deplibs=unknown
11238 aix[45]*)
11239 libltdl_cv_sys_dlopen_deplibs=yes
11241 darwin*)
11242 # Assuming the user has installed a libdl from somewhere, this is true
11243 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11244 libltdl_cv_sys_dlopen_deplibs=yes
11246 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11247 # GNU and its variants, using gnu ld.so (Glibc)
11248 libltdl_cv_sys_dlopen_deplibs=yes
11250 hpux10*|hpux11*)
11251 libltdl_cv_sys_dlopen_deplibs=yes
11253 interix*)
11254 libltdl_cv_sys_dlopen_deplibs=yes
11256 irix[12345]*|irix6.[01]*)
11257 # Catch all versions of IRIX before 6.2, and indicate that we don't
11258 # know how it worked for any of those versions.
11259 libltdl_cv_sys_dlopen_deplibs=unknown
11261 irix*)
11262 # The case above catches anything before 6.2, and it's known that
11263 # at 6.2 and later dlopen does load deplibs.
11264 libltdl_cv_sys_dlopen_deplibs=yes
11266 netbsd*)
11267 libltdl_cv_sys_dlopen_deplibs=yes
11269 openbsd*)
11270 libltdl_cv_sys_dlopen_deplibs=yes
11272 osf[1234]*)
11273 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11274 # it did *not* use an RPATH in a shared library to find objects the
11275 # library depends on, so we explictly say `no'.
11276 libltdl_cv_sys_dlopen_deplibs=no
11278 osf5.0|osf5.0a|osf5.1)
11279 # dlopen *does* load deplibs and with the right loader patch applied
11280 # it even uses RPATH in a shared library to search for shared objects
11281 # that the library depends on, but there's no easy way to know if that
11282 # patch is installed. Since this is the case, all we can really
11283 # say is unknown -- it depends on the patch being installed. If
11284 # it is, this changes to `yes'. Without it, it would be `no'.
11285 libltdl_cv_sys_dlopen_deplibs=unknown
11287 osf*)
11288 # the two cases above should catch all versions of osf <= 5.1. Read
11289 # the comments above for what we know about them.
11290 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11291 # is used to find them so we can finally say `yes'.
11292 libltdl_cv_sys_dlopen_deplibs=yes
11294 solaris*)
11295 libltdl_cv_sys_dlopen_deplibs=yes
11297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11298 libltdl_cv_sys_dlopen_deplibs=yes
11300 esac
11303 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11304 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11305 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11307 cat >>confdefs.h <<\_ACEOF
11308 #define LTDL_DLOPEN_DEPLIBS 1
11309 _ACEOF
11314 for ac_header in argz.h
11316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 ac_res=`eval echo '${'$as_ac_Header'}'`
11324 { echo "$as_me:$LINENO: result: $ac_res" >&5
11325 echo "${ECHO_T}$ac_res" >&6; }
11326 else
11327 # Is the header compilable?
11328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 #include <$ac_header>
11338 _ACEOF
11339 rm -f conftest.$ac_objext
11340 if { (ac_try="$ac_compile"
11341 case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11344 esac
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_compile") 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11354 { (case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_try") 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; } &&
11363 { ac_try='test -s conftest.$ac_objext'
11364 { (case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_try") 2>&5
11370 ac_status=$?
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; }; then
11373 ac_header_compiler=yes
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 ac_header_compiler=no
11381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11383 echo "${ECHO_T}$ac_header_compiler" >&6; }
11385 # Is the header present?
11386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #include <$ac_header>
11395 _ACEOF
11396 if { (ac_try="$ac_cpp conftest.$ac_ext"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400 esac
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } >/dev/null; then
11409 if test -s conftest.err; then
11410 ac_cpp_err=$ac_c_preproc_warn_flag
11411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11412 else
11413 ac_cpp_err=
11415 else
11416 ac_cpp_err=yes
11418 if test -z "$ac_cpp_err"; then
11419 ac_header_preproc=yes
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_header_preproc=no
11427 rm -f conftest.err conftest.$ac_ext
11428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11429 echo "${ECHO_T}$ac_header_preproc" >&6; }
11431 # So? What about this header?
11432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11433 yes:no: )
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11438 ac_header_preproc=yes
11440 no:yes:* )
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11453 ( cat <<\_ASBOX
11454 ## ----------------------------------- ##
11455 ## Report this to llvmbugs@cs.uiuc.edu ##
11456 ## ----------------------------------- ##
11457 _ASBOX
11458 ) | sed "s/^/$as_me: WARNING: /" >&2
11460 esac
11461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466 eval "$as_ac_Header=\$ac_header_preproc"
11468 ac_res=`eval echo '${'$as_ac_Header'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11476 _ACEOF
11480 done
11483 { echo "$as_me:$LINENO: checking for error_t" >&5
11484 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11485 if test "${ac_cv_type_error_t+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 #if HAVE_ARGZ_H
11495 # include <argz.h>
11496 #endif
11498 typedef error_t ac__type_new_;
11500 main ()
11502 if ((ac__type_new_ *) 0)
11503 return 0;
11504 if (sizeof (ac__type_new_))
11505 return 0;
11507 return 0;
11509 _ACEOF
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_compile") 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528 esac
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest.$ac_objext'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_cv_type_error_t=yes
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_cv_type_error_t=no
11552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11555 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11556 if test $ac_cv_type_error_t = yes; then
11558 cat >>confdefs.h <<_ACEOF
11559 #define HAVE_ERROR_T 1
11560 _ACEOF
11563 else
11565 cat >>confdefs.h <<\_ACEOF
11566 #define error_t int
11567 _ACEOF
11577 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h. */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11593 #define $ac_func innocuous_$ac_func
11595 /* System header to define __stub macros and hopefully few prototypes,
11596 which can conflict with char $ac_func (); below.
11597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11598 <limits.h> exists even on freestanding compilers. */
11600 #ifdef __STDC__
11601 # include <limits.h>
11602 #else
11603 # include <assert.h>
11604 #endif
11606 #undef $ac_func
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 char $ac_func ();
11615 /* The GNU C library defines this for functions which it implements
11616 to always fail with ENOSYS. Some functions are actually named
11617 something starting with __ and the normal name is an alias. */
11618 #if defined __stub_$ac_func || defined __stub___$ac_func
11619 choke me
11620 #endif
11623 main ()
11625 return $ac_func ();
11627 return 0;
11629 _ACEOF
11630 rm -f conftest.$ac_objext conftest$ac_exeext
11631 if { (ac_try="$ac_link"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635 esac
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_link") 2>conftest.er1
11638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_try") 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 eval "$as_ac_var=yes"
11665 else
11666 echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11669 eval "$as_ac_var=no"
11672 rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11675 ac_res=`eval echo '${'$as_ac_var'}'`
11676 { echo "$as_me:$LINENO: result: $ac_res" >&5
11677 echo "${ECHO_T}$ac_res" >&6; }
11678 if test `eval echo '${'$as_ac_var'}'` = yes; then
11679 cat >>confdefs.h <<_ACEOF
11680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11681 _ACEOF
11684 done
11713 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11714 stdio.h unistd.h
11716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 ac_res=`eval echo '${'$as_ac_Header'}'`
11724 { echo "$as_me:$LINENO: result: $ac_res" >&5
11725 echo "${ECHO_T}$ac_res" >&6; }
11726 else
11727 # Is the header compilable?
11728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h. */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 $ac_includes_default
11737 #include <$ac_header>
11738 _ACEOF
11739 rm -f conftest.$ac_objext
11740 if { (ac_try="$ac_compile"
11741 case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11744 esac
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_compile") 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11754 { (case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757 esac
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_try") 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest.$ac_objext'
11764 { (case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_try") 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_header_compiler=yes
11774 else
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_header_compiler=no
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11783 echo "${ECHO_T}$ac_header_compiler" >&6; }
11785 # Is the header present?
11786 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h. */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 #include <$ac_header>
11795 _ACEOF
11796 if { (ac_try="$ac_cpp conftest.$ac_ext"
11797 case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800 esac
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } >/dev/null; then
11809 if test -s conftest.err; then
11810 ac_cpp_err=$ac_c_preproc_warn_flag
11811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11812 else
11813 ac_cpp_err=
11815 else
11816 ac_cpp_err=yes
11818 if test -z "$ac_cpp_err"; then
11819 ac_header_preproc=yes
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 ac_header_preproc=no
11827 rm -f conftest.err conftest.$ac_ext
11828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11829 echo "${ECHO_T}$ac_header_preproc" >&6; }
11831 # So? What about this header?
11832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11833 yes:no: )
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11838 ac_header_preproc=yes
11840 no:yes:* )
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11853 ( cat <<\_ASBOX
11854 ## ----------------------------------- ##
11855 ## Report this to llvmbugs@cs.uiuc.edu ##
11856 ## ----------------------------------- ##
11857 _ASBOX
11858 ) | sed "s/^/$as_me: WARNING: /" >&2
11860 esac
11861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866 eval "$as_ac_Header=\$ac_header_preproc"
11868 ac_res=`eval echo '${'$as_ac_Header'}'`
11869 { echo "$as_me:$LINENO: result: $ac_res" >&5
11870 echo "${ECHO_T}$ac_res" >&6; }
11873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11876 _ACEOF
11880 done
11886 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 ac_res=`eval echo '${'$as_ac_Header'}'`
11896 { echo "$as_me:$LINENO: result: $ac_res" >&5
11897 echo "${ECHO_T}$ac_res" >&6; }
11898 else
11899 # Is the header compilable?
11900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 $ac_includes_default
11909 #include <$ac_header>
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (ac_try="$ac_compile"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_compile") 2>conftest.er1
11919 ac_status=$?
11920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest.$ac_objext'
11936 { (case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11939 esac
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_try") 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_header_compiler=yes
11946 else
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 ac_header_compiler=no
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11955 echo "${ECHO_T}$ac_header_compiler" >&6; }
11957 # Is the header present?
11958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 #include <$ac_header>
11967 _ACEOF
11968 if { (ac_try="$ac_cpp conftest.$ac_ext"
11969 case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972 esac
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11975 ac_status=$?
11976 grep -v '^ *+' conftest.er1 >conftest.err
11977 rm -f conftest.er1
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } >/dev/null; then
11981 if test -s conftest.err; then
11982 ac_cpp_err=$ac_c_preproc_warn_flag
11983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11984 else
11985 ac_cpp_err=
11987 else
11988 ac_cpp_err=yes
11990 if test -z "$ac_cpp_err"; then
11991 ac_header_preproc=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_header_preproc=no
11999 rm -f conftest.err conftest.$ac_ext
12000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12001 echo "${ECHO_T}$ac_header_preproc" >&6; }
12003 # So? What about this header?
12004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12005 yes:no: )
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12010 ac_header_preproc=yes
12012 no:yes:* )
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12025 ( cat <<\_ASBOX
12026 ## ----------------------------------- ##
12027 ## Report this to llvmbugs@cs.uiuc.edu ##
12028 ## ----------------------------------- ##
12029 _ASBOX
12030 ) | sed "s/^/$as_me: WARNING: /" >&2
12032 esac
12033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038 eval "$as_ac_Header=\$ac_header_preproc"
12040 ac_res=`eval echo '${'$as_ac_Header'}'`
12041 { echo "$as_me:$LINENO: result: $ac_res" >&5
12042 echo "${ECHO_T}$ac_res" >&6; }
12045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12046 cat >>confdefs.h <<_ACEOF
12047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12048 _ACEOF
12052 done
12056 for ac_header in string.h strings.h
12058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 ac_res=`eval echo '${'$as_ac_Header'}'`
12066 { echo "$as_me:$LINENO: result: $ac_res" >&5
12067 echo "${ECHO_T}$ac_res" >&6; }
12068 else
12069 # Is the header compilable?
12070 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12072 cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h. */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 $ac_includes_default
12079 #include <$ac_header>
12080 _ACEOF
12081 rm -f conftest.$ac_objext
12082 if { (ac_try="$ac_compile"
12083 case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_compile") 2>conftest.er1
12089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest.$ac_objext'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 ac_header_compiler=yes
12116 else
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 ac_header_compiler=no
12123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12125 echo "${ECHO_T}$ac_header_compiler" >&6; }
12127 # Is the header present?
12128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 #include <$ac_header>
12137 _ACEOF
12138 if { (ac_try="$ac_cpp conftest.$ac_ext"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12145 ac_status=$?
12146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } >/dev/null; then
12151 if test -s conftest.err; then
12152 ac_cpp_err=$ac_c_preproc_warn_flag
12153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12154 else
12155 ac_cpp_err=
12157 else
12158 ac_cpp_err=yes
12160 if test -z "$ac_cpp_err"; then
12161 ac_header_preproc=yes
12162 else
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12166 ac_header_preproc=no
12169 rm -f conftest.err conftest.$ac_ext
12170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12171 echo "${ECHO_T}$ac_header_preproc" >&6; }
12173 # So? What about this header?
12174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12175 yes:no: )
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12180 ac_header_preproc=yes
12182 no:yes:* )
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12195 ( cat <<\_ASBOX
12196 ## ----------------------------------- ##
12197 ## Report this to llvmbugs@cs.uiuc.edu ##
12198 ## ----------------------------------- ##
12199 _ASBOX
12200 ) | sed "s/^/$as_me: WARNING: /" >&2
12202 esac
12203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208 eval "$as_ac_Header=\$ac_header_preproc"
12210 ac_res=`eval echo '${'$as_ac_Header'}'`
12211 { echo "$as_me:$LINENO: result: $ac_res" >&5
12212 echo "${ECHO_T}$ac_res" >&6; }
12215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12216 cat >>confdefs.h <<_ACEOF
12217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12218 _ACEOF
12219 break
12222 done
12227 for ac_func in strchr index
12229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12243 #define $ac_func innocuous_$ac_func
12245 /* System header to define __stub macros and hopefully few prototypes,
12246 which can conflict with char $ac_func (); below.
12247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12248 <limits.h> exists even on freestanding compilers. */
12250 #ifdef __STDC__
12251 # include <limits.h>
12252 #else
12253 # include <assert.h>
12254 #endif
12256 #undef $ac_func
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char $ac_func ();
12265 /* The GNU C library defines this for functions which it implements
12266 to always fail with ENOSYS. Some functions are actually named
12267 something starting with __ and the normal name is an alias. */
12268 #if defined __stub_$ac_func || defined __stub___$ac_func
12269 choke me
12270 #endif
12273 main ()
12275 return $ac_func ();
12277 return 0;
12279 _ACEOF
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (ac_try="$ac_link"
12282 case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12285 esac
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_link") 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest$ac_exeext'
12305 { (case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12308 esac
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_try") 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 eval "$as_ac_var=yes"
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 eval "$as_ac_var=no"
12322 rm -f core conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
12325 ac_res=`eval echo '${'$as_ac_var'}'`
12326 { echo "$as_me:$LINENO: result: $ac_res" >&5
12327 echo "${ECHO_T}$ac_res" >&6; }
12328 if test `eval echo '${'$as_ac_var'}'` = yes; then
12329 cat >>confdefs.h <<_ACEOF
12330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12331 _ACEOF
12332 break
12334 done
12338 for ac_func in strrchr rindex
12340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12354 #define $ac_func innocuous_$ac_func
12356 /* System header to define __stub macros and hopefully few prototypes,
12357 which can conflict with char $ac_func (); below.
12358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12359 <limits.h> exists even on freestanding compilers. */
12361 #ifdef __STDC__
12362 # include <limits.h>
12363 #else
12364 # include <assert.h>
12365 #endif
12367 #undef $ac_func
12369 /* Override any GCC internal prototype to avoid an error.
12370 Use char because int might match the return type of a GCC
12371 builtin and then its argument prototype would still apply. */
12372 #ifdef __cplusplus
12373 extern "C"
12374 #endif
12375 char $ac_func ();
12376 /* The GNU C library defines this for functions which it implements
12377 to always fail with ENOSYS. Some functions are actually named
12378 something starting with __ and the normal name is an alias. */
12379 #if defined __stub_$ac_func || defined __stub___$ac_func
12380 choke me
12381 #endif
12384 main ()
12386 return $ac_func ();
12388 return 0;
12390 _ACEOF
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (ac_try="$ac_link"
12393 case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_link") 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409 esac
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest$ac_exeext'
12416 { (case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_try") 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 eval "$as_ac_var=yes"
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 eval "$as_ac_var=no"
12433 rm -f core conftest.err conftest.$ac_objext \
12434 conftest$ac_exeext conftest.$ac_ext
12436 ac_res=`eval echo '${'$as_ac_var'}'`
12437 { echo "$as_me:$LINENO: result: $ac_res" >&5
12438 echo "${ECHO_T}$ac_res" >&6; }
12439 if test `eval echo '${'$as_ac_var'}'` = yes; then
12440 cat >>confdefs.h <<_ACEOF
12441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12442 _ACEOF
12443 break
12445 done
12449 for ac_func in memcpy bcopy
12451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h. */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12465 #define $ac_func innocuous_$ac_func
12467 /* System header to define __stub macros and hopefully few prototypes,
12468 which can conflict with char $ac_func (); below.
12469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470 <limits.h> exists even on freestanding compilers. */
12472 #ifdef __STDC__
12473 # include <limits.h>
12474 #else
12475 # include <assert.h>
12476 #endif
12478 #undef $ac_func
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483 #ifdef __cplusplus
12484 extern "C"
12485 #endif
12486 char $ac_func ();
12487 /* The GNU C library defines this for functions which it implements
12488 to always fail with ENOSYS. Some functions are actually named
12489 something starting with __ and the normal name is an alias. */
12490 #if defined __stub_$ac_func || defined __stub___$ac_func
12491 choke me
12492 #endif
12495 main ()
12497 return $ac_func ();
12499 return 0;
12501 _ACEOF
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12517 { (case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_try") 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; } &&
12526 { ac_try='test -s conftest$ac_exeext'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 eval "$as_ac_var=yes"
12537 else
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 eval "$as_ac_var=no"
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12547 ac_res=`eval echo '${'$as_ac_var'}'`
12548 { echo "$as_me:$LINENO: result: $ac_res" >&5
12549 echo "${ECHO_T}$ac_res" >&6; }
12550 if test `eval echo '${'$as_ac_var'}'` = yes; then
12551 cat >>confdefs.h <<_ACEOF
12552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12553 _ACEOF
12554 break
12556 done
12560 for ac_func in memmove strcmp
12562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568 cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h. */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12576 #define $ac_func innocuous_$ac_func
12578 /* System header to define __stub macros and hopefully few prototypes,
12579 which can conflict with char $ac_func (); below.
12580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12581 <limits.h> exists even on freestanding compilers. */
12583 #ifdef __STDC__
12584 # include <limits.h>
12585 #else
12586 # include <assert.h>
12587 #endif
12589 #undef $ac_func
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char $ac_func ();
12598 /* The GNU C library defines this for functions which it implements
12599 to always fail with ENOSYS. Some functions are actually named
12600 something starting with __ and the normal name is an alias. */
12601 #if defined __stub_$ac_func || defined __stub___$ac_func
12602 choke me
12603 #endif
12606 main ()
12608 return $ac_func ();
12610 return 0;
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_try") 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 eval "$as_ac_var=yes"
12648 else
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 eval "$as_ac_var=no"
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12658 ac_res=`eval echo '${'$as_ac_var'}'`
12659 { echo "$as_me:$LINENO: result: $ac_res" >&5
12660 echo "${ECHO_T}$ac_res" >&6; }
12661 if test `eval echo '${'$as_ac_var'}'` = yes; then
12662 cat >>confdefs.h <<_ACEOF
12663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664 _ACEOF
12667 done
12672 for ac_func in closedir opendir readdir
12674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h. */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12688 #define $ac_func innocuous_$ac_func
12690 /* System header to define __stub macros and hopefully few prototypes,
12691 which can conflict with char $ac_func (); below.
12692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693 <limits.h> exists even on freestanding compilers. */
12695 #ifdef __STDC__
12696 # include <limits.h>
12697 #else
12698 # include <assert.h>
12699 #endif
12701 #undef $ac_func
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12706 #ifdef __cplusplus
12707 extern "C"
12708 #endif
12709 char $ac_func ();
12710 /* The GNU C library defines this for functions which it implements
12711 to always fail with ENOSYS. Some functions are actually named
12712 something starting with __ and the normal name is an alias. */
12713 #if defined __stub_$ac_func || defined __stub___$ac_func
12714 choke me
12715 #endif
12718 main ()
12720 return $ac_func ();
12722 return 0;
12724 _ACEOF
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 eval "$as_ac_var=yes"
12760 else
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 eval "$as_ac_var=no"
12767 rm -f core conftest.err conftest.$ac_objext \
12768 conftest$ac_exeext conftest.$ac_ext
12770 ac_res=`eval echo '${'$as_ac_var'}'`
12771 { echo "$as_me:$LINENO: result: $ac_res" >&5
12772 echo "${ECHO_T}$ac_res" >&6; }
12773 if test `eval echo '${'$as_ac_var'}'` = yes; then
12774 cat >>confdefs.h <<_ACEOF
12775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12776 _ACEOF
12779 done
12782 # Check whether --enable-shared was given.
12783 if test "${enable_shared+set}" = set; then
12784 enableval=$enable_shared; p=${PACKAGE-default}
12785 case $enableval in
12786 yes) enable_shared=yes ;;
12787 no) enable_shared=no ;;
12789 enable_shared=no
12790 # Look at the argument we got. We use all the common list separators.
12791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12792 for pkg in $enableval; do
12793 IFS="$lt_save_ifs"
12794 if test "X$pkg" = "X$p"; then
12795 enable_shared=yes
12797 done
12798 IFS="$lt_save_ifs"
12800 esac
12801 else
12802 enable_shared=yes
12806 # Check whether --enable-static was given.
12807 if test "${enable_static+set}" = set; then
12808 enableval=$enable_static; p=${PACKAGE-default}
12809 case $enableval in
12810 yes) enable_static=yes ;;
12811 no) enable_static=no ;;
12813 enable_static=no
12814 # Look at the argument we got. We use all the common list separators.
12815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12816 for pkg in $enableval; do
12817 IFS="$lt_save_ifs"
12818 if test "X$pkg" = "X$p"; then
12819 enable_static=yes
12821 done
12822 IFS="$lt_save_ifs"
12824 esac
12825 else
12826 enable_static=yes
12830 # Check whether --enable-fast-install was given.
12831 if test "${enable_fast_install+set}" = set; then
12832 enableval=$enable_fast_install; p=${PACKAGE-default}
12833 case $enableval in
12834 yes) enable_fast_install=yes ;;
12835 no) enable_fast_install=no ;;
12837 enable_fast_install=no
12838 # Look at the argument we got. We use all the common list separators.
12839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12840 for pkg in $enableval; do
12841 IFS="$lt_save_ifs"
12842 if test "X$pkg" = "X$p"; then
12843 enable_fast_install=yes
12845 done
12846 IFS="$lt_save_ifs"
12848 esac
12849 else
12850 enable_fast_install=yes
12854 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12855 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12856 if test "${lt_cv_path_SED+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859 # Loop through the user's path and test for sed and gsed.
12860 # Then use that list of sed's as ones to test for truncation.
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12864 IFS=$as_save_IFS
12865 test -z "$as_dir" && as_dir=.
12866 for lt_ac_prog in sed gsed; do
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12869 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12871 done
12872 done
12873 done
12874 lt_ac_max=0
12875 lt_ac_count=0
12876 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12877 # along with /bin/sed that truncates output.
12878 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12879 test ! -f $lt_ac_sed && continue
12880 cat /dev/null > conftest.in
12881 lt_ac_count=0
12882 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12883 # Check for GNU sed and select it if it is found.
12884 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12885 lt_cv_path_SED=$lt_ac_sed
12886 break
12888 while true; do
12889 cat conftest.in conftest.in >conftest.tmp
12890 mv conftest.tmp conftest.in
12891 cp conftest.in conftest.nl
12892 echo >>conftest.nl
12893 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12894 cmp -s conftest.out conftest.nl || break
12895 # 10000 chars as input seems more than enough
12896 test $lt_ac_count -gt 10 && break
12897 lt_ac_count=`expr $lt_ac_count + 1`
12898 if test $lt_ac_count -gt $lt_ac_max; then
12899 lt_ac_max=$lt_ac_count
12900 lt_cv_path_SED=$lt_ac_sed
12902 done
12903 done
12907 SED=$lt_cv_path_SED
12908 { echo "$as_me:$LINENO: result: $SED" >&5
12909 echo "${ECHO_T}$SED" >&6; }
12912 # Check whether --with-gnu-ld was given.
12913 if test "${with_gnu_ld+set}" = set; then
12914 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12915 else
12916 with_gnu_ld=no
12919 ac_prog=ld
12920 if test "$GCC" = yes; then
12921 # Check if gcc -print-prog-name=ld gives a path.
12922 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12923 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12924 case $host in
12925 *-*-mingw*)
12926 # gcc leaves a trailing carriage return which upsets mingw
12927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12930 esac
12931 case $ac_prog in
12932 # Accept absolute paths.
12933 [\\/]* | ?:[\\/]*)
12934 re_direlt='/[^/][^/]*/\.\./'
12935 # Canonicalize the pathname of ld
12936 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12938 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12939 done
12940 test -z "$LD" && LD="$ac_prog"
12943 # If it fails, then pretend we aren't using GCC.
12944 ac_prog=ld
12947 # If it is relative, then search for the first ld in PATH.
12948 with_gnu_ld=unknown
12950 esac
12951 elif test "$with_gnu_ld" = yes; then
12952 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12953 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12954 else
12955 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12956 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12958 if test "${lt_cv_path_LD+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961 if test -z "$LD"; then
12962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12963 for ac_dir in $PATH; do
12964 IFS="$lt_save_ifs"
12965 test -z "$ac_dir" && ac_dir=.
12966 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12967 lt_cv_path_LD="$ac_dir/$ac_prog"
12968 # Check to see if the program is GNU ld. I'd rather use --version,
12969 # but apparently some variants of GNU ld only accept -v.
12970 # Break only if it was the GNU/non-GNU ld that we prefer.
12971 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12972 *GNU* | *'with BFD'*)
12973 test "$with_gnu_ld" != no && break
12976 test "$with_gnu_ld" != yes && break
12978 esac
12980 done
12981 IFS="$lt_save_ifs"
12982 else
12983 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12987 LD="$lt_cv_path_LD"
12988 if test -n "$LD"; then
12989 { echo "$as_me:$LINENO: result: $LD" >&5
12990 echo "${ECHO_T}$LD" >&6; }
12991 else
12992 { echo "$as_me:$LINENO: result: no" >&5
12993 echo "${ECHO_T}no" >&6; }
12995 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12996 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12997 { (exit 1); exit 1; }; }
12998 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12999 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13000 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13004 case `$LD -v 2>&1 </dev/null` in
13005 *GNU* | *'with BFD'*)
13006 lt_cv_prog_gnu_ld=yes
13009 lt_cv_prog_gnu_ld=no
13011 esac
13013 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13014 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13015 with_gnu_ld=$lt_cv_prog_gnu_ld
13018 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13019 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
13020 if test "${lt_cv_ld_reload_flag+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 lt_cv_ld_reload_flag='-r'
13025 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13026 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
13027 reload_flag=$lt_cv_ld_reload_flag
13028 case $reload_flag in
13029 "" | " "*) ;;
13030 *) reload_flag=" $reload_flag" ;;
13031 esac
13032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13033 case $host_os in
13034 darwin*)
13035 if test "$GCC" = yes; then
13036 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
13037 else
13038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13041 esac
13043 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13044 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
13045 if test "${lt_cv_deplibs_check_method+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048 lt_cv_file_magic_cmd='$MAGIC_CMD'
13049 lt_cv_file_magic_test_file=
13050 lt_cv_deplibs_check_method='unknown'
13051 # Need to set the preceding variable on all platforms that support
13052 # interlibrary dependencies.
13053 # 'none' -- dependencies not supported.
13054 # `unknown' -- same as none, but documents that we really don't know.
13055 # 'pass_all' -- all dependencies passed with no checks.
13056 # 'test_compile' -- check by making test program.
13057 # 'file_magic [[regex]]' -- check by looking for files in library path
13058 # which responds to the $file_magic_cmd with a given extended regex.
13059 # If you have `file' or equivalent on your system and you're not sure
13060 # whether `pass_all' will *always* work, you probably want this one.
13062 case $host_os in
13063 aix4* | aix5*)
13064 lt_cv_deplibs_check_method=pass_all
13067 beos*)
13068 lt_cv_deplibs_check_method=pass_all
13071 bsdi[45]*)
13072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13073 lt_cv_file_magic_cmd='/usr/bin/file -L'
13074 lt_cv_file_magic_test_file=/shlib/libc.so
13077 cygwin*)
13078 # func_win32_libid is a shell function defined in ltmain.sh
13079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13080 lt_cv_file_magic_cmd='func_win32_libid'
13083 mingw* | pw32*)
13084 # Base MSYS/MinGW do not provide the 'file' command needed by
13085 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13086 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13087 lt_cv_file_magic_cmd='$OBJDUMP -f'
13090 darwin* | rhapsody*)
13091 lt_cv_deplibs_check_method=pass_all
13094 freebsd* | kfreebsd*-gnu | dragonfly*)
13095 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13096 case $host_cpu in
13097 i*86 )
13098 # Not sure whether the presence of OpenBSD here was a mistake.
13099 # Let's accept both of them until this is cleared up.
13100 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13101 lt_cv_file_magic_cmd=/usr/bin/file
13102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13104 esac
13105 else
13106 lt_cv_deplibs_check_method=pass_all
13110 gnu*)
13111 lt_cv_deplibs_check_method=pass_all
13114 hpux10.20* | hpux11*)
13115 lt_cv_file_magic_cmd=/usr/bin/file
13116 case $host_cpu in
13117 ia64*)
13118 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13119 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13121 hppa*64*)
13122 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]'
13123 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13127 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13129 esac
13132 interix3*)
13133 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13137 irix5* | irix6* | nonstopux*)
13138 case $LD in
13139 *-32|*"-32 ") libmagic=32-bit;;
13140 *-n32|*"-n32 ") libmagic=N32;;
13141 *-64|*"-64 ") libmagic=64-bit;;
13142 *) libmagic=never-match;;
13143 esac
13144 lt_cv_deplibs_check_method=pass_all
13147 # This must be Linux ELF.
13148 linux*)
13149 lt_cv_deplibs_check_method=pass_all
13152 netbsd*)
13153 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13155 else
13156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13160 newos6*)
13161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13162 lt_cv_file_magic_cmd=/usr/bin/file
13163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13166 nto-qnx*)
13167 lt_cv_deplibs_check_method=unknown
13170 openbsd*)
13171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13173 else
13174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13178 osf3* | osf4* | osf5*)
13179 lt_cv_deplibs_check_method=pass_all
13182 solaris*)
13183 lt_cv_deplibs_check_method=pass_all
13186 sysv4 | sysv4.3*)
13187 case $host_vendor in
13188 motorola)
13189 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]'
13190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13192 ncr)
13193 lt_cv_deplibs_check_method=pass_all
13195 sequent)
13196 lt_cv_file_magic_cmd='/bin/file'
13197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13199 sni)
13200 lt_cv_file_magic_cmd='/bin/file'
13201 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13202 lt_cv_file_magic_test_file=/lib/libc.so
13204 siemens)
13205 lt_cv_deplibs_check_method=pass_all
13208 lt_cv_deplibs_check_method=pass_all
13210 esac
13213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13214 lt_cv_deplibs_check_method=pass_all
13216 esac
13219 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13220 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13221 file_magic_cmd=$lt_cv_file_magic_cmd
13222 deplibs_check_method=$lt_cv_deplibs_check_method
13223 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13227 # If no C compiler was specified, use CC.
13228 LTCC=${LTCC-"$CC"}
13230 # If no C compiler flags were specified, use CFLAGS.
13231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13233 # Allow CC to be a program name with arguments.
13234 compiler=$CC
13236 # Check whether --enable-libtool-lock was given.
13237 if test "${enable_libtool_lock+set}" = set; then
13238 enableval=$enable_libtool_lock;
13241 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13243 # Some flags need to be propagated to the compiler or linker for good
13244 # libtool support.
13245 case $host in
13246 ia64-*-hpux*)
13247 # Find out which ABI we are using.
13248 echo 'int i;' > conftest.$ac_ext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250 (eval $ac_compile) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; then
13254 case `/usr/bin/file conftest.$ac_objext` in
13255 *ELF-32*)
13256 HPUX_IA64_MODE="32"
13258 *ELF-64*)
13259 HPUX_IA64_MODE="64"
13261 esac
13263 rm -rf conftest*
13265 *-*-irix6*)
13266 # Find out which ABI we are using.
13267 echo '#line 13267 "configure"' > conftest.$ac_ext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; then
13273 if test "$lt_cv_prog_gnu_ld" = yes; then
13274 case `/usr/bin/file conftest.$ac_objext` in
13275 *32-bit*)
13276 LD="${LD-ld} -melf32bsmip"
13278 *N32*)
13279 LD="${LD-ld} -melf32bmipn32"
13281 *64-bit*)
13282 LD="${LD-ld} -melf64bmip"
13284 esac
13285 else
13286 case `/usr/bin/file conftest.$ac_objext` in
13287 *32-bit*)
13288 LD="${LD-ld} -32"
13290 *N32*)
13291 LD="${LD-ld} -n32"
13293 *64-bit*)
13294 LD="${LD-ld} -64"
13296 esac
13299 rm -rf conftest*
13302 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13303 # Find out which ABI we are using.
13304 echo 'int i;' > conftest.$ac_ext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; then
13310 case `/usr/bin/file conftest.o` in
13311 *32-bit*)
13312 case $host in
13313 x86_64-*linux*)
13314 LD="${LD-ld} -m elf_i386"
13316 ppc64-*linux*|powerpc64-*linux*)
13317 LD="${LD-ld} -m elf32ppclinux"
13319 s390x-*linux*)
13320 LD="${LD-ld} -m elf_s390"
13322 sparc64-*linux*)
13323 LD="${LD-ld} -m elf32_sparc"
13325 esac
13327 *64-bit*)
13328 case $host in
13329 x86_64-*linux*)
13330 LD="${LD-ld} -m elf_x86_64"
13332 ppc*-*linux*|powerpc*-*linux*)
13333 LD="${LD-ld} -m elf64ppc"
13335 s390*-*linux*)
13336 LD="${LD-ld} -m elf64_s390"
13338 sparc*-*linux*)
13339 LD="${LD-ld} -m elf64_sparc"
13341 esac
13343 esac
13345 rm -rf conftest*
13348 *-*-sco3.2v5*)
13349 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13350 SAVE_CFLAGS="$CFLAGS"
13351 CFLAGS="$CFLAGS -belf"
13352 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13353 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13354 if test "${lt_cv_cc_needs_belf+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357 ac_ext=c
13358 ac_cpp='$CPP $CPPFLAGS'
13359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h. */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13371 main ()
13375 return 0;
13377 _ACEOF
13378 rm -f conftest.$ac_objext conftest$ac_exeext
13379 if { (ac_try="$ac_link"
13380 case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_link") 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13393 { (case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396 esac
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_try") 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406 esac
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 lt_cv_cc_needs_belf=yes
13413 else
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 lt_cv_cc_needs_belf=no
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13422 ac_ext=c
13423 ac_cpp='$CPP $CPPFLAGS'
13424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13429 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13430 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13431 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13433 CFLAGS="$SAVE_CFLAGS"
13436 sparc*-*solaris*)
13437 # Find out which ABI we are using.
13438 echo 'int i;' > conftest.$ac_ext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440 (eval $ac_compile) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; then
13444 case `/usr/bin/file conftest.o` in
13445 *64-bit*)
13446 case $lt_cv_prog_gnu_ld in
13447 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13448 *) LD="${LD-ld} -64" ;;
13449 esac
13451 esac
13453 rm -rf conftest*
13457 esac
13459 need_locks="$enable_libtool_lock"
13464 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13465 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13466 (test "X$CXX" != "Xg++"))) ; then
13467 ac_ext=cpp
13468 ac_cpp='$CXXCPP $CPPFLAGS'
13469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13472 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13473 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13474 if test -z "$CXXCPP"; then
13475 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478 # Double quotes because CXXCPP needs to be expanded
13479 for CXXCPP in "$CXX -E" "/lib/cpp"
13481 ac_preproc_ok=false
13482 for ac_cxx_preproc_warn_flag in '' yes
13484 # Use a header file that comes with gcc, so configuring glibc
13485 # with a fresh cross-compiler works.
13486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13487 # <limits.h> exists even on freestanding compilers.
13488 # On the NeXT, cc -E runs the code through the compiler's parser,
13489 # not just through cpp. "Syntax error" is here to catch this case.
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h. */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 #ifdef __STDC__
13497 # include <limits.h>
13498 #else
13499 # include <assert.h>
13500 #endif
13501 Syntax error
13502 _ACEOF
13503 if { (ac_try="$ac_cpp conftest.$ac_ext"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } >/dev/null; then
13516 if test -s conftest.err; then
13517 ac_cpp_err=$ac_cxx_preproc_warn_flag
13518 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13519 else
13520 ac_cpp_err=
13522 else
13523 ac_cpp_err=yes
13525 if test -z "$ac_cpp_err"; then
13527 else
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 # Broken: fails on valid input.
13532 continue
13535 rm -f conftest.err conftest.$ac_ext
13537 # OK, works on sane cases. Now check whether nonexistent headers
13538 # can be detected and how.
13539 cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h. */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13545 #include <ac_nonexistent.h>
13546 _ACEOF
13547 if { (ac_try="$ac_cpp conftest.$ac_ext"
13548 case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13551 esac
13552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } >/dev/null; then
13560 if test -s conftest.err; then
13561 ac_cpp_err=$ac_cxx_preproc_warn_flag
13562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13563 else
13564 ac_cpp_err=
13566 else
13567 ac_cpp_err=yes
13569 if test -z "$ac_cpp_err"; then
13570 # Broken: success on invalid input.
13571 continue
13572 else
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13576 # Passes both tests.
13577 ac_preproc_ok=:
13578 break
13581 rm -f conftest.err conftest.$ac_ext
13583 done
13584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13585 rm -f conftest.err conftest.$ac_ext
13586 if $ac_preproc_ok; then
13587 break
13590 done
13591 ac_cv_prog_CXXCPP=$CXXCPP
13594 CXXCPP=$ac_cv_prog_CXXCPP
13595 else
13596 ac_cv_prog_CXXCPP=$CXXCPP
13598 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13599 echo "${ECHO_T}$CXXCPP" >&6; }
13600 ac_preproc_ok=false
13601 for ac_cxx_preproc_warn_flag in '' yes
13603 # Use a header file that comes with gcc, so configuring glibc
13604 # with a fresh cross-compiler works.
13605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 # <limits.h> exists even on freestanding compilers.
13607 # On the NeXT, cc -E runs the code through the compiler's parser,
13608 # not just through cpp. "Syntax error" is here to catch this case.
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 #ifdef __STDC__
13616 # include <limits.h>
13617 #else
13618 # include <assert.h>
13619 #endif
13620 Syntax error
13621 _ACEOF
13622 if { (ac_try="$ac_cpp conftest.$ac_ext"
13623 case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13626 esac
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } >/dev/null; then
13635 if test -s conftest.err; then
13636 ac_cpp_err=$ac_cxx_preproc_warn_flag
13637 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13638 else
13639 ac_cpp_err=
13641 else
13642 ac_cpp_err=yes
13644 if test -z "$ac_cpp_err"; then
13646 else
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 # Broken: fails on valid input.
13651 continue
13654 rm -f conftest.err conftest.$ac_ext
13656 # OK, works on sane cases. Now check whether nonexistent headers
13657 # can be detected and how.
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 #include <ac_nonexistent.h>
13665 _ACEOF
13666 if { (ac_try="$ac_cpp conftest.$ac_ext"
13667 case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } >/dev/null; then
13679 if test -s conftest.err; then
13680 ac_cpp_err=$ac_cxx_preproc_warn_flag
13681 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13682 else
13683 ac_cpp_err=
13685 else
13686 ac_cpp_err=yes
13688 if test -z "$ac_cpp_err"; then
13689 # Broken: success on invalid input.
13690 continue
13691 else
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 # Passes both tests.
13696 ac_preproc_ok=:
13697 break
13700 rm -f conftest.err conftest.$ac_ext
13702 done
13703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13704 rm -f conftest.err conftest.$ac_ext
13705 if $ac_preproc_ok; then
13707 else
13708 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13709 See \`config.log' for more details." >&5
13710 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13711 See \`config.log' for more details." >&2;}
13712 { (exit 1); exit 1; }; }
13715 ac_ext=cpp
13716 ac_cpp='$CXXCPP $CPPFLAGS'
13717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13724 ac_ext=f
13725 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13726 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13727 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13728 if test -n "$ac_tool_prefix"; then
13729 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
13731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13735 if test "${ac_cv_prog_F77+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738 if test -n "$F77"; then
13739 ac_cv_prog_F77="$F77" # Let the user override the test.
13740 else
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13744 IFS=$as_save_IFS
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 break 2
13752 done
13753 done
13754 IFS=$as_save_IFS
13758 F77=$ac_cv_prog_F77
13759 if test -n "$F77"; then
13760 { echo "$as_me:$LINENO: result: $F77" >&5
13761 echo "${ECHO_T}$F77" >&6; }
13762 else
13763 { echo "$as_me:$LINENO: result: no" >&5
13764 echo "${ECHO_T}no" >&6; }
13768 test -n "$F77" && break
13769 done
13771 if test -z "$F77"; then
13772 ac_ct_F77=$F77
13773 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
13775 # Extract the first word of "$ac_prog", so it can be a program name with args.
13776 set dummy $ac_prog; ac_word=$2
13777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13779 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782 if test -n "$ac_ct_F77"; then
13783 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13784 else
13785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786 for as_dir in $PATH
13788 IFS=$as_save_IFS
13789 test -z "$as_dir" && as_dir=.
13790 for ac_exec_ext in '' $ac_executable_extensions; do
13791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13792 ac_cv_prog_ac_ct_F77="$ac_prog"
13793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13794 break 2
13796 done
13797 done
13798 IFS=$as_save_IFS
13802 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13803 if test -n "$ac_ct_F77"; then
13804 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13805 echo "${ECHO_T}$ac_ct_F77" >&6; }
13806 else
13807 { echo "$as_me:$LINENO: result: no" >&5
13808 echo "${ECHO_T}no" >&6; }
13812 test -n "$ac_ct_F77" && break
13813 done
13815 if test "x$ac_ct_F77" = x; then
13816 F77=""
13817 else
13818 case $cross_compiling:$ac_tool_warned in
13819 yes:)
13820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13821 whose name does not start with the host triplet. If you think this
13822 configuration is useful to you, please write to autoconf@gnu.org." >&5
13823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13824 whose name does not start with the host triplet. If you think this
13825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13826 ac_tool_warned=yes ;;
13827 esac
13828 F77=$ac_ct_F77
13833 # Provide some information about the compiler.
13834 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13835 ac_compiler=`set X $ac_compile; echo $2`
13836 { (ac_try="$ac_compiler --version >&5"
13837 case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_compiler --version >&5") 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }
13846 { (ac_try="$ac_compiler -v >&5"
13847 case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850 esac
13851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_compiler -v >&5") 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }
13856 { (ac_try="$ac_compiler -V >&5"
13857 case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13860 esac
13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_compiler -V >&5") 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }
13866 rm -f a.out
13868 # If we don't use `.F' as extension, the preprocessor is not run on the
13869 # input file. (Note that this only needs to work for GNU compilers.)
13870 ac_save_ext=$ac_ext
13871 ac_ext=F
13872 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13873 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13874 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877 cat >conftest.$ac_ext <<_ACEOF
13878 program main
13879 #ifndef __GNUC__
13880 choke me
13881 #endif
13884 _ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (ac_try="$ac_compile"
13887 case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_compile") 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13913 esac
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_try") 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_compiler_gnu=yes
13920 else
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 ac_compiler_gnu=no
13927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13931 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13932 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13933 ac_ext=$ac_save_ext
13934 ac_test_FFLAGS=${FFLAGS+set}
13935 ac_save_FFLAGS=$FFLAGS
13936 FFLAGS=
13937 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13938 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13939 if test "${ac_cv_prog_f77_g+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942 FFLAGS=-g
13943 cat >conftest.$ac_ext <<_ACEOF
13944 program main
13947 _ACEOF
13948 rm -f conftest.$ac_objext
13949 if { (ac_try="$ac_compile"
13950 case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953 esac
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_compile") 2>conftest.er1
13956 ac_status=$?
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13963 { (case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13966 esac
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_try") 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_try") 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_prog_f77_g=yes
13983 else
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 ac_cv_prog_f77_g=no
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13994 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13995 if test "$ac_test_FFLAGS" = set; then
13996 FFLAGS=$ac_save_FFLAGS
13997 elif test $ac_cv_prog_f77_g = yes; then
13998 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13999 FFLAGS="-g -O2"
14000 else
14001 FFLAGS="-g"
14003 else
14004 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14005 FFLAGS="-O2"
14006 else
14007 FFLAGS=
14011 G77=`test $ac_compiler_gnu = yes && echo yes`
14012 ac_ext=c
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14020 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14022 # find the maximum length of command line arguments
14023 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
14025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14029 teststring="ABCD"
14031 case $build_os in
14032 msdosdjgpp*)
14033 # On DJGPP, this test can blow up pretty badly due to problems in libc
14034 # (any single argument exceeding 2000 bytes causes a buffer overrun
14035 # during glob expansion). Even if it were fixed, the result of this
14036 # check would be larger than it should be.
14037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14040 gnu*)
14041 # Under GNU Hurd, this test is not required because there is
14042 # no limit to the length of command line arguments.
14043 # Libtool will interpret -1 as no limit whatsoever
14044 lt_cv_sys_max_cmd_len=-1;
14047 cygwin* | mingw*)
14048 # On Win9x/ME, this test blows up -- it succeeds, but takes
14049 # about 5 minutes as the teststring grows exponentially.
14050 # Worse, since 9x/ME are not pre-emptively multitasking,
14051 # you end up with a "frozen" computer, even though with patience
14052 # the test eventually succeeds (with a max line length of 256k).
14053 # Instead, let's just punt: use the minimum linelength reported by
14054 # all of the supported platforms: 8192 (on NT/2K/XP).
14055 lt_cv_sys_max_cmd_len=8192;
14058 amigaos*)
14059 # On AmigaOS with pdksh, this test takes hours, literally.
14060 # So we just punt and use a minimum line length of 8192.
14061 lt_cv_sys_max_cmd_len=8192;
14064 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14065 # This has been around since 386BSD, at least. Likely further.
14066 if test -x /sbin/sysctl; then
14067 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14068 elif test -x /usr/sbin/sysctl; then
14069 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14070 else
14071 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14073 # And add a safety zone
14074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14078 interix*)
14079 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14080 lt_cv_sys_max_cmd_len=196608
14083 osf*)
14084 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14085 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14086 # nice to cause kernel panics so lets avoid the loop below.
14087 # First set a reasonable default.
14088 lt_cv_sys_max_cmd_len=16384
14090 if test -x /sbin/sysconfig; then
14091 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14092 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14093 esac
14096 sco3.2v5*)
14097 lt_cv_sys_max_cmd_len=102400
14099 sysv5* | sco5v6* | sysv4.2uw2*)
14100 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14101 if test -n "$kargmax"; then
14102 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14103 else
14104 lt_cv_sys_max_cmd_len=32768
14108 # If test is not a shell built-in, we'll probably end up computing a
14109 # maximum length that is only half of the actual maximum length, but
14110 # we can't tell.
14111 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14112 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14113 = "XX$teststring") >/dev/null 2>&1 &&
14114 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14115 lt_cv_sys_max_cmd_len=$new_result &&
14116 test $i != 17 # 1/2 MB should be enough
14118 i=`expr $i + 1`
14119 teststring=$teststring$teststring
14120 done
14121 teststring=
14122 # Add a significant safety factor because C++ compilers can tack on massive
14123 # amounts of additional arguments before passing them to the linker.
14124 # It appears as though 1/2 is a usable value.
14125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14127 esac
14131 if test -n $lt_cv_sys_max_cmd_len ; then
14132 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14133 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14134 else
14135 { echo "$as_me:$LINENO: result: none" >&5
14136 echo "${ECHO_T}none" >&6; }
14142 # Check for command to grab the raw symbol name followed by C symbol from nm.
14143 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14144 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14145 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14149 # These are sane defaults that work on at least a few old systems.
14150 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14152 # Character class describing NM global symbol codes.
14153 symcode='[BCDEGRST]'
14155 # Regexp to match symbols that can be accessed directly from C.
14156 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14158 # Transform an extracted symbol line into a proper C declaration
14159 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14161 # Transform an extracted symbol line into symbol name and symbol address
14162 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'"
14164 # Define system-specific variables.
14165 case $host_os in
14166 aix*)
14167 symcode='[BCDT]'
14169 cygwin* | mingw* | pw32*)
14170 symcode='[ABCDGISTW]'
14172 hpux*) # Its linker distinguishes data from code symbols
14173 if test "$host_cpu" = ia64; then
14174 symcode='[ABCDEGRST]'
14176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14177 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'"
14179 linux*)
14180 if test "$host_cpu" = ia64; then
14181 symcode='[ABCDGIRSTW]'
14182 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14183 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'"
14186 irix* | nonstopux*)
14187 symcode='[BCDEGRST]'
14189 osf*)
14190 symcode='[BCDEGQRST]'
14192 solaris*)
14193 symcode='[BDRT]'
14195 sco3.2v5*)
14196 symcode='[DT]'
14198 sysv4.2uw2*)
14199 symcode='[DT]'
14201 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14202 symcode='[ABDT]'
14204 sysv4)
14205 symcode='[DFNSTU]'
14207 esac
14209 # Handle CRLF in mingw tool chain
14210 opt_cr=
14211 case $build_os in
14212 mingw*)
14213 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14215 esac
14217 # If we're using GNU nm, then use its standard symbol codes.
14218 case `$NM -V 2>&1` in
14219 *GNU* | *'with BFD'*)
14220 symcode='[ABCDGIRSTW]' ;;
14221 esac
14223 # Try without a prefix undercore, then with it.
14224 for ac_symprfx in "" "_"; do
14226 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14227 symxfrm="\\1 $ac_symprfx\\2 \\2"
14229 # Write the raw and C identifiers.
14230 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14232 # Check to see that the pipe works correctly.
14233 pipe_works=no
14235 rm -f conftest*
14236 cat > conftest.$ac_ext <<EOF
14237 #ifdef __cplusplus
14238 extern "C" {
14239 #endif
14240 char nm_test_var;
14241 void nm_test_func(){}
14242 #ifdef __cplusplus
14244 #endif
14245 int main(){nm_test_var='a';nm_test_func();return(0);}
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249 (eval $ac_compile) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; then
14253 # Now try to grab the symbols.
14254 nlist=conftest.nm
14255 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14256 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } && test -s "$nlist"; then
14260 # Try sorting and uniquifying the output.
14261 if sort "$nlist" | uniq > "$nlist"T; then
14262 mv -f "$nlist"T "$nlist"
14263 else
14264 rm -f "$nlist"T
14267 # Make sure that we snagged all the symbols we need.
14268 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14269 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14270 cat <<EOF > conftest.$ac_ext
14271 #ifdef __cplusplus
14272 extern "C" {
14273 #endif
14276 # Now generate the symbol file.
14277 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14279 cat <<EOF >> conftest.$ac_ext
14280 #if defined (__STDC__) && __STDC__
14281 # define lt_ptr_t void *
14282 #else
14283 # define lt_ptr_t char *
14284 # define const
14285 #endif
14287 /* The mapping between symbol names and symbols. */
14288 const struct {
14289 const char *name;
14290 lt_ptr_t address;
14292 lt_preloaded_symbols[] =
14295 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14296 cat <<\EOF >> conftest.$ac_ext
14297 {0, (lt_ptr_t) 0}
14300 #ifdef __cplusplus
14302 #endif
14304 # Now try linking the two files.
14305 mv conftest.$ac_objext conftstm.$ac_objext
14306 lt_save_LIBS="$LIBS"
14307 lt_save_CFLAGS="$CFLAGS"
14308 LIBS="conftstm.$ac_objext"
14309 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14315 pipe_works=yes
14317 LIBS="$lt_save_LIBS"
14318 CFLAGS="$lt_save_CFLAGS"
14319 else
14320 echo "cannot find nm_test_func in $nlist" >&5
14322 else
14323 echo "cannot find nm_test_var in $nlist" >&5
14325 else
14326 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14328 else
14329 echo "$progname: failed program was:" >&5
14330 cat conftest.$ac_ext >&5
14332 rm -f conftest* conftst*
14334 # Do not use the global_symbol_pipe unless it works.
14335 if test "$pipe_works" = yes; then
14336 break
14337 else
14338 lt_cv_sys_global_symbol_pipe=
14340 done
14344 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14345 lt_cv_sys_global_symbol_to_cdecl=
14347 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14348 { echo "$as_me:$LINENO: result: failed" >&5
14349 echo "${ECHO_T}failed" >&6; }
14350 else
14351 { echo "$as_me:$LINENO: result: ok" >&5
14352 echo "${ECHO_T}ok" >&6; }
14355 { echo "$as_me:$LINENO: checking for objdir" >&5
14356 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14357 if test "${lt_cv_objdir+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360 rm -f .libs 2>/dev/null
14361 mkdir .libs 2>/dev/null
14362 if test -d .libs; then
14363 lt_cv_objdir=.libs
14364 else
14365 # MS-DOS does not allow filenames that begin with a dot.
14366 lt_cv_objdir=_libs
14368 rmdir .libs 2>/dev/null
14370 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14371 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14372 objdir=$lt_cv_objdir
14378 case $host_os in
14379 aix3*)
14380 # AIX sometimes has problems with the GCC collect2 program. For some
14381 # reason, if we set the COLLECT_NAMES environment variable, the problems
14382 # vanish in a puff of smoke.
14383 if test "X${COLLECT_NAMES+set}" != Xset; then
14384 COLLECT_NAMES=
14385 export COLLECT_NAMES
14388 esac
14390 # Sed substitution that helps us do robust quoting. It backslashifies
14391 # metacharacters that are still active within double-quoted strings.
14392 Xsed='sed -e 1s/^X//'
14393 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14395 # Same as above, but do not quote variable references.
14396 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14398 # Sed substitution to delay expansion of an escaped shell variable in a
14399 # double_quote_subst'ed string.
14400 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14402 # Sed substitution to avoid accidental globbing in evaled expressions
14403 no_glob_subst='s/\*/\\\*/g'
14405 # Constants:
14406 rm="rm -f"
14408 # Global variables:
14409 default_ofile=mklib
14410 can_build_shared=yes
14412 # All known linkers require a `.a' archive for static linking (except MSVC,
14413 # which needs '.lib').
14414 libext=a
14415 ltmain="$ac_aux_dir/ltmain.sh"
14416 ofile="$default_ofile"
14417 with_gnu_ld="$lt_cv_prog_gnu_ld"
14419 if test -n "$ac_tool_prefix"; then
14420 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14421 set dummy ${ac_tool_prefix}ar; ac_word=$2
14422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14424 if test "${ac_cv_prog_AR+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427 if test -n "$AR"; then
14428 ac_cv_prog_AR="$AR" # Let the user override the test.
14429 else
14430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14431 for as_dir in $PATH
14433 IFS=$as_save_IFS
14434 test -z "$as_dir" && as_dir=.
14435 for ac_exec_ext in '' $ac_executable_extensions; do
14436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14437 ac_cv_prog_AR="${ac_tool_prefix}ar"
14438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14439 break 2
14441 done
14442 done
14443 IFS=$as_save_IFS
14447 AR=$ac_cv_prog_AR
14448 if test -n "$AR"; then
14449 { echo "$as_me:$LINENO: result: $AR" >&5
14450 echo "${ECHO_T}$AR" >&6; }
14451 else
14452 { echo "$as_me:$LINENO: result: no" >&5
14453 echo "${ECHO_T}no" >&6; }
14458 if test -z "$ac_cv_prog_AR"; then
14459 ac_ct_AR=$AR
14460 # Extract the first word of "ar", so it can be a program name with args.
14461 set dummy ar; ac_word=$2
14462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14464 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467 if test -n "$ac_ct_AR"; then
14468 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14469 else
14470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471 for as_dir in $PATH
14473 IFS=$as_save_IFS
14474 test -z "$as_dir" && as_dir=.
14475 for ac_exec_ext in '' $ac_executable_extensions; do
14476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14477 ac_cv_prog_ac_ct_AR="ar"
14478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14479 break 2
14481 done
14482 done
14483 IFS=$as_save_IFS
14487 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14488 if test -n "$ac_ct_AR"; then
14489 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14490 echo "${ECHO_T}$ac_ct_AR" >&6; }
14491 else
14492 { echo "$as_me:$LINENO: result: no" >&5
14493 echo "${ECHO_T}no" >&6; }
14496 if test "x$ac_ct_AR" = x; then
14497 AR="false"
14498 else
14499 case $cross_compiling:$ac_tool_warned in
14500 yes:)
14501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14502 whose name does not start with the host triplet. If you think this
14503 configuration is useful to you, please write to autoconf@gnu.org." >&5
14504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14505 whose name does not start with the host triplet. If you think this
14506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14507 ac_tool_warned=yes ;;
14508 esac
14509 AR=$ac_ct_AR
14511 else
14512 AR="$ac_cv_prog_AR"
14515 if test -n "$ac_tool_prefix"; then
14516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14520 if test "${ac_cv_prog_RANLIB+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 if test -n "$RANLIB"; then
14524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14525 else
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14529 IFS=$as_save_IFS
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
14532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14535 break 2
14537 done
14538 done
14539 IFS=$as_save_IFS
14543 RANLIB=$ac_cv_prog_RANLIB
14544 if test -n "$RANLIB"; then
14545 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14546 echo "${ECHO_T}$RANLIB" >&6; }
14547 else
14548 { echo "$as_me:$LINENO: result: no" >&5
14549 echo "${ECHO_T}no" >&6; }
14554 if test -z "$ac_cv_prog_RANLIB"; then
14555 ac_ct_RANLIB=$RANLIB
14556 # Extract the first word of "ranlib", so it can be a program name with args.
14557 set dummy ranlib; ac_word=$2
14558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563 if test -n "$ac_ct_RANLIB"; then
14564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14565 else
14566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567 for as_dir in $PATH
14569 IFS=$as_save_IFS
14570 test -z "$as_dir" && as_dir=.
14571 for ac_exec_ext in '' $ac_executable_extensions; do
14572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14573 ac_cv_prog_ac_ct_RANLIB="ranlib"
14574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14575 break 2
14577 done
14578 done
14579 IFS=$as_save_IFS
14583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14584 if test -n "$ac_ct_RANLIB"; then
14585 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14586 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14587 else
14588 { echo "$as_me:$LINENO: result: no" >&5
14589 echo "${ECHO_T}no" >&6; }
14592 if test "x$ac_ct_RANLIB" = x; then
14593 RANLIB=":"
14594 else
14595 case $cross_compiling:$ac_tool_warned in
14596 yes:)
14597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14598 whose name does not start with the host triplet. If you think this
14599 configuration is useful to you, please write to autoconf@gnu.org." >&5
14600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14601 whose name does not start with the host triplet. If you think this
14602 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14603 ac_tool_warned=yes ;;
14604 esac
14605 RANLIB=$ac_ct_RANLIB
14607 else
14608 RANLIB="$ac_cv_prog_RANLIB"
14611 if test -n "$ac_tool_prefix"; then
14612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14613 set dummy ${ac_tool_prefix}strip; ac_word=$2
14614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14616 if test "${ac_cv_prog_STRIP+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619 if test -n "$STRIP"; then
14620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14621 else
14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14625 IFS=$as_save_IFS
14626 test -z "$as_dir" && as_dir=.
14627 for ac_exec_ext in '' $ac_executable_extensions; do
14628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14631 break 2
14633 done
14634 done
14635 IFS=$as_save_IFS
14639 STRIP=$ac_cv_prog_STRIP
14640 if test -n "$STRIP"; then
14641 { echo "$as_me:$LINENO: result: $STRIP" >&5
14642 echo "${ECHO_T}$STRIP" >&6; }
14643 else
14644 { echo "$as_me:$LINENO: result: no" >&5
14645 echo "${ECHO_T}no" >&6; }
14650 if test -z "$ac_cv_prog_STRIP"; then
14651 ac_ct_STRIP=$STRIP
14652 # Extract the first word of "strip", so it can be a program name with args.
14653 set dummy strip; ac_word=$2
14654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14656 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 else
14659 if test -n "$ac_ct_STRIP"; then
14660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14661 else
14662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663 for as_dir in $PATH
14665 IFS=$as_save_IFS
14666 test -z "$as_dir" && as_dir=.
14667 for ac_exec_ext in '' $ac_executable_extensions; do
14668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14669 ac_cv_prog_ac_ct_STRIP="strip"
14670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14671 break 2
14673 done
14674 done
14675 IFS=$as_save_IFS
14679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14680 if test -n "$ac_ct_STRIP"; then
14681 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14682 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14683 else
14684 { echo "$as_me:$LINENO: result: no" >&5
14685 echo "${ECHO_T}no" >&6; }
14688 if test "x$ac_ct_STRIP" = x; then
14689 STRIP=":"
14690 else
14691 case $cross_compiling:$ac_tool_warned in
14692 yes:)
14693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14694 whose name does not start with the host triplet. If you think this
14695 configuration is useful to you, please write to autoconf@gnu.org." >&5
14696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14697 whose name does not start with the host triplet. If you think this
14698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14699 ac_tool_warned=yes ;;
14700 esac
14701 STRIP=$ac_ct_STRIP
14703 else
14704 STRIP="$ac_cv_prog_STRIP"
14708 old_CC="$CC"
14709 old_CFLAGS="$CFLAGS"
14711 # Set sane defaults for various variables
14712 test -z "$AR" && AR=ar
14713 test -z "$AR_FLAGS" && AR_FLAGS=cru
14714 test -z "$AS" && AS=as
14715 test -z "$CC" && CC=cc
14716 test -z "$LTCC" && LTCC=$CC
14717 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14718 test -z "$DLLTOOL" && DLLTOOL=dlltool
14719 test -z "$LD" && LD=ld
14720 test -z "$LN_S" && LN_S="ln -s"
14721 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14722 test -z "$NM" && NM=nm
14723 test -z "$SED" && SED=sed
14724 test -z "$OBJDUMP" && OBJDUMP=objdump
14725 test -z "$RANLIB" && RANLIB=:
14726 test -z "$STRIP" && STRIP=:
14727 test -z "$ac_objext" && ac_objext=o
14729 # Determine commands to create old-style static archives.
14730 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14731 old_postinstall_cmds='chmod 644 $oldlib'
14732 old_postuninstall_cmds=
14734 if test -n "$RANLIB"; then
14735 case $host_os in
14736 openbsd*)
14737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14740 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14742 esac
14743 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14746 for cc_temp in $compiler""; do
14747 case $cc_temp in
14748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14750 \-*) ;;
14751 *) break;;
14752 esac
14753 done
14754 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14757 # Only perform the check for file, if the check method requires it
14758 case $deplibs_check_method in
14759 file_magic*)
14760 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14761 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14762 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766 case $MAGIC_CMD in
14767 [\\/*] | ?:[\\/]*)
14768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14771 lt_save_MAGIC_CMD="$MAGIC_CMD"
14772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14774 for ac_dir in $ac_dummy; do
14775 IFS="$lt_save_ifs"
14776 test -z "$ac_dir" && ac_dir=.
14777 if test -f $ac_dir/${ac_tool_prefix}file; then
14778 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14779 if test -n "$file_magic_test_file"; then
14780 case $deplibs_check_method in
14781 "file_magic "*)
14782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14785 $EGREP "$file_magic_regex" > /dev/null; then
14787 else
14788 cat <<EOF 1>&2
14790 *** Warning: the command libtool uses to detect shared libraries,
14791 *** $file_magic_cmd, produces output that libtool cannot recognize.
14792 *** The result is that libtool may fail to recognize shared libraries
14793 *** as such. This will affect the creation of libtool libraries that
14794 *** depend on shared libraries, but programs linked with such libtool
14795 *** libraries will work regardless of this problem. Nevertheless, you
14796 *** may want to report the problem to your system manager and/or to
14797 *** bug-libtool@gnu.org
14800 fi ;;
14801 esac
14803 break
14805 done
14806 IFS="$lt_save_ifs"
14807 MAGIC_CMD="$lt_save_MAGIC_CMD"
14809 esac
14812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813 if test -n "$MAGIC_CMD"; then
14814 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14815 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14816 else
14817 { echo "$as_me:$LINENO: result: no" >&5
14818 echo "${ECHO_T}no" >&6; }
14821 if test -z "$lt_cv_path_MAGIC_CMD"; then
14822 if test -n "$ac_tool_prefix"; then
14823 { echo "$as_me:$LINENO: checking for file" >&5
14824 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14825 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 else
14828 case $MAGIC_CMD in
14829 [\\/*] | ?:[\\/]*)
14830 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14833 lt_save_MAGIC_CMD="$MAGIC_CMD"
14834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14835 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14836 for ac_dir in $ac_dummy; do
14837 IFS="$lt_save_ifs"
14838 test -z "$ac_dir" && ac_dir=.
14839 if test -f $ac_dir/file; then
14840 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14841 if test -n "$file_magic_test_file"; then
14842 case $deplibs_check_method in
14843 "file_magic "*)
14844 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14846 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14847 $EGREP "$file_magic_regex" > /dev/null; then
14849 else
14850 cat <<EOF 1>&2
14852 *** Warning: the command libtool uses to detect shared libraries,
14853 *** $file_magic_cmd, produces output that libtool cannot recognize.
14854 *** The result is that libtool may fail to recognize shared libraries
14855 *** as such. This will affect the creation of libtool libraries that
14856 *** depend on shared libraries, but programs linked with such libtool
14857 *** libraries will work regardless of this problem. Nevertheless, you
14858 *** may want to report the problem to your system manager and/or to
14859 *** bug-libtool@gnu.org
14862 fi ;;
14863 esac
14865 break
14867 done
14868 IFS="$lt_save_ifs"
14869 MAGIC_CMD="$lt_save_MAGIC_CMD"
14871 esac
14874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14875 if test -n "$MAGIC_CMD"; then
14876 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14877 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14878 else
14879 { echo "$as_me:$LINENO: result: no" >&5
14880 echo "${ECHO_T}no" >&6; }
14883 else
14884 MAGIC_CMD=:
14890 esac
14892 enable_dlopen=yes
14893 enable_win32_dll=no
14895 # Check whether --enable-libtool-lock was given.
14896 if test "${enable_libtool_lock+set}" = set; then
14897 enableval=$enable_libtool_lock;
14900 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14903 # Check whether --with-pic was given.
14904 if test "${with_pic+set}" = set; then
14905 withval=$with_pic; pic_mode="$withval"
14906 else
14907 pic_mode=default
14910 test -z "$pic_mode" && pic_mode=default
14912 # Use C for the default configuration in the libtool script
14913 tagname=
14914 lt_save_CC="$CC"
14915 ac_ext=c
14916 ac_cpp='$CPP $CPPFLAGS'
14917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14922 # Source file extension for C test sources.
14923 ac_ext=c
14925 # Object file extension for compiled C test sources.
14926 objext=o
14927 objext=$objext
14929 # Code to be used in simple compile tests
14930 lt_simple_compile_test_code="int some_variable = 0;\n"
14932 # Code to be used in simple link tests
14933 lt_simple_link_test_code='int main(){return(0);}\n'
14936 # If no C compiler was specified, use CC.
14937 LTCC=${LTCC-"$CC"}
14939 # If no C compiler flags were specified, use CFLAGS.
14940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14942 # Allow CC to be a program name with arguments.
14943 compiler=$CC
14946 # save warnings/boilerplate of simple test code
14947 ac_outfile=conftest.$ac_objext
14948 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14949 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14950 _lt_compiler_boilerplate=`cat conftest.err`
14951 $rm conftest*
14953 ac_outfile=conftest.$ac_objext
14954 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14955 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14956 _lt_linker_boilerplate=`cat conftest.err`
14957 $rm conftest*
14961 lt_prog_compiler_no_builtin_flag=
14963 if test "$GCC" = yes; then
14964 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14967 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14968 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14969 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 else
14972 lt_cv_prog_compiler_rtti_exceptions=no
14973 ac_outfile=conftest.$ac_objext
14974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14975 lt_compiler_flag="-fno-rtti -fno-exceptions"
14976 # Insert the option either (1) after the last *FLAGS variable, or
14977 # (2) before a word containing "conftest.", or (3) at the end.
14978 # Note that $ac_compile itself does not contain backslashes and begins
14979 # with a dollar sign (not a hyphen), so the echo should work correctly.
14980 # The option is referenced via a variable to avoid confusing sed.
14981 lt_compile=`echo "$ac_compile" | $SED \
14982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14984 -e 's:$: $lt_compiler_flag:'`
14985 (eval echo "\"\$as_me:14985: $lt_compile\"" >&5)
14986 (eval "$lt_compile" 2>conftest.err)
14987 ac_status=$?
14988 cat conftest.err >&5
14989 echo "$as_me:14989: \$? = $ac_status" >&5
14990 if (exit $ac_status) && test -s "$ac_outfile"; then
14991 # The compiler can only warn and ignore the option if not recognized
14992 # So say no if there are warnings other than the usual output.
14993 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14996 lt_cv_prog_compiler_rtti_exceptions=yes
14999 $rm conftest*
15002 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15003 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15006 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15007 else
15013 lt_prog_compiler_wl=
15014 lt_prog_compiler_pic=
15015 lt_prog_compiler_static=
15017 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15018 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15020 if test "$GCC" = yes; then
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_static='-static'
15024 case $host_os in
15025 aix*)
15026 # All AIX code is PIC.
15027 if test "$host_cpu" = ia64; then
15028 # AIX 5 now supports IA64 processor
15029 lt_prog_compiler_static='-Bstatic'
15033 amigaos*)
15034 # FIXME: we need at least 68020 code to build shared libraries, but
15035 # adding the `-m68020' flag to GCC prevents building anything better,
15036 # like `-m68040'.
15037 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15040 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15041 # PIC is the default for these OSes.
15044 mingw* | pw32* | os2*)
15045 # This hack is so that the source file can tell whether it is being
15046 # built for inclusion in a dll (and should export symbols for example).
15047 lt_prog_compiler_pic='-DDLL_EXPORT'
15050 darwin* | rhapsody*)
15051 # PIC is the default on this platform
15052 # Common symbols not allowed in MH_DYLIB files
15053 lt_prog_compiler_pic='-fno-common'
15056 interix3*)
15057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15058 # Instead, we relocate shared libraries at runtime.
15061 msdosdjgpp*)
15062 # Just because we use GCC doesn't mean we suddenly get shared libraries
15063 # on systems that don't support them.
15064 lt_prog_compiler_can_build_shared=no
15065 enable_shared=no
15068 sysv4*MP*)
15069 if test -d /usr/nec; then
15070 lt_prog_compiler_pic=-Kconform_pic
15074 hpux*)
15075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15076 # not for PA HP-UX.
15077 case $host_cpu in
15078 hppa*64*|ia64*)
15079 # +Z the default
15082 lt_prog_compiler_pic='-fPIC'
15084 esac
15088 lt_prog_compiler_pic='-fPIC'
15090 esac
15091 else
15092 # PORTME Check for flag to pass linker flags through the system compiler.
15093 case $host_os in
15094 aix*)
15095 lt_prog_compiler_wl='-Wl,'
15096 if test "$host_cpu" = ia64; then
15097 # AIX 5 now supports IA64 processor
15098 lt_prog_compiler_static='-Bstatic'
15099 else
15100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15103 darwin*)
15104 # PIC is the default on this platform
15105 # Common symbols not allowed in MH_DYLIB files
15106 case $cc_basename in
15107 xlc*)
15108 lt_prog_compiler_pic='-qnocommon'
15109 lt_prog_compiler_wl='-Wl,'
15111 esac
15114 mingw* | pw32* | os2*)
15115 # This hack is so that the source file can tell whether it is being
15116 # built for inclusion in a dll (and should export symbols for example).
15117 lt_prog_compiler_pic='-DDLL_EXPORT'
15120 hpux9* | hpux10* | hpux11*)
15121 lt_prog_compiler_wl='-Wl,'
15122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15123 # not for PA HP-UX.
15124 case $host_cpu in
15125 hppa*64*|ia64*)
15126 # +Z the default
15129 lt_prog_compiler_pic='+Z'
15131 esac
15132 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15133 lt_prog_compiler_static='${wl}-a ${wl}archive'
15136 irix5* | irix6* | nonstopux*)
15137 lt_prog_compiler_wl='-Wl,'
15138 # PIC (with -KPIC) is the default.
15139 lt_prog_compiler_static='-non_shared'
15142 newsos6)
15143 lt_prog_compiler_pic='-KPIC'
15144 lt_prog_compiler_static='-Bstatic'
15147 linux*)
15148 case $cc_basename in
15149 icc* | ecc*)
15150 lt_prog_compiler_wl='-Wl,'
15151 lt_prog_compiler_pic='-KPIC'
15152 lt_prog_compiler_static='-static'
15154 pgcc* | pgf77* | pgf90* | pgf95*)
15155 # Portland Group compilers (*not* the Pentium gcc compiler,
15156 # which looks to be a dead project)
15157 lt_prog_compiler_wl='-Wl,'
15158 lt_prog_compiler_pic='-fpic'
15159 lt_prog_compiler_static='-Bstatic'
15161 ccc*)
15162 lt_prog_compiler_wl='-Wl,'
15163 # All Alpha code is PIC.
15164 lt_prog_compiler_static='-non_shared'
15166 esac
15169 osf3* | osf4* | osf5*)
15170 lt_prog_compiler_wl='-Wl,'
15171 # All OSF/1 code is PIC.
15172 lt_prog_compiler_static='-non_shared'
15175 solaris*)
15176 lt_prog_compiler_pic='-KPIC'
15177 lt_prog_compiler_static='-Bstatic'
15178 case $cc_basename in
15179 f77* | f90* | f95*)
15180 lt_prog_compiler_wl='-Qoption ld ';;
15182 lt_prog_compiler_wl='-Wl,';;
15183 esac
15186 sunos4*)
15187 lt_prog_compiler_wl='-Qoption ld '
15188 lt_prog_compiler_pic='-PIC'
15189 lt_prog_compiler_static='-Bstatic'
15192 sysv4 | sysv4.2uw2* | sysv4.3*)
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_pic='-KPIC'
15195 lt_prog_compiler_static='-Bstatic'
15198 sysv4*MP*)
15199 if test -d /usr/nec ;then
15200 lt_prog_compiler_pic='-Kconform_pic'
15201 lt_prog_compiler_static='-Bstatic'
15205 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_pic='-KPIC'
15208 lt_prog_compiler_static='-Bstatic'
15211 unicos*)
15212 lt_prog_compiler_wl='-Wl,'
15213 lt_prog_compiler_can_build_shared=no
15216 uts4*)
15217 lt_prog_compiler_pic='-pic'
15218 lt_prog_compiler_static='-Bstatic'
15222 lt_prog_compiler_can_build_shared=no
15224 esac
15227 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15228 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15231 # Check to make sure the PIC flag actually works.
15233 if test -n "$lt_prog_compiler_pic"; then
15235 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15236 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15237 if test "${lt_prog_compiler_pic_works+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240 lt_prog_compiler_pic_works=no
15241 ac_outfile=conftest.$ac_objext
15242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15243 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15244 # Insert the option either (1) after the last *FLAGS variable, or
15245 # (2) before a word containing "conftest.", or (3) at the end.
15246 # Note that $ac_compile itself does not contain backslashes and begins
15247 # with a dollar sign (not a hyphen), so the echo should work correctly.
15248 # The option is referenced via a variable to avoid confusing sed.
15249 lt_compile=`echo "$ac_compile" | $SED \
15250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15252 -e 's:$: $lt_compiler_flag:'`
15253 (eval echo "\"\$as_me:15253: $lt_compile\"" >&5)
15254 (eval "$lt_compile" 2>conftest.err)
15255 ac_status=$?
15256 cat conftest.err >&5
15257 echo "$as_me:15257: \$? = $ac_status" >&5
15258 if (exit $ac_status) && test -s "$ac_outfile"; then
15259 # The compiler can only warn and ignore the option if not recognized
15260 # So say no if there are warnings other than the usual output.
15261 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15264 lt_prog_compiler_pic_works=yes
15267 $rm conftest*
15270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15271 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15273 if test x"$lt_prog_compiler_pic_works" = xyes; then
15274 case $lt_prog_compiler_pic in
15275 "" | " "*) ;;
15276 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15277 esac
15278 else
15279 lt_prog_compiler_pic=
15280 lt_prog_compiler_can_build_shared=no
15284 case $host_os in
15285 # For platforms which do not support PIC, -DPIC is meaningless:
15286 *djgpp*)
15287 lt_prog_compiler_pic=
15290 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15292 esac
15295 # Check to make sure the static flag actually works.
15297 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15298 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15299 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15300 if test "${lt_prog_compiler_static_works+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303 lt_prog_compiler_static_works=no
15304 save_LDFLAGS="$LDFLAGS"
15305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15306 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15308 # The linker can only warn and ignore the option if not recognized
15309 # So say no if there are warnings
15310 if test -s conftest.err; then
15311 # Append any errors to the config.log.
15312 cat conftest.err 1>&5
15313 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15315 if diff conftest.exp conftest.er2 >/dev/null; then
15316 lt_prog_compiler_static_works=yes
15318 else
15319 lt_prog_compiler_static_works=yes
15322 $rm conftest*
15323 LDFLAGS="$save_LDFLAGS"
15326 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15327 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15329 if test x"$lt_prog_compiler_static_works" = xyes; then
15331 else
15332 lt_prog_compiler_static=
15336 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15337 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15338 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341 lt_cv_prog_compiler_c_o=no
15342 $rm -r conftest 2>/dev/null
15343 mkdir conftest
15344 cd conftest
15345 mkdir out
15346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15348 lt_compiler_flag="-o out/conftest2.$ac_objext"
15349 # Insert the option either (1) after the last *FLAGS variable, or
15350 # (2) before a word containing "conftest.", or (3) at the end.
15351 # Note that $ac_compile itself does not contain backslashes and begins
15352 # with a dollar sign (not a hyphen), so the echo should work correctly.
15353 lt_compile=`echo "$ac_compile" | $SED \
15354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15356 -e 's:$: $lt_compiler_flag:'`
15357 (eval echo "\"\$as_me:15357: $lt_compile\"" >&5)
15358 (eval "$lt_compile" 2>out/conftest.err)
15359 ac_status=$?
15360 cat out/conftest.err >&5
15361 echo "$as_me:15361: \$? = $ac_status" >&5
15362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15363 then
15364 # The compiler can only warn and ignore the option if not recognized
15365 # So say no if there are warnings
15366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15369 lt_cv_prog_compiler_c_o=yes
15372 chmod u+w . 2>&5
15373 $rm conftest*
15374 # SGI C++ compiler will create directory out/ii_files/ for
15375 # template instantiation
15376 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15377 $rm out/* && rmdir out
15378 cd ..
15379 rmdir conftest
15380 $rm conftest*
15383 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15384 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15387 hard_links="nottested"
15388 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15389 # do not overwrite the value of need_locks provided by the user
15390 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15391 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15392 hard_links=yes
15393 $rm conftest*
15394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15395 touch conftest.a
15396 ln conftest.a conftest.b 2>&5 || hard_links=no
15397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15398 { echo "$as_me:$LINENO: result: $hard_links" >&5
15399 echo "${ECHO_T}$hard_links" >&6; }
15400 if test "$hard_links" = no; then
15401 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15402 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15403 need_locks=warn
15405 else
15406 need_locks=no
15409 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15410 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15412 runpath_var=
15413 allow_undefined_flag=
15414 enable_shared_with_static_runtimes=no
15415 archive_cmds=
15416 archive_expsym_cmds=
15417 old_archive_From_new_cmds=
15418 old_archive_from_expsyms_cmds=
15419 export_dynamic_flag_spec=
15420 whole_archive_flag_spec=
15421 thread_safe_flag_spec=
15422 hardcode_libdir_flag_spec=
15423 hardcode_libdir_flag_spec_ld=
15424 hardcode_libdir_separator=
15425 hardcode_direct=no
15426 hardcode_minus_L=no
15427 hardcode_shlibpath_var=unsupported
15428 link_all_deplibs=unknown
15429 hardcode_automatic=no
15430 module_cmds=
15431 module_expsym_cmds=
15432 always_export_symbols=no
15433 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15434 # include_expsyms should be a list of space-separated symbols to be *always*
15435 # included in the symbol list
15436 include_expsyms=
15437 # exclude_expsyms can be an extended regexp of symbols to exclude
15438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15440 # as well as any symbol that contains `d'.
15441 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15443 # platforms (ab)use it in PIC code, but their linkers get confused if
15444 # the symbol is explicitly referenced. Since portable code cannot
15445 # rely on this symbol name, it's probably fine to never include it in
15446 # preloaded symbol tables.
15447 extract_expsyms_cmds=
15448 # Just being paranoid about ensuring that cc_basename is set.
15449 for cc_temp in $compiler""; do
15450 case $cc_temp in
15451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15453 \-*) ;;
15454 *) break;;
15455 esac
15456 done
15457 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15459 case $host_os in
15460 cygwin* | mingw* | pw32*)
15461 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15462 # When not using gcc, we currently assume that we are using
15463 # Microsoft Visual C++.
15464 if test "$GCC" != yes; then
15465 with_gnu_ld=no
15468 interix*)
15469 # we just hope/assume this is gcc and not c89 (= MSVC++)
15470 with_gnu_ld=yes
15472 openbsd*)
15473 with_gnu_ld=no
15475 esac
15477 ld_shlibs=yes
15478 if test "$with_gnu_ld" = yes; then
15479 # If archive_cmds runs LD, not CC, wlarc should be empty
15480 wlarc='${wl}'
15482 # Set some defaults for GNU ld with shared library support. These
15483 # are reset later if shared libraries are not supported. Putting them
15484 # here allows them to be overridden if necessary.
15485 runpath_var=LD_RUN_PATH
15486 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15487 export_dynamic_flag_spec='${wl}--export-dynamic'
15488 # ancient GNU ld didn't support --whole-archive et. al.
15489 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15490 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15491 else
15492 whole_archive_flag_spec=
15494 supports_anon_versioning=no
15495 case `$LD -v 2>/dev/null` in
15496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15499 *\ 2.11.*) ;; # other 2.11 versions
15500 *) supports_anon_versioning=yes ;;
15501 esac
15503 # See if GNU ld supports shared libraries.
15504 case $host_os in
15505 aix3* | aix4* | aix5*)
15506 # On AIX/PPC, the GNU linker is very broken
15507 if test "$host_cpu" != ia64; then
15508 ld_shlibs=no
15509 cat <<EOF 1>&2
15511 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15512 *** to be unable to reliably create shared libraries on AIX.
15513 *** Therefore, libtool is disabling shared libraries support. If you
15514 *** really care for shared libraries, you may want to modify your PATH
15515 *** so that a non-GNU linker is found, and then restart.
15521 amigaos*)
15522 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)'
15523 hardcode_libdir_flag_spec='-L$libdir'
15524 hardcode_minus_L=yes
15526 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15527 # that the semantics of dynamic libraries on AmigaOS, at least up
15528 # to version 4, is to share data among multiple programs linked
15529 # with the same dynamic library. Since this doesn't match the
15530 # behavior of shared libraries on other platforms, we can't use
15531 # them.
15532 ld_shlibs=no
15535 beos*)
15536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537 allow_undefined_flag=unsupported
15538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15539 # support --undefined. This deserves some investigation. FIXME
15540 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541 else
15542 ld_shlibs=no
15546 cygwin* | mingw* | pw32*)
15547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15548 # as there is no search path for DLLs.
15549 hardcode_libdir_flag_spec='-L$libdir'
15550 allow_undefined_flag=unsupported
15551 always_export_symbols=no
15552 enable_shared_with_static_runtimes=yes
15553 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15555 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15557 # If the export-symbols file already is a .def file (1st line
15558 # is EXPORTS), use it as is; otherwise, prepend...
15559 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15560 cp $export_symbols $output_objdir/$soname.def;
15561 else
15562 echo EXPORTS > $output_objdir/$soname.def;
15563 cat $export_symbols >> $output_objdir/$soname.def;
15565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15566 else
15567 ld_shlibs=no
15571 interix3*)
15572 hardcode_direct=no
15573 hardcode_shlibpath_var=no
15574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15575 export_dynamic_flag_spec='${wl}-E'
15576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15577 # Instead, shared libraries are loaded at an image base (0x10000000 by
15578 # default) and relocated if they conflict, which is a slow very memory
15579 # consuming and fragmenting process. To avoid this, we pick a random,
15580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15583 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'
15586 linux*)
15587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15588 tmp_addflag=
15589 case $cc_basename,$host_cpu in
15590 pgcc*) # Portland Group C compiler
15591 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'
15592 tmp_addflag=' $pic_flag'
15594 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15595 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'
15596 tmp_addflag=' $pic_flag -Mnomain' ;;
15597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15598 tmp_addflag=' -i_dynamic' ;;
15599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15600 tmp_addflag=' -i_dynamic -nofor_main' ;;
15601 ifc* | ifort*) # Intel Fortran compiler
15602 tmp_addflag=' -nofor_main' ;;
15603 esac
15604 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15606 if test $supports_anon_versioning = yes; then
15607 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15609 $echo "local: *; };" >> $output_objdir/$libname.ver~
15610 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15612 else
15613 ld_shlibs=no
15617 netbsd*)
15618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15619 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15620 wlarc=
15621 else
15622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15623 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15627 solaris*)
15628 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15629 ld_shlibs=no
15630 cat <<EOF 1>&2
15632 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15633 *** create shared libraries on Solaris systems. Therefore, libtool
15634 *** is disabling shared libraries support. We urge you to upgrade GNU
15635 *** binutils to release 2.9.1 or newer. Another option is to modify
15636 *** your PATH or compiler configuration so that the native linker is
15637 *** used, and then restart.
15640 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15643 else
15644 ld_shlibs=no
15648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15649 case `$LD -v 2>&1` in
15650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15651 ld_shlibs=no
15652 cat <<_LT_EOF 1>&2
15654 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15655 *** reliably create shared libraries on SCO systems. Therefore, libtool
15656 *** is disabling shared libraries support. We urge you to upgrade GNU
15657 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15658 *** your PATH or compiler configuration so that the native linker is
15659 *** used, and then restart.
15661 _LT_EOF
15664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15665 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15668 else
15669 ld_shlibs=no
15672 esac
15675 sunos4*)
15676 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15677 wlarc=
15678 hardcode_direct=yes
15679 hardcode_shlibpath_var=no
15683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15686 else
15687 ld_shlibs=no
15690 esac
15692 if test "$ld_shlibs" = no; then
15693 runpath_var=
15694 hardcode_libdir_flag_spec=
15695 export_dynamic_flag_spec=
15696 whole_archive_flag_spec=
15698 else
15699 # PORTME fill in a description of your system's linker (not GNU ld)
15700 case $host_os in
15701 aix3*)
15702 allow_undefined_flag=unsupported
15703 always_export_symbols=yes
15704 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'
15705 # Note: this linker hardcodes the directories in LIBPATH if there
15706 # are no directories specified by -L.
15707 hardcode_minus_L=yes
15708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15709 # Neither direct hardcoding nor static linking is supported with a
15710 # broken collect2.
15711 hardcode_direct=unsupported
15715 aix4* | aix5*)
15716 if test "$host_cpu" = ia64; then
15717 # On IA64, the linker does run time linking by default, so we don't
15718 # have to do anything special.
15719 aix_use_runtimelinking=no
15720 exp_sym_flag='-Bexport'
15721 no_entry_flag=""
15722 else
15723 # If we're using GNU nm, then we don't want the "-C" option.
15724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15726 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'
15727 else
15728 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'
15730 aix_use_runtimelinking=no
15732 # Test if we are trying to use run time linking or normal
15733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15734 # need to do runtime linking.
15735 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15736 for ld_flag in $LDFLAGS; do
15737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15738 aix_use_runtimelinking=yes
15739 break
15741 done
15743 esac
15745 exp_sym_flag='-bexport'
15746 no_entry_flag='-bnoentry'
15749 # When large executables or shared objects are built, AIX ld can
15750 # have problems creating the table of contents. If linking a library
15751 # or program results in "error TOC overflow" add -mminimal-toc to
15752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15755 archive_cmds=''
15756 hardcode_direct=yes
15757 hardcode_libdir_separator=':'
15758 link_all_deplibs=yes
15760 if test "$GCC" = yes; then
15761 case $host_os in aix4.[012]|aix4.[012].*)
15762 # We only want to do this on AIX 4.2 and lower, the check
15763 # below for broken collect2 doesn't work under 4.3+
15764 collect2name=`${CC} -print-prog-name=collect2`
15765 if test -f "$collect2name" && \
15766 strings "$collect2name" | grep resolve_lib_name >/dev/null
15767 then
15768 # We have reworked collect2
15769 hardcode_direct=yes
15770 else
15771 # We have old collect2
15772 hardcode_direct=unsupported
15773 # It fails to find uninstalled libraries when the uninstalled
15774 # path is not listed in the libpath. Setting hardcode_minus_L
15775 # to unsupported forces relinking
15776 hardcode_minus_L=yes
15777 hardcode_libdir_flag_spec='-L$libdir'
15778 hardcode_libdir_separator=
15781 esac
15782 shared_flag='-shared'
15783 if test "$aix_use_runtimelinking" = yes; then
15784 shared_flag="$shared_flag "'${wl}-G'
15786 else
15787 # not using gcc
15788 if test "$host_cpu" = ia64; then
15789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15790 # chokes on -Wl,-G. The following line is correct:
15791 shared_flag='-G'
15792 else
15793 if test "$aix_use_runtimelinking" = yes; then
15794 shared_flag='${wl}-G'
15795 else
15796 shared_flag='${wl}-bM:SRE'
15801 # It seems that -bexpall does not export symbols beginning with
15802 # underscore (_), so it is better to generate a list of symbols to export.
15803 always_export_symbols=yes
15804 if test "$aix_use_runtimelinking" = yes; then
15805 # Warning - without using the other runtime loading flags (-brtl),
15806 # -berok will link without error, but may produce a broken library.
15807 allow_undefined_flag='-berok'
15808 # Determine the default libpath from the value encoded in an empty executable.
15809 cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h. */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15817 main ()
15821 return 0;
15823 _ACEOF
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_link") 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15839 { (case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_try") 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
15849 { (case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15852 esac
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_try") 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15861 # Check for a 64-bit object if we didn't find anything.
15862 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; }
15863 }'`; fi
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15871 rm -f core conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15875 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15876 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"
15877 else
15878 if test "$host_cpu" = ia64; then
15879 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15880 allow_undefined_flag="-z nodefs"
15881 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"
15882 else
15883 # Determine the default libpath from the value encoded in an empty executable.
15884 cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h. */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15892 main ()
15896 return 0;
15898 _ACEOF
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (ac_try="$ac_link"
15901 case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904 esac
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_link") 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15914 { (case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_try") 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_try") 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15936 # Check for a 64-bit object if we didn't find anything.
15937 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; }
15938 }'`; fi
15939 else
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15946 rm -f core conftest.err conftest.$ac_objext \
15947 conftest$ac_exeext conftest.$ac_ext
15948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15950 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15951 # Warning - without using the other run time loading flags,
15952 # -berok will link without error, but may produce a broken library.
15953 no_undefined_flag=' ${wl}-bernotok'
15954 allow_undefined_flag=' ${wl}-berok'
15955 # Exported symbols can be pulled into shared objects from archives
15956 whole_archive_flag_spec='$convenience'
15957 archive_cmds_need_lc=yes
15958 # This is similar to how AIX traditionally builds its shared libraries.
15959 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'
15964 amigaos*)
15965 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)'
15966 hardcode_libdir_flag_spec='-L$libdir'
15967 hardcode_minus_L=yes
15968 # see comment about different semantics on the GNU ld section
15969 ld_shlibs=no
15972 bsdi[45]*)
15973 export_dynamic_flag_spec=-rdynamic
15976 cygwin* | mingw* | pw32*)
15977 # When not using gcc, we currently assume that we are using
15978 # Microsoft Visual C++.
15979 # hardcode_libdir_flag_spec is actually meaningless, as there is
15980 # no search path for DLLs.
15981 hardcode_libdir_flag_spec=' '
15982 allow_undefined_flag=unsupported
15983 # Tell ltmain to make .lib files, not .a files.
15984 libext=lib
15985 # Tell ltmain to make .dll files, not .so files.
15986 shrext_cmds=".dll"
15987 # FIXME: Setting linknames here is a bad hack.
15988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15989 # The linker will automatically build a .lib file if we build a DLL.
15990 old_archive_From_new_cmds='true'
15991 # FIXME: Should let the user specify the lib program.
15992 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15993 fix_srcfile_path='`cygpath -w "$srcfile"`'
15994 enable_shared_with_static_runtimes=yes
15997 darwin* | rhapsody*)
15998 case $host_os in
15999 rhapsody* | darwin1.[012])
16000 allow_undefined_flag='${wl}-undefined ${wl}suppress'
16002 *) # Darwin 1.3 on
16003 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16004 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16005 else
16006 case ${MACOSX_DEPLOYMENT_TARGET} in
16007 10.[012])
16008 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16010 10.*)
16011 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16013 esac
16016 esac
16017 archive_cmds_need_lc=no
16018 hardcode_direct=no
16019 hardcode_automatic=yes
16020 hardcode_shlibpath_var=unsupported
16021 whole_archive_flag_spec=''
16022 link_all_deplibs=yes
16023 if test "$GCC" = yes ; then
16024 output_verbose_link_cmd='echo'
16025 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16026 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16027 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16028 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}'
16029 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}'
16030 else
16031 case $cc_basename in
16032 xlc*)
16033 output_verbose_link_cmd='echo'
16034 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16035 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16037 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}'
16038 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}'
16041 ld_shlibs=no
16043 esac
16047 dgux*)
16048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 hardcode_libdir_flag_spec='-L$libdir'
16050 hardcode_shlibpath_var=no
16053 freebsd1*)
16054 ld_shlibs=no
16057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16058 # support. Future versions do this automatically, but an explicit c++rt0.o
16059 # does not break anything, and helps significantly (at the cost of a little
16060 # extra space).
16061 freebsd2.2*)
16062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16063 hardcode_libdir_flag_spec='-R$libdir'
16064 hardcode_direct=yes
16065 hardcode_shlibpath_var=no
16068 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16069 freebsd2*)
16070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16071 hardcode_direct=yes
16072 hardcode_minus_L=yes
16073 hardcode_shlibpath_var=no
16076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16077 freebsd* | kfreebsd*-gnu | dragonfly*)
16078 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16079 hardcode_libdir_flag_spec='-R$libdir'
16080 hardcode_direct=yes
16081 hardcode_shlibpath_var=no
16084 hpux9*)
16085 if test "$GCC" = yes; then
16086 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'
16087 else
16088 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'
16090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16091 hardcode_libdir_separator=:
16092 hardcode_direct=yes
16094 # hardcode_minus_L: Not really in the search PATH,
16095 # but as the default location of the library.
16096 hardcode_minus_L=yes
16097 export_dynamic_flag_spec='${wl}-E'
16100 hpux10*)
16101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16102 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16103 else
16104 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16106 if test "$with_gnu_ld" = no; then
16107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16108 hardcode_libdir_separator=:
16110 hardcode_direct=yes
16111 export_dynamic_flag_spec='${wl}-E'
16113 # hardcode_minus_L: Not really in the search PATH,
16114 # but as the default location of the library.
16115 hardcode_minus_L=yes
16119 hpux11*)
16120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16121 case $host_cpu in
16122 hppa*64*)
16123 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16125 ia64*)
16126 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16131 esac
16132 else
16133 case $host_cpu in
16134 hppa*64*)
16135 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16137 ia64*)
16138 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16141 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16143 esac
16145 if test "$with_gnu_ld" = no; then
16146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16147 hardcode_libdir_separator=:
16149 case $host_cpu in
16150 hppa*64*|ia64*)
16151 hardcode_libdir_flag_spec_ld='+b $libdir'
16152 hardcode_direct=no
16153 hardcode_shlibpath_var=no
16156 hardcode_direct=yes
16157 export_dynamic_flag_spec='${wl}-E'
16159 # hardcode_minus_L: Not really in the search PATH,
16160 # but as the default location of the library.
16161 hardcode_minus_L=yes
16163 esac
16167 irix5* | irix6* | nonstopux*)
16168 if test "$GCC" = yes; then
16169 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'
16170 else
16171 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'
16172 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16175 hardcode_libdir_separator=:
16176 link_all_deplibs=yes
16179 netbsd*)
16180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16182 else
16183 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16185 hardcode_libdir_flag_spec='-R$libdir'
16186 hardcode_direct=yes
16187 hardcode_shlibpath_var=no
16190 newsos6)
16191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 hardcode_direct=yes
16193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16194 hardcode_libdir_separator=:
16195 hardcode_shlibpath_var=no
16198 openbsd*)
16199 hardcode_direct=yes
16200 hardcode_shlibpath_var=no
16201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16203 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16205 export_dynamic_flag_spec='${wl}-E'
16206 else
16207 case $host_os in
16208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16210 hardcode_libdir_flag_spec='-R$libdir'
16213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16216 esac
16220 os2*)
16221 hardcode_libdir_flag_spec='-L$libdir'
16222 hardcode_minus_L=yes
16223 allow_undefined_flag=unsupported
16224 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'
16225 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16228 osf3*)
16229 if test "$GCC" = yes; then
16230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16231 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'
16232 else
16233 allow_undefined_flag=' -expect_unresolved \*'
16234 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'
16236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16237 hardcode_libdir_separator=:
16240 osf4* | osf5*) # as osf3* with the addition of -msym flag
16241 if test "$GCC" = yes; then
16242 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16243 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'
16244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16245 else
16246 allow_undefined_flag=' -expect_unresolved \*'
16247 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'
16248 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16249 $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'
16251 # Both c and cxx compiler support -rpath directly
16252 hardcode_libdir_flag_spec='-rpath $libdir'
16254 hardcode_libdir_separator=:
16257 solaris*)
16258 no_undefined_flag=' -z text'
16259 if test "$GCC" = yes; then
16260 wlarc='${wl}'
16261 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16262 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16263 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16264 else
16265 wlarc=''
16266 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16268 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16270 hardcode_libdir_flag_spec='-R$libdir'
16271 hardcode_shlibpath_var=no
16272 case $host_os in
16273 solaris2.[0-5] | solaris2.[0-5].*) ;;
16275 # The compiler driver will combine linker options so we
16276 # cannot just pass the convience library names through
16277 # without $wl, iff we do not link with $LD.
16278 # Luckily, gcc supports the same syntax we need for Sun Studio.
16279 # Supported since Solaris 2.6 (maybe 2.5.1?)
16280 case $wlarc in
16282 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16284 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' ;;
16285 esac ;;
16286 esac
16287 link_all_deplibs=yes
16290 sunos4*)
16291 if test "x$host_vendor" = xsequent; then
16292 # Use $CC to link under sequent, because it throws in some extra .o
16293 # files that make .init and .fini sections work.
16294 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16295 else
16296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_libdir_flag_spec='-L$libdir'
16299 hardcode_direct=yes
16300 hardcode_minus_L=yes
16301 hardcode_shlibpath_var=no
16304 sysv4)
16305 case $host_vendor in
16306 sni)
16307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct=yes # is this really true???
16310 siemens)
16311 ## LD is ld it makes a PLAMLIB
16312 ## CC just makes a GrossModule.
16313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16314 reload_cmds='$CC -r -o $output$reload_objs'
16315 hardcode_direct=no
16317 motorola)
16318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16321 esac
16322 runpath_var='LD_RUN_PATH'
16323 hardcode_shlibpath_var=no
16326 sysv4.3*)
16327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16328 hardcode_shlibpath_var=no
16329 export_dynamic_flag_spec='-Bexport'
16332 sysv4*MP*)
16333 if test -d /usr/nec; then
16334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16335 hardcode_shlibpath_var=no
16336 runpath_var=LD_RUN_PATH
16337 hardcode_runpath_var=yes
16338 ld_shlibs=yes
16342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16343 no_undefined_flag='${wl}-z,text'
16344 archive_cmds_need_lc=no
16345 hardcode_shlibpath_var=no
16346 runpath_var='LD_RUN_PATH'
16348 if test "$GCC" = yes; then
16349 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16350 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16351 else
16352 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16353 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16357 sysv5* | sco3.2v5* | sco5v6*)
16358 # Note: We can NOT use -z defs as we might desire, because we do not
16359 # link with -lc, and that would cause any symbols used from libc to
16360 # always be unresolved, which means just about no library would
16361 # ever link correctly. If we're not using GNU ld we use -z text
16362 # though, which does catch some bad symbols but isn't as heavy-handed
16363 # as -z defs.
16364 no_undefined_flag='${wl}-z,text'
16365 allow_undefined_flag='${wl}-z,nodefs'
16366 archive_cmds_need_lc=no
16367 hardcode_shlibpath_var=no
16368 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16369 hardcode_libdir_separator=':'
16370 link_all_deplibs=yes
16371 export_dynamic_flag_spec='${wl}-Bexport'
16372 runpath_var='LD_RUN_PATH'
16374 if test "$GCC" = yes; then
16375 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16377 else
16378 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16383 uts4*)
16384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385 hardcode_libdir_flag_spec='-L$libdir'
16386 hardcode_shlibpath_var=no
16390 ld_shlibs=no
16392 esac
16395 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16396 echo "${ECHO_T}$ld_shlibs" >&6; }
16397 test "$ld_shlibs" = no && can_build_shared=no
16400 # Do we need to explicitly link libc?
16402 case "x$archive_cmds_need_lc" in
16403 x|xyes)
16404 # Assume -lc should be added
16405 archive_cmds_need_lc=yes
16407 if test "$enable_shared" = yes && test "$GCC" = yes; then
16408 case $archive_cmds in
16409 *'~'*)
16410 # FIXME: we may have to deal with multi-command sequences.
16412 '$CC '*)
16413 # Test whether the compiler implicitly links with -lc since on some
16414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16415 # to ld, don't add -lc before -lgcc.
16416 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16417 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16418 $rm conftest*
16419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16422 (eval $ac_compile) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } 2>conftest.err; then
16426 soname=conftest
16427 lib=conftest
16428 libobjs=conftest.$ac_objext
16429 deplibs=
16430 wl=$lt_prog_compiler_wl
16431 pic_flag=$lt_prog_compiler_pic
16432 compiler_flags=-v
16433 linker_flags=-v
16434 verstring=
16435 output_objdir=.
16436 libname=conftest
16437 lt_save_allow_undefined_flag=$allow_undefined_flag
16438 allow_undefined_flag=
16439 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16440 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }
16444 then
16445 archive_cmds_need_lc=no
16446 else
16447 archive_cmds_need_lc=yes
16449 allow_undefined_flag=$lt_save_allow_undefined_flag
16450 else
16451 cat conftest.err 1>&5
16453 $rm conftest*
16454 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16455 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16457 esac
16460 esac
16462 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16463 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16464 library_names_spec=
16465 libname_spec='lib$name'
16466 soname_spec=
16467 shrext_cmds=".so"
16468 postinstall_cmds=
16469 postuninstall_cmds=
16470 finish_cmds=
16471 finish_eval=
16472 shlibpath_var=
16473 shlibpath_overrides_runpath=unknown
16474 version_type=none
16475 dynamic_linker="$host_os ld.so"
16476 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16477 if test "$GCC" = yes; then
16478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16479 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16480 # if the path contains ";" then we assume it to be the separator
16481 # otherwise default to the standard path separator (i.e. ":") - it is
16482 # assumed that no part of a normal pathname contains ";" but that should
16483 # okay in the real world where ";" in dirpaths is itself problematic.
16484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16485 else
16486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16488 else
16489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16491 need_lib_prefix=unknown
16492 hardcode_into_libs=no
16494 # when you set need_version to no, make sure it does not cause -set_version
16495 # flags to be left without arguments
16496 need_version=unknown
16498 case $host_os in
16499 aix3*)
16500 version_type=linux
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16502 shlibpath_var=LIBPATH
16504 # AIX 3 has no versioning support, so we append a major version to the name.
16505 soname_spec='${libname}${release}${shared_ext}$major'
16508 aix4* | aix5*)
16509 version_type=linux
16510 need_lib_prefix=no
16511 need_version=no
16512 hardcode_into_libs=yes
16513 if test "$host_cpu" = ia64; then
16514 # AIX 5 supports IA64
16515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 else
16518 # With GCC up to 2.95.x, collect2 would create an import file
16519 # for dependence libraries. The import file would start with
16520 # the line `#! .'. This would cause the generated library to
16521 # depend on `.', always an invalid library. This was fixed in
16522 # development snapshots of GCC prior to 3.0.
16523 case $host_os in
16524 aix4 | aix4.[01] | aix4.[01].*)
16525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16526 echo ' yes '
16527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16529 else
16530 can_build_shared=no
16533 esac
16534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16535 # soname into executable. Probably we can add versioning support to
16536 # collect2, so additional links can be useful in future.
16537 if test "$aix_use_runtimelinking" = yes; then
16538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16539 # instead of lib<name>.a to let people know that these are not
16540 # typical AIX shared libraries.
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 else
16543 # We preserve .a as extension for shared libraries through AIX4.2
16544 # and later when we are not doing run time linking.
16545 library_names_spec='${libname}${release}.a $libname.a'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16548 shlibpath_var=LIBPATH
16552 amigaos*)
16553 library_names_spec='$libname.ixlibrary $libname.a'
16554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16555 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'
16558 beos*)
16559 library_names_spec='${libname}${shared_ext}'
16560 dynamic_linker="$host_os ld.so"
16561 shlibpath_var=LIBRARY_PATH
16564 bsdi[45]*)
16565 version_type=linux
16566 need_version=no
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16573 # the default ld.so.conf also contains /usr/contrib/lib and
16574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16575 # libtool to hard-code these into programs
16578 cygwin* | mingw* | pw32*)
16579 version_type=windows
16580 shrext_cmds=".dll"
16581 need_version=no
16582 need_lib_prefix=no
16584 case $GCC,$host_os in
16585 yes,cygwin* | yes,mingw* | yes,pw32*)
16586 library_names_spec='$libname.dll.a'
16587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16588 postinstall_cmds='base_file=`basename \${file}`~
16589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16590 dldir=$destdir/`dirname \$dlpath`~
16591 test -d \$dldir || mkdir -p \$dldir~
16592 $install_prog $dir/$dlname \$dldir/$dlname~
16593 chmod a+x \$dldir/$dlname'
16594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16595 dlpath=$dir/\$dldll~
16596 $rm \$dlpath'
16597 shlibpath_overrides_runpath=yes
16599 case $host_os in
16600 cygwin*)
16601 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16605 mingw*)
16606 # MinGW DLLs use traditional 'lib' prefix
16607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16609 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16610 # It is most probably a Windows format PATH printed by
16611 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16612 # path with ; separators, and with drive letters. We can handle the
16613 # drive letters (cygwin fileutils understands them), so leave them,
16614 # especially as we might pass files found there to a mingw objdump,
16615 # which wouldn't understand a cygwinified path. Ahh.
16616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16617 else
16618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16621 pw32*)
16622 # pw32 DLLs use 'pw' prefix rather than 'lib'
16623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16625 esac
16629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16631 esac
16632 dynamic_linker='Win32 ld.exe'
16633 # FIXME: first we should search . and the directory the executable is in
16634 shlibpath_var=PATH
16637 darwin* | rhapsody*)
16638 dynamic_linker="$host_os dyld"
16639 version_type=darwin
16640 need_lib_prefix=no
16641 need_version=no
16642 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16643 soname_spec='${libname}${release}${major}$shared_ext'
16644 shlibpath_overrides_runpath=yes
16645 shlibpath_var=DYLD_LIBRARY_PATH
16646 shrext_cmds='.dylib'
16647 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16648 if test "$GCC" = yes; then
16649 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"`
16650 else
16651 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16656 dgux*)
16657 version_type=linux
16658 need_lib_prefix=no
16659 need_version=no
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 shlibpath_var=LD_LIBRARY_PATH
16665 freebsd1*)
16666 dynamic_linker=no
16669 kfreebsd*-gnu)
16670 version_type=linux
16671 need_lib_prefix=no
16672 need_version=no
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=no
16677 hardcode_into_libs=yes
16678 dynamic_linker='GNU ld.so'
16681 freebsd* | dragonfly*)
16682 # DragonFly does not have aout. When/if they implement a new
16683 # versioning mechanism, adjust this.
16684 if test -x /usr/bin/objformat; then
16685 objformat=`/usr/bin/objformat`
16686 else
16687 case $host_os in
16688 freebsd[123]*) objformat=aout ;;
16689 *) objformat=elf ;;
16690 esac
16692 version_type=freebsd-$objformat
16693 case $version_type in
16694 freebsd-elf*)
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16696 need_version=no
16697 need_lib_prefix=no
16699 freebsd-*)
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16701 need_version=yes
16703 esac
16704 shlibpath_var=LD_LIBRARY_PATH
16705 case $host_os in
16706 freebsd2*)
16707 shlibpath_overrides_runpath=yes
16709 freebsd3.[01]* | freebsdelf3.[01]*)
16710 shlibpath_overrides_runpath=yes
16711 hardcode_into_libs=yes
16713 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16714 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16715 shlibpath_overrides_runpath=no
16716 hardcode_into_libs=yes
16718 freebsd*) # from 4.6 on
16719 shlibpath_overrides_runpath=yes
16720 hardcode_into_libs=yes
16722 esac
16725 gnu*)
16726 version_type=linux
16727 need_lib_prefix=no
16728 need_version=no
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 hardcode_into_libs=yes
16735 hpux9* | hpux10* | hpux11*)
16736 # Give a soname corresponding to the major version so that dld.sl refuses to
16737 # link against other versions.
16738 version_type=sunos
16739 need_lib_prefix=no
16740 need_version=no
16741 case $host_cpu in
16742 ia64*)
16743 shrext_cmds='.so'
16744 hardcode_into_libs=yes
16745 dynamic_linker="$host_os dld.so"
16746 shlibpath_var=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 if test "X$HPUX_IA64_MODE" = X32; then
16751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16752 else
16753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16757 hppa*64*)
16758 shrext_cmds='.sl'
16759 hardcode_into_libs=yes
16760 dynamic_linker="$host_os dld.sl"
16761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764 soname_spec='${libname}${release}${shared_ext}$major'
16765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16769 shrext_cmds='.sl'
16770 dynamic_linker="$host_os dld.sl"
16771 shlibpath_var=SHLIB_PATH
16772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16776 esac
16777 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16778 postinstall_cmds='chmod 555 $lib'
16781 interix3*)
16782 version_type=linux
16783 need_lib_prefix=no
16784 need_version=no
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 shlibpath_overrides_runpath=no
16790 hardcode_into_libs=yes
16793 irix5* | irix6* | nonstopux*)
16794 case $host_os in
16795 nonstopux*) version_type=nonstopux ;;
16797 if test "$lt_cv_prog_gnu_ld" = yes; then
16798 version_type=linux
16799 else
16800 version_type=irix
16801 fi ;;
16802 esac
16803 need_lib_prefix=no
16804 need_version=no
16805 soname_spec='${libname}${release}${shared_ext}$major'
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16807 case $host_os in
16808 irix5* | nonstopux*)
16809 libsuff= shlibsuff=
16812 case $LD in # libtool.m4 will add one of these switches to LD
16813 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16814 libsuff= shlibsuff= libmagic=32-bit;;
16815 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16816 libsuff=32 shlibsuff=N32 libmagic=N32;;
16817 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16818 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16819 *) libsuff= shlibsuff= libmagic=never-match;;
16820 esac
16822 esac
16823 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16824 shlibpath_overrides_runpath=no
16825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16827 hardcode_into_libs=yes
16830 # No shared lib support for Linux oldld, aout, or coff.
16831 linux*oldld* | linux*aout* | linux*coff*)
16832 dynamic_linker=no
16835 # This must be Linux ELF.
16836 linux*)
16837 version_type=linux
16838 need_lib_prefix=no
16839 need_version=no
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=no
16845 # This implies no fast_install, which is unacceptable.
16846 # Some rework will be needed to allow for fast_install
16847 # before this can be enabled.
16848 hardcode_into_libs=yes
16850 # Append ld.so.conf contents to the search path
16851 if test -f /etc/ld.so.conf; then
16852 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' ' '`
16853 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16856 # We used to test for /lib/ld.so.1 and disable shared libraries on
16857 # powerpc, because MkLinux only supported shared libraries with the
16858 # GNU dynamic linker. Since this was broken with cross compilers,
16859 # most powerpc-linux boxes support dynamic linking these days and
16860 # people can always --disable-shared, the test was removed, and we
16861 # assume the GNU/Linux dynamic linker is in use.
16862 dynamic_linker='GNU/Linux ld.so'
16865 knetbsd*-gnu)
16866 version_type=linux
16867 need_lib_prefix=no
16868 need_version=no
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16870 soname_spec='${libname}${release}${shared_ext}$major'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 shlibpath_overrides_runpath=no
16873 hardcode_into_libs=yes
16874 dynamic_linker='GNU ld.so'
16877 netbsd*)
16878 version_type=sunos
16879 need_lib_prefix=no
16880 need_version=no
16881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16884 dynamic_linker='NetBSD (a.out) ld.so'
16885 else
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 dynamic_linker='NetBSD ld.elf_so'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath=yes
16892 hardcode_into_libs=yes
16895 newsos6)
16896 version_type=linux
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes
16902 nto-qnx*)
16903 version_type=linux
16904 need_lib_prefix=no
16905 need_version=no
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907 soname_spec='${libname}${release}${shared_ext}$major'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 shlibpath_overrides_runpath=yes
16912 openbsd*)
16913 version_type=sunos
16914 sys_lib_dlsearch_path_spec="/usr/lib"
16915 need_lib_prefix=no
16916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16917 case $host_os in
16918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16919 *) need_version=no ;;
16920 esac
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16925 case $host_os in
16926 openbsd2.[89] | openbsd2.[89].*)
16927 shlibpath_overrides_runpath=no
16930 shlibpath_overrides_runpath=yes
16932 esac
16933 else
16934 shlibpath_overrides_runpath=yes
16938 os2*)
16939 libname_spec='$name'
16940 shrext_cmds=".dll"
16941 need_lib_prefix=no
16942 library_names_spec='$libname${shared_ext} $libname.a'
16943 dynamic_linker='OS/2 ld.exe'
16944 shlibpath_var=LIBPATH
16947 osf3* | osf4* | osf5*)
16948 version_type=osf
16949 need_lib_prefix=no
16950 need_version=no
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16958 solaris*)
16959 version_type=linux
16960 need_lib_prefix=no
16961 need_version=no
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963 soname_spec='${libname}${release}${shared_ext}$major'
16964 shlibpath_var=LD_LIBRARY_PATH
16965 shlibpath_overrides_runpath=yes
16966 hardcode_into_libs=yes
16967 # ldd complains unless libraries are executable
16968 postinstall_cmds='chmod +x $lib'
16971 sunos4*)
16972 version_type=sunos
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=yes
16977 if test "$with_gnu_ld" = yes; then
16978 need_lib_prefix=no
16980 need_version=yes
16983 sysv4 | sysv4.3*)
16984 version_type=linux
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16986 soname_spec='${libname}${release}${shared_ext}$major'
16987 shlibpath_var=LD_LIBRARY_PATH
16988 case $host_vendor in
16989 sni)
16990 shlibpath_overrides_runpath=no
16991 need_lib_prefix=no
16992 export_dynamic_flag_spec='${wl}-Blargedynsym'
16993 runpath_var=LD_RUN_PATH
16995 siemens)
16996 need_lib_prefix=no
16998 motorola)
16999 need_lib_prefix=no
17000 need_version=no
17001 shlibpath_overrides_runpath=no
17002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17004 esac
17007 sysv4*MP*)
17008 if test -d /usr/nec ;then
17009 version_type=linux
17010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17011 soname_spec='$libname${shared_ext}.$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17017 version_type=freebsd-elf
17018 need_lib_prefix=no
17019 need_version=no
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 hardcode_into_libs=yes
17024 if test "$with_gnu_ld" = yes; then
17025 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17026 shlibpath_overrides_runpath=no
17027 else
17028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17029 shlibpath_overrides_runpath=yes
17030 case $host_os in
17031 sco3.2v5*)
17032 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17034 esac
17036 sys_lib_dlsearch_path_spec='/usr/lib'
17039 uts4*)
17040 version_type=linux
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 shlibpath_var=LD_LIBRARY_PATH
17047 dynamic_linker=no
17049 esac
17050 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17051 echo "${ECHO_T}$dynamic_linker" >&6; }
17052 test "$dynamic_linker" = no && can_build_shared=no
17054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17055 if test "$GCC" = yes; then
17056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17059 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17060 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17061 hardcode_action=
17062 if test -n "$hardcode_libdir_flag_spec" || \
17063 test -n "$runpath_var" || \
17064 test "X$hardcode_automatic" = "Xyes" ; then
17066 # We can hardcode non-existant directories.
17067 if test "$hardcode_direct" != no &&
17068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17069 # have to relink, otherwise we might link with an installed library
17070 # when we should be linking with a yet-to-be-installed one
17071 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17072 test "$hardcode_minus_L" != no; then
17073 # Linking always hardcodes the temporary library directory.
17074 hardcode_action=relink
17075 else
17076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17077 hardcode_action=immediate
17079 else
17080 # We cannot hardcode anything, or else we can only hardcode existing
17081 # directories.
17082 hardcode_action=unsupported
17084 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17085 echo "${ECHO_T}$hardcode_action" >&6; }
17087 if test "$hardcode_action" = relink; then
17088 # Fast installation is not supported
17089 enable_fast_install=no
17090 elif test "$shlibpath_overrides_runpath" = yes ||
17091 test "$enable_shared" = no; then
17092 # Fast installation is not necessary
17093 enable_fast_install=needless
17096 striplib=
17097 old_striplib=
17098 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17099 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17100 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17102 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17103 { echo "$as_me:$LINENO: result: yes" >&5
17104 echo "${ECHO_T}yes" >&6; }
17105 else
17106 # FIXME - insert some real tests, host_os isn't really good enough
17107 case $host_os in
17108 darwin*)
17109 if test -n "$STRIP" ; then
17110 striplib="$STRIP -x"
17111 { echo "$as_me:$LINENO: result: yes" >&5
17112 echo "${ECHO_T}yes" >&6; }
17113 else
17114 { echo "$as_me:$LINENO: result: no" >&5
17115 echo "${ECHO_T}no" >&6; }
17119 { echo "$as_me:$LINENO: result: no" >&5
17120 echo "${ECHO_T}no" >&6; }
17122 esac
17125 if test "x$enable_dlopen" != xyes; then
17126 enable_dlopen=unknown
17127 enable_dlopen_self=unknown
17128 enable_dlopen_self_static=unknown
17129 else
17130 lt_cv_dlopen=no
17131 lt_cv_dlopen_libs=
17133 case $host_os in
17134 beos*)
17135 lt_cv_dlopen="load_add_on"
17136 lt_cv_dlopen_libs=
17137 lt_cv_dlopen_self=yes
17140 mingw* | pw32*)
17141 lt_cv_dlopen="LoadLibrary"
17142 lt_cv_dlopen_libs=
17145 cygwin*)
17146 lt_cv_dlopen="dlopen"
17147 lt_cv_dlopen_libs=
17150 darwin*)
17151 # if libdl is installed we need to link against it
17152 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17153 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157 ac_check_lib_save_LIBS=$LIBS
17158 LIBS="-ldl $LIBS"
17159 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h. */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17166 /* Override any GCC internal prototype to avoid an error.
17167 Use char because int might match the return type of a GCC
17168 builtin and then its argument prototype would still apply. */
17169 #ifdef __cplusplus
17170 extern "C"
17171 #endif
17172 char dlopen ();
17174 main ()
17176 return dlopen ();
17178 return 0;
17180 _ACEOF
17181 rm -f conftest.$ac_objext conftest$ac_exeext
17182 if { (ac_try="$ac_link"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_link") 2>conftest.er1
17189 ac_status=$?
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196 { (case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_try") 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_cv_lib_dl_dlopen=yes
17216 else
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 ac_cv_lib_dl_dlopen=no
17223 rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_check_lib_save_LIBS
17227 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17228 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17229 if test $ac_cv_lib_dl_dlopen = yes; then
17230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17231 else
17233 lt_cv_dlopen="dyld"
17234 lt_cv_dlopen_libs=
17235 lt_cv_dlopen_self=yes
17242 { echo "$as_me:$LINENO: checking for shl_load" >&5
17243 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17244 if test "${ac_cv_func_shl_load+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247 cat >conftest.$ac_ext <<_ACEOF
17248 /* confdefs.h. */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17255 #define shl_load innocuous_shl_load
17257 /* System header to define __stub macros and hopefully few prototypes,
17258 which can conflict with char shl_load (); below.
17259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17260 <limits.h> exists even on freestanding compilers. */
17262 #ifdef __STDC__
17263 # include <limits.h>
17264 #else
17265 # include <assert.h>
17266 #endif
17268 #undef shl_load
17270 /* Override any GCC internal prototype to avoid an error.
17271 Use char because int might match the return type of a GCC
17272 builtin and then its argument prototype would still apply. */
17273 #ifdef __cplusplus
17274 extern "C"
17275 #endif
17276 char shl_load ();
17277 /* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
17280 #if defined __stub_shl_load || defined __stub___shl_load
17281 choke me
17282 #endif
17285 main ()
17287 return shl_load ();
17289 return 0;
17291 _ACEOF
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (ac_try="$ac_link"
17294 case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297 esac
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307 { (case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_try") 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest$ac_exeext'
17317 { (case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_try") 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_cv_func_shl_load=yes
17327 else
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_func_shl_load=no
17334 rm -f core conftest.err conftest.$ac_objext \
17335 conftest$ac_exeext conftest.$ac_ext
17337 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17338 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17339 if test $ac_cv_func_shl_load = yes; then
17340 lt_cv_dlopen="shl_load"
17341 else
17342 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17343 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17344 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347 ac_check_lib_save_LIBS=$LIBS
17348 LIBS="-ldld $LIBS"
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17356 /* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
17359 #ifdef __cplusplus
17360 extern "C"
17361 #endif
17362 char shl_load ();
17364 main ()
17366 return shl_load ();
17368 return 0;
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17379 ac_status=$?
17380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386 { (case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_try") 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest$ac_exeext'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399 esac
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 ac_cv_lib_dld_shl_load=yes
17406 else
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17410 ac_cv_lib_dld_shl_load=no
17413 rm -f core conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17415 LIBS=$ac_check_lib_save_LIBS
17417 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17418 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17419 if test $ac_cv_lib_dld_shl_load = yes; then
17420 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17421 else
17422 { echo "$as_me:$LINENO: checking for dlopen" >&5
17423 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17424 if test "${ac_cv_func_dlopen+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427 cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h. */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435 #define dlopen innocuous_dlopen
17437 /* System header to define __stub macros and hopefully few prototypes,
17438 which can conflict with char dlopen (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
17442 #ifdef __STDC__
17443 # include <limits.h>
17444 #else
17445 # include <assert.h>
17446 #endif
17448 #undef dlopen
17450 /* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17453 #ifdef __cplusplus
17454 extern "C"
17455 #endif
17456 char dlopen ();
17457 /* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460 #if defined __stub_dlopen || defined __stub___dlopen
17461 choke me
17462 #endif
17465 main ()
17467 return dlopen ();
17469 return 0;
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477 esac
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_cv_func_dlopen=yes
17507 else
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 ac_cv_func_dlopen=no
17514 rm -f core conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17517 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17518 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17519 if test $ac_cv_func_dlopen = yes; then
17520 lt_cv_dlopen="dlopen"
17521 else
17522 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17523 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17524 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 else
17527 ac_check_lib_save_LIBS=$LIBS
17528 LIBS="-ldl $LIBS"
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17536 /* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17539 #ifdef __cplusplus
17540 extern "C"
17541 #endif
17542 char dlopen ();
17544 main ()
17546 return dlopen ();
17548 return 0;
17550 _ACEOF
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556 esac
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17569 esac
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest$ac_exeext'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_cv_lib_dl_dlopen=yes
17586 else
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 ac_cv_lib_dl_dlopen=no
17593 rm -f core conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
17595 LIBS=$ac_check_lib_save_LIBS
17597 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17599 if test $ac_cv_lib_dl_dlopen = yes; then
17600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17601 else
17602 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17603 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17604 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 else
17607 ac_check_lib_save_LIBS=$LIBS
17608 LIBS="-lsvld $LIBS"
17609 cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h. */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17616 /* Override any GCC internal prototype to avoid an error.
17617 Use char because int might match the return type of a GCC
17618 builtin and then its argument prototype would still apply. */
17619 #ifdef __cplusplus
17620 extern "C"
17621 #endif
17622 char dlopen ();
17624 main ()
17626 return dlopen ();
17628 return 0;
17630 _ACEOF
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17636 esac
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>conftest.er1
17639 ac_status=$?
17640 grep -v '^ *+' conftest.er1 >conftest.err
17641 rm -f conftest.er1
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_lib_svld_dlopen=yes
17666 else
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_cv_lib_svld_dlopen=no
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17675 LIBS=$ac_check_lib_save_LIBS
17677 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17678 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17679 if test $ac_cv_lib_svld_dlopen = yes; then
17680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17681 else
17682 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17683 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17684 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 else
17687 ac_check_lib_save_LIBS=$LIBS
17688 LIBS="-ldld $LIBS"
17689 cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h. */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 char dld_link ();
17704 main ()
17706 return dld_link ();
17708 return 0;
17710 _ACEOF
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_link") 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest$ac_exeext'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739 esac
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_lib_dld_dld_link=yes
17746 else
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_cv_lib_dld_dld_link=no
17753 rm -f core conftest.err conftest.$ac_objext \
17754 conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17757 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17758 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17759 if test $ac_cv_lib_dld_dld_link = yes; then
17760 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17779 esac
17781 if test "x$lt_cv_dlopen" != xno; then
17782 enable_dlopen=yes
17783 else
17784 enable_dlopen=no
17787 case $lt_cv_dlopen in
17788 dlopen)
17789 save_CPPFLAGS="$CPPFLAGS"
17790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17792 save_LDFLAGS="$LDFLAGS"
17793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17795 save_LIBS="$LIBS"
17796 LIBS="$lt_cv_dlopen_libs $LIBS"
17798 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17799 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17800 if test "${lt_cv_dlopen_self+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 else
17803 if test "$cross_compiling" = yes; then :
17804 lt_cv_dlopen_self=cross
17805 else
17806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17807 lt_status=$lt_dlunknown
17808 cat > conftest.$ac_ext <<EOF
17809 #line 17809 "configure"
17810 #include "confdefs.h"
17812 #if HAVE_DLFCN_H
17813 #include <dlfcn.h>
17814 #endif
17816 #include <stdio.h>
17818 #ifdef RTLD_GLOBAL
17819 # define LT_DLGLOBAL RTLD_GLOBAL
17820 #else
17821 # ifdef DL_GLOBAL
17822 # define LT_DLGLOBAL DL_GLOBAL
17823 # else
17824 # define LT_DLGLOBAL 0
17825 # endif
17826 #endif
17828 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17829 find out it does not work in some platform. */
17830 #ifndef LT_DLLAZY_OR_NOW
17831 # ifdef RTLD_LAZY
17832 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17833 # else
17834 # ifdef DL_LAZY
17835 # define LT_DLLAZY_OR_NOW DL_LAZY
17836 # else
17837 # ifdef RTLD_NOW
17838 # define LT_DLLAZY_OR_NOW RTLD_NOW
17839 # else
17840 # ifdef DL_NOW
17841 # define LT_DLLAZY_OR_NOW DL_NOW
17842 # else
17843 # define LT_DLLAZY_OR_NOW 0
17844 # endif
17845 # endif
17846 # endif
17847 # endif
17848 #endif
17850 #ifdef __cplusplus
17851 extern "C" void exit (int);
17852 #endif
17854 void fnord() { int i=42;}
17855 int main ()
17857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17858 int status = $lt_dlunknown;
17860 if (self)
17862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17863 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17864 /* dlclose (self); */
17866 else
17867 puts (dlerror ());
17869 exit (status);
17872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873 (eval $ac_link) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17877 (./conftest; exit; ) >&5 2>/dev/null
17878 lt_status=$?
17879 case x$lt_status in
17880 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17881 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17882 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17883 esac
17884 else :
17885 # compilation failed
17886 lt_cv_dlopen_self=no
17889 rm -fr conftest*
17893 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17894 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17896 if test "x$lt_cv_dlopen_self" = xyes; then
17897 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17898 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17899 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17900 if test "${lt_cv_dlopen_self_static+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903 if test "$cross_compiling" = yes; then :
17904 lt_cv_dlopen_self_static=cross
17905 else
17906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17907 lt_status=$lt_dlunknown
17908 cat > conftest.$ac_ext <<EOF
17909 #line 17909 "configure"
17910 #include "confdefs.h"
17912 #if HAVE_DLFCN_H
17913 #include <dlfcn.h>
17914 #endif
17916 #include <stdio.h>
17918 #ifdef RTLD_GLOBAL
17919 # define LT_DLGLOBAL RTLD_GLOBAL
17920 #else
17921 # ifdef DL_GLOBAL
17922 # define LT_DLGLOBAL DL_GLOBAL
17923 # else
17924 # define LT_DLGLOBAL 0
17925 # endif
17926 #endif
17928 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17929 find out it does not work in some platform. */
17930 #ifndef LT_DLLAZY_OR_NOW
17931 # ifdef RTLD_LAZY
17932 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17933 # else
17934 # ifdef DL_LAZY
17935 # define LT_DLLAZY_OR_NOW DL_LAZY
17936 # else
17937 # ifdef RTLD_NOW
17938 # define LT_DLLAZY_OR_NOW RTLD_NOW
17939 # else
17940 # ifdef DL_NOW
17941 # define LT_DLLAZY_OR_NOW DL_NOW
17942 # else
17943 # define LT_DLLAZY_OR_NOW 0
17944 # endif
17945 # endif
17946 # endif
17947 # endif
17948 #endif
17950 #ifdef __cplusplus
17951 extern "C" void exit (int);
17952 #endif
17954 void fnord() { int i=42;}
17955 int main ()
17957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17958 int status = $lt_dlunknown;
17960 if (self)
17962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17963 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17964 /* dlclose (self); */
17966 else
17967 puts (dlerror ());
17969 exit (status);
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973 (eval $ac_link) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17977 (./conftest; exit; ) >&5 2>/dev/null
17978 lt_status=$?
17979 case x$lt_status in
17980 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17981 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17982 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17983 esac
17984 else :
17985 # compilation failed
17986 lt_cv_dlopen_self_static=no
17989 rm -fr conftest*
17993 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17994 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17997 CPPFLAGS="$save_CPPFLAGS"
17998 LDFLAGS="$save_LDFLAGS"
17999 LIBS="$save_LIBS"
18001 esac
18003 case $lt_cv_dlopen_self in
18004 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18005 *) enable_dlopen_self=unknown ;;
18006 esac
18008 case $lt_cv_dlopen_self_static in
18009 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18010 *) enable_dlopen_self_static=unknown ;;
18011 esac
18015 # Report which library types will actually be built
18016 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18017 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18018 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
18019 echo "${ECHO_T}$can_build_shared" >&6; }
18021 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18022 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
18023 test "$can_build_shared" = "no" && enable_shared=no
18025 # On AIX, shared libraries and static libraries use the same namespace, and
18026 # are all built from PIC.
18027 case $host_os in
18028 aix3*)
18029 test "$enable_shared" = yes && enable_static=no
18030 if test -n "$RANLIB"; then
18031 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18032 postinstall_cmds='$RANLIB $lib'
18036 aix4* | aix5*)
18037 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18038 test "$enable_shared" = yes && enable_static=no
18041 esac
18042 { echo "$as_me:$LINENO: result: $enable_shared" >&5
18043 echo "${ECHO_T}$enable_shared" >&6; }
18045 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18046 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18047 # Make sure either enable_shared or enable_static is yes.
18048 test "$enable_shared" = yes || enable_static=yes
18049 { echo "$as_me:$LINENO: result: $enable_static" >&5
18050 echo "${ECHO_T}$enable_static" >&6; }
18052 # The else clause should only fire when bootstrapping the
18053 # libtool distribution, otherwise you forgot to ship ltmain.sh
18054 # with your package, and you will get complaints that there are
18055 # no rules to generate ltmain.sh.
18056 if test -f "$ltmain"; then
18057 # See if we are running on zsh, and set the options which allow our commands through
18058 # without removal of \ escapes.
18059 if test -n "${ZSH_VERSION+set}" ; then
18060 setopt NO_GLOB_SUBST
18062 # Now quote all the things that may contain metacharacters while being
18063 # careful not to overquote the AC_SUBSTed values. We take copies of the
18064 # variables and quote the copies for generation of the libtool script.
18065 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18066 SED SHELL STRIP \
18067 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18068 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18069 deplibs_check_method reload_flag reload_cmds need_locks \
18070 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18071 lt_cv_sys_global_symbol_to_c_name_address \
18072 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18073 old_postinstall_cmds old_postuninstall_cmds \
18074 compiler \
18075 CC \
18076 LD \
18077 lt_prog_compiler_wl \
18078 lt_prog_compiler_pic \
18079 lt_prog_compiler_static \
18080 lt_prog_compiler_no_builtin_flag \
18081 export_dynamic_flag_spec \
18082 thread_safe_flag_spec \
18083 whole_archive_flag_spec \
18084 enable_shared_with_static_runtimes \
18085 old_archive_cmds \
18086 old_archive_from_new_cmds \
18087 predep_objects \
18088 postdep_objects \
18089 predeps \
18090 postdeps \
18091 compiler_lib_search_path \
18092 archive_cmds \
18093 archive_expsym_cmds \
18094 postinstall_cmds \
18095 postuninstall_cmds \
18096 old_archive_from_expsyms_cmds \
18097 allow_undefined_flag \
18098 no_undefined_flag \
18099 export_symbols_cmds \
18100 hardcode_libdir_flag_spec \
18101 hardcode_libdir_flag_spec_ld \
18102 hardcode_libdir_separator \
18103 hardcode_automatic \
18104 module_cmds \
18105 module_expsym_cmds \
18106 lt_cv_prog_compiler_c_o \
18107 exclude_expsyms \
18108 include_expsyms; do
18110 case $var in
18111 old_archive_cmds | \
18112 old_archive_from_new_cmds | \
18113 archive_cmds | \
18114 archive_expsym_cmds | \
18115 module_cmds | \
18116 module_expsym_cmds | \
18117 old_archive_from_expsyms_cmds | \
18118 export_symbols_cmds | \
18119 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18120 postinstall_cmds | postuninstall_cmds | \
18121 old_postinstall_cmds | old_postuninstall_cmds | \
18122 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18123 # Double-quote double-evaled strings.
18124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18127 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18129 esac
18130 done
18132 case $lt_echo in
18133 *'\$0 --fallback-echo"')
18134 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18136 esac
18138 cfgfile="${ofile}T"
18139 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18140 $rm -f "$cfgfile"
18141 { echo "$as_me:$LINENO: creating $ofile" >&5
18142 echo "$as_me: creating $ofile" >&6;}
18144 cat <<__EOF__ >> "$cfgfile"
18145 #! $SHELL
18147 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18148 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18149 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18151 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18152 # Free Software Foundation, Inc.
18154 # This file is part of GNU Libtool:
18155 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18157 # This program is free software; you can redistribute it and/or modify
18158 # it under the terms of the GNU General Public License as published by
18159 # the Free Software Foundation; either version 2 of the License, or
18160 # (at your option) any later version.
18162 # This program is distributed in the hope that it will be useful, but
18163 # WITHOUT ANY WARRANTY; without even the implied warranty of
18164 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18165 # General Public License for more details.
18167 # You should have received a copy of the GNU General Public License
18168 # along with this program; if not, write to the Free Software
18169 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18171 # As a special exception to the GNU General Public License, if you
18172 # distribute this file as part of a program that contains a
18173 # configuration script generated by Autoconf, you may include it under
18174 # the same distribution terms that you use for the rest of that program.
18176 # A sed program that does not truncate output.
18177 SED=$lt_SED
18179 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18180 Xsed="$SED -e 1s/^X//"
18182 # The HP-UX ksh and POSIX shell print the target directory to stdout
18183 # if CDPATH is set.
18184 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18186 # The names of the tagged configurations supported by this script.
18187 available_tags=
18189 # ### BEGIN LIBTOOL CONFIG
18191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18193 # Shell to use when invoking shell scripts.
18194 SHELL=$lt_SHELL
18196 # Whether or not to build shared libraries.
18197 build_libtool_libs=$enable_shared
18199 # Whether or not to build static libraries.
18200 build_old_libs=$enable_static
18202 # Whether or not to add -lc for building shared libraries.
18203 build_libtool_need_lc=$archive_cmds_need_lc
18205 # Whether or not to disallow shared libs when runtime libs are static
18206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18208 # Whether or not to optimize for fast installation.
18209 fast_install=$enable_fast_install
18211 # The host system.
18212 host_alias=$host_alias
18213 host=$host
18214 host_os=$host_os
18216 # The build system.
18217 build_alias=$build_alias
18218 build=$build
18219 build_os=$build_os
18221 # An echo program that does not interpret backslashes.
18222 echo=$lt_echo
18224 # The archiver.
18225 AR=$lt_AR
18226 AR_FLAGS=$lt_AR_FLAGS
18228 # A C compiler.
18229 LTCC=$lt_LTCC
18231 # LTCC compiler flags.
18232 LTCFLAGS=$lt_LTCFLAGS
18234 # A language-specific compiler.
18235 CC=$lt_compiler
18237 # Is the compiler the GNU C compiler?
18238 with_gcc=$GCC
18240 # An ERE matcher.
18241 EGREP=$lt_EGREP
18243 # The linker used to build libraries.
18244 LD=$lt_LD
18246 # Whether we need hard or soft links.
18247 LN_S=$lt_LN_S
18249 # A BSD-compatible nm program.
18250 NM=$lt_NM
18252 # A symbol stripping program
18253 STRIP=$lt_STRIP
18255 # Used to examine libraries when file_magic_cmd begins "file"
18256 MAGIC_CMD=$MAGIC_CMD
18258 # Used on cygwin: DLL creation program.
18259 DLLTOOL="$DLLTOOL"
18261 # Used on cygwin: object dumper.
18262 OBJDUMP="$OBJDUMP"
18264 # Used on cygwin: assembler.
18265 AS="$AS"
18267 # The name of the directory that contains temporary libtool files.
18268 objdir=$objdir
18270 # How to create reloadable object files.
18271 reload_flag=$lt_reload_flag
18272 reload_cmds=$lt_reload_cmds
18274 # How to pass a linker flag through the compiler.
18275 wl=$lt_lt_prog_compiler_wl
18277 # Object file suffix (normally "o").
18278 objext="$ac_objext"
18280 # Old archive suffix (normally "a").
18281 libext="$libext"
18283 # Shared library suffix (normally ".so").
18284 shrext_cmds='$shrext_cmds'
18286 # Executable file suffix (normally "").
18287 exeext="$exeext"
18289 # Additional compiler flags for building library objects.
18290 pic_flag=$lt_lt_prog_compiler_pic
18291 pic_mode=$pic_mode
18293 # What is the maximum length of a command?
18294 max_cmd_len=$lt_cv_sys_max_cmd_len
18296 # Does compiler simultaneously support -c and -o options?
18297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18299 # Must we lock files when doing compilation?
18300 need_locks=$lt_need_locks
18302 # Do we need the lib prefix for modules?
18303 need_lib_prefix=$need_lib_prefix
18305 # Do we need a version for libraries?
18306 need_version=$need_version
18308 # Whether dlopen is supported.
18309 dlopen_support=$enable_dlopen
18311 # Whether dlopen of programs is supported.
18312 dlopen_self=$enable_dlopen_self
18314 # Whether dlopen of statically linked programs is supported.
18315 dlopen_self_static=$enable_dlopen_self_static
18317 # Compiler flag to prevent dynamic linking.
18318 link_static_flag=$lt_lt_prog_compiler_static
18320 # Compiler flag to turn off builtin functions.
18321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18323 # Compiler flag to allow reflexive dlopens.
18324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18326 # Compiler flag to generate shared objects directly from archives.
18327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18329 # Compiler flag to generate thread-safe objects.
18330 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18332 # Library versioning type.
18333 version_type=$version_type
18335 # Format of library name prefix.
18336 libname_spec=$lt_libname_spec
18338 # List of archive names. First name is the real one, the rest are links.
18339 # The last name is the one that the linker finds with -lNAME.
18340 library_names_spec=$lt_library_names_spec
18342 # The coded name of the library, if different from the real name.
18343 soname_spec=$lt_soname_spec
18345 # Commands used to build and install an old-style archive.
18346 RANLIB=$lt_RANLIB
18347 old_archive_cmds=$lt_old_archive_cmds
18348 old_postinstall_cmds=$lt_old_postinstall_cmds
18349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18351 # Create an old-style archive from a shared archive.
18352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18354 # Create a temporary old-style archive to link instead of a shared archive.
18355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18357 # Commands used to build and install a shared archive.
18358 archive_cmds=$lt_archive_cmds
18359 archive_expsym_cmds=$lt_archive_expsym_cmds
18360 postinstall_cmds=$lt_postinstall_cmds
18361 postuninstall_cmds=$lt_postuninstall_cmds
18363 # Commands used to build a loadable module (assumed same as above if empty)
18364 module_cmds=$lt_module_cmds
18365 module_expsym_cmds=$lt_module_expsym_cmds
18367 # Commands to strip libraries.
18368 old_striplib=$lt_old_striplib
18369 striplib=$lt_striplib
18371 # Dependencies to place before the objects being linked to create a
18372 # shared library.
18373 predep_objects=$lt_predep_objects
18375 # Dependencies to place after the objects being linked to create a
18376 # shared library.
18377 postdep_objects=$lt_postdep_objects
18379 # Dependencies to place before the objects being linked to create a
18380 # shared library.
18381 predeps=$lt_predeps
18383 # Dependencies to place after the objects being linked to create a
18384 # shared library.
18385 postdeps=$lt_postdeps
18387 # The library search path used internally by the compiler when linking
18388 # a shared library.
18389 compiler_lib_search_path=$lt_compiler_lib_search_path
18391 # Method to check whether dependent libraries are shared objects.
18392 deplibs_check_method=$lt_deplibs_check_method
18394 # Command to use when deplibs_check_method == file_magic.
18395 file_magic_cmd=$lt_file_magic_cmd
18397 # Flag that allows shared libraries with undefined symbols to be built.
18398 allow_undefined_flag=$lt_allow_undefined_flag
18400 # Flag that forces no undefined symbols.
18401 no_undefined_flag=$lt_no_undefined_flag
18403 # Commands used to finish a libtool library installation in a directory.
18404 finish_cmds=$lt_finish_cmds
18406 # Same as above, but a single script fragment to be evaled but not shown.
18407 finish_eval=$lt_finish_eval
18409 # Take the output of nm and produce a listing of raw symbols and C names.
18410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18412 # Transform the output of nm in a proper C declaration
18413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18415 # Transform the output of nm in a C name address pair
18416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18418 # This is the shared library runtime path variable.
18419 runpath_var=$runpath_var
18421 # This is the shared library path variable.
18422 shlibpath_var=$shlibpath_var
18424 # Is shlibpath searched before the hard-coded library search path?
18425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18427 # How to hardcode a shared library path into an executable.
18428 hardcode_action=$hardcode_action
18430 # Whether we should hardcode library paths into libraries.
18431 hardcode_into_libs=$hardcode_into_libs
18433 # Flag to hardcode \$libdir into a binary during linking.
18434 # This must work even if \$libdir does not exist.
18435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18437 # If ld is used when linking, flag to hardcode \$libdir into
18438 # a binary during linking. This must work even if \$libdir does
18439 # not exist.
18440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18442 # Whether we need a single -rpath flag with a separated argument.
18443 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18446 # resulting binary.
18447 hardcode_direct=$hardcode_direct
18449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18450 # resulting binary.
18451 hardcode_minus_L=$hardcode_minus_L
18453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18454 # the resulting binary.
18455 hardcode_shlibpath_var=$hardcode_shlibpath_var
18457 # Set to yes if building a shared library automatically hardcodes DIR into the library
18458 # and all subsequent libraries and executables linked against it.
18459 hardcode_automatic=$hardcode_automatic
18461 # Variables whose values should be saved in libtool wrapper scripts and
18462 # restored at relink time.
18463 variables_saved_for_relink="$variables_saved_for_relink"
18465 # Whether libtool must link a program against all its dependency libraries.
18466 link_all_deplibs=$link_all_deplibs
18468 # Compile-time system search path for libraries
18469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18471 # Run-time system search path for libraries
18472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18474 # Fix the shell variable \$srcfile for the compiler.
18475 fix_srcfile_path="$fix_srcfile_path"
18477 # Set to yes if exported symbols are required.
18478 always_export_symbols=$always_export_symbols
18480 # The commands to list exported symbols.
18481 export_symbols_cmds=$lt_export_symbols_cmds
18483 # The commands to extract the exported symbol list from a shared archive.
18484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18486 # Symbols that should not be listed in the preloaded symbols.
18487 exclude_expsyms=$lt_exclude_expsyms
18489 # Symbols that must always be exported.
18490 include_expsyms=$lt_include_expsyms
18492 # ### END LIBTOOL CONFIG
18494 __EOF__
18497 case $host_os in
18498 aix3*)
18499 cat <<\EOF >> "$cfgfile"
18501 # AIX sometimes has problems with the GCC collect2 program. For some
18502 # reason, if we set the COLLECT_NAMES environment variable, the problems
18503 # vanish in a puff of smoke.
18504 if test "X${COLLECT_NAMES+set}" != Xset; then
18505 COLLECT_NAMES=
18506 export COLLECT_NAMES
18510 esac
18512 # We use sed instead of cat because bash on DJGPP gets confused if
18513 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18514 # text mode, it properly converts lines to CR/LF. This bash problem
18515 # is reportedly fixed, but why not run on old versions too?
18516 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18518 mv -f "$cfgfile" "$ofile" || \
18519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18520 chmod +x "$ofile"
18522 else
18523 # If there is no Makefile yet, we rely on a make rule to execute
18524 # `config.status --recheck' to rerun these tests and create the
18525 # libtool script then.
18526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18527 if test -f "$ltmain_in"; then
18528 test -f Makefile && make "$ltmain"
18533 ac_ext=c
18534 ac_cpp='$CPP $CPPFLAGS'
18535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18539 CC="$lt_save_CC"
18542 # Check whether --with-tags was given.
18543 if test "${with_tags+set}" = set; then
18544 withval=$with_tags; tagnames="$withval"
18548 if test -f "$ltmain" && test -n "$tagnames"; then
18549 if test ! -f "${ofile}"; then
18550 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18551 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18554 if test -z "$LTCC"; then
18555 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18556 if test -z "$LTCC"; then
18557 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18558 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18559 else
18560 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18561 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18564 if test -z "$LTCFLAGS"; then
18565 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18568 # Extract list of available tagged configurations in $ofile.
18569 # Note that this assumes the entire list is on one line.
18570 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18573 for tagname in $tagnames; do
18574 IFS="$lt_save_ifs"
18575 # Check whether tagname contains only valid characters
18576 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18577 "") ;;
18578 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18579 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18580 { (exit 1); exit 1; }; }
18582 esac
18584 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18585 then
18586 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18587 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18588 { (exit 1); exit 1; }; }
18591 # Update the list of available tags.
18592 if test -n "$tagname"; then
18593 echo appending configuration tag \"$tagname\" to $ofile
18595 case $tagname in
18596 CXX)
18597 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18598 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18599 (test "X$CXX" != "Xg++"))) ; then
18600 ac_ext=cpp
18601 ac_cpp='$CXXCPP $CPPFLAGS'
18602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18609 archive_cmds_need_lc_CXX=no
18610 allow_undefined_flag_CXX=
18611 always_export_symbols_CXX=no
18612 archive_expsym_cmds_CXX=
18613 export_dynamic_flag_spec_CXX=
18614 hardcode_direct_CXX=no
18615 hardcode_libdir_flag_spec_CXX=
18616 hardcode_libdir_flag_spec_ld_CXX=
18617 hardcode_libdir_separator_CXX=
18618 hardcode_minus_L_CXX=no
18619 hardcode_shlibpath_var_CXX=unsupported
18620 hardcode_automatic_CXX=no
18621 module_cmds_CXX=
18622 module_expsym_cmds_CXX=
18623 link_all_deplibs_CXX=unknown
18624 old_archive_cmds_CXX=$old_archive_cmds
18625 no_undefined_flag_CXX=
18626 whole_archive_flag_spec_CXX=
18627 enable_shared_with_static_runtimes_CXX=no
18629 # Dependencies to place before and after the object being linked:
18630 predep_objects_CXX=
18631 postdep_objects_CXX=
18632 predeps_CXX=
18633 postdeps_CXX=
18634 compiler_lib_search_path_CXX=
18636 # Source file extension for C++ test sources.
18637 ac_ext=cpp
18639 # Object file extension for compiled C++ test sources.
18640 objext=o
18641 objext_CXX=$objext
18643 # Code to be used in simple compile tests
18644 lt_simple_compile_test_code="int some_variable = 0;\n"
18646 # Code to be used in simple link tests
18647 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18649 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18651 # If no C compiler was specified, use CC.
18652 LTCC=${LTCC-"$CC"}
18654 # If no C compiler flags were specified, use CFLAGS.
18655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18657 # Allow CC to be a program name with arguments.
18658 compiler=$CC
18661 # save warnings/boilerplate of simple test code
18662 ac_outfile=conftest.$ac_objext
18663 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18665 _lt_compiler_boilerplate=`cat conftest.err`
18666 $rm conftest*
18668 ac_outfile=conftest.$ac_objext
18669 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18671 _lt_linker_boilerplate=`cat conftest.err`
18672 $rm conftest*
18675 # Allow CC to be a program name with arguments.
18676 lt_save_CC=$CC
18677 lt_save_LD=$LD
18678 lt_save_GCC=$GCC
18679 GCC=$GXX
18680 lt_save_with_gnu_ld=$with_gnu_ld
18681 lt_save_path_LD=$lt_cv_path_LD
18682 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18683 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18684 else
18685 $as_unset lt_cv_prog_gnu_ld
18687 if test -n "${lt_cv_path_LDCXX+set}"; then
18688 lt_cv_path_LD=$lt_cv_path_LDCXX
18689 else
18690 $as_unset lt_cv_path_LD
18692 test -z "${LDCXX+set}" || LD=$LDCXX
18693 CC=${CXX-"c++"}
18694 compiler=$CC
18695 compiler_CXX=$CC
18696 for cc_temp in $compiler""; do
18697 case $cc_temp in
18698 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18699 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18700 \-*) ;;
18701 *) break;;
18702 esac
18703 done
18704 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18707 # We don't want -fno-exception wen compiling C++ code, so set the
18708 # no_builtin_flag separately
18709 if test "$GXX" = yes; then
18710 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18711 else
18712 lt_prog_compiler_no_builtin_flag_CXX=
18715 if test "$GXX" = yes; then
18716 # Set up default GNU C++ configuration
18719 # Check whether --with-gnu-ld was given.
18720 if test "${with_gnu_ld+set}" = set; then
18721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18722 else
18723 with_gnu_ld=no
18726 ac_prog=ld
18727 if test "$GCC" = yes; then
18728 # Check if gcc -print-prog-name=ld gives a path.
18729 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18730 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18731 case $host in
18732 *-*-mingw*)
18733 # gcc leaves a trailing carriage return which upsets mingw
18734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18737 esac
18738 case $ac_prog in
18739 # Accept absolute paths.
18740 [\\/]* | ?:[\\/]*)
18741 re_direlt='/[^/][^/]*/\.\./'
18742 # Canonicalize the pathname of ld
18743 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18744 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18745 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18746 done
18747 test -z "$LD" && LD="$ac_prog"
18750 # If it fails, then pretend we aren't using GCC.
18751 ac_prog=ld
18754 # If it is relative, then search for the first ld in PATH.
18755 with_gnu_ld=unknown
18757 esac
18758 elif test "$with_gnu_ld" = yes; then
18759 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18760 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18761 else
18762 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18763 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18765 if test "${lt_cv_path_LD+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768 if test -z "$LD"; then
18769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18770 for ac_dir in $PATH; do
18771 IFS="$lt_save_ifs"
18772 test -z "$ac_dir" && ac_dir=.
18773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18774 lt_cv_path_LD="$ac_dir/$ac_prog"
18775 # Check to see if the program is GNU ld. I'd rather use --version,
18776 # but apparently some variants of GNU ld only accept -v.
18777 # Break only if it was the GNU/non-GNU ld that we prefer.
18778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18779 *GNU* | *'with BFD'*)
18780 test "$with_gnu_ld" != no && break
18783 test "$with_gnu_ld" != yes && break
18785 esac
18787 done
18788 IFS="$lt_save_ifs"
18789 else
18790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18794 LD="$lt_cv_path_LD"
18795 if test -n "$LD"; then
18796 { echo "$as_me:$LINENO: result: $LD" >&5
18797 echo "${ECHO_T}$LD" >&6; }
18798 else
18799 { echo "$as_me:$LINENO: result: no" >&5
18800 echo "${ECHO_T}no" >&6; }
18802 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18803 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18804 { (exit 1); exit 1; }; }
18805 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18806 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18807 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18811 case `$LD -v 2>&1 </dev/null` in
18812 *GNU* | *'with BFD'*)
18813 lt_cv_prog_gnu_ld=yes
18816 lt_cv_prog_gnu_ld=no
18818 esac
18820 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18821 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18822 with_gnu_ld=$lt_cv_prog_gnu_ld
18826 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18827 # archiving commands below assume that GNU ld is being used.
18828 if test "$with_gnu_ld" = yes; then
18829 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18830 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'
18832 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18835 # If archive_cmds runs LD, not CC, wlarc should be empty
18836 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18837 # investigate it a little bit more. (MM)
18838 wlarc='${wl}'
18840 # ancient GNU ld didn't support --whole-archive et. al.
18841 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18842 grep 'no-whole-archive' > /dev/null; then
18843 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18844 else
18845 whole_archive_flag_spec_CXX=
18847 else
18848 with_gnu_ld=no
18849 wlarc=
18851 # A generic and very simple default shared library creation
18852 # command for GNU C++ for the case where it uses the native
18853 # linker, instead of GNU ld. If possible, this setting should
18854 # overridden to take advantage of the native linker features on
18855 # the platform it is being used on.
18856 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18859 # Commands to make compiler produce verbose output that lists
18860 # what "hidden" libraries, object files and flags are used when
18861 # linking a shared library.
18862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18864 else
18865 GXX=no
18866 with_gnu_ld=no
18867 wlarc=
18870 # PORTME: fill in a description of your system's C++ link characteristics
18871 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18872 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18873 ld_shlibs_CXX=yes
18874 case $host_os in
18875 aix3*)
18876 # FIXME: insert proper C++ library support
18877 ld_shlibs_CXX=no
18879 aix4* | aix5*)
18880 if test "$host_cpu" = ia64; then
18881 # On IA64, the linker does run time linking by default, so we don't
18882 # have to do anything special.
18883 aix_use_runtimelinking=no
18884 exp_sym_flag='-Bexport'
18885 no_entry_flag=""
18886 else
18887 aix_use_runtimelinking=no
18889 # Test if we are trying to use run time linking or normal
18890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18891 # need to do runtime linking.
18892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18893 for ld_flag in $LDFLAGS; do
18894 case $ld_flag in
18895 *-brtl*)
18896 aix_use_runtimelinking=yes
18897 break
18899 esac
18900 done
18902 esac
18904 exp_sym_flag='-bexport'
18905 no_entry_flag='-bnoentry'
18908 # When large executables or shared objects are built, AIX ld can
18909 # have problems creating the table of contents. If linking a library
18910 # or program results in "error TOC overflow" add -mminimal-toc to
18911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18914 archive_cmds_CXX=''
18915 hardcode_direct_CXX=yes
18916 hardcode_libdir_separator_CXX=':'
18917 link_all_deplibs_CXX=yes
18919 if test "$GXX" = yes; then
18920 case $host_os in aix4.[012]|aix4.[012].*)
18921 # We only want to do this on AIX 4.2 and lower, the check
18922 # below for broken collect2 doesn't work under 4.3+
18923 collect2name=`${CC} -print-prog-name=collect2`
18924 if test -f "$collect2name" && \
18925 strings "$collect2name" | grep resolve_lib_name >/dev/null
18926 then
18927 # We have reworked collect2
18928 hardcode_direct_CXX=yes
18929 else
18930 # We have old collect2
18931 hardcode_direct_CXX=unsupported
18932 # It fails to find uninstalled libraries when the uninstalled
18933 # path is not listed in the libpath. Setting hardcode_minus_L
18934 # to unsupported forces relinking
18935 hardcode_minus_L_CXX=yes
18936 hardcode_libdir_flag_spec_CXX='-L$libdir'
18937 hardcode_libdir_separator_CXX=
18940 esac
18941 shared_flag='-shared'
18942 if test "$aix_use_runtimelinking" = yes; then
18943 shared_flag="$shared_flag "'${wl}-G'
18945 else
18946 # not using gcc
18947 if test "$host_cpu" = ia64; then
18948 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18949 # chokes on -Wl,-G. The following line is correct:
18950 shared_flag='-G'
18951 else
18952 if test "$aix_use_runtimelinking" = yes; then
18953 shared_flag='${wl}-G'
18954 else
18955 shared_flag='${wl}-bM:SRE'
18960 # It seems that -bexpall does not export symbols beginning with
18961 # underscore (_), so it is better to generate a list of symbols to export.
18962 always_export_symbols_CXX=yes
18963 if test "$aix_use_runtimelinking" = yes; then
18964 # Warning - without using the other runtime loading flags (-brtl),
18965 # -berok will link without error, but may produce a broken library.
18966 allow_undefined_flag_CXX='-berok'
18967 # Determine the default libpath from the value encoded in an empty executable.
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h. */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18976 main ()
18980 return 0;
18982 _ACEOF
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_link") 2>conftest.er1
18991 ac_status=$?
18992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19020 # Check for a 64-bit object if we didn't find anything.
19021 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; }
19022 }'`; fi
19023 else
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19030 rm -f core conftest.err conftest.$ac_objext \
19031 conftest$ac_exeext conftest.$ac_ext
19032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19034 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19036 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"
19037 else
19038 if test "$host_cpu" = ia64; then
19039 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19040 allow_undefined_flag_CXX="-z nodefs"
19041 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"
19042 else
19043 # Determine the default libpath from the value encoded in an empty executable.
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19052 main ()
19056 return 0;
19058 _ACEOF
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (ac_try="$ac_link"
19061 case "(($ac_try" in
19062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063 *) ac_try_echo=$ac_try;;
19064 esac
19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066 (eval "$ac_link") 2>conftest.er1
19067 ac_status=$?
19068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
19073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19074 { (case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077 esac
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_try") 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; } &&
19083 { ac_try='test -s conftest$ac_exeext'
19084 { (case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_try") 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19096 # Check for a 64-bit object if we didn't find anything.
19097 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; }
19098 }'`; fi
19099 else
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19106 rm -f core conftest.err conftest.$ac_objext \
19107 conftest$ac_exeext conftest.$ac_ext
19108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19111 # Warning - without using the other run time loading flags,
19112 # -berok will link without error, but may produce a broken library.
19113 no_undefined_flag_CXX=' ${wl}-bernotok'
19114 allow_undefined_flag_CXX=' ${wl}-berok'
19115 # Exported symbols can be pulled into shared objects from archives
19116 whole_archive_flag_spec_CXX='$convenience'
19117 archive_cmds_need_lc_CXX=yes
19118 # This is similar to how AIX traditionally builds its shared libraries.
19119 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'
19124 beos*)
19125 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19126 allow_undefined_flag_CXX=unsupported
19127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19128 # support --undefined. This deserves some investigation. FIXME
19129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130 else
19131 ld_shlibs_CXX=no
19135 chorus*)
19136 case $cc_basename in
19138 # FIXME: insert proper C++ library support
19139 ld_shlibs_CXX=no
19141 esac
19144 cygwin* | mingw* | pw32*)
19145 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19146 # as there is no search path for DLLs.
19147 hardcode_libdir_flag_spec_CXX='-L$libdir'
19148 allow_undefined_flag_CXX=unsupported
19149 always_export_symbols_CXX=no
19150 enable_shared_with_static_runtimes_CXX=yes
19152 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19153 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'
19154 # If the export-symbols file already is a .def file (1st line
19155 # is EXPORTS), use it as is; otherwise, prepend...
19156 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19157 cp $export_symbols $output_objdir/$soname.def;
19158 else
19159 echo EXPORTS > $output_objdir/$soname.def;
19160 cat $export_symbols >> $output_objdir/$soname.def;
19162 $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'
19163 else
19164 ld_shlibs_CXX=no
19167 darwin* | rhapsody*)
19168 case $host_os in
19169 rhapsody* | darwin1.[012])
19170 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19172 *) # Darwin 1.3 on
19173 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19174 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19175 else
19176 case ${MACOSX_DEPLOYMENT_TARGET} in
19177 10.[012])
19178 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19180 10.*)
19181 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19183 esac
19186 esac
19187 archive_cmds_need_lc_CXX=no
19188 hardcode_direct_CXX=no
19189 hardcode_automatic_CXX=yes
19190 hardcode_shlibpath_var_CXX=unsupported
19191 whole_archive_flag_spec_CXX=''
19192 link_all_deplibs_CXX=yes
19194 if test "$GXX" = yes ; then
19195 lt_int_apple_cc_single_mod=no
19196 output_verbose_link_cmd='echo'
19197 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19198 lt_int_apple_cc_single_mod=yes
19200 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19201 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19202 else
19203 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'
19205 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19206 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19207 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19208 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}'
19209 else
19210 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}'
19212 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}'
19213 else
19214 case $cc_basename in
19215 xlc*)
19216 output_verbose_link_cmd='echo'
19217 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'
19218 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19220 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}'
19221 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}'
19224 ld_shlibs_CXX=no
19226 esac
19230 dgux*)
19231 case $cc_basename in
19232 ec++*)
19233 # FIXME: insert proper C++ library support
19234 ld_shlibs_CXX=no
19236 ghcx*)
19237 # Green Hills C++ Compiler
19238 # FIXME: insert proper C++ library support
19239 ld_shlibs_CXX=no
19242 # FIXME: insert proper C++ library support
19243 ld_shlibs_CXX=no
19245 esac
19247 freebsd[12]*)
19248 # C++ shared libraries reported to be fairly broken before switch to ELF
19249 ld_shlibs_CXX=no
19251 freebsd-elf*)
19252 archive_cmds_need_lc_CXX=no
19254 freebsd* | kfreebsd*-gnu | dragonfly*)
19255 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19256 # conventions
19257 ld_shlibs_CXX=yes
19259 gnu*)
19261 hpux9*)
19262 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19263 hardcode_libdir_separator_CXX=:
19264 export_dynamic_flag_spec_CXX='${wl}-E'
19265 hardcode_direct_CXX=yes
19266 hardcode_minus_L_CXX=yes # Not in the search PATH,
19267 # but as the default
19268 # location of the library.
19270 case $cc_basename in
19271 CC*)
19272 # FIXME: insert proper C++ library support
19273 ld_shlibs_CXX=no
19275 aCC*)
19276 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'
19277 # Commands to make compiler produce verbose output that lists
19278 # what "hidden" libraries, object files and flags are used when
19279 # linking a shared library.
19281 # There doesn't appear to be a way to prevent this compiler from
19282 # explicitly linking system object files so we need to strip them
19283 # from the output so that they don't get included in the library
19284 # dependencies.
19285 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'
19288 if test "$GXX" = yes; then
19289 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'
19290 else
19291 # FIXME: insert proper C++ library support
19292 ld_shlibs_CXX=no
19295 esac
19297 hpux10*|hpux11*)
19298 if test $with_gnu_ld = no; then
19299 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19300 hardcode_libdir_separator_CXX=:
19302 case $host_cpu in
19303 hppa*64*|ia64*)
19304 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19307 export_dynamic_flag_spec_CXX='${wl}-E'
19309 esac
19311 case $host_cpu in
19312 hppa*64*|ia64*)
19313 hardcode_direct_CXX=no
19314 hardcode_shlibpath_var_CXX=no
19317 hardcode_direct_CXX=yes
19318 hardcode_minus_L_CXX=yes # Not in the search PATH,
19319 # but as the default
19320 # location of the library.
19322 esac
19324 case $cc_basename in
19325 CC*)
19326 # FIXME: insert proper C++ library support
19327 ld_shlibs_CXX=no
19329 aCC*)
19330 case $host_cpu in
19331 hppa*64*)
19332 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19334 ia64*)
19335 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19338 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19340 esac
19341 # Commands to make compiler produce verbose output that lists
19342 # what "hidden" libraries, object files and flags are used when
19343 # linking a shared library.
19345 # There doesn't appear to be a way to prevent this compiler from
19346 # explicitly linking system object files so we need to strip them
19347 # from the output so that they don't get included in the library
19348 # dependencies.
19349 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'
19352 if test "$GXX" = yes; then
19353 if test $with_gnu_ld = no; then
19354 case $host_cpu in
19355 hppa*64*)
19356 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19358 ia64*)
19359 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19362 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'
19364 esac
19366 else
19367 # FIXME: insert proper C++ library support
19368 ld_shlibs_CXX=no
19371 esac
19373 interix3*)
19374 hardcode_direct_CXX=no
19375 hardcode_shlibpath_var_CXX=no
19376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19377 export_dynamic_flag_spec_CXX='${wl}-E'
19378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19379 # Instead, shared libraries are loaded at an image base (0x10000000 by
19380 # default) and relocated if they conflict, which is a slow very memory
19381 # consuming and fragmenting process. To avoid this, we pick a random,
19382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19383 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19384 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'
19385 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'
19387 irix5* | irix6*)
19388 case $cc_basename in
19389 CC*)
19390 # SGI C++
19391 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'
19393 # Archives containing C++ object files must be created using
19394 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19395 # necessary to make sure instantiated templates are included
19396 # in the archive.
19397 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19400 if test "$GXX" = yes; then
19401 if test "$with_gnu_ld" = no; then
19402 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'
19403 else
19404 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'
19407 link_all_deplibs_CXX=yes
19409 esac
19410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19411 hardcode_libdir_separator_CXX=:
19413 linux*)
19414 case $cc_basename in
19415 KCC*)
19416 # Kuck and Associates, Inc. (KAI) C++ Compiler
19418 # KCC will only create a shared library if the output file
19419 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19420 # to its proper name (with version) after linking.
19421 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'
19422 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'
19423 # Commands to make compiler produce verbose output that lists
19424 # what "hidden" libraries, object files and flags are used when
19425 # linking a shared library.
19427 # There doesn't appear to be a way to prevent this compiler from
19428 # explicitly linking system object files so we need to strip them
19429 # from the output so that they don't get included in the library
19430 # dependencies.
19431 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'
19433 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19436 # Archives containing C++ object files must be created using
19437 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19438 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19440 icpc*)
19441 # Intel C++
19442 with_gnu_ld=yes
19443 # version 8.0 and above of icpc choke on multiply defined symbols
19444 # if we add $predep_objects and $postdep_objects, however 7.1 and
19445 # earlier do not add the objects themselves.
19446 case `$CC -V 2>&1` in
19447 *"Version 7."*)
19448 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449 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'
19451 *) # Version 8.0 or newer
19452 tmp_idyn=
19453 case $host_cpu in
19454 ia64*) tmp_idyn=' -i_dynamic';;
19455 esac
19456 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19457 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'
19459 esac
19460 archive_cmds_need_lc_CXX=no
19461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19463 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19465 pgCC*)
19466 # Portland Group C++ compiler
19467 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19468 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'
19470 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19472 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'
19474 cxx*)
19475 # Compaq C++
19476 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19477 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'
19479 runpath_var=LD_RUN_PATH
19480 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19481 hardcode_libdir_separator_CXX=:
19483 # Commands to make compiler produce verbose output that lists
19484 # what "hidden" libraries, object files and flags are used when
19485 # linking a shared library.
19487 # There doesn't appear to be a way to prevent this compiler from
19488 # explicitly linking system object files so we need to strip them
19489 # from the output so that they don't get included in the library
19490 # dependencies.
19491 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'
19493 esac
19495 lynxos*)
19496 # FIXME: insert proper C++ library support
19497 ld_shlibs_CXX=no
19499 m88k*)
19500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19503 mvs*)
19504 case $cc_basename in
19505 cxx*)
19506 # FIXME: insert proper C++ library support
19507 ld_shlibs_CXX=no
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19513 esac
19515 netbsd*)
19516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19517 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19518 wlarc=
19519 hardcode_libdir_flag_spec_CXX='-R$libdir'
19520 hardcode_direct_CXX=yes
19521 hardcode_shlibpath_var_CXX=no
19523 # Workaround some broken pre-1.5 toolchains
19524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19526 openbsd2*)
19527 # C++ shared libraries are fairly broken
19528 ld_shlibs_CXX=no
19530 openbsd*)
19531 hardcode_direct_CXX=yes
19532 hardcode_shlibpath_var_CXX=no
19533 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19534 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19536 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19537 export_dynamic_flag_spec_CXX='${wl}-E'
19538 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19540 output_verbose_link_cmd='echo'
19542 osf3*)
19543 case $cc_basename in
19544 KCC*)
19545 # Kuck and Associates, Inc. (KAI) C++ Compiler
19547 # KCC will only create a shared library if the output file
19548 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19549 # to its proper name (with version) after linking.
19550 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'
19552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19553 hardcode_libdir_separator_CXX=:
19555 # Archives containing C++ object files must be created using
19556 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19557 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19560 RCC*)
19561 # Rational C++ 2.4.1
19562 # FIXME: insert proper C++ library support
19563 ld_shlibs_CXX=no
19565 cxx*)
19566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19567 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'
19569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19570 hardcode_libdir_separator_CXX=:
19572 # Commands to make compiler produce verbose output that lists
19573 # what "hidden" libraries, object files and flags are used when
19574 # linking a shared library.
19576 # There doesn't appear to be a way to prevent this compiler from
19577 # explicitly linking system object files so we need to strip them
19578 # from the output so that they don't get included in the library
19579 # dependencies.
19580 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'
19583 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19585 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'
19587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19588 hardcode_libdir_separator_CXX=:
19590 # Commands to make compiler produce verbose output that lists
19591 # what "hidden" libraries, object files and flags are used when
19592 # linking a shared library.
19593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19595 else
19596 # FIXME: insert proper C++ library support
19597 ld_shlibs_CXX=no
19600 esac
19602 osf4* | osf5*)
19603 case $cc_basename in
19604 KCC*)
19605 # Kuck and Associates, Inc. (KAI) C++ Compiler
19607 # KCC will only create a shared library if the output file
19608 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19609 # to its proper name (with version) after linking.
19610 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'
19612 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19613 hardcode_libdir_separator_CXX=:
19615 # Archives containing C++ object files must be created using
19616 # the KAI C++ compiler.
19617 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19619 RCC*)
19620 # Rational C++ 2.4.1
19621 # FIXME: insert proper C++ library support
19622 ld_shlibs_CXX=no
19624 cxx*)
19625 allow_undefined_flag_CXX=' -expect_unresolved \*'
19626 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'
19627 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19628 echo "-hidden">> $lib.exp~
19629 $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~
19630 $rm $lib.exp'
19632 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19633 hardcode_libdir_separator_CXX=:
19635 # Commands to make compiler produce verbose output that lists
19636 # what "hidden" libraries, object files and flags are used when
19637 # linking a shared library.
19639 # There doesn't appear to be a way to prevent this compiler from
19640 # explicitly linking system object files so we need to strip them
19641 # from the output so that they don't get included in the library
19642 # dependencies.
19643 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'
19646 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19648 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'
19650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_CXX=:
19653 # Commands to make compiler produce verbose output that lists
19654 # what "hidden" libraries, object files and flags are used when
19655 # linking a shared library.
19656 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19658 else
19659 # FIXME: insert proper C++ library support
19660 ld_shlibs_CXX=no
19663 esac
19665 psos*)
19666 # FIXME: insert proper C++ library support
19667 ld_shlibs_CXX=no
19669 sunos4*)
19670 case $cc_basename in
19671 CC*)
19672 # Sun C++ 4.x
19673 # FIXME: insert proper C++ library support
19674 ld_shlibs_CXX=no
19676 lcc*)
19677 # Lucid
19678 # FIXME: insert proper C++ library support
19679 ld_shlibs_CXX=no
19682 # FIXME: insert proper C++ library support
19683 ld_shlibs_CXX=no
19685 esac
19687 solaris*)
19688 case $cc_basename in
19689 CC*)
19690 # Sun C++ 4.2, 5.x and Centerline C++
19691 archive_cmds_need_lc_CXX=yes
19692 no_undefined_flag_CXX=' -zdefs'
19693 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19694 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19695 $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'
19697 hardcode_libdir_flag_spec_CXX='-R$libdir'
19698 hardcode_shlibpath_var_CXX=no
19699 case $host_os in
19700 solaris2.[0-5] | solaris2.[0-5].*) ;;
19702 # The C++ compiler is used as linker so we must use $wl
19703 # flag to pass the commands to the underlying system
19704 # linker. We must also pass each convience library through
19705 # to the system linker between allextract/defaultextract.
19706 # The C++ compiler will combine linker options so we
19707 # cannot just pass the convience library names through
19708 # without $wl.
19709 # Supported since Solaris 2.6 (maybe 2.5.1?)
19710 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'
19712 esac
19713 link_all_deplibs_CXX=yes
19715 output_verbose_link_cmd='echo'
19717 # Archives containing C++ object files must be created using
19718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19719 # necessary to make sure instantiated templates are included
19720 # in the archive.
19721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19723 gcx*)
19724 # Green Hills C++ Compiler
19725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19727 # The C++ compiler must be used to create the archive.
19728 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19731 # GNU C++ compiler with Solaris linker
19732 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19733 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19734 if $CC --version | grep -v '^2\.7' > /dev/null; then
19735 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19736 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19737 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19739 # Commands to make compiler produce verbose output that lists
19740 # what "hidden" libraries, object files and flags are used when
19741 # linking a shared library.
19742 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19743 else
19744 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19745 # platform.
19746 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19747 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19748 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19750 # Commands to make compiler produce verbose output that lists
19751 # what "hidden" libraries, object files and flags are used when
19752 # linking a shared library.
19753 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19756 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19759 esac
19761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19762 no_undefined_flag_CXX='${wl}-z,text'
19763 archive_cmds_need_lc_CXX=no
19764 hardcode_shlibpath_var_CXX=no
19765 runpath_var='LD_RUN_PATH'
19767 case $cc_basename in
19768 CC*)
19769 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19773 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19776 esac
19778 sysv5* | sco3.2v5* | sco5v6*)
19779 # Note: We can NOT use -z defs as we might desire, because we do not
19780 # link with -lc, and that would cause any symbols used from libc to
19781 # always be unresolved, which means just about no library would
19782 # ever link correctly. If we're not using GNU ld we use -z text
19783 # though, which does catch some bad symbols but isn't as heavy-handed
19784 # as -z defs.
19785 # For security reasons, it is highly recommended that you always
19786 # use absolute paths for naming shared libraries, and exclude the
19787 # DT_RUNPATH tag from executables and libraries. But doing so
19788 # requires that you compile everything twice, which is a pain.
19789 # So that behaviour is only enabled if SCOABSPATH is set to a
19790 # non-empty value in the environment. Most likely only useful for
19791 # creating official distributions of packages.
19792 # This is a hack until libtool officially supports absolute path
19793 # names for shared libraries.
19794 no_undefined_flag_CXX='${wl}-z,text'
19795 allow_undefined_flag_CXX='${wl}-z,nodefs'
19796 archive_cmds_need_lc_CXX=no
19797 hardcode_shlibpath_var_CXX=no
19798 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19799 hardcode_libdir_separator_CXX=':'
19800 link_all_deplibs_CXX=yes
19801 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19802 runpath_var='LD_RUN_PATH'
19804 case $cc_basename in
19805 CC*)
19806 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19807 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19810 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19811 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19813 esac
19815 tandem*)
19816 case $cc_basename in
19817 NCC*)
19818 # NonStop-UX NCC 3.20
19819 # FIXME: insert proper C++ library support
19820 ld_shlibs_CXX=no
19823 # FIXME: insert proper C++ library support
19824 ld_shlibs_CXX=no
19826 esac
19828 vxworks*)
19829 # FIXME: insert proper C++ library support
19830 ld_shlibs_CXX=no
19833 # FIXME: insert proper C++ library support
19834 ld_shlibs_CXX=no
19836 esac
19837 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19838 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19839 test "$ld_shlibs_CXX" = no && can_build_shared=no
19841 GCC_CXX="$GXX"
19842 LD_CXX="$LD"
19845 cat > conftest.$ac_ext <<EOF
19846 class Foo
19848 public:
19849 Foo (void) { a = 0; }
19850 private:
19851 int a;
19855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19856 (eval $ac_compile) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; then
19860 # Parse the compiler output and extract the necessary
19861 # objects, libraries and library flags.
19863 # Sentinel used to keep track of whether or not we are before
19864 # the conftest object file.
19865 pre_test_object_deps_done=no
19867 # The `*' in the case matches for architectures that use `case' in
19868 # $output_verbose_cmd can trigger glob expansion during the loop
19869 # eval without this substitution.
19870 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19872 for p in `eval $output_verbose_link_cmd`; do
19873 case $p in
19875 -L* | -R* | -l*)
19876 # Some compilers place space between "-{L,R}" and the path.
19877 # Remove the space.
19878 if test $p = "-L" \
19879 || test $p = "-R"; then
19880 prev=$p
19881 continue
19882 else
19883 prev=
19886 if test "$pre_test_object_deps_done" = no; then
19887 case $p in
19888 -L* | -R*)
19889 # Internal compiler library paths should come after those
19890 # provided the user. The postdeps already come after the
19891 # user supplied libs so there is no need to process them.
19892 if test -z "$compiler_lib_search_path_CXX"; then
19893 compiler_lib_search_path_CXX="${prev}${p}"
19894 else
19895 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19898 # The "-l" case would never come before the object being
19899 # linked, so don't bother handling this case.
19900 esac
19901 else
19902 if test -z "$postdeps_CXX"; then
19903 postdeps_CXX="${prev}${p}"
19904 else
19905 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19910 *.$objext)
19911 # This assumes that the test object file only shows up
19912 # once in the compiler output.
19913 if test "$p" = "conftest.$objext"; then
19914 pre_test_object_deps_done=yes
19915 continue
19918 if test "$pre_test_object_deps_done" = no; then
19919 if test -z "$predep_objects_CXX"; then
19920 predep_objects_CXX="$p"
19921 else
19922 predep_objects_CXX="$predep_objects_CXX $p"
19924 else
19925 if test -z "$postdep_objects_CXX"; then
19926 postdep_objects_CXX="$p"
19927 else
19928 postdep_objects_CXX="$postdep_objects_CXX $p"
19933 *) ;; # Ignore the rest.
19935 esac
19936 done
19938 # Clean up.
19939 rm -f a.out a.exe
19940 else
19941 echo "libtool.m4: error: problem compiling CXX test program"
19944 $rm -f confest.$objext
19946 # PORTME: override above test on systems where it is broken
19947 case $host_os in
19948 interix3*)
19949 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19950 # hack all around it, let's just trust "g++" to DTRT.
19951 predep_objects_CXX=
19952 postdep_objects_CXX=
19953 postdeps_CXX=
19956 solaris*)
19957 case $cc_basename in
19958 CC*)
19959 # Adding this requires a known-good setup of shared libraries for
19960 # Sun compiler versions before 5.6, else PIC objects from an old
19961 # archive will be linked into the output, leading to subtle bugs.
19962 postdeps_CXX='-lCstd -lCrun'
19964 esac
19966 esac
19969 case " $postdeps_CXX " in
19970 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19971 esac
19973 lt_prog_compiler_wl_CXX=
19974 lt_prog_compiler_pic_CXX=
19975 lt_prog_compiler_static_CXX=
19977 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19978 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19980 # C++ specific cases for pic, static, wl, etc.
19981 if test "$GXX" = yes; then
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 lt_prog_compiler_static_CXX='-static'
19985 case $host_os in
19986 aix*)
19987 # All AIX code is PIC.
19988 if test "$host_cpu" = ia64; then
19989 # AIX 5 now supports IA64 processor
19990 lt_prog_compiler_static_CXX='-Bstatic'
19993 amigaos*)
19994 # FIXME: we need at least 68020 code to build shared libraries, but
19995 # adding the `-m68020' flag to GCC prevents building anything better,
19996 # like `-m68040'.
19997 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19999 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20000 # PIC is the default for these OSes.
20002 mingw* | os2* | pw32*)
20003 # This hack is so that the source file can tell whether it is being
20004 # built for inclusion in a dll (and should export symbols for example).
20005 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20007 darwin* | rhapsody*)
20008 # PIC is the default on this platform
20009 # Common symbols not allowed in MH_DYLIB files
20010 lt_prog_compiler_pic_CXX='-fno-common'
20012 *djgpp*)
20013 # DJGPP does not support shared libraries at all
20014 lt_prog_compiler_pic_CXX=
20016 interix3*)
20017 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20018 # Instead, we relocate shared libraries at runtime.
20020 sysv4*MP*)
20021 if test -d /usr/nec; then
20022 lt_prog_compiler_pic_CXX=-Kconform_pic
20025 hpux*)
20026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20027 # not for PA HP-UX.
20028 case $host_cpu in
20029 hppa*64*|ia64*)
20032 lt_prog_compiler_pic_CXX='-fPIC'
20034 esac
20037 lt_prog_compiler_pic_CXX='-fPIC'
20039 esac
20040 else
20041 case $host_os in
20042 aix4* | aix5*)
20043 # All AIX code is PIC.
20044 if test "$host_cpu" = ia64; then
20045 # AIX 5 now supports IA64 processor
20046 lt_prog_compiler_static_CXX='-Bstatic'
20047 else
20048 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20051 chorus*)
20052 case $cc_basename in
20053 cxch68*)
20054 # Green Hills C++ Compiler
20055 # _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"
20057 esac
20059 darwin*)
20060 # PIC is the default on this platform
20061 # Common symbols not allowed in MH_DYLIB files
20062 case $cc_basename in
20063 xlc*)
20064 lt_prog_compiler_pic_CXX='-qnocommon'
20065 lt_prog_compiler_wl_CXX='-Wl,'
20067 esac
20069 dgux*)
20070 case $cc_basename in
20071 ec++*)
20072 lt_prog_compiler_pic_CXX='-KPIC'
20074 ghcx*)
20075 # Green Hills C++ Compiler
20076 lt_prog_compiler_pic_CXX='-pic'
20080 esac
20082 freebsd* | kfreebsd*-gnu | dragonfly*)
20083 # FreeBSD uses GNU C++
20085 hpux9* | hpux10* | hpux11*)
20086 case $cc_basename in
20087 CC*)
20088 lt_prog_compiler_wl_CXX='-Wl,'
20089 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20090 if test "$host_cpu" != ia64; then
20091 lt_prog_compiler_pic_CXX='+Z'
20094 aCC*)
20095 lt_prog_compiler_wl_CXX='-Wl,'
20096 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20097 case $host_cpu in
20098 hppa*64*|ia64*)
20099 # +Z the default
20102 lt_prog_compiler_pic_CXX='+Z'
20104 esac
20108 esac
20110 interix*)
20111 # This is c89, which is MS Visual C++ (no shared libs)
20112 # Anyone wants to do a port?
20114 irix5* | irix6* | nonstopux*)
20115 case $cc_basename in
20116 CC*)
20117 lt_prog_compiler_wl_CXX='-Wl,'
20118 lt_prog_compiler_static_CXX='-non_shared'
20119 # CC pic flag -KPIC is the default.
20123 esac
20125 linux*)
20126 case $cc_basename in
20127 KCC*)
20128 # KAI C++ Compiler
20129 lt_prog_compiler_wl_CXX='--backend -Wl,'
20130 lt_prog_compiler_pic_CXX='-fPIC'
20132 icpc* | ecpc*)
20133 # Intel C++
20134 lt_prog_compiler_wl_CXX='-Wl,'
20135 lt_prog_compiler_pic_CXX='-KPIC'
20136 lt_prog_compiler_static_CXX='-static'
20138 pgCC*)
20139 # Portland Group C++ compiler.
20140 lt_prog_compiler_wl_CXX='-Wl,'
20141 lt_prog_compiler_pic_CXX='-fpic'
20142 lt_prog_compiler_static_CXX='-Bstatic'
20144 cxx*)
20145 # Compaq C++
20146 # Make sure the PIC flag is empty. It appears that all Alpha
20147 # Linux and Compaq Tru64 Unix objects are PIC.
20148 lt_prog_compiler_pic_CXX=
20149 lt_prog_compiler_static_CXX='-non_shared'
20153 esac
20155 lynxos*)
20157 m88k*)
20159 mvs*)
20160 case $cc_basename in
20161 cxx*)
20162 lt_prog_compiler_pic_CXX='-W c,exportall'
20166 esac
20168 netbsd*)
20170 osf3* | osf4* | osf5*)
20171 case $cc_basename in
20172 KCC*)
20173 lt_prog_compiler_wl_CXX='--backend -Wl,'
20175 RCC*)
20176 # Rational C++ 2.4.1
20177 lt_prog_compiler_pic_CXX='-pic'
20179 cxx*)
20180 # Digital/Compaq C++
20181 lt_prog_compiler_wl_CXX='-Wl,'
20182 # Make sure the PIC flag is empty. It appears that all Alpha
20183 # Linux and Compaq Tru64 Unix objects are PIC.
20184 lt_prog_compiler_pic_CXX=
20185 lt_prog_compiler_static_CXX='-non_shared'
20189 esac
20191 psos*)
20193 solaris*)
20194 case $cc_basename in
20195 CC*)
20196 # Sun C++ 4.2, 5.x and Centerline C++
20197 lt_prog_compiler_pic_CXX='-KPIC'
20198 lt_prog_compiler_static_CXX='-Bstatic'
20199 lt_prog_compiler_wl_CXX='-Qoption ld '
20201 gcx*)
20202 # Green Hills C++ Compiler
20203 lt_prog_compiler_pic_CXX='-PIC'
20207 esac
20209 sunos4*)
20210 case $cc_basename in
20211 CC*)
20212 # Sun C++ 4.x
20213 lt_prog_compiler_pic_CXX='-pic'
20214 lt_prog_compiler_static_CXX='-Bstatic'
20216 lcc*)
20217 # Lucid
20218 lt_prog_compiler_pic_CXX='-pic'
20222 esac
20224 tandem*)
20225 case $cc_basename in
20226 NCC*)
20227 # NonStop-UX NCC 3.20
20228 lt_prog_compiler_pic_CXX='-KPIC'
20232 esac
20234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20235 case $cc_basename in
20236 CC*)
20237 lt_prog_compiler_wl_CXX='-Wl,'
20238 lt_prog_compiler_pic_CXX='-KPIC'
20239 lt_prog_compiler_static_CXX='-Bstatic'
20241 esac
20243 vxworks*)
20246 lt_prog_compiler_can_build_shared_CXX=no
20248 esac
20251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20252 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20255 # Check to make sure the PIC flag actually works.
20257 if test -n "$lt_prog_compiler_pic_CXX"; then
20259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20261 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264 lt_prog_compiler_pic_works_CXX=no
20265 ac_outfile=conftest.$ac_objext
20266 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20267 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20268 # Insert the option either (1) after the last *FLAGS variable, or
20269 # (2) before a word containing "conftest.", or (3) at the end.
20270 # Note that $ac_compile itself does not contain backslashes and begins
20271 # with a dollar sign (not a hyphen), so the echo should work correctly.
20272 # The option is referenced via a variable to avoid confusing sed.
20273 lt_compile=`echo "$ac_compile" | $SED \
20274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20276 -e 's:$: $lt_compiler_flag:'`
20277 (eval echo "\"\$as_me:20277: $lt_compile\"" >&5)
20278 (eval "$lt_compile" 2>conftest.err)
20279 ac_status=$?
20280 cat conftest.err >&5
20281 echo "$as_me:20281: \$? = $ac_status" >&5
20282 if (exit $ac_status) && test -s "$ac_outfile"; then
20283 # The compiler can only warn and ignore the option if not recognized
20284 # So say no if there are warnings other than the usual output.
20285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20288 lt_prog_compiler_pic_works_CXX=yes
20291 $rm conftest*
20294 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20295 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20297 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20298 case $lt_prog_compiler_pic_CXX in
20299 "" | " "*) ;;
20300 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20301 esac
20302 else
20303 lt_prog_compiler_pic_CXX=
20304 lt_prog_compiler_can_build_shared_CXX=no
20308 case $host_os in
20309 # For platforms which do not support PIC, -DPIC is meaningless:
20310 *djgpp*)
20311 lt_prog_compiler_pic_CXX=
20314 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20316 esac
20319 # Check to make sure the static flag actually works.
20321 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20322 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20323 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20324 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20326 else
20327 lt_prog_compiler_static_works_CXX=no
20328 save_LDFLAGS="$LDFLAGS"
20329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20330 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20332 # The linker can only warn and ignore the option if not recognized
20333 # So say no if there are warnings
20334 if test -s conftest.err; then
20335 # Append any errors to the config.log.
20336 cat conftest.err 1>&5
20337 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20339 if diff conftest.exp conftest.er2 >/dev/null; then
20340 lt_prog_compiler_static_works_CXX=yes
20342 else
20343 lt_prog_compiler_static_works_CXX=yes
20346 $rm conftest*
20347 LDFLAGS="$save_LDFLAGS"
20350 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20351 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20353 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20355 else
20356 lt_prog_compiler_static_CXX=
20360 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20361 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20362 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365 lt_cv_prog_compiler_c_o_CXX=no
20366 $rm -r conftest 2>/dev/null
20367 mkdir conftest
20368 cd conftest
20369 mkdir out
20370 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20372 lt_compiler_flag="-o out/conftest2.$ac_objext"
20373 # Insert the option either (1) after the last *FLAGS variable, or
20374 # (2) before a word containing "conftest.", or (3) at the end.
20375 # Note that $ac_compile itself does not contain backslashes and begins
20376 # with a dollar sign (not a hyphen), so the echo should work correctly.
20377 lt_compile=`echo "$ac_compile" | $SED \
20378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20380 -e 's:$: $lt_compiler_flag:'`
20381 (eval echo "\"\$as_me:20381: $lt_compile\"" >&5)
20382 (eval "$lt_compile" 2>out/conftest.err)
20383 ac_status=$?
20384 cat out/conftest.err >&5
20385 echo "$as_me:20385: \$? = $ac_status" >&5
20386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20387 then
20388 # The compiler can only warn and ignore the option if not recognized
20389 # So say no if there are warnings
20390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20393 lt_cv_prog_compiler_c_o_CXX=yes
20396 chmod u+w . 2>&5
20397 $rm conftest*
20398 # SGI C++ compiler will create directory out/ii_files/ for
20399 # template instantiation
20400 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20401 $rm out/* && rmdir out
20402 cd ..
20403 rmdir conftest
20404 $rm conftest*
20407 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20408 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20411 hard_links="nottested"
20412 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20413 # do not overwrite the value of need_locks provided by the user
20414 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20415 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20416 hard_links=yes
20417 $rm conftest*
20418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20419 touch conftest.a
20420 ln conftest.a conftest.b 2>&5 || hard_links=no
20421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20422 { echo "$as_me:$LINENO: result: $hard_links" >&5
20423 echo "${ECHO_T}$hard_links" >&6; }
20424 if test "$hard_links" = no; then
20425 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20426 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20427 need_locks=warn
20429 else
20430 need_locks=no
20433 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20437 case $host_os in
20438 aix4* | aix5*)
20439 # If we're using GNU nm, then we don't want the "-C" option.
20440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20441 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20442 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'
20443 else
20444 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'
20447 pw32*)
20448 export_symbols_cmds_CXX="$ltdll_cmds"
20450 cygwin* | mingw*)
20451 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'
20454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20456 esac
20458 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20459 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20460 test "$ld_shlibs_CXX" = no && can_build_shared=no
20463 # Do we need to explicitly link libc?
20465 case "x$archive_cmds_need_lc_CXX" in
20466 x|xyes)
20467 # Assume -lc should be added
20468 archive_cmds_need_lc_CXX=yes
20470 if test "$enable_shared" = yes && test "$GCC" = yes; then
20471 case $archive_cmds_CXX in
20472 *'~'*)
20473 # FIXME: we may have to deal with multi-command sequences.
20475 '$CC '*)
20476 # Test whether the compiler implicitly links with -lc since on some
20477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20478 # to ld, don't add -lc before -lgcc.
20479 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20480 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20481 $rm conftest*
20482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485 (eval $ac_compile) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } 2>conftest.err; then
20489 soname=conftest
20490 lib=conftest
20491 libobjs=conftest.$ac_objext
20492 deplibs=
20493 wl=$lt_prog_compiler_wl_CXX
20494 pic_flag=$lt_prog_compiler_pic_CXX
20495 compiler_flags=-v
20496 linker_flags=-v
20497 verstring=
20498 output_objdir=.
20499 libname=conftest
20500 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20501 allow_undefined_flag_CXX=
20502 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20503 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }
20507 then
20508 archive_cmds_need_lc_CXX=no
20509 else
20510 archive_cmds_need_lc_CXX=yes
20512 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20513 else
20514 cat conftest.err 1>&5
20516 $rm conftest*
20517 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20518 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20520 esac
20523 esac
20525 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20527 library_names_spec=
20528 libname_spec='lib$name'
20529 soname_spec=
20530 shrext_cmds=".so"
20531 postinstall_cmds=
20532 postuninstall_cmds=
20533 finish_cmds=
20534 finish_eval=
20535 shlibpath_var=
20536 shlibpath_overrides_runpath=unknown
20537 version_type=none
20538 dynamic_linker="$host_os ld.so"
20539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20540 if test "$GCC" = yes; then
20541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20542 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20543 # if the path contains ";" then we assume it to be the separator
20544 # otherwise default to the standard path separator (i.e. ":") - it is
20545 # assumed that no part of a normal pathname contains ";" but that should
20546 # okay in the real world where ";" in dirpaths is itself problematic.
20547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20548 else
20549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20551 else
20552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20554 need_lib_prefix=unknown
20555 hardcode_into_libs=no
20557 # when you set need_version to no, make sure it does not cause -set_version
20558 # flags to be left without arguments
20559 need_version=unknown
20561 case $host_os in
20562 aix3*)
20563 version_type=linux
20564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20565 shlibpath_var=LIBPATH
20567 # AIX 3 has no versioning support, so we append a major version to the name.
20568 soname_spec='${libname}${release}${shared_ext}$major'
20571 aix4* | aix5*)
20572 version_type=linux
20573 need_lib_prefix=no
20574 need_version=no
20575 hardcode_into_libs=yes
20576 if test "$host_cpu" = ia64; then
20577 # AIX 5 supports IA64
20578 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20579 shlibpath_var=LD_LIBRARY_PATH
20580 else
20581 # With GCC up to 2.95.x, collect2 would create an import file
20582 # for dependence libraries. The import file would start with
20583 # the line `#! .'. This would cause the generated library to
20584 # depend on `.', always an invalid library. This was fixed in
20585 # development snapshots of GCC prior to 3.0.
20586 case $host_os in
20587 aix4 | aix4.[01] | aix4.[01].*)
20588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20589 echo ' yes '
20590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20592 else
20593 can_build_shared=no
20596 esac
20597 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20598 # soname into executable. Probably we can add versioning support to
20599 # collect2, so additional links can be useful in future.
20600 if test "$aix_use_runtimelinking" = yes; then
20601 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20602 # instead of lib<name>.a to let people know that these are not
20603 # typical AIX shared libraries.
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605 else
20606 # We preserve .a as extension for shared libraries through AIX4.2
20607 # and later when we are not doing run time linking.
20608 library_names_spec='${libname}${release}.a $libname.a'
20609 soname_spec='${libname}${release}${shared_ext}$major'
20611 shlibpath_var=LIBPATH
20615 amigaos*)
20616 library_names_spec='$libname.ixlibrary $libname.a'
20617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20618 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'
20621 beos*)
20622 library_names_spec='${libname}${shared_ext}'
20623 dynamic_linker="$host_os ld.so"
20624 shlibpath_var=LIBRARY_PATH
20627 bsdi[45]*)
20628 version_type=linux
20629 need_version=no
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20636 # the default ld.so.conf also contains /usr/contrib/lib and
20637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20638 # libtool to hard-code these into programs
20641 cygwin* | mingw* | pw32*)
20642 version_type=windows
20643 shrext_cmds=".dll"
20644 need_version=no
20645 need_lib_prefix=no
20647 case $GCC,$host_os in
20648 yes,cygwin* | yes,mingw* | yes,pw32*)
20649 library_names_spec='$libname.dll.a'
20650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20651 postinstall_cmds='base_file=`basename \${file}`~
20652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20653 dldir=$destdir/`dirname \$dlpath`~
20654 test -d \$dldir || mkdir -p \$dldir~
20655 $install_prog $dir/$dlname \$dldir/$dlname~
20656 chmod a+x \$dldir/$dlname'
20657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20658 dlpath=$dir/\$dldll~
20659 $rm \$dlpath'
20660 shlibpath_overrides_runpath=yes
20662 case $host_os in
20663 cygwin*)
20664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20666 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20668 mingw*)
20669 # MinGW DLLs use traditional 'lib' prefix
20670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20672 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20673 # It is most probably a Windows format PATH printed by
20674 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20675 # path with ; separators, and with drive letters. We can handle the
20676 # drive letters (cygwin fileutils understands them), so leave them,
20677 # especially as we might pass files found there to a mingw objdump,
20678 # which wouldn't understand a cygwinified path. Ahh.
20679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20680 else
20681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20684 pw32*)
20685 # pw32 DLLs use 'pw' prefix rather than 'lib'
20686 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20688 esac
20692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20694 esac
20695 dynamic_linker='Win32 ld.exe'
20696 # FIXME: first we should search . and the directory the executable is in
20697 shlibpath_var=PATH
20700 darwin* | rhapsody*)
20701 dynamic_linker="$host_os dyld"
20702 version_type=darwin
20703 need_lib_prefix=no
20704 need_version=no
20705 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20706 soname_spec='${libname}${release}${major}$shared_ext'
20707 shlibpath_overrides_runpath=yes
20708 shlibpath_var=DYLD_LIBRARY_PATH
20709 shrext_cmds='.dylib'
20710 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20711 if test "$GCC" = yes; then
20712 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"`
20713 else
20714 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20719 dgux*)
20720 version_type=linux
20721 need_lib_prefix=no
20722 need_version=no
20723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20724 soname_spec='${libname}${release}${shared_ext}$major'
20725 shlibpath_var=LD_LIBRARY_PATH
20728 freebsd1*)
20729 dynamic_linker=no
20732 kfreebsd*-gnu)
20733 version_type=linux
20734 need_lib_prefix=no
20735 need_version=no
20736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20737 soname_spec='${libname}${release}${shared_ext}$major'
20738 shlibpath_var=LD_LIBRARY_PATH
20739 shlibpath_overrides_runpath=no
20740 hardcode_into_libs=yes
20741 dynamic_linker='GNU ld.so'
20744 freebsd* | dragonfly*)
20745 # DragonFly does not have aout. When/if they implement a new
20746 # versioning mechanism, adjust this.
20747 if test -x /usr/bin/objformat; then
20748 objformat=`/usr/bin/objformat`
20749 else
20750 case $host_os in
20751 freebsd[123]*) objformat=aout ;;
20752 *) objformat=elf ;;
20753 esac
20755 version_type=freebsd-$objformat
20756 case $version_type in
20757 freebsd-elf*)
20758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20759 need_version=no
20760 need_lib_prefix=no
20762 freebsd-*)
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20764 need_version=yes
20766 esac
20767 shlibpath_var=LD_LIBRARY_PATH
20768 case $host_os in
20769 freebsd2*)
20770 shlibpath_overrides_runpath=yes
20772 freebsd3.[01]* | freebsdelf3.[01]*)
20773 shlibpath_overrides_runpath=yes
20774 hardcode_into_libs=yes
20776 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20777 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20778 shlibpath_overrides_runpath=no
20779 hardcode_into_libs=yes
20781 freebsd*) # from 4.6 on
20782 shlibpath_overrides_runpath=yes
20783 hardcode_into_libs=yes
20785 esac
20788 gnu*)
20789 version_type=linux
20790 need_lib_prefix=no
20791 need_version=no
20792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20793 soname_spec='${libname}${release}${shared_ext}$major'
20794 shlibpath_var=LD_LIBRARY_PATH
20795 hardcode_into_libs=yes
20798 hpux9* | hpux10* | hpux11*)
20799 # Give a soname corresponding to the major version so that dld.sl refuses to
20800 # link against other versions.
20801 version_type=sunos
20802 need_lib_prefix=no
20803 need_version=no
20804 case $host_cpu in
20805 ia64*)
20806 shrext_cmds='.so'
20807 hardcode_into_libs=yes
20808 dynamic_linker="$host_os dld.so"
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 if test "X$HPUX_IA64_MODE" = X32; then
20814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20815 else
20816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20820 hppa*64*)
20821 shrext_cmds='.sl'
20822 hardcode_into_libs=yes
20823 dynamic_linker="$host_os dld.sl"
20824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20827 soname_spec='${libname}${release}${shared_ext}$major'
20828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20832 shrext_cmds='.sl'
20833 dynamic_linker="$host_os dld.sl"
20834 shlibpath_var=SHLIB_PATH
20835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20839 esac
20840 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20841 postinstall_cmds='chmod 555 $lib'
20844 interix3*)
20845 version_type=linux
20846 need_lib_prefix=no
20847 need_version=no
20848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20849 soname_spec='${libname}${release}${shared_ext}$major'
20850 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20851 shlibpath_var=LD_LIBRARY_PATH
20852 shlibpath_overrides_runpath=no
20853 hardcode_into_libs=yes
20856 irix5* | irix6* | nonstopux*)
20857 case $host_os in
20858 nonstopux*) version_type=nonstopux ;;
20860 if test "$lt_cv_prog_gnu_ld" = yes; then
20861 version_type=linux
20862 else
20863 version_type=irix
20864 fi ;;
20865 esac
20866 need_lib_prefix=no
20867 need_version=no
20868 soname_spec='${libname}${release}${shared_ext}$major'
20869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20870 case $host_os in
20871 irix5* | nonstopux*)
20872 libsuff= shlibsuff=
20875 case $LD in # libtool.m4 will add one of these switches to LD
20876 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20877 libsuff= shlibsuff= libmagic=32-bit;;
20878 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20879 libsuff=32 shlibsuff=N32 libmagic=N32;;
20880 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20881 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20882 *) libsuff= shlibsuff= libmagic=never-match;;
20883 esac
20885 esac
20886 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20887 shlibpath_overrides_runpath=no
20888 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20889 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20890 hardcode_into_libs=yes
20893 # No shared lib support for Linux oldld, aout, or coff.
20894 linux*oldld* | linux*aout* | linux*coff*)
20895 dynamic_linker=no
20898 # This must be Linux ELF.
20899 linux*)
20900 version_type=linux
20901 need_lib_prefix=no
20902 need_version=no
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20904 soname_spec='${libname}${release}${shared_ext}$major'
20905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 shlibpath_overrides_runpath=no
20908 # This implies no fast_install, which is unacceptable.
20909 # Some rework will be needed to allow for fast_install
20910 # before this can be enabled.
20911 hardcode_into_libs=yes
20913 # Append ld.so.conf contents to the search path
20914 if test -f /etc/ld.so.conf; then
20915 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' ' '`
20916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20919 # We used to test for /lib/ld.so.1 and disable shared libraries on
20920 # powerpc, because MkLinux only supported shared libraries with the
20921 # GNU dynamic linker. Since this was broken with cross compilers,
20922 # most powerpc-linux boxes support dynamic linking these days and
20923 # people can always --disable-shared, the test was removed, and we
20924 # assume the GNU/Linux dynamic linker is in use.
20925 dynamic_linker='GNU/Linux ld.so'
20928 knetbsd*-gnu)
20929 version_type=linux
20930 need_lib_prefix=no
20931 need_version=no
20932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 shlibpath_var=LD_LIBRARY_PATH
20935 shlibpath_overrides_runpath=no
20936 hardcode_into_libs=yes
20937 dynamic_linker='GNU ld.so'
20940 netbsd*)
20941 version_type=sunos
20942 need_lib_prefix=no
20943 need_version=no
20944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20947 dynamic_linker='NetBSD (a.out) ld.so'
20948 else
20949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20950 soname_spec='${libname}${release}${shared_ext}$major'
20951 dynamic_linker='NetBSD ld.elf_so'
20953 shlibpath_var=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath=yes
20955 hardcode_into_libs=yes
20958 newsos6)
20959 version_type=linux
20960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961 shlibpath_var=LD_LIBRARY_PATH
20962 shlibpath_overrides_runpath=yes
20965 nto-qnx*)
20966 version_type=linux
20967 need_lib_prefix=no
20968 need_version=no
20969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20970 soname_spec='${libname}${release}${shared_ext}$major'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath=yes
20975 openbsd*)
20976 version_type=sunos
20977 sys_lib_dlsearch_path_spec="/usr/lib"
20978 need_lib_prefix=no
20979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20980 case $host_os in
20981 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20982 *) need_version=no ;;
20983 esac
20984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20986 shlibpath_var=LD_LIBRARY_PATH
20987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20988 case $host_os in
20989 openbsd2.[89] | openbsd2.[89].*)
20990 shlibpath_overrides_runpath=no
20993 shlibpath_overrides_runpath=yes
20995 esac
20996 else
20997 shlibpath_overrides_runpath=yes
21001 os2*)
21002 libname_spec='$name'
21003 shrext_cmds=".dll"
21004 need_lib_prefix=no
21005 library_names_spec='$libname${shared_ext} $libname.a'
21006 dynamic_linker='OS/2 ld.exe'
21007 shlibpath_var=LIBPATH
21010 osf3* | osf4* | osf5*)
21011 version_type=osf
21012 need_lib_prefix=no
21013 need_version=no
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21016 shlibpath_var=LD_LIBRARY_PATH
21017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21021 solaris*)
21022 version_type=linux
21023 need_lib_prefix=no
21024 need_version=no
21025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21026 soname_spec='${libname}${release}${shared_ext}$major'
21027 shlibpath_var=LD_LIBRARY_PATH
21028 shlibpath_overrides_runpath=yes
21029 hardcode_into_libs=yes
21030 # ldd complains unless libraries are executable
21031 postinstall_cmds='chmod +x $lib'
21034 sunos4*)
21035 version_type=sunos
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21038 shlibpath_var=LD_LIBRARY_PATH
21039 shlibpath_overrides_runpath=yes
21040 if test "$with_gnu_ld" = yes; then
21041 need_lib_prefix=no
21043 need_version=yes
21046 sysv4 | sysv4.3*)
21047 version_type=linux
21048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21049 soname_spec='${libname}${release}${shared_ext}$major'
21050 shlibpath_var=LD_LIBRARY_PATH
21051 case $host_vendor in
21052 sni)
21053 shlibpath_overrides_runpath=no
21054 need_lib_prefix=no
21055 export_dynamic_flag_spec='${wl}-Blargedynsym'
21056 runpath_var=LD_RUN_PATH
21058 siemens)
21059 need_lib_prefix=no
21061 motorola)
21062 need_lib_prefix=no
21063 need_version=no
21064 shlibpath_overrides_runpath=no
21065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21067 esac
21070 sysv4*MP*)
21071 if test -d /usr/nec ;then
21072 version_type=linux
21073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21074 soname_spec='$libname${shared_ext}.$major'
21075 shlibpath_var=LD_LIBRARY_PATH
21079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21080 version_type=freebsd-elf
21081 need_lib_prefix=no
21082 need_version=no
21083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21084 soname_spec='${libname}${release}${shared_ext}$major'
21085 shlibpath_var=LD_LIBRARY_PATH
21086 hardcode_into_libs=yes
21087 if test "$with_gnu_ld" = yes; then
21088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21089 shlibpath_overrides_runpath=no
21090 else
21091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21092 shlibpath_overrides_runpath=yes
21093 case $host_os in
21094 sco3.2v5*)
21095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21097 esac
21099 sys_lib_dlsearch_path_spec='/usr/lib'
21102 uts4*)
21103 version_type=linux
21104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21105 soname_spec='${libname}${release}${shared_ext}$major'
21106 shlibpath_var=LD_LIBRARY_PATH
21110 dynamic_linker=no
21112 esac
21113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21114 echo "${ECHO_T}$dynamic_linker" >&6; }
21115 test "$dynamic_linker" = no && can_build_shared=no
21117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21118 if test "$GCC" = yes; then
21119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21122 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21123 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21124 hardcode_action_CXX=
21125 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21126 test -n "$runpath_var_CXX" || \
21127 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21129 # We can hardcode non-existant directories.
21130 if test "$hardcode_direct_CXX" != no &&
21131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21132 # have to relink, otherwise we might link with an installed library
21133 # when we should be linking with a yet-to-be-installed one
21134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21135 test "$hardcode_minus_L_CXX" != no; then
21136 # Linking always hardcodes the temporary library directory.
21137 hardcode_action_CXX=relink
21138 else
21139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21140 hardcode_action_CXX=immediate
21142 else
21143 # We cannot hardcode anything, or else we can only hardcode existing
21144 # directories.
21145 hardcode_action_CXX=unsupported
21147 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21148 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21150 if test "$hardcode_action_CXX" = relink; then
21151 # Fast installation is not supported
21152 enable_fast_install=no
21153 elif test "$shlibpath_overrides_runpath" = yes ||
21154 test "$enable_shared" = no; then
21155 # Fast installation is not necessary
21156 enable_fast_install=needless
21160 # The else clause should only fire when bootstrapping the
21161 # libtool distribution, otherwise you forgot to ship ltmain.sh
21162 # with your package, and you will get complaints that there are
21163 # no rules to generate ltmain.sh.
21164 if test -f "$ltmain"; then
21165 # See if we are running on zsh, and set the options which allow our commands through
21166 # without removal of \ escapes.
21167 if test -n "${ZSH_VERSION+set}" ; then
21168 setopt NO_GLOB_SUBST
21170 # Now quote all the things that may contain metacharacters while being
21171 # careful not to overquote the AC_SUBSTed values. We take copies of the
21172 # variables and quote the copies for generation of the libtool script.
21173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21174 SED SHELL STRIP \
21175 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21176 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21177 deplibs_check_method reload_flag reload_cmds need_locks \
21178 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21179 lt_cv_sys_global_symbol_to_c_name_address \
21180 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21181 old_postinstall_cmds old_postuninstall_cmds \
21182 compiler_CXX \
21183 CC_CXX \
21184 LD_CXX \
21185 lt_prog_compiler_wl_CXX \
21186 lt_prog_compiler_pic_CXX \
21187 lt_prog_compiler_static_CXX \
21188 lt_prog_compiler_no_builtin_flag_CXX \
21189 export_dynamic_flag_spec_CXX \
21190 thread_safe_flag_spec_CXX \
21191 whole_archive_flag_spec_CXX \
21192 enable_shared_with_static_runtimes_CXX \
21193 old_archive_cmds_CXX \
21194 old_archive_from_new_cmds_CXX \
21195 predep_objects_CXX \
21196 postdep_objects_CXX \
21197 predeps_CXX \
21198 postdeps_CXX \
21199 compiler_lib_search_path_CXX \
21200 archive_cmds_CXX \
21201 archive_expsym_cmds_CXX \
21202 postinstall_cmds_CXX \
21203 postuninstall_cmds_CXX \
21204 old_archive_from_expsyms_cmds_CXX \
21205 allow_undefined_flag_CXX \
21206 no_undefined_flag_CXX \
21207 export_symbols_cmds_CXX \
21208 hardcode_libdir_flag_spec_CXX \
21209 hardcode_libdir_flag_spec_ld_CXX \
21210 hardcode_libdir_separator_CXX \
21211 hardcode_automatic_CXX \
21212 module_cmds_CXX \
21213 module_expsym_cmds_CXX \
21214 lt_cv_prog_compiler_c_o_CXX \
21215 exclude_expsyms_CXX \
21216 include_expsyms_CXX; do
21218 case $var in
21219 old_archive_cmds_CXX | \
21220 old_archive_from_new_cmds_CXX | \
21221 archive_cmds_CXX | \
21222 archive_expsym_cmds_CXX | \
21223 module_cmds_CXX | \
21224 module_expsym_cmds_CXX | \
21225 old_archive_from_expsyms_cmds_CXX | \
21226 export_symbols_cmds_CXX | \
21227 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21228 postinstall_cmds | postuninstall_cmds | \
21229 old_postinstall_cmds | old_postuninstall_cmds | \
21230 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21231 # Double-quote double-evaled strings.
21232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21237 esac
21238 done
21240 case $lt_echo in
21241 *'\$0 --fallback-echo"')
21242 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21244 esac
21246 cfgfile="$ofile"
21248 cat <<__EOF__ >> "$cfgfile"
21249 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21253 # Shell to use when invoking shell scripts.
21254 SHELL=$lt_SHELL
21256 # Whether or not to build shared libraries.
21257 build_libtool_libs=$enable_shared
21259 # Whether or not to build static libraries.
21260 build_old_libs=$enable_static
21262 # Whether or not to add -lc for building shared libraries.
21263 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21265 # Whether or not to disallow shared libs when runtime libs are static
21266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21268 # Whether or not to optimize for fast installation.
21269 fast_install=$enable_fast_install
21271 # The host system.
21272 host_alias=$host_alias
21273 host=$host
21274 host_os=$host_os
21276 # The build system.
21277 build_alias=$build_alias
21278 build=$build
21279 build_os=$build_os
21281 # An echo program that does not interpret backslashes.
21282 echo=$lt_echo
21284 # The archiver.
21285 AR=$lt_AR
21286 AR_FLAGS=$lt_AR_FLAGS
21288 # A C compiler.
21289 LTCC=$lt_LTCC
21291 # LTCC compiler flags.
21292 LTCFLAGS=$lt_LTCFLAGS
21294 # A language-specific compiler.
21295 CC=$lt_compiler_CXX
21297 # Is the compiler the GNU C compiler?
21298 with_gcc=$GCC_CXX
21300 # An ERE matcher.
21301 EGREP=$lt_EGREP
21303 # The linker used to build libraries.
21304 LD=$lt_LD_CXX
21306 # Whether we need hard or soft links.
21307 LN_S=$lt_LN_S
21309 # A BSD-compatible nm program.
21310 NM=$lt_NM
21312 # A symbol stripping program
21313 STRIP=$lt_STRIP
21315 # Used to examine libraries when file_magic_cmd begins "file"
21316 MAGIC_CMD=$MAGIC_CMD
21318 # Used on cygwin: DLL creation program.
21319 DLLTOOL="$DLLTOOL"
21321 # Used on cygwin: object dumper.
21322 OBJDUMP="$OBJDUMP"
21324 # Used on cygwin: assembler.
21325 AS="$AS"
21327 # The name of the directory that contains temporary libtool files.
21328 objdir=$objdir
21330 # How to create reloadable object files.
21331 reload_flag=$lt_reload_flag
21332 reload_cmds=$lt_reload_cmds
21334 # How to pass a linker flag through the compiler.
21335 wl=$lt_lt_prog_compiler_wl_CXX
21337 # Object file suffix (normally "o").
21338 objext="$ac_objext"
21340 # Old archive suffix (normally "a").
21341 libext="$libext"
21343 # Shared library suffix (normally ".so").
21344 shrext_cmds='$shrext_cmds'
21346 # Executable file suffix (normally "").
21347 exeext="$exeext"
21349 # Additional compiler flags for building library objects.
21350 pic_flag=$lt_lt_prog_compiler_pic_CXX
21351 pic_mode=$pic_mode
21353 # What is the maximum length of a command?
21354 max_cmd_len=$lt_cv_sys_max_cmd_len
21356 # Does compiler simultaneously support -c and -o options?
21357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21359 # Must we lock files when doing compilation?
21360 need_locks=$lt_need_locks
21362 # Do we need the lib prefix for modules?
21363 need_lib_prefix=$need_lib_prefix
21365 # Do we need a version for libraries?
21366 need_version=$need_version
21368 # Whether dlopen is supported.
21369 dlopen_support=$enable_dlopen
21371 # Whether dlopen of programs is supported.
21372 dlopen_self=$enable_dlopen_self
21374 # Whether dlopen of statically linked programs is supported.
21375 dlopen_self_static=$enable_dlopen_self_static
21377 # Compiler flag to prevent dynamic linking.
21378 link_static_flag=$lt_lt_prog_compiler_static_CXX
21380 # Compiler flag to turn off builtin functions.
21381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21383 # Compiler flag to allow reflexive dlopens.
21384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21386 # Compiler flag to generate shared objects directly from archives.
21387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21389 # Compiler flag to generate thread-safe objects.
21390 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21392 # Library versioning type.
21393 version_type=$version_type
21395 # Format of library name prefix.
21396 libname_spec=$lt_libname_spec
21398 # List of archive names. First name is the real one, the rest are links.
21399 # The last name is the one that the linker finds with -lNAME.
21400 library_names_spec=$lt_library_names_spec
21402 # The coded name of the library, if different from the real name.
21403 soname_spec=$lt_soname_spec
21405 # Commands used to build and install an old-style archive.
21406 RANLIB=$lt_RANLIB
21407 old_archive_cmds=$lt_old_archive_cmds_CXX
21408 old_postinstall_cmds=$lt_old_postinstall_cmds
21409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21411 # Create an old-style archive from a shared archive.
21412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21414 # Create a temporary old-style archive to link instead of a shared archive.
21415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21417 # Commands used to build and install a shared archive.
21418 archive_cmds=$lt_archive_cmds_CXX
21419 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21420 postinstall_cmds=$lt_postinstall_cmds
21421 postuninstall_cmds=$lt_postuninstall_cmds
21423 # Commands used to build a loadable module (assumed same as above if empty)
21424 module_cmds=$lt_module_cmds_CXX
21425 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21427 # Commands to strip libraries.
21428 old_striplib=$lt_old_striplib
21429 striplib=$lt_striplib
21431 # Dependencies to place before the objects being linked to create a
21432 # shared library.
21433 predep_objects=$lt_predep_objects_CXX
21435 # Dependencies to place after the objects being linked to create a
21436 # shared library.
21437 postdep_objects=$lt_postdep_objects_CXX
21439 # Dependencies to place before the objects being linked to create a
21440 # shared library.
21441 predeps=$lt_predeps_CXX
21443 # Dependencies to place after the objects being linked to create a
21444 # shared library.
21445 postdeps=$lt_postdeps_CXX
21447 # The library search path used internally by the compiler when linking
21448 # a shared library.
21449 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21451 # Method to check whether dependent libraries are shared objects.
21452 deplibs_check_method=$lt_deplibs_check_method
21454 # Command to use when deplibs_check_method == file_magic.
21455 file_magic_cmd=$lt_file_magic_cmd
21457 # Flag that allows shared libraries with undefined symbols to be built.
21458 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21460 # Flag that forces no undefined symbols.
21461 no_undefined_flag=$lt_no_undefined_flag_CXX
21463 # Commands used to finish a libtool library installation in a directory.
21464 finish_cmds=$lt_finish_cmds
21466 # Same as above, but a single script fragment to be evaled but not shown.
21467 finish_eval=$lt_finish_eval
21469 # Take the output of nm and produce a listing of raw symbols and C names.
21470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21472 # Transform the output of nm in a proper C declaration
21473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21475 # Transform the output of nm in a C name address pair
21476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21478 # This is the shared library runtime path variable.
21479 runpath_var=$runpath_var
21481 # This is the shared library path variable.
21482 shlibpath_var=$shlibpath_var
21484 # Is shlibpath searched before the hard-coded library search path?
21485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21487 # How to hardcode a shared library path into an executable.
21488 hardcode_action=$hardcode_action_CXX
21490 # Whether we should hardcode library paths into libraries.
21491 hardcode_into_libs=$hardcode_into_libs
21493 # Flag to hardcode \$libdir into a binary during linking.
21494 # This must work even if \$libdir does not exist.
21495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21497 # If ld is used when linking, flag to hardcode \$libdir into
21498 # a binary during linking. This must work even if \$libdir does
21499 # not exist.
21500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21502 # Whether we need a single -rpath flag with a separated argument.
21503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21505 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21506 # resulting binary.
21507 hardcode_direct=$hardcode_direct_CXX
21509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21510 # resulting binary.
21511 hardcode_minus_L=$hardcode_minus_L_CXX
21513 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21514 # the resulting binary.
21515 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21517 # Set to yes if building a shared library automatically hardcodes DIR into the library
21518 # and all subsequent libraries and executables linked against it.
21519 hardcode_automatic=$hardcode_automatic_CXX
21521 # Variables whose values should be saved in libtool wrapper scripts and
21522 # restored at relink time.
21523 variables_saved_for_relink="$variables_saved_for_relink"
21525 # Whether libtool must link a program against all its dependency libraries.
21526 link_all_deplibs=$link_all_deplibs_CXX
21528 # Compile-time system search path for libraries
21529 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21531 # Run-time system search path for libraries
21532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21534 # Fix the shell variable \$srcfile for the compiler.
21535 fix_srcfile_path="$fix_srcfile_path_CXX"
21537 # Set to yes if exported symbols are required.
21538 always_export_symbols=$always_export_symbols_CXX
21540 # The commands to list exported symbols.
21541 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21543 # The commands to extract the exported symbol list from a shared archive.
21544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21546 # Symbols that should not be listed in the preloaded symbols.
21547 exclude_expsyms=$lt_exclude_expsyms_CXX
21549 # Symbols that must always be exported.
21550 include_expsyms=$lt_include_expsyms_CXX
21552 # ### END LIBTOOL TAG CONFIG: $tagname
21554 __EOF__
21557 else
21558 # If there is no Makefile yet, we rely on a make rule to execute
21559 # `config.status --recheck' to rerun these tests and create the
21560 # libtool script then.
21561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21562 if test -f "$ltmain_in"; then
21563 test -f Makefile && make "$ltmain"
21568 ac_ext=c
21569 ac_cpp='$CPP $CPPFLAGS'
21570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21574 CC=$lt_save_CC
21575 LDCXX=$LD
21576 LD=$lt_save_LD
21577 GCC=$lt_save_GCC
21578 with_gnu_ldcxx=$with_gnu_ld
21579 with_gnu_ld=$lt_save_with_gnu_ld
21580 lt_cv_path_LDCXX=$lt_cv_path_LD
21581 lt_cv_path_LD=$lt_save_path_LD
21582 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21583 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21585 else
21586 tagname=""
21590 F77)
21591 if test -n "$F77" && test "X$F77" != "Xno"; then
21593 ac_ext=f
21594 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21595 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21596 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21599 archive_cmds_need_lc_F77=no
21600 allow_undefined_flag_F77=
21601 always_export_symbols_F77=no
21602 archive_expsym_cmds_F77=
21603 export_dynamic_flag_spec_F77=
21604 hardcode_direct_F77=no
21605 hardcode_libdir_flag_spec_F77=
21606 hardcode_libdir_flag_spec_ld_F77=
21607 hardcode_libdir_separator_F77=
21608 hardcode_minus_L_F77=no
21609 hardcode_automatic_F77=no
21610 module_cmds_F77=
21611 module_expsym_cmds_F77=
21612 link_all_deplibs_F77=unknown
21613 old_archive_cmds_F77=$old_archive_cmds
21614 no_undefined_flag_F77=
21615 whole_archive_flag_spec_F77=
21616 enable_shared_with_static_runtimes_F77=no
21618 # Source file extension for f77 test sources.
21619 ac_ext=f
21621 # Object file extension for compiled f77 test sources.
21622 objext=o
21623 objext_F77=$objext
21625 # Code to be used in simple compile tests
21626 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21628 # Code to be used in simple link tests
21629 lt_simple_link_test_code=" program t\n end\n"
21631 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21633 # If no C compiler was specified, use CC.
21634 LTCC=${LTCC-"$CC"}
21636 # If no C compiler flags were specified, use CFLAGS.
21637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21639 # Allow CC to be a program name with arguments.
21640 compiler=$CC
21643 # save warnings/boilerplate of simple test code
21644 ac_outfile=conftest.$ac_objext
21645 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21647 _lt_compiler_boilerplate=`cat conftest.err`
21648 $rm conftest*
21650 ac_outfile=conftest.$ac_objext
21651 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21653 _lt_linker_boilerplate=`cat conftest.err`
21654 $rm conftest*
21657 # Allow CC to be a program name with arguments.
21658 lt_save_CC="$CC"
21659 CC=${F77-"f77"}
21660 compiler=$CC
21661 compiler_F77=$CC
21662 for cc_temp in $compiler""; do
21663 case $cc_temp in
21664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21666 \-*) ;;
21667 *) break;;
21668 esac
21669 done
21670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21673 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21674 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21675 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21676 echo "${ECHO_T}$can_build_shared" >&6; }
21678 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21679 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21680 test "$can_build_shared" = "no" && enable_shared=no
21682 # On AIX, shared libraries and static libraries use the same namespace, and
21683 # are all built from PIC.
21684 case $host_os in
21685 aix3*)
21686 test "$enable_shared" = yes && enable_static=no
21687 if test -n "$RANLIB"; then
21688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21689 postinstall_cmds='$RANLIB $lib'
21692 aix4* | aix5*)
21693 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21694 test "$enable_shared" = yes && enable_static=no
21697 esac
21698 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21699 echo "${ECHO_T}$enable_shared" >&6; }
21701 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21702 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21703 # Make sure either enable_shared or enable_static is yes.
21704 test "$enable_shared" = yes || enable_static=yes
21705 { echo "$as_me:$LINENO: result: $enable_static" >&5
21706 echo "${ECHO_T}$enable_static" >&6; }
21708 GCC_F77="$G77"
21709 LD_F77="$LD"
21711 lt_prog_compiler_wl_F77=
21712 lt_prog_compiler_pic_F77=
21713 lt_prog_compiler_static_F77=
21715 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21716 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21718 if test "$GCC" = yes; then
21719 lt_prog_compiler_wl_F77='-Wl,'
21720 lt_prog_compiler_static_F77='-static'
21722 case $host_os in
21723 aix*)
21724 # All AIX code is PIC.
21725 if test "$host_cpu" = ia64; then
21726 # AIX 5 now supports IA64 processor
21727 lt_prog_compiler_static_F77='-Bstatic'
21731 amigaos*)
21732 # FIXME: we need at least 68020 code to build shared libraries, but
21733 # adding the `-m68020' flag to GCC prevents building anything better,
21734 # like `-m68040'.
21735 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21738 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21739 # PIC is the default for these OSes.
21742 mingw* | pw32* | os2*)
21743 # This hack is so that the source file can tell whether it is being
21744 # built for inclusion in a dll (and should export symbols for example).
21745 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21748 darwin* | rhapsody*)
21749 # PIC is the default on this platform
21750 # Common symbols not allowed in MH_DYLIB files
21751 lt_prog_compiler_pic_F77='-fno-common'
21754 interix3*)
21755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21756 # Instead, we relocate shared libraries at runtime.
21759 msdosdjgpp*)
21760 # Just because we use GCC doesn't mean we suddenly get shared libraries
21761 # on systems that don't support them.
21762 lt_prog_compiler_can_build_shared_F77=no
21763 enable_shared=no
21766 sysv4*MP*)
21767 if test -d /usr/nec; then
21768 lt_prog_compiler_pic_F77=-Kconform_pic
21772 hpux*)
21773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21774 # not for PA HP-UX.
21775 case $host_cpu in
21776 hppa*64*|ia64*)
21777 # +Z the default
21780 lt_prog_compiler_pic_F77='-fPIC'
21782 esac
21786 lt_prog_compiler_pic_F77='-fPIC'
21788 esac
21789 else
21790 # PORTME Check for flag to pass linker flags through the system compiler.
21791 case $host_os in
21792 aix*)
21793 lt_prog_compiler_wl_F77='-Wl,'
21794 if test "$host_cpu" = ia64; then
21795 # AIX 5 now supports IA64 processor
21796 lt_prog_compiler_static_F77='-Bstatic'
21797 else
21798 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21801 darwin*)
21802 # PIC is the default on this platform
21803 # Common symbols not allowed in MH_DYLIB files
21804 case $cc_basename in
21805 xlc*)
21806 lt_prog_compiler_pic_F77='-qnocommon'
21807 lt_prog_compiler_wl_F77='-Wl,'
21809 esac
21812 mingw* | pw32* | os2*)
21813 # This hack is so that the source file can tell whether it is being
21814 # built for inclusion in a dll (and should export symbols for example).
21815 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21818 hpux9* | hpux10* | hpux11*)
21819 lt_prog_compiler_wl_F77='-Wl,'
21820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21821 # not for PA HP-UX.
21822 case $host_cpu in
21823 hppa*64*|ia64*)
21824 # +Z the default
21827 lt_prog_compiler_pic_F77='+Z'
21829 esac
21830 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21831 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21834 irix5* | irix6* | nonstopux*)
21835 lt_prog_compiler_wl_F77='-Wl,'
21836 # PIC (with -KPIC) is the default.
21837 lt_prog_compiler_static_F77='-non_shared'
21840 newsos6)
21841 lt_prog_compiler_pic_F77='-KPIC'
21842 lt_prog_compiler_static_F77='-Bstatic'
21845 linux*)
21846 case $cc_basename in
21847 icc* | ecc*)
21848 lt_prog_compiler_wl_F77='-Wl,'
21849 lt_prog_compiler_pic_F77='-KPIC'
21850 lt_prog_compiler_static_F77='-static'
21852 pgcc* | pgf77* | pgf90* | pgf95*)
21853 # Portland Group compilers (*not* the Pentium gcc compiler,
21854 # which looks to be a dead project)
21855 lt_prog_compiler_wl_F77='-Wl,'
21856 lt_prog_compiler_pic_F77='-fpic'
21857 lt_prog_compiler_static_F77='-Bstatic'
21859 ccc*)
21860 lt_prog_compiler_wl_F77='-Wl,'
21861 # All Alpha code is PIC.
21862 lt_prog_compiler_static_F77='-non_shared'
21864 esac
21867 osf3* | osf4* | osf5*)
21868 lt_prog_compiler_wl_F77='-Wl,'
21869 # All OSF/1 code is PIC.
21870 lt_prog_compiler_static_F77='-non_shared'
21873 solaris*)
21874 lt_prog_compiler_pic_F77='-KPIC'
21875 lt_prog_compiler_static_F77='-Bstatic'
21876 case $cc_basename in
21877 f77* | f90* | f95*)
21878 lt_prog_compiler_wl_F77='-Qoption ld ';;
21880 lt_prog_compiler_wl_F77='-Wl,';;
21881 esac
21884 sunos4*)
21885 lt_prog_compiler_wl_F77='-Qoption ld '
21886 lt_prog_compiler_pic_F77='-PIC'
21887 lt_prog_compiler_static_F77='-Bstatic'
21890 sysv4 | sysv4.2uw2* | sysv4.3*)
21891 lt_prog_compiler_wl_F77='-Wl,'
21892 lt_prog_compiler_pic_F77='-KPIC'
21893 lt_prog_compiler_static_F77='-Bstatic'
21896 sysv4*MP*)
21897 if test -d /usr/nec ;then
21898 lt_prog_compiler_pic_F77='-Kconform_pic'
21899 lt_prog_compiler_static_F77='-Bstatic'
21903 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21904 lt_prog_compiler_wl_F77='-Wl,'
21905 lt_prog_compiler_pic_F77='-KPIC'
21906 lt_prog_compiler_static_F77='-Bstatic'
21909 unicos*)
21910 lt_prog_compiler_wl_F77='-Wl,'
21911 lt_prog_compiler_can_build_shared_F77=no
21914 uts4*)
21915 lt_prog_compiler_pic_F77='-pic'
21916 lt_prog_compiler_static_F77='-Bstatic'
21920 lt_prog_compiler_can_build_shared_F77=no
21922 esac
21925 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21926 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21929 # Check to make sure the PIC flag actually works.
21931 if test -n "$lt_prog_compiler_pic_F77"; then
21933 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21934 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21935 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937 else
21938 lt_prog_compiler_pic_works_F77=no
21939 ac_outfile=conftest.$ac_objext
21940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21941 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21942 # Insert the option either (1) after the last *FLAGS variable, or
21943 # (2) before a word containing "conftest.", or (3) at the end.
21944 # Note that $ac_compile itself does not contain backslashes and begins
21945 # with a dollar sign (not a hyphen), so the echo should work correctly.
21946 # The option is referenced via a variable to avoid confusing sed.
21947 lt_compile=`echo "$ac_compile" | $SED \
21948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21950 -e 's:$: $lt_compiler_flag:'`
21951 (eval echo "\"\$as_me:21951: $lt_compile\"" >&5)
21952 (eval "$lt_compile" 2>conftest.err)
21953 ac_status=$?
21954 cat conftest.err >&5
21955 echo "$as_me:21955: \$? = $ac_status" >&5
21956 if (exit $ac_status) && test -s "$ac_outfile"; then
21957 # The compiler can only warn and ignore the option if not recognized
21958 # So say no if there are warnings other than the usual output.
21959 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21961 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21962 lt_prog_compiler_pic_works_F77=yes
21965 $rm conftest*
21968 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21969 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21971 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21972 case $lt_prog_compiler_pic_F77 in
21973 "" | " "*) ;;
21974 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21975 esac
21976 else
21977 lt_prog_compiler_pic_F77=
21978 lt_prog_compiler_can_build_shared_F77=no
21982 case $host_os in
21983 # For platforms which do not support PIC, -DPIC is meaningless:
21984 *djgpp*)
21985 lt_prog_compiler_pic_F77=
21988 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21990 esac
21993 # Check to make sure the static flag actually works.
21995 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21996 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21997 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21998 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001 lt_prog_compiler_static_works_F77=no
22002 save_LDFLAGS="$LDFLAGS"
22003 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22004 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22006 # The linker can only warn and ignore the option if not recognized
22007 # So say no if there are warnings
22008 if test -s conftest.err; then
22009 # Append any errors to the config.log.
22010 cat conftest.err 1>&5
22011 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22013 if diff conftest.exp conftest.er2 >/dev/null; then
22014 lt_prog_compiler_static_works_F77=yes
22016 else
22017 lt_prog_compiler_static_works_F77=yes
22020 $rm conftest*
22021 LDFLAGS="$save_LDFLAGS"
22024 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22025 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
22027 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22029 else
22030 lt_prog_compiler_static_F77=
22034 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22035 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22036 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039 lt_cv_prog_compiler_c_o_F77=no
22040 $rm -r conftest 2>/dev/null
22041 mkdir conftest
22042 cd conftest
22043 mkdir out
22044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22046 lt_compiler_flag="-o out/conftest2.$ac_objext"
22047 # Insert the option either (1) after the last *FLAGS variable, or
22048 # (2) before a word containing "conftest.", or (3) at the end.
22049 # Note that $ac_compile itself does not contain backslashes and begins
22050 # with a dollar sign (not a hyphen), so the echo should work correctly.
22051 lt_compile=`echo "$ac_compile" | $SED \
22052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22054 -e 's:$: $lt_compiler_flag:'`
22055 (eval echo "\"\$as_me:22055: $lt_compile\"" >&5)
22056 (eval "$lt_compile" 2>out/conftest.err)
22057 ac_status=$?
22058 cat out/conftest.err >&5
22059 echo "$as_me:22059: \$? = $ac_status" >&5
22060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22061 then
22062 # The compiler can only warn and ignore the option if not recognized
22063 # So say no if there are warnings
22064 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22067 lt_cv_prog_compiler_c_o_F77=yes
22070 chmod u+w . 2>&5
22071 $rm conftest*
22072 # SGI C++ compiler will create directory out/ii_files/ for
22073 # template instantiation
22074 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22075 $rm out/* && rmdir out
22076 cd ..
22077 rmdir conftest
22078 $rm conftest*
22081 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22082 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22085 hard_links="nottested"
22086 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22087 # do not overwrite the value of need_locks provided by the user
22088 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22089 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22090 hard_links=yes
22091 $rm conftest*
22092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22093 touch conftest.a
22094 ln conftest.a conftest.b 2>&5 || hard_links=no
22095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22096 { echo "$as_me:$LINENO: result: $hard_links" >&5
22097 echo "${ECHO_T}$hard_links" >&6; }
22098 if test "$hard_links" = no; then
22099 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22100 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22101 need_locks=warn
22103 else
22104 need_locks=no
22107 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22108 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22110 runpath_var=
22111 allow_undefined_flag_F77=
22112 enable_shared_with_static_runtimes_F77=no
22113 archive_cmds_F77=
22114 archive_expsym_cmds_F77=
22115 old_archive_From_new_cmds_F77=
22116 old_archive_from_expsyms_cmds_F77=
22117 export_dynamic_flag_spec_F77=
22118 whole_archive_flag_spec_F77=
22119 thread_safe_flag_spec_F77=
22120 hardcode_libdir_flag_spec_F77=
22121 hardcode_libdir_flag_spec_ld_F77=
22122 hardcode_libdir_separator_F77=
22123 hardcode_direct_F77=no
22124 hardcode_minus_L_F77=no
22125 hardcode_shlibpath_var_F77=unsupported
22126 link_all_deplibs_F77=unknown
22127 hardcode_automatic_F77=no
22128 module_cmds_F77=
22129 module_expsym_cmds_F77=
22130 always_export_symbols_F77=no
22131 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22132 # include_expsyms should be a list of space-separated symbols to be *always*
22133 # included in the symbol list
22134 include_expsyms_F77=
22135 # exclude_expsyms can be an extended regexp of symbols to exclude
22136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22138 # as well as any symbol that contains `d'.
22139 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22141 # platforms (ab)use it in PIC code, but their linkers get confused if
22142 # the symbol is explicitly referenced. Since portable code cannot
22143 # rely on this symbol name, it's probably fine to never include it in
22144 # preloaded symbol tables.
22145 extract_expsyms_cmds=
22146 # Just being paranoid about ensuring that cc_basename is set.
22147 for cc_temp in $compiler""; do
22148 case $cc_temp in
22149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22151 \-*) ;;
22152 *) break;;
22153 esac
22154 done
22155 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22157 case $host_os in
22158 cygwin* | mingw* | pw32*)
22159 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22160 # When not using gcc, we currently assume that we are using
22161 # Microsoft Visual C++.
22162 if test "$GCC" != yes; then
22163 with_gnu_ld=no
22166 interix*)
22167 # we just hope/assume this is gcc and not c89 (= MSVC++)
22168 with_gnu_ld=yes
22170 openbsd*)
22171 with_gnu_ld=no
22173 esac
22175 ld_shlibs_F77=yes
22176 if test "$with_gnu_ld" = yes; then
22177 # If archive_cmds runs LD, not CC, wlarc should be empty
22178 wlarc='${wl}'
22180 # Set some defaults for GNU ld with shared library support. These
22181 # are reset later if shared libraries are not supported. Putting them
22182 # here allows them to be overridden if necessary.
22183 runpath_var=LD_RUN_PATH
22184 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22185 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22186 # ancient GNU ld didn't support --whole-archive et. al.
22187 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22188 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22189 else
22190 whole_archive_flag_spec_F77=
22192 supports_anon_versioning=no
22193 case `$LD -v 2>/dev/null` in
22194 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22197 *\ 2.11.*) ;; # other 2.11 versions
22198 *) supports_anon_versioning=yes ;;
22199 esac
22201 # See if GNU ld supports shared libraries.
22202 case $host_os in
22203 aix3* | aix4* | aix5*)
22204 # On AIX/PPC, the GNU linker is very broken
22205 if test "$host_cpu" != ia64; then
22206 ld_shlibs_F77=no
22207 cat <<EOF 1>&2
22209 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22210 *** to be unable to reliably create shared libraries on AIX.
22211 *** Therefore, libtool is disabling shared libraries support. If you
22212 *** really care for shared libraries, you may want to modify your PATH
22213 *** so that a non-GNU linker is found, and then restart.
22219 amigaos*)
22220 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)'
22221 hardcode_libdir_flag_spec_F77='-L$libdir'
22222 hardcode_minus_L_F77=yes
22224 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22225 # that the semantics of dynamic libraries on AmigaOS, at least up
22226 # to version 4, is to share data among multiple programs linked
22227 # with the same dynamic library. Since this doesn't match the
22228 # behavior of shared libraries on other platforms, we can't use
22229 # them.
22230 ld_shlibs_F77=no
22233 beos*)
22234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22235 allow_undefined_flag_F77=unsupported
22236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22237 # support --undefined. This deserves some investigation. FIXME
22238 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22239 else
22240 ld_shlibs_F77=no
22244 cygwin* | mingw* | pw32*)
22245 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22246 # as there is no search path for DLLs.
22247 hardcode_libdir_flag_spec_F77='-L$libdir'
22248 allow_undefined_flag_F77=unsupported
22249 always_export_symbols_F77=no
22250 enable_shared_with_static_runtimes_F77=yes
22251 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22254 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22255 # If the export-symbols file already is a .def file (1st line
22256 # is EXPORTS), use it as is; otherwise, prepend...
22257 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22258 cp $export_symbols $output_objdir/$soname.def;
22259 else
22260 echo EXPORTS > $output_objdir/$soname.def;
22261 cat $export_symbols >> $output_objdir/$soname.def;
22263 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22264 else
22265 ld_shlibs_F77=no
22269 interix3*)
22270 hardcode_direct_F77=no
22271 hardcode_shlibpath_var_F77=no
22272 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22273 export_dynamic_flag_spec_F77='${wl}-E'
22274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22275 # Instead, shared libraries are loaded at an image base (0x10000000 by
22276 # default) and relocated if they conflict, which is a slow very memory
22277 # consuming and fragmenting process. To avoid this, we pick a random,
22278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22280 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'
22281 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'
22284 linux*)
22285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22286 tmp_addflag=
22287 case $cc_basename,$host_cpu in
22288 pgcc*) # Portland Group C compiler
22289 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'
22290 tmp_addflag=' $pic_flag'
22292 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22293 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'
22294 tmp_addflag=' $pic_flag -Mnomain' ;;
22295 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22296 tmp_addflag=' -i_dynamic' ;;
22297 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22298 tmp_addflag=' -i_dynamic -nofor_main' ;;
22299 ifc* | ifort*) # Intel Fortran compiler
22300 tmp_addflag=' -nofor_main' ;;
22301 esac
22302 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22304 if test $supports_anon_versioning = yes; then
22305 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22307 $echo "local: *; };" >> $output_objdir/$libname.ver~
22308 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22310 else
22311 ld_shlibs_F77=no
22315 netbsd*)
22316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22317 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22318 wlarc=
22319 else
22320 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22321 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22325 solaris*)
22326 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22327 ld_shlibs_F77=no
22328 cat <<EOF 1>&2
22330 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22331 *** create shared libraries on Solaris systems. Therefore, libtool
22332 *** is disabling shared libraries support. We urge you to upgrade GNU
22333 *** binutils to release 2.9.1 or newer. Another option is to modify
22334 *** your PATH or compiler configuration so that the native linker is
22335 *** used, and then restart.
22338 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22339 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22340 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22341 else
22342 ld_shlibs_F77=no
22346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22347 case `$LD -v 2>&1` in
22348 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22349 ld_shlibs_F77=no
22350 cat <<_LT_EOF 1>&2
22352 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22353 *** reliably create shared libraries on SCO systems. Therefore, libtool
22354 *** is disabling shared libraries support. We urge you to upgrade GNU
22355 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22356 *** your PATH or compiler configuration so that the native linker is
22357 *** used, and then restart.
22359 _LT_EOF
22362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22363 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22364 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22365 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22366 else
22367 ld_shlibs_F77=no
22370 esac
22373 sunos4*)
22374 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22375 wlarc=
22376 hardcode_direct_F77=yes
22377 hardcode_shlibpath_var_F77=no
22381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22382 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22383 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22384 else
22385 ld_shlibs_F77=no
22388 esac
22390 if test "$ld_shlibs_F77" = no; then
22391 runpath_var=
22392 hardcode_libdir_flag_spec_F77=
22393 export_dynamic_flag_spec_F77=
22394 whole_archive_flag_spec_F77=
22396 else
22397 # PORTME fill in a description of your system's linker (not GNU ld)
22398 case $host_os in
22399 aix3*)
22400 allow_undefined_flag_F77=unsupported
22401 always_export_symbols_F77=yes
22402 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'
22403 # Note: this linker hardcodes the directories in LIBPATH if there
22404 # are no directories specified by -L.
22405 hardcode_minus_L_F77=yes
22406 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22407 # Neither direct hardcoding nor static linking is supported with a
22408 # broken collect2.
22409 hardcode_direct_F77=unsupported
22413 aix4* | aix5*)
22414 if test "$host_cpu" = ia64; then
22415 # On IA64, the linker does run time linking by default, so we don't
22416 # have to do anything special.
22417 aix_use_runtimelinking=no
22418 exp_sym_flag='-Bexport'
22419 no_entry_flag=""
22420 else
22421 # If we're using GNU nm, then we don't want the "-C" option.
22422 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22423 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22424 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'
22425 else
22426 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'
22428 aix_use_runtimelinking=no
22430 # Test if we are trying to use run time linking or normal
22431 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22432 # need to do runtime linking.
22433 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22434 for ld_flag in $LDFLAGS; do
22435 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22436 aix_use_runtimelinking=yes
22437 break
22439 done
22441 esac
22443 exp_sym_flag='-bexport'
22444 no_entry_flag='-bnoentry'
22447 # When large executables or shared objects are built, AIX ld can
22448 # have problems creating the table of contents. If linking a library
22449 # or program results in "error TOC overflow" add -mminimal-toc to
22450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22453 archive_cmds_F77=''
22454 hardcode_direct_F77=yes
22455 hardcode_libdir_separator_F77=':'
22456 link_all_deplibs_F77=yes
22458 if test "$GCC" = yes; then
22459 case $host_os in aix4.[012]|aix4.[012].*)
22460 # We only want to do this on AIX 4.2 and lower, the check
22461 # below for broken collect2 doesn't work under 4.3+
22462 collect2name=`${CC} -print-prog-name=collect2`
22463 if test -f "$collect2name" && \
22464 strings "$collect2name" | grep resolve_lib_name >/dev/null
22465 then
22466 # We have reworked collect2
22467 hardcode_direct_F77=yes
22468 else
22469 # We have old collect2
22470 hardcode_direct_F77=unsupported
22471 # It fails to find uninstalled libraries when the uninstalled
22472 # path is not listed in the libpath. Setting hardcode_minus_L
22473 # to unsupported forces relinking
22474 hardcode_minus_L_F77=yes
22475 hardcode_libdir_flag_spec_F77='-L$libdir'
22476 hardcode_libdir_separator_F77=
22479 esac
22480 shared_flag='-shared'
22481 if test "$aix_use_runtimelinking" = yes; then
22482 shared_flag="$shared_flag "'${wl}-G'
22484 else
22485 # not using gcc
22486 if test "$host_cpu" = ia64; then
22487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22488 # chokes on -Wl,-G. The following line is correct:
22489 shared_flag='-G'
22490 else
22491 if test "$aix_use_runtimelinking" = yes; then
22492 shared_flag='${wl}-G'
22493 else
22494 shared_flag='${wl}-bM:SRE'
22499 # It seems that -bexpall does not export symbols beginning with
22500 # underscore (_), so it is better to generate a list of symbols to export.
22501 always_export_symbols_F77=yes
22502 if test "$aix_use_runtimelinking" = yes; then
22503 # Warning - without using the other runtime loading flags (-brtl),
22504 # -berok will link without error, but may produce a broken library.
22505 allow_undefined_flag_F77='-berok'
22506 # Determine the default libpath from the value encoded in an empty executable.
22507 cat >conftest.$ac_ext <<_ACEOF
22508 program main
22511 _ACEOF
22512 rm -f conftest.$ac_objext conftest$ac_exeext
22513 if { (ac_try="$ac_link"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22517 esac
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_link") 2>conftest.er1
22520 ac_status=$?
22521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } &&
22526 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22527 { (case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22530 esac
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_try") 2>&5
22533 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; } &&
22536 { ac_try='test -s conftest$ac_exeext'
22537 { (case "(($ac_try" in
22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539 *) ac_try_echo=$ac_try;;
22540 esac
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_try") 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; }; then
22547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22549 # Check for a 64-bit object if we didn't find anything.
22550 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; }
22551 }'`; fi
22552 else
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22559 rm -f core conftest.err conftest.$ac_objext \
22560 conftest$ac_exeext conftest.$ac_ext
22561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22563 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22564 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"
22565 else
22566 if test "$host_cpu" = ia64; then
22567 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22568 allow_undefined_flag_F77="-z nodefs"
22569 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"
22570 else
22571 # Determine the default libpath from the value encoded in an empty executable.
22572 cat >conftest.$ac_ext <<_ACEOF
22573 program main
22576 _ACEOF
22577 rm -f conftest.$ac_objext conftest$ac_exeext
22578 if { (ac_try="$ac_link"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_link") 2>conftest.er1
22585 ac_status=$?
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } &&
22591 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22592 { (case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595 esac
22596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22597 (eval "$ac_try") 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; } &&
22601 { ac_try='test -s conftest$ac_exeext'
22602 { (case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22605 esac
22606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_try") 2>&5
22608 ac_status=$?
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; }; then
22612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22614 # Check for a 64-bit object if we didn't find anything.
22615 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; }
22616 }'`; fi
22617 else
22618 echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22624 rm -f core conftest.err conftest.$ac_objext \
22625 conftest$ac_exeext conftest.$ac_ext
22626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22628 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22629 # Warning - without using the other run time loading flags,
22630 # -berok will link without error, but may produce a broken library.
22631 no_undefined_flag_F77=' ${wl}-bernotok'
22632 allow_undefined_flag_F77=' ${wl}-berok'
22633 # Exported symbols can be pulled into shared objects from archives
22634 whole_archive_flag_spec_F77='$convenience'
22635 archive_cmds_need_lc_F77=yes
22636 # This is similar to how AIX traditionally builds its shared libraries.
22637 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'
22642 amigaos*)
22643 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)'
22644 hardcode_libdir_flag_spec_F77='-L$libdir'
22645 hardcode_minus_L_F77=yes
22646 # see comment about different semantics on the GNU ld section
22647 ld_shlibs_F77=no
22650 bsdi[45]*)
22651 export_dynamic_flag_spec_F77=-rdynamic
22654 cygwin* | mingw* | pw32*)
22655 # When not using gcc, we currently assume that we are using
22656 # Microsoft Visual C++.
22657 # hardcode_libdir_flag_spec is actually meaningless, as there is
22658 # no search path for DLLs.
22659 hardcode_libdir_flag_spec_F77=' '
22660 allow_undefined_flag_F77=unsupported
22661 # Tell ltmain to make .lib files, not .a files.
22662 libext=lib
22663 # Tell ltmain to make .dll files, not .so files.
22664 shrext_cmds=".dll"
22665 # FIXME: Setting linknames here is a bad hack.
22666 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22667 # The linker will automatically build a .lib file if we build a DLL.
22668 old_archive_From_new_cmds_F77='true'
22669 # FIXME: Should let the user specify the lib program.
22670 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22671 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22672 enable_shared_with_static_runtimes_F77=yes
22675 darwin* | rhapsody*)
22676 case $host_os in
22677 rhapsody* | darwin1.[012])
22678 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22680 *) # Darwin 1.3 on
22681 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22682 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22683 else
22684 case ${MACOSX_DEPLOYMENT_TARGET} in
22685 10.[012])
22686 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22688 10.*)
22689 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22691 esac
22694 esac
22695 archive_cmds_need_lc_F77=no
22696 hardcode_direct_F77=no
22697 hardcode_automatic_F77=yes
22698 hardcode_shlibpath_var_F77=unsupported
22699 whole_archive_flag_spec_F77=''
22700 link_all_deplibs_F77=yes
22701 if test "$GCC" = yes ; then
22702 output_verbose_link_cmd='echo'
22703 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22704 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22705 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22706 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}'
22707 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}'
22708 else
22709 case $cc_basename in
22710 xlc*)
22711 output_verbose_link_cmd='echo'
22712 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22713 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22714 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22715 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}'
22716 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}'
22719 ld_shlibs_F77=no
22721 esac
22725 dgux*)
22726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727 hardcode_libdir_flag_spec_F77='-L$libdir'
22728 hardcode_shlibpath_var_F77=no
22731 freebsd1*)
22732 ld_shlibs_F77=no
22735 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22736 # support. Future versions do this automatically, but an explicit c++rt0.o
22737 # does not break anything, and helps significantly (at the cost of a little
22738 # extra space).
22739 freebsd2.2*)
22740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22741 hardcode_libdir_flag_spec_F77='-R$libdir'
22742 hardcode_direct_F77=yes
22743 hardcode_shlibpath_var_F77=no
22746 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22747 freebsd2*)
22748 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22749 hardcode_direct_F77=yes
22750 hardcode_minus_L_F77=yes
22751 hardcode_shlibpath_var_F77=no
22754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22755 freebsd* | kfreebsd*-gnu | dragonfly*)
22756 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22757 hardcode_libdir_flag_spec_F77='-R$libdir'
22758 hardcode_direct_F77=yes
22759 hardcode_shlibpath_var_F77=no
22762 hpux9*)
22763 if test "$GCC" = yes; then
22764 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'
22765 else
22766 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'
22768 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22769 hardcode_libdir_separator_F77=:
22770 hardcode_direct_F77=yes
22772 # hardcode_minus_L: Not really in the search PATH,
22773 # but as the default location of the library.
22774 hardcode_minus_L_F77=yes
22775 export_dynamic_flag_spec_F77='${wl}-E'
22778 hpux10*)
22779 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22780 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22781 else
22782 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22784 if test "$with_gnu_ld" = no; then
22785 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22786 hardcode_libdir_separator_F77=:
22788 hardcode_direct_F77=yes
22789 export_dynamic_flag_spec_F77='${wl}-E'
22791 # hardcode_minus_L: Not really in the search PATH,
22792 # but as the default location of the library.
22793 hardcode_minus_L_F77=yes
22797 hpux11*)
22798 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22799 case $host_cpu in
22800 hppa*64*)
22801 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22803 ia64*)
22804 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22807 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22809 esac
22810 else
22811 case $host_cpu in
22812 hppa*64*)
22813 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22815 ia64*)
22816 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22819 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22821 esac
22823 if test "$with_gnu_ld" = no; then
22824 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22825 hardcode_libdir_separator_F77=:
22827 case $host_cpu in
22828 hppa*64*|ia64*)
22829 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22830 hardcode_direct_F77=no
22831 hardcode_shlibpath_var_F77=no
22834 hardcode_direct_F77=yes
22835 export_dynamic_flag_spec_F77='${wl}-E'
22837 # hardcode_minus_L: Not really in the search PATH,
22838 # but as the default location of the library.
22839 hardcode_minus_L_F77=yes
22841 esac
22845 irix5* | irix6* | nonstopux*)
22846 if test "$GCC" = yes; then
22847 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'
22848 else
22849 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'
22850 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22852 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22853 hardcode_libdir_separator_F77=:
22854 link_all_deplibs_F77=yes
22857 netbsd*)
22858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22859 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22860 else
22861 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22863 hardcode_libdir_flag_spec_F77='-R$libdir'
22864 hardcode_direct_F77=yes
22865 hardcode_shlibpath_var_F77=no
22868 newsos6)
22869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22870 hardcode_direct_F77=yes
22871 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22872 hardcode_libdir_separator_F77=:
22873 hardcode_shlibpath_var_F77=no
22876 openbsd*)
22877 hardcode_direct_F77=yes
22878 hardcode_shlibpath_var_F77=no
22879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22880 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22881 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22882 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22883 export_dynamic_flag_spec_F77='${wl}-E'
22884 else
22885 case $host_os in
22886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22887 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22888 hardcode_libdir_flag_spec_F77='-R$libdir'
22891 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22892 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22894 esac
22898 os2*)
22899 hardcode_libdir_flag_spec_F77='-L$libdir'
22900 hardcode_minus_L_F77=yes
22901 allow_undefined_flag_F77=unsupported
22902 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'
22903 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22906 osf3*)
22907 if test "$GCC" = yes; then
22908 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22909 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'
22910 else
22911 allow_undefined_flag_F77=' -expect_unresolved \*'
22912 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'
22914 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22915 hardcode_libdir_separator_F77=:
22918 osf4* | osf5*) # as osf3* with the addition of -msym flag
22919 if test "$GCC" = yes; then
22920 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22921 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'
22922 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22923 else
22924 allow_undefined_flag_F77=' -expect_unresolved \*'
22925 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'
22926 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~
22927 $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'
22929 # Both c and cxx compiler support -rpath directly
22930 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22932 hardcode_libdir_separator_F77=:
22935 solaris*)
22936 no_undefined_flag_F77=' -z text'
22937 if test "$GCC" = yes; then
22938 wlarc='${wl}'
22939 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22940 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22941 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22942 else
22943 wlarc=''
22944 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22945 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22948 hardcode_libdir_flag_spec_F77='-R$libdir'
22949 hardcode_shlibpath_var_F77=no
22950 case $host_os in
22951 solaris2.[0-5] | solaris2.[0-5].*) ;;
22953 # The compiler driver will combine linker options so we
22954 # cannot just pass the convience library names through
22955 # without $wl, iff we do not link with $LD.
22956 # Luckily, gcc supports the same syntax we need for Sun Studio.
22957 # Supported since Solaris 2.6 (maybe 2.5.1?)
22958 case $wlarc in
22960 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22962 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' ;;
22963 esac ;;
22964 esac
22965 link_all_deplibs_F77=yes
22968 sunos4*)
22969 if test "x$host_vendor" = xsequent; then
22970 # Use $CC to link under sequent, because it throws in some extra .o
22971 # files that make .init and .fini sections work.
22972 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22973 else
22974 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22976 hardcode_libdir_flag_spec_F77='-L$libdir'
22977 hardcode_direct_F77=yes
22978 hardcode_minus_L_F77=yes
22979 hardcode_shlibpath_var_F77=no
22982 sysv4)
22983 case $host_vendor in
22984 sni)
22985 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22986 hardcode_direct_F77=yes # is this really true???
22988 siemens)
22989 ## LD is ld it makes a PLAMLIB
22990 ## CC just makes a GrossModule.
22991 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22992 reload_cmds_F77='$CC -r -o $output$reload_objs'
22993 hardcode_direct_F77=no
22995 motorola)
22996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22997 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22999 esac
23000 runpath_var='LD_RUN_PATH'
23001 hardcode_shlibpath_var_F77=no
23004 sysv4.3*)
23005 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23006 hardcode_shlibpath_var_F77=no
23007 export_dynamic_flag_spec_F77='-Bexport'
23010 sysv4*MP*)
23011 if test -d /usr/nec; then
23012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23013 hardcode_shlibpath_var_F77=no
23014 runpath_var=LD_RUN_PATH
23015 hardcode_runpath_var=yes
23016 ld_shlibs_F77=yes
23020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23021 no_undefined_flag_F77='${wl}-z,text'
23022 archive_cmds_need_lc_F77=no
23023 hardcode_shlibpath_var_F77=no
23024 runpath_var='LD_RUN_PATH'
23026 if test "$GCC" = yes; then
23027 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23028 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23029 else
23030 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23031 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23035 sysv5* | sco3.2v5* | sco5v6*)
23036 # Note: We can NOT use -z defs as we might desire, because we do not
23037 # link with -lc, and that would cause any symbols used from libc to
23038 # always be unresolved, which means just about no library would
23039 # ever link correctly. If we're not using GNU ld we use -z text
23040 # though, which does catch some bad symbols but isn't as heavy-handed
23041 # as -z defs.
23042 no_undefined_flag_F77='${wl}-z,text'
23043 allow_undefined_flag_F77='${wl}-z,nodefs'
23044 archive_cmds_need_lc_F77=no
23045 hardcode_shlibpath_var_F77=no
23046 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23047 hardcode_libdir_separator_F77=':'
23048 link_all_deplibs_F77=yes
23049 export_dynamic_flag_spec_F77='${wl}-Bexport'
23050 runpath_var='LD_RUN_PATH'
23052 if test "$GCC" = yes; then
23053 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23054 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23055 else
23056 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23057 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23061 uts4*)
23062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23063 hardcode_libdir_flag_spec_F77='-L$libdir'
23064 hardcode_shlibpath_var_F77=no
23068 ld_shlibs_F77=no
23070 esac
23073 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23074 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23075 test "$ld_shlibs_F77" = no && can_build_shared=no
23078 # Do we need to explicitly link libc?
23080 case "x$archive_cmds_need_lc_F77" in
23081 x|xyes)
23082 # Assume -lc should be added
23083 archive_cmds_need_lc_F77=yes
23085 if test "$enable_shared" = yes && test "$GCC" = yes; then
23086 case $archive_cmds_F77 in
23087 *'~'*)
23088 # FIXME: we may have to deal with multi-command sequences.
23090 '$CC '*)
23091 # Test whether the compiler implicitly links with -lc since on some
23092 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23093 # to ld, don't add -lc before -lgcc.
23094 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23095 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23096 $rm conftest*
23097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23100 (eval $ac_compile) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } 2>conftest.err; then
23104 soname=conftest
23105 lib=conftest
23106 libobjs=conftest.$ac_objext
23107 deplibs=
23108 wl=$lt_prog_compiler_wl_F77
23109 pic_flag=$lt_prog_compiler_pic_F77
23110 compiler_flags=-v
23111 linker_flags=-v
23112 verstring=
23113 output_objdir=.
23114 libname=conftest
23115 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23116 allow_undefined_flag_F77=
23117 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23118 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23119 ac_status=$?
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }
23122 then
23123 archive_cmds_need_lc_F77=no
23124 else
23125 archive_cmds_need_lc_F77=yes
23127 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23128 else
23129 cat conftest.err 1>&5
23131 $rm conftest*
23132 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23133 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23135 esac
23138 esac
23140 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23141 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23142 library_names_spec=
23143 libname_spec='lib$name'
23144 soname_spec=
23145 shrext_cmds=".so"
23146 postinstall_cmds=
23147 postuninstall_cmds=
23148 finish_cmds=
23149 finish_eval=
23150 shlibpath_var=
23151 shlibpath_overrides_runpath=unknown
23152 version_type=none
23153 dynamic_linker="$host_os ld.so"
23154 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23155 if test "$GCC" = yes; then
23156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23157 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23158 # if the path contains ";" then we assume it to be the separator
23159 # otherwise default to the standard path separator (i.e. ":") - it is
23160 # assumed that no part of a normal pathname contains ";" but that should
23161 # okay in the real world where ";" in dirpaths is itself problematic.
23162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23163 else
23164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23166 else
23167 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23169 need_lib_prefix=unknown
23170 hardcode_into_libs=no
23172 # when you set need_version to no, make sure it does not cause -set_version
23173 # flags to be left without arguments
23174 need_version=unknown
23176 case $host_os in
23177 aix3*)
23178 version_type=linux
23179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23180 shlibpath_var=LIBPATH
23182 # AIX 3 has no versioning support, so we append a major version to the name.
23183 soname_spec='${libname}${release}${shared_ext}$major'
23186 aix4* | aix5*)
23187 version_type=linux
23188 need_lib_prefix=no
23189 need_version=no
23190 hardcode_into_libs=yes
23191 if test "$host_cpu" = ia64; then
23192 # AIX 5 supports IA64
23193 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23194 shlibpath_var=LD_LIBRARY_PATH
23195 else
23196 # With GCC up to 2.95.x, collect2 would create an import file
23197 # for dependence libraries. The import file would start with
23198 # the line `#! .'. This would cause the generated library to
23199 # depend on `.', always an invalid library. This was fixed in
23200 # development snapshots of GCC prior to 3.0.
23201 case $host_os in
23202 aix4 | aix4.[01] | aix4.[01].*)
23203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23204 echo ' yes '
23205 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23207 else
23208 can_build_shared=no
23211 esac
23212 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23213 # soname into executable. Probably we can add versioning support to
23214 # collect2, so additional links can be useful in future.
23215 if test "$aix_use_runtimelinking" = yes; then
23216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23217 # instead of lib<name>.a to let people know that these are not
23218 # typical AIX shared libraries.
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23220 else
23221 # We preserve .a as extension for shared libraries through AIX4.2
23222 # and later when we are not doing run time linking.
23223 library_names_spec='${libname}${release}.a $libname.a'
23224 soname_spec='${libname}${release}${shared_ext}$major'
23226 shlibpath_var=LIBPATH
23230 amigaos*)
23231 library_names_spec='$libname.ixlibrary $libname.a'
23232 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23233 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'
23236 beos*)
23237 library_names_spec='${libname}${shared_ext}'
23238 dynamic_linker="$host_os ld.so"
23239 shlibpath_var=LIBRARY_PATH
23242 bsdi[45]*)
23243 version_type=linux
23244 need_version=no
23245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23246 soname_spec='${libname}${release}${shared_ext}$major'
23247 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23248 shlibpath_var=LD_LIBRARY_PATH
23249 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23250 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23251 # the default ld.so.conf also contains /usr/contrib/lib and
23252 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23253 # libtool to hard-code these into programs
23256 cygwin* | mingw* | pw32*)
23257 version_type=windows
23258 shrext_cmds=".dll"
23259 need_version=no
23260 need_lib_prefix=no
23262 case $GCC,$host_os in
23263 yes,cygwin* | yes,mingw* | yes,pw32*)
23264 library_names_spec='$libname.dll.a'
23265 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23266 postinstall_cmds='base_file=`basename \${file}`~
23267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23268 dldir=$destdir/`dirname \$dlpath`~
23269 test -d \$dldir || mkdir -p \$dldir~
23270 $install_prog $dir/$dlname \$dldir/$dlname~
23271 chmod a+x \$dldir/$dlname'
23272 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23273 dlpath=$dir/\$dldll~
23274 $rm \$dlpath'
23275 shlibpath_overrides_runpath=yes
23277 case $host_os in
23278 cygwin*)
23279 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23280 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23281 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23283 mingw*)
23284 # MinGW DLLs use traditional 'lib' prefix
23285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23286 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23287 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23288 # It is most probably a Windows format PATH printed by
23289 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23290 # path with ; separators, and with drive letters. We can handle the
23291 # drive letters (cygwin fileutils understands them), so leave them,
23292 # especially as we might pass files found there to a mingw objdump,
23293 # which wouldn't understand a cygwinified path. Ahh.
23294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23295 else
23296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23299 pw32*)
23300 # pw32 DLLs use 'pw' prefix rather than 'lib'
23301 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23303 esac
23307 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23309 esac
23310 dynamic_linker='Win32 ld.exe'
23311 # FIXME: first we should search . and the directory the executable is in
23312 shlibpath_var=PATH
23315 darwin* | rhapsody*)
23316 dynamic_linker="$host_os dyld"
23317 version_type=darwin
23318 need_lib_prefix=no
23319 need_version=no
23320 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23321 soname_spec='${libname}${release}${major}$shared_ext'
23322 shlibpath_overrides_runpath=yes
23323 shlibpath_var=DYLD_LIBRARY_PATH
23324 shrext_cmds='.dylib'
23325 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23326 if test "$GCC" = yes; then
23327 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"`
23328 else
23329 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23331 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23334 dgux*)
23335 version_type=linux
23336 need_lib_prefix=no
23337 need_version=no
23338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23339 soname_spec='${libname}${release}${shared_ext}$major'
23340 shlibpath_var=LD_LIBRARY_PATH
23343 freebsd1*)
23344 dynamic_linker=no
23347 kfreebsd*-gnu)
23348 version_type=linux
23349 need_lib_prefix=no
23350 need_version=no
23351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23352 soname_spec='${libname}${release}${shared_ext}$major'
23353 shlibpath_var=LD_LIBRARY_PATH
23354 shlibpath_overrides_runpath=no
23355 hardcode_into_libs=yes
23356 dynamic_linker='GNU ld.so'
23359 freebsd* | dragonfly*)
23360 # DragonFly does not have aout. When/if they implement a new
23361 # versioning mechanism, adjust this.
23362 if test -x /usr/bin/objformat; then
23363 objformat=`/usr/bin/objformat`
23364 else
23365 case $host_os in
23366 freebsd[123]*) objformat=aout ;;
23367 *) objformat=elf ;;
23368 esac
23370 version_type=freebsd-$objformat
23371 case $version_type in
23372 freebsd-elf*)
23373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23374 need_version=no
23375 need_lib_prefix=no
23377 freebsd-*)
23378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23379 need_version=yes
23381 esac
23382 shlibpath_var=LD_LIBRARY_PATH
23383 case $host_os in
23384 freebsd2*)
23385 shlibpath_overrides_runpath=yes
23387 freebsd3.[01]* | freebsdelf3.[01]*)
23388 shlibpath_overrides_runpath=yes
23389 hardcode_into_libs=yes
23391 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23392 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23393 shlibpath_overrides_runpath=no
23394 hardcode_into_libs=yes
23396 freebsd*) # from 4.6 on
23397 shlibpath_overrides_runpath=yes
23398 hardcode_into_libs=yes
23400 esac
23403 gnu*)
23404 version_type=linux
23405 need_lib_prefix=no
23406 need_version=no
23407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23408 soname_spec='${libname}${release}${shared_ext}$major'
23409 shlibpath_var=LD_LIBRARY_PATH
23410 hardcode_into_libs=yes
23413 hpux9* | hpux10* | hpux11*)
23414 # Give a soname corresponding to the major version so that dld.sl refuses to
23415 # link against other versions.
23416 version_type=sunos
23417 need_lib_prefix=no
23418 need_version=no
23419 case $host_cpu in
23420 ia64*)
23421 shrext_cmds='.so'
23422 hardcode_into_libs=yes
23423 dynamic_linker="$host_os dld.so"
23424 shlibpath_var=LD_LIBRARY_PATH
23425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23427 soname_spec='${libname}${release}${shared_ext}$major'
23428 if test "X$HPUX_IA64_MODE" = X32; then
23429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23430 else
23431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23435 hppa*64*)
23436 shrext_cmds='.sl'
23437 hardcode_into_libs=yes
23438 dynamic_linker="$host_os dld.sl"
23439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23442 soname_spec='${libname}${release}${shared_ext}$major'
23443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23447 shrext_cmds='.sl'
23448 dynamic_linker="$host_os dld.sl"
23449 shlibpath_var=SHLIB_PATH
23450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23452 soname_spec='${libname}${release}${shared_ext}$major'
23454 esac
23455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23456 postinstall_cmds='chmod 555 $lib'
23459 interix3*)
23460 version_type=linux
23461 need_lib_prefix=no
23462 need_version=no
23463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23464 soname_spec='${libname}${release}${shared_ext}$major'
23465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23466 shlibpath_var=LD_LIBRARY_PATH
23467 shlibpath_overrides_runpath=no
23468 hardcode_into_libs=yes
23471 irix5* | irix6* | nonstopux*)
23472 case $host_os in
23473 nonstopux*) version_type=nonstopux ;;
23475 if test "$lt_cv_prog_gnu_ld" = yes; then
23476 version_type=linux
23477 else
23478 version_type=irix
23479 fi ;;
23480 esac
23481 need_lib_prefix=no
23482 need_version=no
23483 soname_spec='${libname}${release}${shared_ext}$major'
23484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23485 case $host_os in
23486 irix5* | nonstopux*)
23487 libsuff= shlibsuff=
23490 case $LD in # libtool.m4 will add one of these switches to LD
23491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23492 libsuff= shlibsuff= libmagic=32-bit;;
23493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23494 libsuff=32 shlibsuff=N32 libmagic=N32;;
23495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23497 *) libsuff= shlibsuff= libmagic=never-match;;
23498 esac
23500 esac
23501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23502 shlibpath_overrides_runpath=no
23503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23505 hardcode_into_libs=yes
23508 # No shared lib support for Linux oldld, aout, or coff.
23509 linux*oldld* | linux*aout* | linux*coff*)
23510 dynamic_linker=no
23513 # This must be Linux ELF.
23514 linux*)
23515 version_type=linux
23516 need_lib_prefix=no
23517 need_version=no
23518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23519 soname_spec='${libname}${release}${shared_ext}$major'
23520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23521 shlibpath_var=LD_LIBRARY_PATH
23522 shlibpath_overrides_runpath=no
23523 # This implies no fast_install, which is unacceptable.
23524 # Some rework will be needed to allow for fast_install
23525 # before this can be enabled.
23526 hardcode_into_libs=yes
23528 # Append ld.so.conf contents to the search path
23529 if test -f /etc/ld.so.conf; then
23530 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' ' '`
23531 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23534 # We used to test for /lib/ld.so.1 and disable shared libraries on
23535 # powerpc, because MkLinux only supported shared libraries with the
23536 # GNU dynamic linker. Since this was broken with cross compilers,
23537 # most powerpc-linux boxes support dynamic linking these days and
23538 # people can always --disable-shared, the test was removed, and we
23539 # assume the GNU/Linux dynamic linker is in use.
23540 dynamic_linker='GNU/Linux ld.so'
23543 knetbsd*-gnu)
23544 version_type=linux
23545 need_lib_prefix=no
23546 need_version=no
23547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23548 soname_spec='${libname}${release}${shared_ext}$major'
23549 shlibpath_var=LD_LIBRARY_PATH
23550 shlibpath_overrides_runpath=no
23551 hardcode_into_libs=yes
23552 dynamic_linker='GNU ld.so'
23555 netbsd*)
23556 version_type=sunos
23557 need_lib_prefix=no
23558 need_version=no
23559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23562 dynamic_linker='NetBSD (a.out) ld.so'
23563 else
23564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23565 soname_spec='${libname}${release}${shared_ext}$major'
23566 dynamic_linker='NetBSD ld.elf_so'
23568 shlibpath_var=LD_LIBRARY_PATH
23569 shlibpath_overrides_runpath=yes
23570 hardcode_into_libs=yes
23573 newsos6)
23574 version_type=linux
23575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23576 shlibpath_var=LD_LIBRARY_PATH
23577 shlibpath_overrides_runpath=yes
23580 nto-qnx*)
23581 version_type=linux
23582 need_lib_prefix=no
23583 need_version=no
23584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23585 soname_spec='${libname}${release}${shared_ext}$major'
23586 shlibpath_var=LD_LIBRARY_PATH
23587 shlibpath_overrides_runpath=yes
23590 openbsd*)
23591 version_type=sunos
23592 sys_lib_dlsearch_path_spec="/usr/lib"
23593 need_lib_prefix=no
23594 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23595 case $host_os in
23596 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23597 *) need_version=no ;;
23598 esac
23599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23601 shlibpath_var=LD_LIBRARY_PATH
23602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23603 case $host_os in
23604 openbsd2.[89] | openbsd2.[89].*)
23605 shlibpath_overrides_runpath=no
23608 shlibpath_overrides_runpath=yes
23610 esac
23611 else
23612 shlibpath_overrides_runpath=yes
23616 os2*)
23617 libname_spec='$name'
23618 shrext_cmds=".dll"
23619 need_lib_prefix=no
23620 library_names_spec='$libname${shared_ext} $libname.a'
23621 dynamic_linker='OS/2 ld.exe'
23622 shlibpath_var=LIBPATH
23625 osf3* | osf4* | osf5*)
23626 version_type=osf
23627 need_lib_prefix=no
23628 need_version=no
23629 soname_spec='${libname}${release}${shared_ext}$major'
23630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23631 shlibpath_var=LD_LIBRARY_PATH
23632 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23633 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23636 solaris*)
23637 version_type=linux
23638 need_lib_prefix=no
23639 need_version=no
23640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23641 soname_spec='${libname}${release}${shared_ext}$major'
23642 shlibpath_var=LD_LIBRARY_PATH
23643 shlibpath_overrides_runpath=yes
23644 hardcode_into_libs=yes
23645 # ldd complains unless libraries are executable
23646 postinstall_cmds='chmod +x $lib'
23649 sunos4*)
23650 version_type=sunos
23651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23652 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23653 shlibpath_var=LD_LIBRARY_PATH
23654 shlibpath_overrides_runpath=yes
23655 if test "$with_gnu_ld" = yes; then
23656 need_lib_prefix=no
23658 need_version=yes
23661 sysv4 | sysv4.3*)
23662 version_type=linux
23663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23664 soname_spec='${libname}${release}${shared_ext}$major'
23665 shlibpath_var=LD_LIBRARY_PATH
23666 case $host_vendor in
23667 sni)
23668 shlibpath_overrides_runpath=no
23669 need_lib_prefix=no
23670 export_dynamic_flag_spec='${wl}-Blargedynsym'
23671 runpath_var=LD_RUN_PATH
23673 siemens)
23674 need_lib_prefix=no
23676 motorola)
23677 need_lib_prefix=no
23678 need_version=no
23679 shlibpath_overrides_runpath=no
23680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23682 esac
23685 sysv4*MP*)
23686 if test -d /usr/nec ;then
23687 version_type=linux
23688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23689 soname_spec='$libname${shared_ext}.$major'
23690 shlibpath_var=LD_LIBRARY_PATH
23694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23695 version_type=freebsd-elf
23696 need_lib_prefix=no
23697 need_version=no
23698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23699 soname_spec='${libname}${release}${shared_ext}$major'
23700 shlibpath_var=LD_LIBRARY_PATH
23701 hardcode_into_libs=yes
23702 if test "$with_gnu_ld" = yes; then
23703 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23704 shlibpath_overrides_runpath=no
23705 else
23706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23707 shlibpath_overrides_runpath=yes
23708 case $host_os in
23709 sco3.2v5*)
23710 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23712 esac
23714 sys_lib_dlsearch_path_spec='/usr/lib'
23717 uts4*)
23718 version_type=linux
23719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23720 soname_spec='${libname}${release}${shared_ext}$major'
23721 shlibpath_var=LD_LIBRARY_PATH
23725 dynamic_linker=no
23727 esac
23728 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23729 echo "${ECHO_T}$dynamic_linker" >&6; }
23730 test "$dynamic_linker" = no && can_build_shared=no
23732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23733 if test "$GCC" = yes; then
23734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23737 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23738 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23739 hardcode_action_F77=
23740 if test -n "$hardcode_libdir_flag_spec_F77" || \
23741 test -n "$runpath_var_F77" || \
23742 test "X$hardcode_automatic_F77" = "Xyes" ; then
23744 # We can hardcode non-existant directories.
23745 if test "$hardcode_direct_F77" != no &&
23746 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23747 # have to relink, otherwise we might link with an installed library
23748 # when we should be linking with a yet-to-be-installed one
23749 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23750 test "$hardcode_minus_L_F77" != no; then
23751 # Linking always hardcodes the temporary library directory.
23752 hardcode_action_F77=relink
23753 else
23754 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23755 hardcode_action_F77=immediate
23757 else
23758 # We cannot hardcode anything, or else we can only hardcode existing
23759 # directories.
23760 hardcode_action_F77=unsupported
23762 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23763 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23765 if test "$hardcode_action_F77" = relink; then
23766 # Fast installation is not supported
23767 enable_fast_install=no
23768 elif test "$shlibpath_overrides_runpath" = yes ||
23769 test "$enable_shared" = no; then
23770 # Fast installation is not necessary
23771 enable_fast_install=needless
23775 # The else clause should only fire when bootstrapping the
23776 # libtool distribution, otherwise you forgot to ship ltmain.sh
23777 # with your package, and you will get complaints that there are
23778 # no rules to generate ltmain.sh.
23779 if test -f "$ltmain"; then
23780 # See if we are running on zsh, and set the options which allow our commands through
23781 # without removal of \ escapes.
23782 if test -n "${ZSH_VERSION+set}" ; then
23783 setopt NO_GLOB_SUBST
23785 # Now quote all the things that may contain metacharacters while being
23786 # careful not to overquote the AC_SUBSTed values. We take copies of the
23787 # variables and quote the copies for generation of the libtool script.
23788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23789 SED SHELL STRIP \
23790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23792 deplibs_check_method reload_flag reload_cmds need_locks \
23793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23794 lt_cv_sys_global_symbol_to_c_name_address \
23795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23796 old_postinstall_cmds old_postuninstall_cmds \
23797 compiler_F77 \
23798 CC_F77 \
23799 LD_F77 \
23800 lt_prog_compiler_wl_F77 \
23801 lt_prog_compiler_pic_F77 \
23802 lt_prog_compiler_static_F77 \
23803 lt_prog_compiler_no_builtin_flag_F77 \
23804 export_dynamic_flag_spec_F77 \
23805 thread_safe_flag_spec_F77 \
23806 whole_archive_flag_spec_F77 \
23807 enable_shared_with_static_runtimes_F77 \
23808 old_archive_cmds_F77 \
23809 old_archive_from_new_cmds_F77 \
23810 predep_objects_F77 \
23811 postdep_objects_F77 \
23812 predeps_F77 \
23813 postdeps_F77 \
23814 compiler_lib_search_path_F77 \
23815 archive_cmds_F77 \
23816 archive_expsym_cmds_F77 \
23817 postinstall_cmds_F77 \
23818 postuninstall_cmds_F77 \
23819 old_archive_from_expsyms_cmds_F77 \
23820 allow_undefined_flag_F77 \
23821 no_undefined_flag_F77 \
23822 export_symbols_cmds_F77 \
23823 hardcode_libdir_flag_spec_F77 \
23824 hardcode_libdir_flag_spec_ld_F77 \
23825 hardcode_libdir_separator_F77 \
23826 hardcode_automatic_F77 \
23827 module_cmds_F77 \
23828 module_expsym_cmds_F77 \
23829 lt_cv_prog_compiler_c_o_F77 \
23830 exclude_expsyms_F77 \
23831 include_expsyms_F77; do
23833 case $var in
23834 old_archive_cmds_F77 | \
23835 old_archive_from_new_cmds_F77 | \
23836 archive_cmds_F77 | \
23837 archive_expsym_cmds_F77 | \
23838 module_cmds_F77 | \
23839 module_expsym_cmds_F77 | \
23840 old_archive_from_expsyms_cmds_F77 | \
23841 export_symbols_cmds_F77 | \
23842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23843 postinstall_cmds | postuninstall_cmds | \
23844 old_postinstall_cmds | old_postuninstall_cmds | \
23845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23846 # Double-quote double-evaled strings.
23847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23852 esac
23853 done
23855 case $lt_echo in
23856 *'\$0 --fallback-echo"')
23857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23859 esac
23861 cfgfile="$ofile"
23863 cat <<__EOF__ >> "$cfgfile"
23864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23868 # Shell to use when invoking shell scripts.
23869 SHELL=$lt_SHELL
23871 # Whether or not to build shared libraries.
23872 build_libtool_libs=$enable_shared
23874 # Whether or not to build static libraries.
23875 build_old_libs=$enable_static
23877 # Whether or not to add -lc for building shared libraries.
23878 build_libtool_need_lc=$archive_cmds_need_lc_F77
23880 # Whether or not to disallow shared libs when runtime libs are static
23881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23883 # Whether or not to optimize for fast installation.
23884 fast_install=$enable_fast_install
23886 # The host system.
23887 host_alias=$host_alias
23888 host=$host
23889 host_os=$host_os
23891 # The build system.
23892 build_alias=$build_alias
23893 build=$build
23894 build_os=$build_os
23896 # An echo program that does not interpret backslashes.
23897 echo=$lt_echo
23899 # The archiver.
23900 AR=$lt_AR
23901 AR_FLAGS=$lt_AR_FLAGS
23903 # A C compiler.
23904 LTCC=$lt_LTCC
23906 # LTCC compiler flags.
23907 LTCFLAGS=$lt_LTCFLAGS
23909 # A language-specific compiler.
23910 CC=$lt_compiler_F77
23912 # Is the compiler the GNU C compiler?
23913 with_gcc=$GCC_F77
23915 # An ERE matcher.
23916 EGREP=$lt_EGREP
23918 # The linker used to build libraries.
23919 LD=$lt_LD_F77
23921 # Whether we need hard or soft links.
23922 LN_S=$lt_LN_S
23924 # A BSD-compatible nm program.
23925 NM=$lt_NM
23927 # A symbol stripping program
23928 STRIP=$lt_STRIP
23930 # Used to examine libraries when file_magic_cmd begins "file"
23931 MAGIC_CMD=$MAGIC_CMD
23933 # Used on cygwin: DLL creation program.
23934 DLLTOOL="$DLLTOOL"
23936 # Used on cygwin: object dumper.
23937 OBJDUMP="$OBJDUMP"
23939 # Used on cygwin: assembler.
23940 AS="$AS"
23942 # The name of the directory that contains temporary libtool files.
23943 objdir=$objdir
23945 # How to create reloadable object files.
23946 reload_flag=$lt_reload_flag
23947 reload_cmds=$lt_reload_cmds
23949 # How to pass a linker flag through the compiler.
23950 wl=$lt_lt_prog_compiler_wl_F77
23952 # Object file suffix (normally "o").
23953 objext="$ac_objext"
23955 # Old archive suffix (normally "a").
23956 libext="$libext"
23958 # Shared library suffix (normally ".so").
23959 shrext_cmds='$shrext_cmds'
23961 # Executable file suffix (normally "").
23962 exeext="$exeext"
23964 # Additional compiler flags for building library objects.
23965 pic_flag=$lt_lt_prog_compiler_pic_F77
23966 pic_mode=$pic_mode
23968 # What is the maximum length of a command?
23969 max_cmd_len=$lt_cv_sys_max_cmd_len
23971 # Does compiler simultaneously support -c and -o options?
23972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23974 # Must we lock files when doing compilation?
23975 need_locks=$lt_need_locks
23977 # Do we need the lib prefix for modules?
23978 need_lib_prefix=$need_lib_prefix
23980 # Do we need a version for libraries?
23981 need_version=$need_version
23983 # Whether dlopen is supported.
23984 dlopen_support=$enable_dlopen
23986 # Whether dlopen of programs is supported.
23987 dlopen_self=$enable_dlopen_self
23989 # Whether dlopen of statically linked programs is supported.
23990 dlopen_self_static=$enable_dlopen_self_static
23992 # Compiler flag to prevent dynamic linking.
23993 link_static_flag=$lt_lt_prog_compiler_static_F77
23995 # Compiler flag to turn off builtin functions.
23996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23998 # Compiler flag to allow reflexive dlopens.
23999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24001 # Compiler flag to generate shared objects directly from archives.
24002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24004 # Compiler flag to generate thread-safe objects.
24005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24007 # Library versioning type.
24008 version_type=$version_type
24010 # Format of library name prefix.
24011 libname_spec=$lt_libname_spec
24013 # List of archive names. First name is the real one, the rest are links.
24014 # The last name is the one that the linker finds with -lNAME.
24015 library_names_spec=$lt_library_names_spec
24017 # The coded name of the library, if different from the real name.
24018 soname_spec=$lt_soname_spec
24020 # Commands used to build and install an old-style archive.
24021 RANLIB=$lt_RANLIB
24022 old_archive_cmds=$lt_old_archive_cmds_F77
24023 old_postinstall_cmds=$lt_old_postinstall_cmds
24024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24026 # Create an old-style archive from a shared archive.
24027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24029 # Create a temporary old-style archive to link instead of a shared archive.
24030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24032 # Commands used to build and install a shared archive.
24033 archive_cmds=$lt_archive_cmds_F77
24034 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24035 postinstall_cmds=$lt_postinstall_cmds
24036 postuninstall_cmds=$lt_postuninstall_cmds
24038 # Commands used to build a loadable module (assumed same as above if empty)
24039 module_cmds=$lt_module_cmds_F77
24040 module_expsym_cmds=$lt_module_expsym_cmds_F77
24042 # Commands to strip libraries.
24043 old_striplib=$lt_old_striplib
24044 striplib=$lt_striplib
24046 # Dependencies to place before the objects being linked to create a
24047 # shared library.
24048 predep_objects=$lt_predep_objects_F77
24050 # Dependencies to place after the objects being linked to create a
24051 # shared library.
24052 postdep_objects=$lt_postdep_objects_F77
24054 # Dependencies to place before the objects being linked to create a
24055 # shared library.
24056 predeps=$lt_predeps_F77
24058 # Dependencies to place after the objects being linked to create a
24059 # shared library.
24060 postdeps=$lt_postdeps_F77
24062 # The library search path used internally by the compiler when linking
24063 # a shared library.
24064 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24066 # Method to check whether dependent libraries are shared objects.
24067 deplibs_check_method=$lt_deplibs_check_method
24069 # Command to use when deplibs_check_method == file_magic.
24070 file_magic_cmd=$lt_file_magic_cmd
24072 # Flag that allows shared libraries with undefined symbols to be built.
24073 allow_undefined_flag=$lt_allow_undefined_flag_F77
24075 # Flag that forces no undefined symbols.
24076 no_undefined_flag=$lt_no_undefined_flag_F77
24078 # Commands used to finish a libtool library installation in a directory.
24079 finish_cmds=$lt_finish_cmds
24081 # Same as above, but a single script fragment to be evaled but not shown.
24082 finish_eval=$lt_finish_eval
24084 # Take the output of nm and produce a listing of raw symbols and C names.
24085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24087 # Transform the output of nm in a proper C declaration
24088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24090 # Transform the output of nm in a C name address pair
24091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24093 # This is the shared library runtime path variable.
24094 runpath_var=$runpath_var
24096 # This is the shared library path variable.
24097 shlibpath_var=$shlibpath_var
24099 # Is shlibpath searched before the hard-coded library search path?
24100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24102 # How to hardcode a shared library path into an executable.
24103 hardcode_action=$hardcode_action_F77
24105 # Whether we should hardcode library paths into libraries.
24106 hardcode_into_libs=$hardcode_into_libs
24108 # Flag to hardcode \$libdir into a binary during linking.
24109 # This must work even if \$libdir does not exist.
24110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24112 # If ld is used when linking, flag to hardcode \$libdir into
24113 # a binary during linking. This must work even if \$libdir does
24114 # not exist.
24115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24117 # Whether we need a single -rpath flag with a separated argument.
24118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24121 # resulting binary.
24122 hardcode_direct=$hardcode_direct_F77
24124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24125 # resulting binary.
24126 hardcode_minus_L=$hardcode_minus_L_F77
24128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24129 # the resulting binary.
24130 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24132 # Set to yes if building a shared library automatically hardcodes DIR into the library
24133 # and all subsequent libraries and executables linked against it.
24134 hardcode_automatic=$hardcode_automatic_F77
24136 # Variables whose values should be saved in libtool wrapper scripts and
24137 # restored at relink time.
24138 variables_saved_for_relink="$variables_saved_for_relink"
24140 # Whether libtool must link a program against all its dependency libraries.
24141 link_all_deplibs=$link_all_deplibs_F77
24143 # Compile-time system search path for libraries
24144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24146 # Run-time system search path for libraries
24147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24149 # Fix the shell variable \$srcfile for the compiler.
24150 fix_srcfile_path="$fix_srcfile_path_F77"
24152 # Set to yes if exported symbols are required.
24153 always_export_symbols=$always_export_symbols_F77
24155 # The commands to list exported symbols.
24156 export_symbols_cmds=$lt_export_symbols_cmds_F77
24158 # The commands to extract the exported symbol list from a shared archive.
24159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24161 # Symbols that should not be listed in the preloaded symbols.
24162 exclude_expsyms=$lt_exclude_expsyms_F77
24164 # Symbols that must always be exported.
24165 include_expsyms=$lt_include_expsyms_F77
24167 # ### END LIBTOOL TAG CONFIG: $tagname
24169 __EOF__
24172 else
24173 # If there is no Makefile yet, we rely on a make rule to execute
24174 # `config.status --recheck' to rerun these tests and create the
24175 # libtool script then.
24176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24177 if test -f "$ltmain_in"; then
24178 test -f Makefile && make "$ltmain"
24183 ac_ext=c
24184 ac_cpp='$CPP $CPPFLAGS'
24185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24189 CC="$lt_save_CC"
24191 else
24192 tagname=""
24196 GCJ)
24197 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24198 ac_ext=c
24199 ac_cpp='$CPP $CPPFLAGS'
24200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24205 # Source file extension for Java test sources.
24206 ac_ext=java
24208 # Object file extension for compiled Java test sources.
24209 objext=o
24210 objext_GCJ=$objext
24212 # Code to be used in simple compile tests
24213 lt_simple_compile_test_code="class foo {}\n"
24215 # Code to be used in simple link tests
24216 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24218 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24220 # If no C compiler was specified, use CC.
24221 LTCC=${LTCC-"$CC"}
24223 # If no C compiler flags were specified, use CFLAGS.
24224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24226 # Allow CC to be a program name with arguments.
24227 compiler=$CC
24230 # save warnings/boilerplate of simple test code
24231 ac_outfile=conftest.$ac_objext
24232 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24233 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24234 _lt_compiler_boilerplate=`cat conftest.err`
24235 $rm conftest*
24237 ac_outfile=conftest.$ac_objext
24238 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24239 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24240 _lt_linker_boilerplate=`cat conftest.err`
24241 $rm conftest*
24244 # Allow CC to be a program name with arguments.
24245 lt_save_CC="$CC"
24246 CC=${GCJ-"gcj"}
24247 compiler=$CC
24248 compiler_GCJ=$CC
24249 for cc_temp in $compiler""; do
24250 case $cc_temp in
24251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24253 \-*) ;;
24254 *) break;;
24255 esac
24256 done
24257 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24260 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24261 archive_cmds_need_lc_GCJ=no
24263 old_archive_cmds_GCJ=$old_archive_cmds
24266 lt_prog_compiler_no_builtin_flag_GCJ=
24268 if test "$GCC" = yes; then
24269 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24272 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24273 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24274 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 else
24277 lt_cv_prog_compiler_rtti_exceptions=no
24278 ac_outfile=conftest.$ac_objext
24279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24280 lt_compiler_flag="-fno-rtti -fno-exceptions"
24281 # Insert the option either (1) after the last *FLAGS variable, or
24282 # (2) before a word containing "conftest.", or (3) at the end.
24283 # Note that $ac_compile itself does not contain backslashes and begins
24284 # with a dollar sign (not a hyphen), so the echo should work correctly.
24285 # The option is referenced via a variable to avoid confusing sed.
24286 lt_compile=`echo "$ac_compile" | $SED \
24287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24289 -e 's:$: $lt_compiler_flag:'`
24290 (eval echo "\"\$as_me:24290: $lt_compile\"" >&5)
24291 (eval "$lt_compile" 2>conftest.err)
24292 ac_status=$?
24293 cat conftest.err >&5
24294 echo "$as_me:24294: \$? = $ac_status" >&5
24295 if (exit $ac_status) && test -s "$ac_outfile"; then
24296 # The compiler can only warn and ignore the option if not recognized
24297 # So say no if there are warnings other than the usual output.
24298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24301 lt_cv_prog_compiler_rtti_exceptions=yes
24304 $rm conftest*
24307 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24308 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24310 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24311 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24312 else
24318 lt_prog_compiler_wl_GCJ=
24319 lt_prog_compiler_pic_GCJ=
24320 lt_prog_compiler_static_GCJ=
24322 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24323 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24325 if test "$GCC" = yes; then
24326 lt_prog_compiler_wl_GCJ='-Wl,'
24327 lt_prog_compiler_static_GCJ='-static'
24329 case $host_os in
24330 aix*)
24331 # All AIX code is PIC.
24332 if test "$host_cpu" = ia64; then
24333 # AIX 5 now supports IA64 processor
24334 lt_prog_compiler_static_GCJ='-Bstatic'
24338 amigaos*)
24339 # FIXME: we need at least 68020 code to build shared libraries, but
24340 # adding the `-m68020' flag to GCC prevents building anything better,
24341 # like `-m68040'.
24342 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24345 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24346 # PIC is the default for these OSes.
24349 mingw* | pw32* | os2*)
24350 # This hack is so that the source file can tell whether it is being
24351 # built for inclusion in a dll (and should export symbols for example).
24352 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24355 darwin* | rhapsody*)
24356 # PIC is the default on this platform
24357 # Common symbols not allowed in MH_DYLIB files
24358 lt_prog_compiler_pic_GCJ='-fno-common'
24361 interix3*)
24362 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24363 # Instead, we relocate shared libraries at runtime.
24366 msdosdjgpp*)
24367 # Just because we use GCC doesn't mean we suddenly get shared libraries
24368 # on systems that don't support them.
24369 lt_prog_compiler_can_build_shared_GCJ=no
24370 enable_shared=no
24373 sysv4*MP*)
24374 if test -d /usr/nec; then
24375 lt_prog_compiler_pic_GCJ=-Kconform_pic
24379 hpux*)
24380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24381 # not for PA HP-UX.
24382 case $host_cpu in
24383 hppa*64*|ia64*)
24384 # +Z the default
24387 lt_prog_compiler_pic_GCJ='-fPIC'
24389 esac
24393 lt_prog_compiler_pic_GCJ='-fPIC'
24395 esac
24396 else
24397 # PORTME Check for flag to pass linker flags through the system compiler.
24398 case $host_os in
24399 aix*)
24400 lt_prog_compiler_wl_GCJ='-Wl,'
24401 if test "$host_cpu" = ia64; then
24402 # AIX 5 now supports IA64 processor
24403 lt_prog_compiler_static_GCJ='-Bstatic'
24404 else
24405 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24408 darwin*)
24409 # PIC is the default on this platform
24410 # Common symbols not allowed in MH_DYLIB files
24411 case $cc_basename in
24412 xlc*)
24413 lt_prog_compiler_pic_GCJ='-qnocommon'
24414 lt_prog_compiler_wl_GCJ='-Wl,'
24416 esac
24419 mingw* | pw32* | os2*)
24420 # This hack is so that the source file can tell whether it is being
24421 # built for inclusion in a dll (and should export symbols for example).
24422 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24425 hpux9* | hpux10* | hpux11*)
24426 lt_prog_compiler_wl_GCJ='-Wl,'
24427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24428 # not for PA HP-UX.
24429 case $host_cpu in
24430 hppa*64*|ia64*)
24431 # +Z the default
24434 lt_prog_compiler_pic_GCJ='+Z'
24436 esac
24437 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24438 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24441 irix5* | irix6* | nonstopux*)
24442 lt_prog_compiler_wl_GCJ='-Wl,'
24443 # PIC (with -KPIC) is the default.
24444 lt_prog_compiler_static_GCJ='-non_shared'
24447 newsos6)
24448 lt_prog_compiler_pic_GCJ='-KPIC'
24449 lt_prog_compiler_static_GCJ='-Bstatic'
24452 linux*)
24453 case $cc_basename in
24454 icc* | ecc*)
24455 lt_prog_compiler_wl_GCJ='-Wl,'
24456 lt_prog_compiler_pic_GCJ='-KPIC'
24457 lt_prog_compiler_static_GCJ='-static'
24459 pgcc* | pgf77* | pgf90* | pgf95*)
24460 # Portland Group compilers (*not* the Pentium gcc compiler,
24461 # which looks to be a dead project)
24462 lt_prog_compiler_wl_GCJ='-Wl,'
24463 lt_prog_compiler_pic_GCJ='-fpic'
24464 lt_prog_compiler_static_GCJ='-Bstatic'
24466 ccc*)
24467 lt_prog_compiler_wl_GCJ='-Wl,'
24468 # All Alpha code is PIC.
24469 lt_prog_compiler_static_GCJ='-non_shared'
24471 esac
24474 osf3* | osf4* | osf5*)
24475 lt_prog_compiler_wl_GCJ='-Wl,'
24476 # All OSF/1 code is PIC.
24477 lt_prog_compiler_static_GCJ='-non_shared'
24480 solaris*)
24481 lt_prog_compiler_pic_GCJ='-KPIC'
24482 lt_prog_compiler_static_GCJ='-Bstatic'
24483 case $cc_basename in
24484 f77* | f90* | f95*)
24485 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24487 lt_prog_compiler_wl_GCJ='-Wl,';;
24488 esac
24491 sunos4*)
24492 lt_prog_compiler_wl_GCJ='-Qoption ld '
24493 lt_prog_compiler_pic_GCJ='-PIC'
24494 lt_prog_compiler_static_GCJ='-Bstatic'
24497 sysv4 | sysv4.2uw2* | sysv4.3*)
24498 lt_prog_compiler_wl_GCJ='-Wl,'
24499 lt_prog_compiler_pic_GCJ='-KPIC'
24500 lt_prog_compiler_static_GCJ='-Bstatic'
24503 sysv4*MP*)
24504 if test -d /usr/nec ;then
24505 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24506 lt_prog_compiler_static_GCJ='-Bstatic'
24510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24511 lt_prog_compiler_wl_GCJ='-Wl,'
24512 lt_prog_compiler_pic_GCJ='-KPIC'
24513 lt_prog_compiler_static_GCJ='-Bstatic'
24516 unicos*)
24517 lt_prog_compiler_wl_GCJ='-Wl,'
24518 lt_prog_compiler_can_build_shared_GCJ=no
24521 uts4*)
24522 lt_prog_compiler_pic_GCJ='-pic'
24523 lt_prog_compiler_static_GCJ='-Bstatic'
24527 lt_prog_compiler_can_build_shared_GCJ=no
24529 esac
24532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24533 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24536 # Check to make sure the PIC flag actually works.
24538 if test -n "$lt_prog_compiler_pic_GCJ"; then
24540 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24541 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24542 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24543 echo $ECHO_N "(cached) $ECHO_C" >&6
24544 else
24545 lt_prog_compiler_pic_works_GCJ=no
24546 ac_outfile=conftest.$ac_objext
24547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24548 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24549 # Insert the option either (1) after the last *FLAGS variable, or
24550 # (2) before a word containing "conftest.", or (3) at the end.
24551 # Note that $ac_compile itself does not contain backslashes and begins
24552 # with a dollar sign (not a hyphen), so the echo should work correctly.
24553 # The option is referenced via a variable to avoid confusing sed.
24554 lt_compile=`echo "$ac_compile" | $SED \
24555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24557 -e 's:$: $lt_compiler_flag:'`
24558 (eval echo "\"\$as_me:24558: $lt_compile\"" >&5)
24559 (eval "$lt_compile" 2>conftest.err)
24560 ac_status=$?
24561 cat conftest.err >&5
24562 echo "$as_me:24562: \$? = $ac_status" >&5
24563 if (exit $ac_status) && test -s "$ac_outfile"; then
24564 # The compiler can only warn and ignore the option if not recognized
24565 # So say no if there are warnings other than the usual output.
24566 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24569 lt_prog_compiler_pic_works_GCJ=yes
24572 $rm conftest*
24575 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24576 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24578 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24579 case $lt_prog_compiler_pic_GCJ in
24580 "" | " "*) ;;
24581 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24582 esac
24583 else
24584 lt_prog_compiler_pic_GCJ=
24585 lt_prog_compiler_can_build_shared_GCJ=no
24589 case $host_os in
24590 # For platforms which do not support PIC, -DPIC is meaningless:
24591 *djgpp*)
24592 lt_prog_compiler_pic_GCJ=
24595 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24597 esac
24600 # Check to make sure the static flag actually works.
24602 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24603 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24604 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24605 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24607 else
24608 lt_prog_compiler_static_works_GCJ=no
24609 save_LDFLAGS="$LDFLAGS"
24610 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24611 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24612 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24613 # The linker can only warn and ignore the option if not recognized
24614 # So say no if there are warnings
24615 if test -s conftest.err; then
24616 # Append any errors to the config.log.
24617 cat conftest.err 1>&5
24618 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24620 if diff conftest.exp conftest.er2 >/dev/null; then
24621 lt_prog_compiler_static_works_GCJ=yes
24623 else
24624 lt_prog_compiler_static_works_GCJ=yes
24627 $rm conftest*
24628 LDFLAGS="$save_LDFLAGS"
24631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24632 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24634 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24636 else
24637 lt_prog_compiler_static_GCJ=
24641 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24642 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24643 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646 lt_cv_prog_compiler_c_o_GCJ=no
24647 $rm -r conftest 2>/dev/null
24648 mkdir conftest
24649 cd conftest
24650 mkdir out
24651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24653 lt_compiler_flag="-o out/conftest2.$ac_objext"
24654 # Insert the option either (1) after the last *FLAGS variable, or
24655 # (2) before a word containing "conftest.", or (3) at the end.
24656 # Note that $ac_compile itself does not contain backslashes and begins
24657 # with a dollar sign (not a hyphen), so the echo should work correctly.
24658 lt_compile=`echo "$ac_compile" | $SED \
24659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24661 -e 's:$: $lt_compiler_flag:'`
24662 (eval echo "\"\$as_me:24662: $lt_compile\"" >&5)
24663 (eval "$lt_compile" 2>out/conftest.err)
24664 ac_status=$?
24665 cat out/conftest.err >&5
24666 echo "$as_me:24666: \$? = $ac_status" >&5
24667 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24668 then
24669 # The compiler can only warn and ignore the option if not recognized
24670 # So say no if there are warnings
24671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24672 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24673 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24674 lt_cv_prog_compiler_c_o_GCJ=yes
24677 chmod u+w . 2>&5
24678 $rm conftest*
24679 # SGI C++ compiler will create directory out/ii_files/ for
24680 # template instantiation
24681 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24682 $rm out/* && rmdir out
24683 cd ..
24684 rmdir conftest
24685 $rm conftest*
24688 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24689 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24692 hard_links="nottested"
24693 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24694 # do not overwrite the value of need_locks provided by the user
24695 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24696 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24697 hard_links=yes
24698 $rm conftest*
24699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24700 touch conftest.a
24701 ln conftest.a conftest.b 2>&5 || hard_links=no
24702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24703 { echo "$as_me:$LINENO: result: $hard_links" >&5
24704 echo "${ECHO_T}$hard_links" >&6; }
24705 if test "$hard_links" = no; then
24706 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24707 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24708 need_locks=warn
24710 else
24711 need_locks=no
24714 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24715 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24717 runpath_var=
24718 allow_undefined_flag_GCJ=
24719 enable_shared_with_static_runtimes_GCJ=no
24720 archive_cmds_GCJ=
24721 archive_expsym_cmds_GCJ=
24722 old_archive_From_new_cmds_GCJ=
24723 old_archive_from_expsyms_cmds_GCJ=
24724 export_dynamic_flag_spec_GCJ=
24725 whole_archive_flag_spec_GCJ=
24726 thread_safe_flag_spec_GCJ=
24727 hardcode_libdir_flag_spec_GCJ=
24728 hardcode_libdir_flag_spec_ld_GCJ=
24729 hardcode_libdir_separator_GCJ=
24730 hardcode_direct_GCJ=no
24731 hardcode_minus_L_GCJ=no
24732 hardcode_shlibpath_var_GCJ=unsupported
24733 link_all_deplibs_GCJ=unknown
24734 hardcode_automatic_GCJ=no
24735 module_cmds_GCJ=
24736 module_expsym_cmds_GCJ=
24737 always_export_symbols_GCJ=no
24738 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24739 # include_expsyms should be a list of space-separated symbols to be *always*
24740 # included in the symbol list
24741 include_expsyms_GCJ=
24742 # exclude_expsyms can be an extended regexp of symbols to exclude
24743 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24744 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24745 # as well as any symbol that contains `d'.
24746 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24747 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24748 # platforms (ab)use it in PIC code, but their linkers get confused if
24749 # the symbol is explicitly referenced. Since portable code cannot
24750 # rely on this symbol name, it's probably fine to never include it in
24751 # preloaded symbol tables.
24752 extract_expsyms_cmds=
24753 # Just being paranoid about ensuring that cc_basename is set.
24754 for cc_temp in $compiler""; do
24755 case $cc_temp in
24756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24758 \-*) ;;
24759 *) break;;
24760 esac
24761 done
24762 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24764 case $host_os in
24765 cygwin* | mingw* | pw32*)
24766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24767 # When not using gcc, we currently assume that we are using
24768 # Microsoft Visual C++.
24769 if test "$GCC" != yes; then
24770 with_gnu_ld=no
24773 interix*)
24774 # we just hope/assume this is gcc and not c89 (= MSVC++)
24775 with_gnu_ld=yes
24777 openbsd*)
24778 with_gnu_ld=no
24780 esac
24782 ld_shlibs_GCJ=yes
24783 if test "$with_gnu_ld" = yes; then
24784 # If archive_cmds runs LD, not CC, wlarc should be empty
24785 wlarc='${wl}'
24787 # Set some defaults for GNU ld with shared library support. These
24788 # are reset later if shared libraries are not supported. Putting them
24789 # here allows them to be overridden if necessary.
24790 runpath_var=LD_RUN_PATH
24791 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24792 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24793 # ancient GNU ld didn't support --whole-archive et. al.
24794 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24795 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24796 else
24797 whole_archive_flag_spec_GCJ=
24799 supports_anon_versioning=no
24800 case `$LD -v 2>/dev/null` in
24801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24804 *\ 2.11.*) ;; # other 2.11 versions
24805 *) supports_anon_versioning=yes ;;
24806 esac
24808 # See if GNU ld supports shared libraries.
24809 case $host_os in
24810 aix3* | aix4* | aix5*)
24811 # On AIX/PPC, the GNU linker is very broken
24812 if test "$host_cpu" != ia64; then
24813 ld_shlibs_GCJ=no
24814 cat <<EOF 1>&2
24816 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24817 *** to be unable to reliably create shared libraries on AIX.
24818 *** Therefore, libtool is disabling shared libraries support. If you
24819 *** really care for shared libraries, you may want to modify your PATH
24820 *** so that a non-GNU linker is found, and then restart.
24826 amigaos*)
24827 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)'
24828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24829 hardcode_minus_L_GCJ=yes
24831 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24832 # that the semantics of dynamic libraries on AmigaOS, at least up
24833 # to version 4, is to share data among multiple programs linked
24834 # with the same dynamic library. Since this doesn't match the
24835 # behavior of shared libraries on other platforms, we can't use
24836 # them.
24837 ld_shlibs_GCJ=no
24840 beos*)
24841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24842 allow_undefined_flag_GCJ=unsupported
24843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24844 # support --undefined. This deserves some investigation. FIXME
24845 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24846 else
24847 ld_shlibs_GCJ=no
24851 cygwin* | mingw* | pw32*)
24852 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24853 # as there is no search path for DLLs.
24854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24855 allow_undefined_flag_GCJ=unsupported
24856 always_export_symbols_GCJ=no
24857 enable_shared_with_static_runtimes_GCJ=yes
24858 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24860 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24861 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24862 # If the export-symbols file already is a .def file (1st line
24863 # is EXPORTS), use it as is; otherwise, prepend...
24864 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24865 cp $export_symbols $output_objdir/$soname.def;
24866 else
24867 echo EXPORTS > $output_objdir/$soname.def;
24868 cat $export_symbols >> $output_objdir/$soname.def;
24870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24871 else
24872 ld_shlibs_GCJ=no
24876 interix3*)
24877 hardcode_direct_GCJ=no
24878 hardcode_shlibpath_var_GCJ=no
24879 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24880 export_dynamic_flag_spec_GCJ='${wl}-E'
24881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24882 # Instead, shared libraries are loaded at an image base (0x10000000 by
24883 # default) and relocated if they conflict, which is a slow very memory
24884 # consuming and fragmenting process. To avoid this, we pick a random,
24885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24886 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24887 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'
24888 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'
24891 linux*)
24892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24893 tmp_addflag=
24894 case $cc_basename,$host_cpu in
24895 pgcc*) # Portland Group C compiler
24896 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'
24897 tmp_addflag=' $pic_flag'
24899 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24900 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'
24901 tmp_addflag=' $pic_flag -Mnomain' ;;
24902 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24903 tmp_addflag=' -i_dynamic' ;;
24904 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24905 tmp_addflag=' -i_dynamic -nofor_main' ;;
24906 ifc* | ifort*) # Intel Fortran compiler
24907 tmp_addflag=' -nofor_main' ;;
24908 esac
24909 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24911 if test $supports_anon_versioning = yes; then
24912 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24914 $echo "local: *; };" >> $output_objdir/$libname.ver~
24915 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24917 else
24918 ld_shlibs_GCJ=no
24922 netbsd*)
24923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24924 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24925 wlarc=
24926 else
24927 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24928 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24932 solaris*)
24933 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24934 ld_shlibs_GCJ=no
24935 cat <<EOF 1>&2
24937 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24938 *** create shared libraries on Solaris systems. Therefore, libtool
24939 *** is disabling shared libraries support. We urge you to upgrade GNU
24940 *** binutils to release 2.9.1 or newer. Another option is to modify
24941 *** your PATH or compiler configuration so that the native linker is
24942 *** used, and then restart.
24945 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24946 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24947 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24948 else
24949 ld_shlibs_GCJ=no
24953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24954 case `$LD -v 2>&1` in
24955 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24956 ld_shlibs_GCJ=no
24957 cat <<_LT_EOF 1>&2
24959 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24960 *** reliably create shared libraries on SCO systems. Therefore, libtool
24961 *** is disabling shared libraries support. We urge you to upgrade GNU
24962 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24963 *** your PATH or compiler configuration so that the native linker is
24964 *** used, and then restart.
24966 _LT_EOF
24969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24970 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24971 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24972 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24973 else
24974 ld_shlibs_GCJ=no
24977 esac
24980 sunos4*)
24981 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24982 wlarc=
24983 hardcode_direct_GCJ=yes
24984 hardcode_shlibpath_var_GCJ=no
24988 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24989 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24990 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24991 else
24992 ld_shlibs_GCJ=no
24995 esac
24997 if test "$ld_shlibs_GCJ" = no; then
24998 runpath_var=
24999 hardcode_libdir_flag_spec_GCJ=
25000 export_dynamic_flag_spec_GCJ=
25001 whole_archive_flag_spec_GCJ=
25003 else
25004 # PORTME fill in a description of your system's linker (not GNU ld)
25005 case $host_os in
25006 aix3*)
25007 allow_undefined_flag_GCJ=unsupported
25008 always_export_symbols_GCJ=yes
25009 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'
25010 # Note: this linker hardcodes the directories in LIBPATH if there
25011 # are no directories specified by -L.
25012 hardcode_minus_L_GCJ=yes
25013 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25014 # Neither direct hardcoding nor static linking is supported with a
25015 # broken collect2.
25016 hardcode_direct_GCJ=unsupported
25020 aix4* | aix5*)
25021 if test "$host_cpu" = ia64; then
25022 # On IA64, the linker does run time linking by default, so we don't
25023 # have to do anything special.
25024 aix_use_runtimelinking=no
25025 exp_sym_flag='-Bexport'
25026 no_entry_flag=""
25027 else
25028 # If we're using GNU nm, then we don't want the "-C" option.
25029 # -C means demangle to AIX nm, but means don't demangle with GNU nm
25030 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25031 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'
25032 else
25033 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'
25035 aix_use_runtimelinking=no
25037 # Test if we are trying to use run time linking or normal
25038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25039 # need to do runtime linking.
25040 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25041 for ld_flag in $LDFLAGS; do
25042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25043 aix_use_runtimelinking=yes
25044 break
25046 done
25048 esac
25050 exp_sym_flag='-bexport'
25051 no_entry_flag='-bnoentry'
25054 # When large executables or shared objects are built, AIX ld can
25055 # have problems creating the table of contents. If linking a library
25056 # or program results in "error TOC overflow" add -mminimal-toc to
25057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25060 archive_cmds_GCJ=''
25061 hardcode_direct_GCJ=yes
25062 hardcode_libdir_separator_GCJ=':'
25063 link_all_deplibs_GCJ=yes
25065 if test "$GCC" = yes; then
25066 case $host_os in aix4.[012]|aix4.[012].*)
25067 # We only want to do this on AIX 4.2 and lower, the check
25068 # below for broken collect2 doesn't work under 4.3+
25069 collect2name=`${CC} -print-prog-name=collect2`
25070 if test -f "$collect2name" && \
25071 strings "$collect2name" | grep resolve_lib_name >/dev/null
25072 then
25073 # We have reworked collect2
25074 hardcode_direct_GCJ=yes
25075 else
25076 # We have old collect2
25077 hardcode_direct_GCJ=unsupported
25078 # It fails to find uninstalled libraries when the uninstalled
25079 # path is not listed in the libpath. Setting hardcode_minus_L
25080 # to unsupported forces relinking
25081 hardcode_minus_L_GCJ=yes
25082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25083 hardcode_libdir_separator_GCJ=
25086 esac
25087 shared_flag='-shared'
25088 if test "$aix_use_runtimelinking" = yes; then
25089 shared_flag="$shared_flag "'${wl}-G'
25091 else
25092 # not using gcc
25093 if test "$host_cpu" = ia64; then
25094 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25095 # chokes on -Wl,-G. The following line is correct:
25096 shared_flag='-G'
25097 else
25098 if test "$aix_use_runtimelinking" = yes; then
25099 shared_flag='${wl}-G'
25100 else
25101 shared_flag='${wl}-bM:SRE'
25106 # It seems that -bexpall does not export symbols beginning with
25107 # underscore (_), so it is better to generate a list of symbols to export.
25108 always_export_symbols_GCJ=yes
25109 if test "$aix_use_runtimelinking" = yes; then
25110 # Warning - without using the other runtime loading flags (-brtl),
25111 # -berok will link without error, but may produce a broken library.
25112 allow_undefined_flag_GCJ='-berok'
25113 # Determine the default libpath from the value encoded in an empty executable.
25114 cat >conftest.$ac_ext <<_ACEOF
25115 /* confdefs.h. */
25116 _ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h. */
25122 main ()
25126 return 0;
25128 _ACEOF
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130 if { (ac_try="$ac_link"
25131 case "(($ac_try" in
25132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133 *) ac_try_echo=$ac_try;;
25134 esac
25135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25136 (eval "$ac_link") 2>conftest.er1
25137 ac_status=$?
25138 grep -v '^ *+' conftest.er1 >conftest.err
25139 rm -f conftest.er1
25140 cat conftest.err >&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } &&
25143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25144 { (case "(($ac_try" in
25145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146 *) ac_try_echo=$ac_try;;
25147 esac
25148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25149 (eval "$ac_try") 2>&5
25150 ac_status=$?
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; } &&
25153 { ac_try='test -s conftest$ac_exeext'
25154 { (case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_try") 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25166 # Check for a 64-bit object if we didn't find anything.
25167 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; }
25168 }'`; fi
25169 else
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25176 rm -f core conftest.err conftest.$ac_objext \
25177 conftest$ac_exeext conftest.$ac_ext
25178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25180 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25181 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"
25182 else
25183 if test "$host_cpu" = ia64; then
25184 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25185 allow_undefined_flag_GCJ="-z nodefs"
25186 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"
25187 else
25188 # Determine the default libpath from the value encoded in an empty executable.
25189 cat >conftest.$ac_ext <<_ACEOF
25190 /* confdefs.h. */
25191 _ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h. */
25197 main ()
25201 return 0;
25203 _ACEOF
25204 rm -f conftest.$ac_objext conftest$ac_exeext
25205 if { (ac_try="$ac_link"
25206 case "(($ac_try" in
25207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208 *) ac_try_echo=$ac_try;;
25209 esac
25210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211 (eval "$ac_link") 2>conftest.er1
25212 ac_status=$?
25213 grep -v '^ *+' conftest.er1 >conftest.err
25214 rm -f conftest.er1
25215 cat conftest.err >&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } &&
25218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25219 { (case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25222 esac
25223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224 (eval "$ac_try") 2>&5
25225 ac_status=$?
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; } &&
25228 { ac_try='test -s conftest$ac_exeext'
25229 { (case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25232 esac
25233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234 (eval "$ac_try") 2>&5
25235 ac_status=$?
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; }; then
25239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25241 # Check for a 64-bit object if we didn't find anything.
25242 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; }
25243 }'`; fi
25244 else
25245 echo "$as_me: failed program was:" >&5
25246 sed 's/^/| /' conftest.$ac_ext >&5
25251 rm -f core conftest.err conftest.$ac_objext \
25252 conftest$ac_exeext conftest.$ac_ext
25253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25255 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25256 # Warning - without using the other run time loading flags,
25257 # -berok will link without error, but may produce a broken library.
25258 no_undefined_flag_GCJ=' ${wl}-bernotok'
25259 allow_undefined_flag_GCJ=' ${wl}-berok'
25260 # Exported symbols can be pulled into shared objects from archives
25261 whole_archive_flag_spec_GCJ='$convenience'
25262 archive_cmds_need_lc_GCJ=yes
25263 # This is similar to how AIX traditionally builds its shared libraries.
25264 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'
25269 amigaos*)
25270 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)'
25271 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25272 hardcode_minus_L_GCJ=yes
25273 # see comment about different semantics on the GNU ld section
25274 ld_shlibs_GCJ=no
25277 bsdi[45]*)
25278 export_dynamic_flag_spec_GCJ=-rdynamic
25281 cygwin* | mingw* | pw32*)
25282 # When not using gcc, we currently assume that we are using
25283 # Microsoft Visual C++.
25284 # hardcode_libdir_flag_spec is actually meaningless, as there is
25285 # no search path for DLLs.
25286 hardcode_libdir_flag_spec_GCJ=' '
25287 allow_undefined_flag_GCJ=unsupported
25288 # Tell ltmain to make .lib files, not .a files.
25289 libext=lib
25290 # Tell ltmain to make .dll files, not .so files.
25291 shrext_cmds=".dll"
25292 # FIXME: Setting linknames here is a bad hack.
25293 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25294 # The linker will automatically build a .lib file if we build a DLL.
25295 old_archive_From_new_cmds_GCJ='true'
25296 # FIXME: Should let the user specify the lib program.
25297 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25298 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25299 enable_shared_with_static_runtimes_GCJ=yes
25302 darwin* | rhapsody*)
25303 case $host_os in
25304 rhapsody* | darwin1.[012])
25305 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25307 *) # Darwin 1.3 on
25308 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25309 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25310 else
25311 case ${MACOSX_DEPLOYMENT_TARGET} in
25312 10.[012])
25313 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25315 10.*)
25316 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25318 esac
25321 esac
25322 archive_cmds_need_lc_GCJ=no
25323 hardcode_direct_GCJ=no
25324 hardcode_automatic_GCJ=yes
25325 hardcode_shlibpath_var_GCJ=unsupported
25326 whole_archive_flag_spec_GCJ=''
25327 link_all_deplibs_GCJ=yes
25328 if test "$GCC" = yes ; then
25329 output_verbose_link_cmd='echo'
25330 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25331 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25333 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}'
25334 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}'
25335 else
25336 case $cc_basename in
25337 xlc*)
25338 output_verbose_link_cmd='echo'
25339 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25340 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25341 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25342 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}'
25343 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}'
25346 ld_shlibs_GCJ=no
25348 esac
25352 dgux*)
25353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25355 hardcode_shlibpath_var_GCJ=no
25358 freebsd1*)
25359 ld_shlibs_GCJ=no
25362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25363 # support. Future versions do this automatically, but an explicit c++rt0.o
25364 # does not break anything, and helps significantly (at the cost of a little
25365 # extra space).
25366 freebsd2.2*)
25367 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25368 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25369 hardcode_direct_GCJ=yes
25370 hardcode_shlibpath_var_GCJ=no
25373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25374 freebsd2*)
25375 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25376 hardcode_direct_GCJ=yes
25377 hardcode_minus_L_GCJ=yes
25378 hardcode_shlibpath_var_GCJ=no
25381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25382 freebsd* | kfreebsd*-gnu | dragonfly*)
25383 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25385 hardcode_direct_GCJ=yes
25386 hardcode_shlibpath_var_GCJ=no
25389 hpux9*)
25390 if test "$GCC" = yes; then
25391 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'
25392 else
25393 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'
25395 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25396 hardcode_libdir_separator_GCJ=:
25397 hardcode_direct_GCJ=yes
25399 # hardcode_minus_L: Not really in the search PATH,
25400 # but as the default location of the library.
25401 hardcode_minus_L_GCJ=yes
25402 export_dynamic_flag_spec_GCJ='${wl}-E'
25405 hpux10*)
25406 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25407 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25408 else
25409 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25411 if test "$with_gnu_ld" = no; then
25412 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25413 hardcode_libdir_separator_GCJ=:
25415 hardcode_direct_GCJ=yes
25416 export_dynamic_flag_spec_GCJ='${wl}-E'
25418 # hardcode_minus_L: Not really in the search PATH,
25419 # but as the default location of the library.
25420 hardcode_minus_L_GCJ=yes
25424 hpux11*)
25425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25426 case $host_cpu in
25427 hppa*64*)
25428 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25430 ia64*)
25431 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25434 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25436 esac
25437 else
25438 case $host_cpu in
25439 hppa*64*)
25440 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25442 ia64*)
25443 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25446 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25448 esac
25450 if test "$with_gnu_ld" = no; then
25451 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25452 hardcode_libdir_separator_GCJ=:
25454 case $host_cpu in
25455 hppa*64*|ia64*)
25456 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25457 hardcode_direct_GCJ=no
25458 hardcode_shlibpath_var_GCJ=no
25461 hardcode_direct_GCJ=yes
25462 export_dynamic_flag_spec_GCJ='${wl}-E'
25464 # hardcode_minus_L: Not really in the search PATH,
25465 # but as the default location of the library.
25466 hardcode_minus_L_GCJ=yes
25468 esac
25472 irix5* | irix6* | nonstopux*)
25473 if test "$GCC" = yes; then
25474 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'
25475 else
25476 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'
25477 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25480 hardcode_libdir_separator_GCJ=:
25481 link_all_deplibs_GCJ=yes
25484 netbsd*)
25485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25486 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25487 else
25488 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25490 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25491 hardcode_direct_GCJ=yes
25492 hardcode_shlibpath_var_GCJ=no
25495 newsos6)
25496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25497 hardcode_direct_GCJ=yes
25498 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25499 hardcode_libdir_separator_GCJ=:
25500 hardcode_shlibpath_var_GCJ=no
25503 openbsd*)
25504 hardcode_direct_GCJ=yes
25505 hardcode_shlibpath_var_GCJ=no
25506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25507 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25508 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25510 export_dynamic_flag_spec_GCJ='${wl}-E'
25511 else
25512 case $host_os in
25513 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25514 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25515 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25521 esac
25525 os2*)
25526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25527 hardcode_minus_L_GCJ=yes
25528 allow_undefined_flag_GCJ=unsupported
25529 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'
25530 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25533 osf3*)
25534 if test "$GCC" = yes; then
25535 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25536 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'
25537 else
25538 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25539 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'
25541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25542 hardcode_libdir_separator_GCJ=:
25545 osf4* | osf5*) # as osf3* with the addition of -msym flag
25546 if test "$GCC" = yes; then
25547 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25548 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'
25549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25550 else
25551 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25552 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'
25553 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~
25554 $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'
25556 # Both c and cxx compiler support -rpath directly
25557 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25559 hardcode_libdir_separator_GCJ=:
25562 solaris*)
25563 no_undefined_flag_GCJ=' -z text'
25564 if test "$GCC" = yes; then
25565 wlarc='${wl}'
25566 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25567 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25568 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25569 else
25570 wlarc=''
25571 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25572 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25573 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25576 hardcode_shlibpath_var_GCJ=no
25577 case $host_os in
25578 solaris2.[0-5] | solaris2.[0-5].*) ;;
25580 # The compiler driver will combine linker options so we
25581 # cannot just pass the convience library names through
25582 # without $wl, iff we do not link with $LD.
25583 # Luckily, gcc supports the same syntax we need for Sun Studio.
25584 # Supported since Solaris 2.6 (maybe 2.5.1?)
25585 case $wlarc in
25587 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25589 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' ;;
25590 esac ;;
25591 esac
25592 link_all_deplibs_GCJ=yes
25595 sunos4*)
25596 if test "x$host_vendor" = xsequent; then
25597 # Use $CC to link under sequent, because it throws in some extra .o
25598 # files that make .init and .fini sections work.
25599 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25600 else
25601 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25604 hardcode_direct_GCJ=yes
25605 hardcode_minus_L_GCJ=yes
25606 hardcode_shlibpath_var_GCJ=no
25609 sysv4)
25610 case $host_vendor in
25611 sni)
25612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25613 hardcode_direct_GCJ=yes # is this really true???
25615 siemens)
25616 ## LD is ld it makes a PLAMLIB
25617 ## CC just makes a GrossModule.
25618 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25619 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25620 hardcode_direct_GCJ=no
25622 motorola)
25623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25624 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25626 esac
25627 runpath_var='LD_RUN_PATH'
25628 hardcode_shlibpath_var_GCJ=no
25631 sysv4.3*)
25632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25633 hardcode_shlibpath_var_GCJ=no
25634 export_dynamic_flag_spec_GCJ='-Bexport'
25637 sysv4*MP*)
25638 if test -d /usr/nec; then
25639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25640 hardcode_shlibpath_var_GCJ=no
25641 runpath_var=LD_RUN_PATH
25642 hardcode_runpath_var=yes
25643 ld_shlibs_GCJ=yes
25647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25648 no_undefined_flag_GCJ='${wl}-z,text'
25649 archive_cmds_need_lc_GCJ=no
25650 hardcode_shlibpath_var_GCJ=no
25651 runpath_var='LD_RUN_PATH'
25653 if test "$GCC" = yes; then
25654 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25655 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25656 else
25657 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25658 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25662 sysv5* | sco3.2v5* | sco5v6*)
25663 # Note: We can NOT use -z defs as we might desire, because we do not
25664 # link with -lc, and that would cause any symbols used from libc to
25665 # always be unresolved, which means just about no library would
25666 # ever link correctly. If we're not using GNU ld we use -z text
25667 # though, which does catch some bad symbols but isn't as heavy-handed
25668 # as -z defs.
25669 no_undefined_flag_GCJ='${wl}-z,text'
25670 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25671 archive_cmds_need_lc_GCJ=no
25672 hardcode_shlibpath_var_GCJ=no
25673 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25674 hardcode_libdir_separator_GCJ=':'
25675 link_all_deplibs_GCJ=yes
25676 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25677 runpath_var='LD_RUN_PATH'
25679 if test "$GCC" = yes; then
25680 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25681 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25682 else
25683 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25684 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25688 uts4*)
25689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25691 hardcode_shlibpath_var_GCJ=no
25695 ld_shlibs_GCJ=no
25697 esac
25700 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25701 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25702 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25705 # Do we need to explicitly link libc?
25707 case "x$archive_cmds_need_lc_GCJ" in
25708 x|xyes)
25709 # Assume -lc should be added
25710 archive_cmds_need_lc_GCJ=yes
25712 if test "$enable_shared" = yes && test "$GCC" = yes; then
25713 case $archive_cmds_GCJ in
25714 *'~'*)
25715 # FIXME: we may have to deal with multi-command sequences.
25717 '$CC '*)
25718 # Test whether the compiler implicitly links with -lc since on some
25719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25720 # to ld, don't add -lc before -lgcc.
25721 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25722 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25723 $rm conftest*
25724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25727 (eval $ac_compile) 2>&5
25728 ac_status=$?
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } 2>conftest.err; then
25731 soname=conftest
25732 lib=conftest
25733 libobjs=conftest.$ac_objext
25734 deplibs=
25735 wl=$lt_prog_compiler_wl_GCJ
25736 pic_flag=$lt_prog_compiler_pic_GCJ
25737 compiler_flags=-v
25738 linker_flags=-v
25739 verstring=
25740 output_objdir=.
25741 libname=conftest
25742 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25743 allow_undefined_flag_GCJ=
25744 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25745 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }
25749 then
25750 archive_cmds_need_lc_GCJ=no
25751 else
25752 archive_cmds_need_lc_GCJ=yes
25754 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25755 else
25756 cat conftest.err 1>&5
25758 $rm conftest*
25759 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25760 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25762 esac
25765 esac
25767 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25769 library_names_spec=
25770 libname_spec='lib$name'
25771 soname_spec=
25772 shrext_cmds=".so"
25773 postinstall_cmds=
25774 postuninstall_cmds=
25775 finish_cmds=
25776 finish_eval=
25777 shlibpath_var=
25778 shlibpath_overrides_runpath=unknown
25779 version_type=none
25780 dynamic_linker="$host_os ld.so"
25781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25782 if test "$GCC" = yes; then
25783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25785 # if the path contains ";" then we assume it to be the separator
25786 # otherwise default to the standard path separator (i.e. ":") - it is
25787 # assumed that no part of a normal pathname contains ";" but that should
25788 # okay in the real world where ";" in dirpaths is itself problematic.
25789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25790 else
25791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25793 else
25794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25796 need_lib_prefix=unknown
25797 hardcode_into_libs=no
25799 # when you set need_version to no, make sure it does not cause -set_version
25800 # flags to be left without arguments
25801 need_version=unknown
25803 case $host_os in
25804 aix3*)
25805 version_type=linux
25806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25807 shlibpath_var=LIBPATH
25809 # AIX 3 has no versioning support, so we append a major version to the name.
25810 soname_spec='${libname}${release}${shared_ext}$major'
25813 aix4* | aix5*)
25814 version_type=linux
25815 need_lib_prefix=no
25816 need_version=no
25817 hardcode_into_libs=yes
25818 if test "$host_cpu" = ia64; then
25819 # AIX 5 supports IA64
25820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25821 shlibpath_var=LD_LIBRARY_PATH
25822 else
25823 # With GCC up to 2.95.x, collect2 would create an import file
25824 # for dependence libraries. The import file would start with
25825 # the line `#! .'. This would cause the generated library to
25826 # depend on `.', always an invalid library. This was fixed in
25827 # development snapshots of GCC prior to 3.0.
25828 case $host_os in
25829 aix4 | aix4.[01] | aix4.[01].*)
25830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25831 echo ' yes '
25832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25834 else
25835 can_build_shared=no
25838 esac
25839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25840 # soname into executable. Probably we can add versioning support to
25841 # collect2, so additional links can be useful in future.
25842 if test "$aix_use_runtimelinking" = yes; then
25843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25844 # instead of lib<name>.a to let people know that these are not
25845 # typical AIX shared libraries.
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25847 else
25848 # We preserve .a as extension for shared libraries through AIX4.2
25849 # and later when we are not doing run time linking.
25850 library_names_spec='${libname}${release}.a $libname.a'
25851 soname_spec='${libname}${release}${shared_ext}$major'
25853 shlibpath_var=LIBPATH
25857 amigaos*)
25858 library_names_spec='$libname.ixlibrary $libname.a'
25859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25860 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'
25863 beos*)
25864 library_names_spec='${libname}${shared_ext}'
25865 dynamic_linker="$host_os ld.so"
25866 shlibpath_var=LIBRARY_PATH
25869 bsdi[45]*)
25870 version_type=linux
25871 need_version=no
25872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25873 soname_spec='${libname}${release}${shared_ext}$major'
25874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25875 shlibpath_var=LD_LIBRARY_PATH
25876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25878 # the default ld.so.conf also contains /usr/contrib/lib and
25879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25880 # libtool to hard-code these into programs
25883 cygwin* | mingw* | pw32*)
25884 version_type=windows
25885 shrext_cmds=".dll"
25886 need_version=no
25887 need_lib_prefix=no
25889 case $GCC,$host_os in
25890 yes,cygwin* | yes,mingw* | yes,pw32*)
25891 library_names_spec='$libname.dll.a'
25892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25893 postinstall_cmds='base_file=`basename \${file}`~
25894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25895 dldir=$destdir/`dirname \$dlpath`~
25896 test -d \$dldir || mkdir -p \$dldir~
25897 $install_prog $dir/$dlname \$dldir/$dlname~
25898 chmod a+x \$dldir/$dlname'
25899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25900 dlpath=$dir/\$dldll~
25901 $rm \$dlpath'
25902 shlibpath_overrides_runpath=yes
25904 case $host_os in
25905 cygwin*)
25906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25910 mingw*)
25911 # MinGW DLLs use traditional 'lib' prefix
25912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25915 # It is most probably a Windows format PATH printed by
25916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25917 # path with ; separators, and with drive letters. We can handle the
25918 # drive letters (cygwin fileutils understands them), so leave them,
25919 # especially as we might pass files found there to a mingw objdump,
25920 # which wouldn't understand a cygwinified path. Ahh.
25921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25922 else
25923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25926 pw32*)
25927 # pw32 DLLs use 'pw' prefix rather than 'lib'
25928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25930 esac
25934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25936 esac
25937 dynamic_linker='Win32 ld.exe'
25938 # FIXME: first we should search . and the directory the executable is in
25939 shlibpath_var=PATH
25942 darwin* | rhapsody*)
25943 dynamic_linker="$host_os dyld"
25944 version_type=darwin
25945 need_lib_prefix=no
25946 need_version=no
25947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25948 soname_spec='${libname}${release}${major}$shared_ext'
25949 shlibpath_overrides_runpath=yes
25950 shlibpath_var=DYLD_LIBRARY_PATH
25951 shrext_cmds='.dylib'
25952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25953 if test "$GCC" = yes; then
25954 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"`
25955 else
25956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25961 dgux*)
25962 version_type=linux
25963 need_lib_prefix=no
25964 need_version=no
25965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25966 soname_spec='${libname}${release}${shared_ext}$major'
25967 shlibpath_var=LD_LIBRARY_PATH
25970 freebsd1*)
25971 dynamic_linker=no
25974 kfreebsd*-gnu)
25975 version_type=linux
25976 need_lib_prefix=no
25977 need_version=no
25978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25979 soname_spec='${libname}${release}${shared_ext}$major'
25980 shlibpath_var=LD_LIBRARY_PATH
25981 shlibpath_overrides_runpath=no
25982 hardcode_into_libs=yes
25983 dynamic_linker='GNU ld.so'
25986 freebsd* | dragonfly*)
25987 # DragonFly does not have aout. When/if they implement a new
25988 # versioning mechanism, adjust this.
25989 if test -x /usr/bin/objformat; then
25990 objformat=`/usr/bin/objformat`
25991 else
25992 case $host_os in
25993 freebsd[123]*) objformat=aout ;;
25994 *) objformat=elf ;;
25995 esac
25997 version_type=freebsd-$objformat
25998 case $version_type in
25999 freebsd-elf*)
26000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26001 need_version=no
26002 need_lib_prefix=no
26004 freebsd-*)
26005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26006 need_version=yes
26008 esac
26009 shlibpath_var=LD_LIBRARY_PATH
26010 case $host_os in
26011 freebsd2*)
26012 shlibpath_overrides_runpath=yes
26014 freebsd3.[01]* | freebsdelf3.[01]*)
26015 shlibpath_overrides_runpath=yes
26016 hardcode_into_libs=yes
26018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26020 shlibpath_overrides_runpath=no
26021 hardcode_into_libs=yes
26023 freebsd*) # from 4.6 on
26024 shlibpath_overrides_runpath=yes
26025 hardcode_into_libs=yes
26027 esac
26030 gnu*)
26031 version_type=linux
26032 need_lib_prefix=no
26033 need_version=no
26034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26035 soname_spec='${libname}${release}${shared_ext}$major'
26036 shlibpath_var=LD_LIBRARY_PATH
26037 hardcode_into_libs=yes
26040 hpux9* | hpux10* | hpux11*)
26041 # Give a soname corresponding to the major version so that dld.sl refuses to
26042 # link against other versions.
26043 version_type=sunos
26044 need_lib_prefix=no
26045 need_version=no
26046 case $host_cpu in
26047 ia64*)
26048 shrext_cmds='.so'
26049 hardcode_into_libs=yes
26050 dynamic_linker="$host_os dld.so"
26051 shlibpath_var=LD_LIBRARY_PATH
26052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054 soname_spec='${libname}${release}${shared_ext}$major'
26055 if test "X$HPUX_IA64_MODE" = X32; then
26056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26057 else
26058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26062 hppa*64*)
26063 shrext_cmds='.sl'
26064 hardcode_into_libs=yes
26065 dynamic_linker="$host_os dld.sl"
26066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26069 soname_spec='${libname}${release}${shared_ext}$major'
26070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26074 shrext_cmds='.sl'
26075 dynamic_linker="$host_os dld.sl"
26076 shlibpath_var=SHLIB_PATH
26077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26079 soname_spec='${libname}${release}${shared_ext}$major'
26081 esac
26082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26083 postinstall_cmds='chmod 555 $lib'
26086 interix3*)
26087 version_type=linux
26088 need_lib_prefix=no
26089 need_version=no
26090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26091 soname_spec='${libname}${release}${shared_ext}$major'
26092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26093 shlibpath_var=LD_LIBRARY_PATH
26094 shlibpath_overrides_runpath=no
26095 hardcode_into_libs=yes
26098 irix5* | irix6* | nonstopux*)
26099 case $host_os in
26100 nonstopux*) version_type=nonstopux ;;
26102 if test "$lt_cv_prog_gnu_ld" = yes; then
26103 version_type=linux
26104 else
26105 version_type=irix
26106 fi ;;
26107 esac
26108 need_lib_prefix=no
26109 need_version=no
26110 soname_spec='${libname}${release}${shared_ext}$major'
26111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26112 case $host_os in
26113 irix5* | nonstopux*)
26114 libsuff= shlibsuff=
26117 case $LD in # libtool.m4 will add one of these switches to LD
26118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26119 libsuff= shlibsuff= libmagic=32-bit;;
26120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26121 libsuff=32 shlibsuff=N32 libmagic=N32;;
26122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26124 *) libsuff= shlibsuff= libmagic=never-match;;
26125 esac
26127 esac
26128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26129 shlibpath_overrides_runpath=no
26130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26132 hardcode_into_libs=yes
26135 # No shared lib support for Linux oldld, aout, or coff.
26136 linux*oldld* | linux*aout* | linux*coff*)
26137 dynamic_linker=no
26140 # This must be Linux ELF.
26141 linux*)
26142 version_type=linux
26143 need_lib_prefix=no
26144 need_version=no
26145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26146 soname_spec='${libname}${release}${shared_ext}$major'
26147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26148 shlibpath_var=LD_LIBRARY_PATH
26149 shlibpath_overrides_runpath=no
26150 # This implies no fast_install, which is unacceptable.
26151 # Some rework will be needed to allow for fast_install
26152 # before this can be enabled.
26153 hardcode_into_libs=yes
26155 # Append ld.so.conf contents to the search path
26156 if test -f /etc/ld.so.conf; then
26157 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' ' '`
26158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26161 # We used to test for /lib/ld.so.1 and disable shared libraries on
26162 # powerpc, because MkLinux only supported shared libraries with the
26163 # GNU dynamic linker. Since this was broken with cross compilers,
26164 # most powerpc-linux boxes support dynamic linking these days and
26165 # people can always --disable-shared, the test was removed, and we
26166 # assume the GNU/Linux dynamic linker is in use.
26167 dynamic_linker='GNU/Linux ld.so'
26170 knetbsd*-gnu)
26171 version_type=linux
26172 need_lib_prefix=no
26173 need_version=no
26174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26175 soname_spec='${libname}${release}${shared_ext}$major'
26176 shlibpath_var=LD_LIBRARY_PATH
26177 shlibpath_overrides_runpath=no
26178 hardcode_into_libs=yes
26179 dynamic_linker='GNU ld.so'
26182 netbsd*)
26183 version_type=sunos
26184 need_lib_prefix=no
26185 need_version=no
26186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26189 dynamic_linker='NetBSD (a.out) ld.so'
26190 else
26191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26192 soname_spec='${libname}${release}${shared_ext}$major'
26193 dynamic_linker='NetBSD ld.elf_so'
26195 shlibpath_var=LD_LIBRARY_PATH
26196 shlibpath_overrides_runpath=yes
26197 hardcode_into_libs=yes
26200 newsos6)
26201 version_type=linux
26202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26203 shlibpath_var=LD_LIBRARY_PATH
26204 shlibpath_overrides_runpath=yes
26207 nto-qnx*)
26208 version_type=linux
26209 need_lib_prefix=no
26210 need_version=no
26211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26212 soname_spec='${libname}${release}${shared_ext}$major'
26213 shlibpath_var=LD_LIBRARY_PATH
26214 shlibpath_overrides_runpath=yes
26217 openbsd*)
26218 version_type=sunos
26219 sys_lib_dlsearch_path_spec="/usr/lib"
26220 need_lib_prefix=no
26221 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26222 case $host_os in
26223 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26224 *) need_version=no ;;
26225 esac
26226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26228 shlibpath_var=LD_LIBRARY_PATH
26229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26230 case $host_os in
26231 openbsd2.[89] | openbsd2.[89].*)
26232 shlibpath_overrides_runpath=no
26235 shlibpath_overrides_runpath=yes
26237 esac
26238 else
26239 shlibpath_overrides_runpath=yes
26243 os2*)
26244 libname_spec='$name'
26245 shrext_cmds=".dll"
26246 need_lib_prefix=no
26247 library_names_spec='$libname${shared_ext} $libname.a'
26248 dynamic_linker='OS/2 ld.exe'
26249 shlibpath_var=LIBPATH
26252 osf3* | osf4* | osf5*)
26253 version_type=osf
26254 need_lib_prefix=no
26255 need_version=no
26256 soname_spec='${libname}${release}${shared_ext}$major'
26257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26258 shlibpath_var=LD_LIBRARY_PATH
26259 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26260 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26263 solaris*)
26264 version_type=linux
26265 need_lib_prefix=no
26266 need_version=no
26267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26268 soname_spec='${libname}${release}${shared_ext}$major'
26269 shlibpath_var=LD_LIBRARY_PATH
26270 shlibpath_overrides_runpath=yes
26271 hardcode_into_libs=yes
26272 # ldd complains unless libraries are executable
26273 postinstall_cmds='chmod +x $lib'
26276 sunos4*)
26277 version_type=sunos
26278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26280 shlibpath_var=LD_LIBRARY_PATH
26281 shlibpath_overrides_runpath=yes
26282 if test "$with_gnu_ld" = yes; then
26283 need_lib_prefix=no
26285 need_version=yes
26288 sysv4 | sysv4.3*)
26289 version_type=linux
26290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26291 soname_spec='${libname}${release}${shared_ext}$major'
26292 shlibpath_var=LD_LIBRARY_PATH
26293 case $host_vendor in
26294 sni)
26295 shlibpath_overrides_runpath=no
26296 need_lib_prefix=no
26297 export_dynamic_flag_spec='${wl}-Blargedynsym'
26298 runpath_var=LD_RUN_PATH
26300 siemens)
26301 need_lib_prefix=no
26303 motorola)
26304 need_lib_prefix=no
26305 need_version=no
26306 shlibpath_overrides_runpath=no
26307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26309 esac
26312 sysv4*MP*)
26313 if test -d /usr/nec ;then
26314 version_type=linux
26315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26316 soname_spec='$libname${shared_ext}.$major'
26317 shlibpath_var=LD_LIBRARY_PATH
26321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26322 version_type=freebsd-elf
26323 need_lib_prefix=no
26324 need_version=no
26325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26326 soname_spec='${libname}${release}${shared_ext}$major'
26327 shlibpath_var=LD_LIBRARY_PATH
26328 hardcode_into_libs=yes
26329 if test "$with_gnu_ld" = yes; then
26330 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26331 shlibpath_overrides_runpath=no
26332 else
26333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26334 shlibpath_overrides_runpath=yes
26335 case $host_os in
26336 sco3.2v5*)
26337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26339 esac
26341 sys_lib_dlsearch_path_spec='/usr/lib'
26344 uts4*)
26345 version_type=linux
26346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26347 soname_spec='${libname}${release}${shared_ext}$major'
26348 shlibpath_var=LD_LIBRARY_PATH
26352 dynamic_linker=no
26354 esac
26355 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26356 echo "${ECHO_T}$dynamic_linker" >&6; }
26357 test "$dynamic_linker" = no && can_build_shared=no
26359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26360 if test "$GCC" = yes; then
26361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26364 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26365 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26366 hardcode_action_GCJ=
26367 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26368 test -n "$runpath_var_GCJ" || \
26369 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26371 # We can hardcode non-existant directories.
26372 if test "$hardcode_direct_GCJ" != no &&
26373 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26374 # have to relink, otherwise we might link with an installed library
26375 # when we should be linking with a yet-to-be-installed one
26376 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26377 test "$hardcode_minus_L_GCJ" != no; then
26378 # Linking always hardcodes the temporary library directory.
26379 hardcode_action_GCJ=relink
26380 else
26381 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26382 hardcode_action_GCJ=immediate
26384 else
26385 # We cannot hardcode anything, or else we can only hardcode existing
26386 # directories.
26387 hardcode_action_GCJ=unsupported
26389 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26390 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26392 if test "$hardcode_action_GCJ" = relink; then
26393 # Fast installation is not supported
26394 enable_fast_install=no
26395 elif test "$shlibpath_overrides_runpath" = yes ||
26396 test "$enable_shared" = no; then
26397 # Fast installation is not necessary
26398 enable_fast_install=needless
26402 # The else clause should only fire when bootstrapping the
26403 # libtool distribution, otherwise you forgot to ship ltmain.sh
26404 # with your package, and you will get complaints that there are
26405 # no rules to generate ltmain.sh.
26406 if test -f "$ltmain"; then
26407 # See if we are running on zsh, and set the options which allow our commands through
26408 # without removal of \ escapes.
26409 if test -n "${ZSH_VERSION+set}" ; then
26410 setopt NO_GLOB_SUBST
26412 # Now quote all the things that may contain metacharacters while being
26413 # careful not to overquote the AC_SUBSTed values. We take copies of the
26414 # variables and quote the copies for generation of the libtool script.
26415 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26416 SED SHELL STRIP \
26417 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26418 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26419 deplibs_check_method reload_flag reload_cmds need_locks \
26420 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26421 lt_cv_sys_global_symbol_to_c_name_address \
26422 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26423 old_postinstall_cmds old_postuninstall_cmds \
26424 compiler_GCJ \
26425 CC_GCJ \
26426 LD_GCJ \
26427 lt_prog_compiler_wl_GCJ \
26428 lt_prog_compiler_pic_GCJ \
26429 lt_prog_compiler_static_GCJ \
26430 lt_prog_compiler_no_builtin_flag_GCJ \
26431 export_dynamic_flag_spec_GCJ \
26432 thread_safe_flag_spec_GCJ \
26433 whole_archive_flag_spec_GCJ \
26434 enable_shared_with_static_runtimes_GCJ \
26435 old_archive_cmds_GCJ \
26436 old_archive_from_new_cmds_GCJ \
26437 predep_objects_GCJ \
26438 postdep_objects_GCJ \
26439 predeps_GCJ \
26440 postdeps_GCJ \
26441 compiler_lib_search_path_GCJ \
26442 archive_cmds_GCJ \
26443 archive_expsym_cmds_GCJ \
26444 postinstall_cmds_GCJ \
26445 postuninstall_cmds_GCJ \
26446 old_archive_from_expsyms_cmds_GCJ \
26447 allow_undefined_flag_GCJ \
26448 no_undefined_flag_GCJ \
26449 export_symbols_cmds_GCJ \
26450 hardcode_libdir_flag_spec_GCJ \
26451 hardcode_libdir_flag_spec_ld_GCJ \
26452 hardcode_libdir_separator_GCJ \
26453 hardcode_automatic_GCJ \
26454 module_cmds_GCJ \
26455 module_expsym_cmds_GCJ \
26456 lt_cv_prog_compiler_c_o_GCJ \
26457 exclude_expsyms_GCJ \
26458 include_expsyms_GCJ; do
26460 case $var in
26461 old_archive_cmds_GCJ | \
26462 old_archive_from_new_cmds_GCJ | \
26463 archive_cmds_GCJ | \
26464 archive_expsym_cmds_GCJ | \
26465 module_cmds_GCJ | \
26466 module_expsym_cmds_GCJ | \
26467 old_archive_from_expsyms_cmds_GCJ | \
26468 export_symbols_cmds_GCJ | \
26469 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26470 postinstall_cmds | postuninstall_cmds | \
26471 old_postinstall_cmds | old_postuninstall_cmds | \
26472 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26473 # Double-quote double-evaled strings.
26474 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26479 esac
26480 done
26482 case $lt_echo in
26483 *'\$0 --fallback-echo"')
26484 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26486 esac
26488 cfgfile="$ofile"
26490 cat <<__EOF__ >> "$cfgfile"
26491 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26495 # Shell to use when invoking shell scripts.
26496 SHELL=$lt_SHELL
26498 # Whether or not to build shared libraries.
26499 build_libtool_libs=$enable_shared
26501 # Whether or not to build static libraries.
26502 build_old_libs=$enable_static
26504 # Whether or not to add -lc for building shared libraries.
26505 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26507 # Whether or not to disallow shared libs when runtime libs are static
26508 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26510 # Whether or not to optimize for fast installation.
26511 fast_install=$enable_fast_install
26513 # The host system.
26514 host_alias=$host_alias
26515 host=$host
26516 host_os=$host_os
26518 # The build system.
26519 build_alias=$build_alias
26520 build=$build
26521 build_os=$build_os
26523 # An echo program that does not interpret backslashes.
26524 echo=$lt_echo
26526 # The archiver.
26527 AR=$lt_AR
26528 AR_FLAGS=$lt_AR_FLAGS
26530 # A C compiler.
26531 LTCC=$lt_LTCC
26533 # LTCC compiler flags.
26534 LTCFLAGS=$lt_LTCFLAGS
26536 # A language-specific compiler.
26537 CC=$lt_compiler_GCJ
26539 # Is the compiler the GNU C compiler?
26540 with_gcc=$GCC_GCJ
26542 # An ERE matcher.
26543 EGREP=$lt_EGREP
26545 # The linker used to build libraries.
26546 LD=$lt_LD_GCJ
26548 # Whether we need hard or soft links.
26549 LN_S=$lt_LN_S
26551 # A BSD-compatible nm program.
26552 NM=$lt_NM
26554 # A symbol stripping program
26555 STRIP=$lt_STRIP
26557 # Used to examine libraries when file_magic_cmd begins "file"
26558 MAGIC_CMD=$MAGIC_CMD
26560 # Used on cygwin: DLL creation program.
26561 DLLTOOL="$DLLTOOL"
26563 # Used on cygwin: object dumper.
26564 OBJDUMP="$OBJDUMP"
26566 # Used on cygwin: assembler.
26567 AS="$AS"
26569 # The name of the directory that contains temporary libtool files.
26570 objdir=$objdir
26572 # How to create reloadable object files.
26573 reload_flag=$lt_reload_flag
26574 reload_cmds=$lt_reload_cmds
26576 # How to pass a linker flag through the compiler.
26577 wl=$lt_lt_prog_compiler_wl_GCJ
26579 # Object file suffix (normally "o").
26580 objext="$ac_objext"
26582 # Old archive suffix (normally "a").
26583 libext="$libext"
26585 # Shared library suffix (normally ".so").
26586 shrext_cmds='$shrext_cmds'
26588 # Executable file suffix (normally "").
26589 exeext="$exeext"
26591 # Additional compiler flags for building library objects.
26592 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26593 pic_mode=$pic_mode
26595 # What is the maximum length of a command?
26596 max_cmd_len=$lt_cv_sys_max_cmd_len
26598 # Does compiler simultaneously support -c and -o options?
26599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26601 # Must we lock files when doing compilation?
26602 need_locks=$lt_need_locks
26604 # Do we need the lib prefix for modules?
26605 need_lib_prefix=$need_lib_prefix
26607 # Do we need a version for libraries?
26608 need_version=$need_version
26610 # Whether dlopen is supported.
26611 dlopen_support=$enable_dlopen
26613 # Whether dlopen of programs is supported.
26614 dlopen_self=$enable_dlopen_self
26616 # Whether dlopen of statically linked programs is supported.
26617 dlopen_self_static=$enable_dlopen_self_static
26619 # Compiler flag to prevent dynamic linking.
26620 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26622 # Compiler flag to turn off builtin functions.
26623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26625 # Compiler flag to allow reflexive dlopens.
26626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26628 # Compiler flag to generate shared objects directly from archives.
26629 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26631 # Compiler flag to generate thread-safe objects.
26632 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26634 # Library versioning type.
26635 version_type=$version_type
26637 # Format of library name prefix.
26638 libname_spec=$lt_libname_spec
26640 # List of archive names. First name is the real one, the rest are links.
26641 # The last name is the one that the linker finds with -lNAME.
26642 library_names_spec=$lt_library_names_spec
26644 # The coded name of the library, if different from the real name.
26645 soname_spec=$lt_soname_spec
26647 # Commands used to build and install an old-style archive.
26648 RANLIB=$lt_RANLIB
26649 old_archive_cmds=$lt_old_archive_cmds_GCJ
26650 old_postinstall_cmds=$lt_old_postinstall_cmds
26651 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26653 # Create an old-style archive from a shared archive.
26654 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26656 # Create a temporary old-style archive to link instead of a shared archive.
26657 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26659 # Commands used to build and install a shared archive.
26660 archive_cmds=$lt_archive_cmds_GCJ
26661 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26662 postinstall_cmds=$lt_postinstall_cmds
26663 postuninstall_cmds=$lt_postuninstall_cmds
26665 # Commands used to build a loadable module (assumed same as above if empty)
26666 module_cmds=$lt_module_cmds_GCJ
26667 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26669 # Commands to strip libraries.
26670 old_striplib=$lt_old_striplib
26671 striplib=$lt_striplib
26673 # Dependencies to place before the objects being linked to create a
26674 # shared library.
26675 predep_objects=$lt_predep_objects_GCJ
26677 # Dependencies to place after the objects being linked to create a
26678 # shared library.
26679 postdep_objects=$lt_postdep_objects_GCJ
26681 # Dependencies to place before the objects being linked to create a
26682 # shared library.
26683 predeps=$lt_predeps_GCJ
26685 # Dependencies to place after the objects being linked to create a
26686 # shared library.
26687 postdeps=$lt_postdeps_GCJ
26689 # The library search path used internally by the compiler when linking
26690 # a shared library.
26691 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26693 # Method to check whether dependent libraries are shared objects.
26694 deplibs_check_method=$lt_deplibs_check_method
26696 # Command to use when deplibs_check_method == file_magic.
26697 file_magic_cmd=$lt_file_magic_cmd
26699 # Flag that allows shared libraries with undefined symbols to be built.
26700 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26702 # Flag that forces no undefined symbols.
26703 no_undefined_flag=$lt_no_undefined_flag_GCJ
26705 # Commands used to finish a libtool library installation in a directory.
26706 finish_cmds=$lt_finish_cmds
26708 # Same as above, but a single script fragment to be evaled but not shown.
26709 finish_eval=$lt_finish_eval
26711 # Take the output of nm and produce a listing of raw symbols and C names.
26712 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26714 # Transform the output of nm in a proper C declaration
26715 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26717 # Transform the output of nm in a C name address pair
26718 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26720 # This is the shared library runtime path variable.
26721 runpath_var=$runpath_var
26723 # This is the shared library path variable.
26724 shlibpath_var=$shlibpath_var
26726 # Is shlibpath searched before the hard-coded library search path?
26727 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26729 # How to hardcode a shared library path into an executable.
26730 hardcode_action=$hardcode_action_GCJ
26732 # Whether we should hardcode library paths into libraries.
26733 hardcode_into_libs=$hardcode_into_libs
26735 # Flag to hardcode \$libdir into a binary during linking.
26736 # This must work even if \$libdir does not exist.
26737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26739 # If ld is used when linking, flag to hardcode \$libdir into
26740 # a binary during linking. This must work even if \$libdir does
26741 # not exist.
26742 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26744 # Whether we need a single -rpath flag with a separated argument.
26745 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26747 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26748 # resulting binary.
26749 hardcode_direct=$hardcode_direct_GCJ
26751 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26752 # resulting binary.
26753 hardcode_minus_L=$hardcode_minus_L_GCJ
26755 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26756 # the resulting binary.
26757 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26759 # Set to yes if building a shared library automatically hardcodes DIR into the library
26760 # and all subsequent libraries and executables linked against it.
26761 hardcode_automatic=$hardcode_automatic_GCJ
26763 # Variables whose values should be saved in libtool wrapper scripts and
26764 # restored at relink time.
26765 variables_saved_for_relink="$variables_saved_for_relink"
26767 # Whether libtool must link a program against all its dependency libraries.
26768 link_all_deplibs=$link_all_deplibs_GCJ
26770 # Compile-time system search path for libraries
26771 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26773 # Run-time system search path for libraries
26774 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26776 # Fix the shell variable \$srcfile for the compiler.
26777 fix_srcfile_path="$fix_srcfile_path_GCJ"
26779 # Set to yes if exported symbols are required.
26780 always_export_symbols=$always_export_symbols_GCJ
26782 # The commands to list exported symbols.
26783 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26785 # The commands to extract the exported symbol list from a shared archive.
26786 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26788 # Symbols that should not be listed in the preloaded symbols.
26789 exclude_expsyms=$lt_exclude_expsyms_GCJ
26791 # Symbols that must always be exported.
26792 include_expsyms=$lt_include_expsyms_GCJ
26794 # ### END LIBTOOL TAG CONFIG: $tagname
26796 __EOF__
26799 else
26800 # If there is no Makefile yet, we rely on a make rule to execute
26801 # `config.status --recheck' to rerun these tests and create the
26802 # libtool script then.
26803 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26804 if test -f "$ltmain_in"; then
26805 test -f Makefile && make "$ltmain"
26810 ac_ext=c
26811 ac_cpp='$CPP $CPPFLAGS'
26812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26816 CC="$lt_save_CC"
26818 else
26819 tagname=""
26824 ac_ext=c
26825 ac_cpp='$CPP $CPPFLAGS'
26826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26831 # Source file extension for RC test sources.
26832 ac_ext=rc
26834 # Object file extension for compiled RC test sources.
26835 objext=o
26836 objext_RC=$objext
26838 # Code to be used in simple compile tests
26839 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26841 # Code to be used in simple link tests
26842 lt_simple_link_test_code="$lt_simple_compile_test_code"
26844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26846 # If no C compiler was specified, use CC.
26847 LTCC=${LTCC-"$CC"}
26849 # If no C compiler flags were specified, use CFLAGS.
26850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26852 # Allow CC to be a program name with arguments.
26853 compiler=$CC
26856 # save warnings/boilerplate of simple test code
26857 ac_outfile=conftest.$ac_objext
26858 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26860 _lt_compiler_boilerplate=`cat conftest.err`
26861 $rm conftest*
26863 ac_outfile=conftest.$ac_objext
26864 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26866 _lt_linker_boilerplate=`cat conftest.err`
26867 $rm conftest*
26870 # Allow CC to be a program name with arguments.
26871 lt_save_CC="$CC"
26872 CC=${RC-"windres"}
26873 compiler=$CC
26874 compiler_RC=$CC
26875 for cc_temp in $compiler""; do
26876 case $cc_temp in
26877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26879 \-*) ;;
26880 *) break;;
26881 esac
26882 done
26883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26885 lt_cv_prog_compiler_c_o_RC=yes
26887 # The else clause should only fire when bootstrapping the
26888 # libtool distribution, otherwise you forgot to ship ltmain.sh
26889 # with your package, and you will get complaints that there are
26890 # no rules to generate ltmain.sh.
26891 if test -f "$ltmain"; then
26892 # See if we are running on zsh, and set the options which allow our commands through
26893 # without removal of \ escapes.
26894 if test -n "${ZSH_VERSION+set}" ; then
26895 setopt NO_GLOB_SUBST
26897 # Now quote all the things that may contain metacharacters while being
26898 # careful not to overquote the AC_SUBSTed values. We take copies of the
26899 # variables and quote the copies for generation of the libtool script.
26900 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26901 SED SHELL STRIP \
26902 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26903 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26904 deplibs_check_method reload_flag reload_cmds need_locks \
26905 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26906 lt_cv_sys_global_symbol_to_c_name_address \
26907 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26908 old_postinstall_cmds old_postuninstall_cmds \
26909 compiler_RC \
26910 CC_RC \
26911 LD_RC \
26912 lt_prog_compiler_wl_RC \
26913 lt_prog_compiler_pic_RC \
26914 lt_prog_compiler_static_RC \
26915 lt_prog_compiler_no_builtin_flag_RC \
26916 export_dynamic_flag_spec_RC \
26917 thread_safe_flag_spec_RC \
26918 whole_archive_flag_spec_RC \
26919 enable_shared_with_static_runtimes_RC \
26920 old_archive_cmds_RC \
26921 old_archive_from_new_cmds_RC \
26922 predep_objects_RC \
26923 postdep_objects_RC \
26924 predeps_RC \
26925 postdeps_RC \
26926 compiler_lib_search_path_RC \
26927 archive_cmds_RC \
26928 archive_expsym_cmds_RC \
26929 postinstall_cmds_RC \
26930 postuninstall_cmds_RC \
26931 old_archive_from_expsyms_cmds_RC \
26932 allow_undefined_flag_RC \
26933 no_undefined_flag_RC \
26934 export_symbols_cmds_RC \
26935 hardcode_libdir_flag_spec_RC \
26936 hardcode_libdir_flag_spec_ld_RC \
26937 hardcode_libdir_separator_RC \
26938 hardcode_automatic_RC \
26939 module_cmds_RC \
26940 module_expsym_cmds_RC \
26941 lt_cv_prog_compiler_c_o_RC \
26942 exclude_expsyms_RC \
26943 include_expsyms_RC; do
26945 case $var in
26946 old_archive_cmds_RC | \
26947 old_archive_from_new_cmds_RC | \
26948 archive_cmds_RC | \
26949 archive_expsym_cmds_RC | \
26950 module_cmds_RC | \
26951 module_expsym_cmds_RC | \
26952 old_archive_from_expsyms_cmds_RC | \
26953 export_symbols_cmds_RC | \
26954 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26955 postinstall_cmds | postuninstall_cmds | \
26956 old_postinstall_cmds | old_postuninstall_cmds | \
26957 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26958 # Double-quote double-evaled strings.
26959 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26962 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26964 esac
26965 done
26967 case $lt_echo in
26968 *'\$0 --fallback-echo"')
26969 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26971 esac
26973 cfgfile="$ofile"
26975 cat <<__EOF__ >> "$cfgfile"
26976 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26980 # Shell to use when invoking shell scripts.
26981 SHELL=$lt_SHELL
26983 # Whether or not to build shared libraries.
26984 build_libtool_libs=$enable_shared
26986 # Whether or not to build static libraries.
26987 build_old_libs=$enable_static
26989 # Whether or not to add -lc for building shared libraries.
26990 build_libtool_need_lc=$archive_cmds_need_lc_RC
26992 # Whether or not to disallow shared libs when runtime libs are static
26993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26995 # Whether or not to optimize for fast installation.
26996 fast_install=$enable_fast_install
26998 # The host system.
26999 host_alias=$host_alias
27000 host=$host
27001 host_os=$host_os
27003 # The build system.
27004 build_alias=$build_alias
27005 build=$build
27006 build_os=$build_os
27008 # An echo program that does not interpret backslashes.
27009 echo=$lt_echo
27011 # The archiver.
27012 AR=$lt_AR
27013 AR_FLAGS=$lt_AR_FLAGS
27015 # A C compiler.
27016 LTCC=$lt_LTCC
27018 # LTCC compiler flags.
27019 LTCFLAGS=$lt_LTCFLAGS
27021 # A language-specific compiler.
27022 CC=$lt_compiler_RC
27024 # Is the compiler the GNU C compiler?
27025 with_gcc=$GCC_RC
27027 # An ERE matcher.
27028 EGREP=$lt_EGREP
27030 # The linker used to build libraries.
27031 LD=$lt_LD_RC
27033 # Whether we need hard or soft links.
27034 LN_S=$lt_LN_S
27036 # A BSD-compatible nm program.
27037 NM=$lt_NM
27039 # A symbol stripping program
27040 STRIP=$lt_STRIP
27042 # Used to examine libraries when file_magic_cmd begins "file"
27043 MAGIC_CMD=$MAGIC_CMD
27045 # Used on cygwin: DLL creation program.
27046 DLLTOOL="$DLLTOOL"
27048 # Used on cygwin: object dumper.
27049 OBJDUMP="$OBJDUMP"
27051 # Used on cygwin: assembler.
27052 AS="$AS"
27054 # The name of the directory that contains temporary libtool files.
27055 objdir=$objdir
27057 # How to create reloadable object files.
27058 reload_flag=$lt_reload_flag
27059 reload_cmds=$lt_reload_cmds
27061 # How to pass a linker flag through the compiler.
27062 wl=$lt_lt_prog_compiler_wl_RC
27064 # Object file suffix (normally "o").
27065 objext="$ac_objext"
27067 # Old archive suffix (normally "a").
27068 libext="$libext"
27070 # Shared library suffix (normally ".so").
27071 shrext_cmds='$shrext_cmds'
27073 # Executable file suffix (normally "").
27074 exeext="$exeext"
27076 # Additional compiler flags for building library objects.
27077 pic_flag=$lt_lt_prog_compiler_pic_RC
27078 pic_mode=$pic_mode
27080 # What is the maximum length of a command?
27081 max_cmd_len=$lt_cv_sys_max_cmd_len
27083 # Does compiler simultaneously support -c and -o options?
27084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27086 # Must we lock files when doing compilation?
27087 need_locks=$lt_need_locks
27089 # Do we need the lib prefix for modules?
27090 need_lib_prefix=$need_lib_prefix
27092 # Do we need a version for libraries?
27093 need_version=$need_version
27095 # Whether dlopen is supported.
27096 dlopen_support=$enable_dlopen
27098 # Whether dlopen of programs is supported.
27099 dlopen_self=$enable_dlopen_self
27101 # Whether dlopen of statically linked programs is supported.
27102 dlopen_self_static=$enable_dlopen_self_static
27104 # Compiler flag to prevent dynamic linking.
27105 link_static_flag=$lt_lt_prog_compiler_static_RC
27107 # Compiler flag to turn off builtin functions.
27108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27110 # Compiler flag to allow reflexive dlopens.
27111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27113 # Compiler flag to generate shared objects directly from archives.
27114 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27116 # Compiler flag to generate thread-safe objects.
27117 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27119 # Library versioning type.
27120 version_type=$version_type
27122 # Format of library name prefix.
27123 libname_spec=$lt_libname_spec
27125 # List of archive names. First name is the real one, the rest are links.
27126 # The last name is the one that the linker finds with -lNAME.
27127 library_names_spec=$lt_library_names_spec
27129 # The coded name of the library, if different from the real name.
27130 soname_spec=$lt_soname_spec
27132 # Commands used to build and install an old-style archive.
27133 RANLIB=$lt_RANLIB
27134 old_archive_cmds=$lt_old_archive_cmds_RC
27135 old_postinstall_cmds=$lt_old_postinstall_cmds
27136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27138 # Create an old-style archive from a shared archive.
27139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27141 # Create a temporary old-style archive to link instead of a shared archive.
27142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27144 # Commands used to build and install a shared archive.
27145 archive_cmds=$lt_archive_cmds_RC
27146 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27147 postinstall_cmds=$lt_postinstall_cmds
27148 postuninstall_cmds=$lt_postuninstall_cmds
27150 # Commands used to build a loadable module (assumed same as above if empty)
27151 module_cmds=$lt_module_cmds_RC
27152 module_expsym_cmds=$lt_module_expsym_cmds_RC
27154 # Commands to strip libraries.
27155 old_striplib=$lt_old_striplib
27156 striplib=$lt_striplib
27158 # Dependencies to place before the objects being linked to create a
27159 # shared library.
27160 predep_objects=$lt_predep_objects_RC
27162 # Dependencies to place after the objects being linked to create a
27163 # shared library.
27164 postdep_objects=$lt_postdep_objects_RC
27166 # Dependencies to place before the objects being linked to create a
27167 # shared library.
27168 predeps=$lt_predeps_RC
27170 # Dependencies to place after the objects being linked to create a
27171 # shared library.
27172 postdeps=$lt_postdeps_RC
27174 # The library search path used internally by the compiler when linking
27175 # a shared library.
27176 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27178 # Method to check whether dependent libraries are shared objects.
27179 deplibs_check_method=$lt_deplibs_check_method
27181 # Command to use when deplibs_check_method == file_magic.
27182 file_magic_cmd=$lt_file_magic_cmd
27184 # Flag that allows shared libraries with undefined symbols to be built.
27185 allow_undefined_flag=$lt_allow_undefined_flag_RC
27187 # Flag that forces no undefined symbols.
27188 no_undefined_flag=$lt_no_undefined_flag_RC
27190 # Commands used to finish a libtool library installation in a directory.
27191 finish_cmds=$lt_finish_cmds
27193 # Same as above, but a single script fragment to be evaled but not shown.
27194 finish_eval=$lt_finish_eval
27196 # Take the output of nm and produce a listing of raw symbols and C names.
27197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27199 # Transform the output of nm in a proper C declaration
27200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27202 # Transform the output of nm in a C name address pair
27203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27205 # This is the shared library runtime path variable.
27206 runpath_var=$runpath_var
27208 # This is the shared library path variable.
27209 shlibpath_var=$shlibpath_var
27211 # Is shlibpath searched before the hard-coded library search path?
27212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27214 # How to hardcode a shared library path into an executable.
27215 hardcode_action=$hardcode_action_RC
27217 # Whether we should hardcode library paths into libraries.
27218 hardcode_into_libs=$hardcode_into_libs
27220 # Flag to hardcode \$libdir into a binary during linking.
27221 # This must work even if \$libdir does not exist.
27222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27224 # If ld is used when linking, flag to hardcode \$libdir into
27225 # a binary during linking. This must work even if \$libdir does
27226 # not exist.
27227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27229 # Whether we need a single -rpath flag with a separated argument.
27230 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27232 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27233 # resulting binary.
27234 hardcode_direct=$hardcode_direct_RC
27236 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27237 # resulting binary.
27238 hardcode_minus_L=$hardcode_minus_L_RC
27240 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27241 # the resulting binary.
27242 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27244 # Set to yes if building a shared library automatically hardcodes DIR into the library
27245 # and all subsequent libraries and executables linked against it.
27246 hardcode_automatic=$hardcode_automatic_RC
27248 # Variables whose values should be saved in libtool wrapper scripts and
27249 # restored at relink time.
27250 variables_saved_for_relink="$variables_saved_for_relink"
27252 # Whether libtool must link a program against all its dependency libraries.
27253 link_all_deplibs=$link_all_deplibs_RC
27255 # Compile-time system search path for libraries
27256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27258 # Run-time system search path for libraries
27259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27261 # Fix the shell variable \$srcfile for the compiler.
27262 fix_srcfile_path="$fix_srcfile_path_RC"
27264 # Set to yes if exported symbols are required.
27265 always_export_symbols=$always_export_symbols_RC
27267 # The commands to list exported symbols.
27268 export_symbols_cmds=$lt_export_symbols_cmds_RC
27270 # The commands to extract the exported symbol list from a shared archive.
27271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27273 # Symbols that should not be listed in the preloaded symbols.
27274 exclude_expsyms=$lt_exclude_expsyms_RC
27276 # Symbols that must always be exported.
27277 include_expsyms=$lt_include_expsyms_RC
27279 # ### END LIBTOOL TAG CONFIG: $tagname
27281 __EOF__
27284 else
27285 # If there is no Makefile yet, we rely on a make rule to execute
27286 # `config.status --recheck' to rerun these tests and create the
27287 # libtool script then.
27288 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27289 if test -f "$ltmain_in"; then
27290 test -f Makefile && make "$ltmain"
27295 ac_ext=c
27296 ac_cpp='$CPP $CPPFLAGS'
27297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27301 CC="$lt_save_CC"
27306 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27307 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27308 { (exit 1); exit 1; }; }
27310 esac
27312 # Append the new tag name to the list of available tags.
27313 if test -n "$tagname" ; then
27314 available_tags="$available_tags $tagname"
27317 done
27318 IFS="$lt_save_ifs"
27320 # Now substitute the updated list of available tags.
27321 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27322 mv "${ofile}T" "$ofile"
27323 chmod +x "$ofile"
27324 else
27325 rm -f "${ofile}T"
27326 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27327 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27328 { (exit 1); exit 1; }; }
27334 # This can be used to rebuild libtool when needed
27335 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27337 # Always use our own libtool.
27338 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27340 # Prevent multiple expansion
27362 if test "$lt_cv_dlopen_self" = "yes" ; then
27364 cat >>confdefs.h <<\_ACEOF
27365 #define CAN_DLOPEN_SELF 1
27366 _ACEOF
27371 if test "$WITH_LLVMGCCDIR" = "default" ; then
27372 LLVMGCC="llvm-gcc${EXEEXT}"
27373 LLVMGXX="llvm-g++${EXEEXT}"
27374 LLVMGCCCOMMAND="$LLVMGCC"
27375 LLVMGXXCOMMAND="$LLVMGXX"
27376 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27378 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27380 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27381 set dummy $LLVMGCC; ac_word=$2
27382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27384 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27385 echo $ECHO_N "(cached) $ECHO_C" >&6
27386 else
27387 case $LLVMGCC in
27388 [\\/]* | ?:[\\/]*)
27389 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27393 for as_dir in $PATH
27395 IFS=$as_save_IFS
27396 test -z "$as_dir" && as_dir=.
27397 for ac_exec_ext in '' $ac_executable_extensions; do
27398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27399 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27401 break 2
27403 done
27404 done
27405 IFS=$as_save_IFS
27408 esac
27410 LLVMGCC=$ac_cv_path_LLVMGCC
27411 if test -n "$LLVMGCC"; then
27412 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27413 echo "${ECHO_T}$LLVMGCC" >&6; }
27414 else
27415 { echo "$as_me:$LINENO: result: no" >&5
27416 echo "${ECHO_T}no" >&6; }
27420 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27421 set dummy $LLVMGXX; ac_word=$2
27422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27424 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27426 else
27427 case $LLVMGXX in
27428 [\\/]* | ?:[\\/]*)
27429 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27433 for as_dir in $PATH
27435 IFS=$as_save_IFS
27436 test -z "$as_dir" && as_dir=.
27437 for ac_exec_ext in '' $ac_executable_extensions; do
27438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27439 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27441 break 2
27443 done
27444 done
27445 IFS=$as_save_IFS
27448 esac
27450 LLVMGXX=$ac_cv_path_LLVMGXX
27451 if test -n "$LLVMGXX"; then
27452 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27453 echo "${ECHO_T}$LLVMGXX" >&6; }
27454 else
27455 { echo "$as_me:$LINENO: result: no" >&5
27456 echo "${ECHO_T}no" >&6; }
27460 else
27461 if test -z "$LLVMGCC"; then
27462 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27463 LLVMGCCCOMMAND="$LLVMGCC"
27465 if test -z "$LLVMGXX"; then
27466 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27467 LLVMGXXCOMMAND="$LLVMGXX"
27470 LLVMGCC=$LLVMGCC
27472 LLVMGXX=$LLVMGXX
27474 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27476 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27481 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27482 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27484 ICC=no
27485 IXX=no
27486 case $CC in
27487 icc*|icpc*)
27488 ICC=yes
27489 IXX=yes
27493 esac
27495 if test "$GCC" != "yes" && test "$ICC" != "yes"
27496 then
27497 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27498 echo "$as_me: error: gcc|icc required but not found" >&2;}
27499 { (exit 1); exit 1; }; }
27502 if test "$GXX" != "yes" && test "$IXX" != "yes"
27503 then
27504 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27505 echo "$as_me: error: g++|icc required but not found" >&2;}
27506 { (exit 1); exit 1; }; }
27509 if test "$GCC" = "yes"
27510 then
27511 cat >conftest.$ac_ext <<_ACEOF
27512 #if !defined(__GNUC__) || __GNUC__ < 3
27513 #error Unsupported GCC version
27514 #endif
27516 _ACEOF
27517 rm -f conftest.$ac_objext
27518 if { (ac_try="$ac_compile"
27519 case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27522 esac
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_compile") 2>conftest.er1
27525 ac_status=$?
27526 grep -v '^ *+' conftest.er1 >conftest.err
27527 rm -f conftest.er1
27528 cat conftest.err >&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); } &&
27531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27532 { (case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27535 esac
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_try") 2>&5
27538 ac_status=$?
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; } &&
27541 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27552 else
27553 echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27556 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27557 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27558 { (exit 1); exit 1; }; }
27561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27564 if test -z "$llvm_cv_gnu_make_command"
27565 then
27566 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27567 echo "$as_me: error: GNU Make required but not found" >&2;}
27568 { (exit 1); exit 1; }; }
27571 { echo "$as_me:$LINENO: result: ok" >&5
27572 echo "${ECHO_T}ok" >&6; }
27574 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
27575 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27576 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27578 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27580 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27581 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27585 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27586 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27587 if test "${ac_cv_lib_m_sin+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27589 else
27590 ac_check_lib_save_LIBS=$LIBS
27591 LIBS="-lm $LIBS"
27592 cat >conftest.$ac_ext <<_ACEOF
27593 /* confdefs.h. */
27594 _ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h. */
27599 /* Override any GCC internal prototype to avoid an error.
27600 Use char because int might match the return type of a GCC
27601 builtin and then its argument prototype would still apply. */
27602 #ifdef __cplusplus
27603 extern "C"
27604 #endif
27605 char sin ();
27607 main ()
27609 return sin ();
27611 return 0;
27613 _ACEOF
27614 rm -f conftest.$ac_objext conftest$ac_exeext
27615 if { (ac_try="$ac_link"
27616 case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27619 esac
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_link") 2>conftest.er1
27622 ac_status=$?
27623 grep -v '^ *+' conftest.er1 >conftest.err
27624 rm -f conftest.er1
27625 cat conftest.err >&5
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); } &&
27628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
27635 ac_status=$?
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); }; } &&
27638 { ac_try='test -s conftest$ac_exeext'
27639 { (case "(($ac_try" in
27640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641 *) ac_try_echo=$ac_try;;
27642 esac
27643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27644 (eval "$ac_try") 2>&5
27645 ac_status=$?
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); }; }; then
27648 ac_cv_lib_m_sin=yes
27649 else
27650 echo "$as_me: failed program was:" >&5
27651 sed 's/^/| /' conftest.$ac_ext >&5
27653 ac_cv_lib_m_sin=no
27656 rm -f core conftest.err conftest.$ac_objext \
27657 conftest$ac_exeext conftest.$ac_ext
27658 LIBS=$ac_check_lib_save_LIBS
27660 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27661 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27662 if test $ac_cv_lib_m_sin = yes; then
27663 cat >>confdefs.h <<_ACEOF
27664 #define HAVE_LIBM 1
27665 _ACEOF
27667 LIBS="-lm $LIBS"
27671 if test "$llvm_cv_os_type" = "MingW" ; then
27673 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27674 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27675 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27676 echo $ECHO_N "(cached) $ECHO_C" >&6
27677 else
27678 ac_check_lib_save_LIBS=$LIBS
27679 LIBS="-limagehlp $LIBS"
27680 cat >conftest.$ac_ext <<_ACEOF
27681 /* confdefs.h. */
27682 _ACEOF
27683 cat confdefs.h >>conftest.$ac_ext
27684 cat >>conftest.$ac_ext <<_ACEOF
27685 /* end confdefs.h. */
27689 main ()
27691 return main ();
27693 return 0;
27695 _ACEOF
27696 rm -f conftest.$ac_objext conftest$ac_exeext
27697 if { (ac_try="$ac_link"
27698 case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27701 esac
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_link") 2>conftest.er1
27704 ac_status=$?
27705 grep -v '^ *+' conftest.er1 >conftest.err
27706 rm -f conftest.er1
27707 cat conftest.err >&5
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); } &&
27710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27711 { (case "(($ac_try" in
27712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713 *) ac_try_echo=$ac_try;;
27714 esac
27715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716 (eval "$ac_try") 2>&5
27717 ac_status=$?
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); }; } &&
27720 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27727 ac_status=$?
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
27730 ac_cv_lib_imagehlp_main=yes
27731 else
27732 echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27735 ac_cv_lib_imagehlp_main=no
27738 rm -f core conftest.err conftest.$ac_objext \
27739 conftest$ac_exeext conftest.$ac_ext
27740 LIBS=$ac_check_lib_save_LIBS
27742 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27743 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27744 if test $ac_cv_lib_imagehlp_main = yes; then
27745 cat >>confdefs.h <<_ACEOF
27746 #define HAVE_LIBIMAGEHLP 1
27747 _ACEOF
27749 LIBS="-limagehlp $LIBS"
27754 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27755 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27756 if test "${ac_cv_lib_psapi_main+set}" = set; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27758 else
27759 ac_check_lib_save_LIBS=$LIBS
27760 LIBS="-lpsapi $LIBS"
27761 cat >conftest.$ac_ext <<_ACEOF
27762 /* confdefs.h. */
27763 _ACEOF
27764 cat confdefs.h >>conftest.$ac_ext
27765 cat >>conftest.$ac_ext <<_ACEOF
27766 /* end confdefs.h. */
27770 main ()
27772 return main ();
27774 return 0;
27776 _ACEOF
27777 rm -f conftest.$ac_objext conftest$ac_exeext
27778 if { (ac_try="$ac_link"
27779 case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27782 esac
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_link") 2>conftest.er1
27785 ac_status=$?
27786 grep -v '^ *+' conftest.er1 >conftest.err
27787 rm -f conftest.er1
27788 cat conftest.err >&5
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); } &&
27791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792 { (case "(($ac_try" in
27793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794 *) ac_try_echo=$ac_try;;
27795 esac
27796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797 (eval "$ac_try") 2>&5
27798 ac_status=$?
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; } &&
27801 { ac_try='test -s conftest$ac_exeext'
27802 { (case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27805 esac
27806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807 (eval "$ac_try") 2>&5
27808 ac_status=$?
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
27811 ac_cv_lib_psapi_main=yes
27812 else
27813 echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27816 ac_cv_lib_psapi_main=no
27819 rm -f core conftest.err conftest.$ac_objext \
27820 conftest$ac_exeext conftest.$ac_ext
27821 LIBS=$ac_check_lib_save_LIBS
27823 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27824 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27825 if test $ac_cv_lib_psapi_main = yes; then
27826 cat >>confdefs.h <<_ACEOF
27827 #define HAVE_LIBPSAPI 1
27828 _ACEOF
27830 LIBS="-lpsapi $LIBS"
27836 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27837 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27838 if test "${ac_cv_search_dlopen+set}" = set; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27840 else
27841 ac_func_search_save_LIBS=$LIBS
27842 cat >conftest.$ac_ext <<_ACEOF
27843 /* confdefs.h. */
27844 _ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h. */
27849 /* Override any GCC internal prototype to avoid an error.
27850 Use char because int might match the return type of a GCC
27851 builtin and then its argument prototype would still apply. */
27852 #ifdef __cplusplus
27853 extern "C"
27854 #endif
27855 char dlopen ();
27857 main ()
27859 return dlopen ();
27861 return 0;
27863 _ACEOF
27864 for ac_lib in '' dl; do
27865 if test -z "$ac_lib"; then
27866 ac_res="none required"
27867 else
27868 ac_res=-l$ac_lib
27869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27871 rm -f conftest.$ac_objext conftest$ac_exeext
27872 if { (ac_try="$ac_link"
27873 case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876 esac
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_link") 2>conftest.er1
27879 ac_status=$?
27880 grep -v '^ *+' conftest.er1 >conftest.err
27881 rm -f conftest.er1
27882 cat conftest.err >&5
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } &&
27885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27886 { (case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27889 esac
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_try") 2>&5
27892 ac_status=$?
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; } &&
27895 { ac_try='test -s conftest$ac_exeext'
27896 { (case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27899 esac
27900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901 (eval "$ac_try") 2>&5
27902 ac_status=$?
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
27905 ac_cv_search_dlopen=$ac_res
27906 else
27907 echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27913 rm -f core conftest.err conftest.$ac_objext \
27914 conftest$ac_exeext
27915 if test "${ac_cv_search_dlopen+set}" = set; then
27916 break
27918 done
27919 if test "${ac_cv_search_dlopen+set}" = set; then
27921 else
27922 ac_cv_search_dlopen=no
27924 rm conftest.$ac_ext
27925 LIBS=$ac_func_search_save_LIBS
27927 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27928 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27929 ac_res=$ac_cv_search_dlopen
27930 if test "$ac_res" != no; then
27931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27933 cat >>confdefs.h <<\_ACEOF
27934 #define HAVE_DLOPEN 1
27935 _ACEOF
27937 else
27938 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27939 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27943 if test "$llvm_cv_enable_libffi" = "yes" ; then
27944 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27945 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27946 if test "${ac_cv_search_ffi_call+set}" = set; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27948 else
27949 ac_func_search_save_LIBS=$LIBS
27950 cat >conftest.$ac_ext <<_ACEOF
27951 /* confdefs.h. */
27952 _ACEOF
27953 cat confdefs.h >>conftest.$ac_ext
27954 cat >>conftest.$ac_ext <<_ACEOF
27955 /* end confdefs.h. */
27957 /* Override any GCC internal prototype to avoid an error.
27958 Use char because int might match the return type of a GCC
27959 builtin and then its argument prototype would still apply. */
27960 #ifdef __cplusplus
27961 extern "C"
27962 #endif
27963 char ffi_call ();
27965 main ()
27967 return ffi_call ();
27969 return 0;
27971 _ACEOF
27972 for ac_lib in '' ffi; do
27973 if test -z "$ac_lib"; then
27974 ac_res="none required"
27975 else
27976 ac_res=-l$ac_lib
27977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27979 rm -f conftest.$ac_objext conftest$ac_exeext
27980 if { (ac_try="$ac_link"
27981 case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27984 esac
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_link") 2>conftest.er1
27987 ac_status=$?
27988 grep -v '^ *+' conftest.er1 >conftest.err
27989 rm -f conftest.er1
27990 cat conftest.err >&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); } &&
27993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27994 { (case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27997 esac
27998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_try") 2>&5
28000 ac_status=$?
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; } &&
28003 { ac_try='test -s conftest$ac_exeext'
28004 { (case "(($ac_try" in
28005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006 *) ac_try_echo=$ac_try;;
28007 esac
28008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009 (eval "$ac_try") 2>&5
28010 ac_status=$?
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; }; then
28013 ac_cv_search_ffi_call=$ac_res
28014 else
28015 echo "$as_me: failed program was:" >&5
28016 sed 's/^/| /' conftest.$ac_ext >&5
28021 rm -f core conftest.err conftest.$ac_objext \
28022 conftest$ac_exeext
28023 if test "${ac_cv_search_ffi_call+set}" = set; then
28024 break
28026 done
28027 if test "${ac_cv_search_ffi_call+set}" = set; then
28029 else
28030 ac_cv_search_ffi_call=no
28032 rm conftest.$ac_ext
28033 LIBS=$ac_func_search_save_LIBS
28035 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
28036 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
28037 ac_res=$ac_cv_search_ffi_call
28038 if test "$ac_res" != no; then
28039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28041 cat >>confdefs.h <<\_ACEOF
28042 #define HAVE_FFI_CALL 1
28043 _ACEOF
28045 else
28046 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
28047 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
28052 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
28053 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
28054 if test "${ac_cv_search_mallinfo+set}" = set; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28056 else
28057 ac_func_search_save_LIBS=$LIBS
28058 cat >conftest.$ac_ext <<_ACEOF
28059 /* confdefs.h. */
28060 _ACEOF
28061 cat confdefs.h >>conftest.$ac_ext
28062 cat >>conftest.$ac_ext <<_ACEOF
28063 /* end confdefs.h. */
28065 /* Override any GCC internal prototype to avoid an error.
28066 Use char because int might match the return type of a GCC
28067 builtin and then its argument prototype would still apply. */
28068 #ifdef __cplusplus
28069 extern "C"
28070 #endif
28071 char mallinfo ();
28073 main ()
28075 return mallinfo ();
28077 return 0;
28079 _ACEOF
28080 for ac_lib in '' malloc; do
28081 if test -z "$ac_lib"; then
28082 ac_res="none required"
28083 else
28084 ac_res=-l$ac_lib
28085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (ac_try="$ac_link"
28089 case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28092 esac
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_link") 2>conftest.er1
28095 ac_status=$?
28096 grep -v '^ *+' conftest.er1 >conftest.err
28097 rm -f conftest.er1
28098 cat conftest.err >&5
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } &&
28101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28102 { (case "(($ac_try" in
28103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28104 *) ac_try_echo=$ac_try;;
28105 esac
28106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28107 (eval "$ac_try") 2>&5
28108 ac_status=$?
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); }; } &&
28111 { ac_try='test -s conftest$ac_exeext'
28112 { (case "(($ac_try" in
28113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114 *) ac_try_echo=$ac_try;;
28115 esac
28116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117 (eval "$ac_try") 2>&5
28118 ac_status=$?
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); }; }; then
28121 ac_cv_search_mallinfo=$ac_res
28122 else
28123 echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28129 rm -f core conftest.err conftest.$ac_objext \
28130 conftest$ac_exeext
28131 if test "${ac_cv_search_mallinfo+set}" = set; then
28132 break
28134 done
28135 if test "${ac_cv_search_mallinfo+set}" = set; then
28137 else
28138 ac_cv_search_mallinfo=no
28140 rm conftest.$ac_ext
28141 LIBS=$ac_func_search_save_LIBS
28143 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28144 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28145 ac_res=$ac_cv_search_mallinfo
28146 if test "$ac_res" != no; then
28147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28149 cat >>confdefs.h <<\_ACEOF
28150 #define HAVE_MALLINFO 1
28151 _ACEOF
28156 if test "$ENABLE_THREADS" -eq 1 ; then
28158 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28159 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28160 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28162 else
28163 ac_check_lib_save_LIBS=$LIBS
28164 LIBS="-lpthread $LIBS"
28165 cat >conftest.$ac_ext <<_ACEOF
28166 /* confdefs.h. */
28167 _ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h. */
28172 /* Override any GCC internal prototype to avoid an error.
28173 Use char because int might match the return type of a GCC
28174 builtin and then its argument prototype would still apply. */
28175 #ifdef __cplusplus
28176 extern "C"
28177 #endif
28178 char pthread_mutex_init ();
28180 main ()
28182 return pthread_mutex_init ();
28184 return 0;
28186 _ACEOF
28187 rm -f conftest.$ac_objext conftest$ac_exeext
28188 if { (ac_try="$ac_link"
28189 case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28192 esac
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_link") 2>conftest.er1
28195 ac_status=$?
28196 grep -v '^ *+' conftest.er1 >conftest.err
28197 rm -f conftest.er1
28198 cat conftest.err >&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } &&
28201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28202 { (case "(($ac_try" in
28203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204 *) ac_try_echo=$ac_try;;
28205 esac
28206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207 (eval "$ac_try") 2>&5
28208 ac_status=$?
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; } &&
28211 { ac_try='test -s conftest$ac_exeext'
28212 { (case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28215 esac
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_try") 2>&5
28218 ac_status=$?
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; }; then
28221 ac_cv_lib_pthread_pthread_mutex_init=yes
28222 else
28223 echo "$as_me: failed program was:" >&5
28224 sed 's/^/| /' conftest.$ac_ext >&5
28226 ac_cv_lib_pthread_pthread_mutex_init=no
28229 rm -f core conftest.err conftest.$ac_objext \
28230 conftest$ac_exeext conftest.$ac_ext
28231 LIBS=$ac_check_lib_save_LIBS
28233 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28234 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28235 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28236 cat >>confdefs.h <<_ACEOF
28237 #define HAVE_LIBPTHREAD 1
28238 _ACEOF
28240 LIBS="-lpthread $LIBS"
28244 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28245 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28246 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28247 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 else
28249 ac_func_search_save_LIBS=$LIBS
28250 cat >conftest.$ac_ext <<_ACEOF
28251 /* confdefs.h. */
28252 _ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h. */
28257 /* Override any GCC internal prototype to avoid an error.
28258 Use char because int might match the return type of a GCC
28259 builtin and then its argument prototype would still apply. */
28260 #ifdef __cplusplus
28261 extern "C"
28262 #endif
28263 char pthread_mutex_lock ();
28265 main ()
28267 return pthread_mutex_lock ();
28269 return 0;
28271 _ACEOF
28272 for ac_lib in '' pthread; do
28273 if test -z "$ac_lib"; then
28274 ac_res="none required"
28275 else
28276 ac_res=-l$ac_lib
28277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28279 rm -f conftest.$ac_objext conftest$ac_exeext
28280 if { (ac_try="$ac_link"
28281 case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28284 esac
28285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286 (eval "$ac_link") 2>conftest.er1
28287 ac_status=$?
28288 grep -v '^ *+' conftest.er1 >conftest.err
28289 rm -f conftest.er1
28290 cat conftest.err >&5
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); } &&
28293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28294 { (case "(($ac_try" in
28295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296 *) ac_try_echo=$ac_try;;
28297 esac
28298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299 (eval "$ac_try") 2>&5
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; } &&
28303 { ac_try='test -s conftest$ac_exeext'
28304 { (case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28307 esac
28308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309 (eval "$ac_try") 2>&5
28310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
28313 ac_cv_search_pthread_mutex_lock=$ac_res
28314 else
28315 echo "$as_me: failed program was:" >&5
28316 sed 's/^/| /' conftest.$ac_ext >&5
28321 rm -f core conftest.err conftest.$ac_objext \
28322 conftest$ac_exeext
28323 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28324 break
28326 done
28327 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28329 else
28330 ac_cv_search_pthread_mutex_lock=no
28332 rm conftest.$ac_ext
28333 LIBS=$ac_func_search_save_LIBS
28335 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28336 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28337 ac_res=$ac_cv_search_pthread_mutex_lock
28338 if test "$ac_res" != no; then
28339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28341 cat >>confdefs.h <<\_ACEOF
28342 #define HAVE_PTHREAD_MUTEX_LOCK 1
28343 _ACEOF
28347 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28348 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28349 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28350 echo $ECHO_N "(cached) $ECHO_C" >&6
28351 else
28352 ac_func_search_save_LIBS=$LIBS
28353 cat >conftest.$ac_ext <<_ACEOF
28354 /* confdefs.h. */
28355 _ACEOF
28356 cat confdefs.h >>conftest.$ac_ext
28357 cat >>conftest.$ac_ext <<_ACEOF
28358 /* end confdefs.h. */
28360 /* Override any GCC internal prototype to avoid an error.
28361 Use char because int might match the return type of a GCC
28362 builtin and then its argument prototype would still apply. */
28363 #ifdef __cplusplus
28364 extern "C"
28365 #endif
28366 char pthread_rwlock_init ();
28368 main ()
28370 return pthread_rwlock_init ();
28372 return 0;
28374 _ACEOF
28375 for ac_lib in '' pthread; do
28376 if test -z "$ac_lib"; then
28377 ac_res="none required"
28378 else
28379 ac_res=-l$ac_lib
28380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28382 rm -f conftest.$ac_objext conftest$ac_exeext
28383 if { (ac_try="$ac_link"
28384 case "(($ac_try" in
28385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386 *) ac_try_echo=$ac_try;;
28387 esac
28388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389 (eval "$ac_link") 2>conftest.er1
28390 ac_status=$?
28391 grep -v '^ *+' conftest.er1 >conftest.err
28392 rm -f conftest.er1
28393 cat conftest.err >&5
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } &&
28396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28397 { (case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28400 esac
28401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402 (eval "$ac_try") 2>&5
28403 ac_status=$?
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; } &&
28406 { ac_try='test -s conftest$ac_exeext'
28407 { (case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28410 esac
28411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_try") 2>&5
28413 ac_status=$?
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; }; then
28416 ac_cv_search_pthread_rwlock_init=$ac_res
28417 else
28418 echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28424 rm -f core conftest.err conftest.$ac_objext \
28425 conftest$ac_exeext
28426 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28427 break
28429 done
28430 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28432 else
28433 ac_cv_search_pthread_rwlock_init=no
28435 rm conftest.$ac_ext
28436 LIBS=$ac_func_search_save_LIBS
28438 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28439 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28440 ac_res=$ac_cv_search_pthread_rwlock_init
28441 if test "$ac_res" != no; then
28442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28444 cat >>confdefs.h <<\_ACEOF
28445 #define HAVE_PTHREAD_RWLOCK_INIT 1
28446 _ACEOF
28450 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28451 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28452 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28454 else
28455 ac_func_search_save_LIBS=$LIBS
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. */
28463 /* Override any GCC internal prototype to avoid an error.
28464 Use char because int might match the return type of a GCC
28465 builtin and then its argument prototype would still apply. */
28466 #ifdef __cplusplus
28467 extern "C"
28468 #endif
28469 char pthread_getspecific ();
28471 main ()
28473 return pthread_getspecific ();
28475 return 0;
28477 _ACEOF
28478 for ac_lib in '' pthread; do
28479 if test -z "$ac_lib"; then
28480 ac_res="none required"
28481 else
28482 ac_res=-l$ac_lib
28483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28485 rm -f conftest.$ac_objext conftest$ac_exeext
28486 if { (ac_try="$ac_link"
28487 case "(($ac_try" in
28488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489 *) ac_try_echo=$ac_try;;
28490 esac
28491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492 (eval "$ac_link") 2>conftest.er1
28493 ac_status=$?
28494 grep -v '^ *+' conftest.er1 >conftest.err
28495 rm -f conftest.er1
28496 cat conftest.err >&5
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } &&
28499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28500 { (case "(($ac_try" in
28501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502 *) ac_try_echo=$ac_try;;
28503 esac
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 (eval "$ac_try") 2>&5
28506 ac_status=$?
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; } &&
28509 { ac_try='test -s conftest$ac_exeext'
28510 { (case "(($ac_try" in
28511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512 *) ac_try_echo=$ac_try;;
28513 esac
28514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515 (eval "$ac_try") 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 ac_cv_search_pthread_getspecific=$ac_res
28520 else
28521 echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.$ac_ext >&5
28527 rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext
28529 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28530 break
28532 done
28533 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28535 else
28536 ac_cv_search_pthread_getspecific=no
28538 rm conftest.$ac_ext
28539 LIBS=$ac_func_search_save_LIBS
28541 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28542 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28543 ac_res=$ac_cv_search_pthread_getspecific
28544 if test "$ac_res" != no; then
28545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28547 cat >>confdefs.h <<\_ACEOF
28548 #define HAVE_PTHREAD_GETSPECIFIC 1
28549 _ACEOF
28556 # Check whether --with-udis86 was given.
28557 if test "${with_udis86+set}" = set; then
28558 withval=$with_udis86;
28559 USE_UDIS86=1
28561 case "$withval" in
28562 /usr/lib|yes) ;;
28563 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28564 esac
28566 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28567 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28568 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28570 else
28571 ac_check_lib_save_LIBS=$LIBS
28572 LIBS="-ludis86 $LIBS"
28573 cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h. */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h. */
28580 /* Override any GCC internal prototype to avoid an error.
28581 Use char because int might match the return type of a GCC
28582 builtin and then its argument prototype would still apply. */
28583 #ifdef __cplusplus
28584 extern "C"
28585 #endif
28586 char ud_init ();
28588 main ()
28590 return ud_init ();
28592 return 0;
28594 _ACEOF
28595 rm -f conftest.$ac_objext conftest$ac_exeext
28596 if { (ac_try="$ac_link"
28597 case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28600 esac
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_link") 2>conftest.er1
28603 ac_status=$?
28604 grep -v '^ *+' conftest.er1 >conftest.err
28605 rm -f conftest.er1
28606 cat conftest.err >&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } &&
28609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613 esac
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest$ac_exeext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28623 esac
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_try") 2>&5
28626 ac_status=$?
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
28629 ac_cv_lib_udis86_ud_init=yes
28630 else
28631 echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28634 ac_cv_lib_udis86_ud_init=no
28637 rm -f core conftest.err conftest.$ac_objext \
28638 conftest$ac_exeext conftest.$ac_ext
28639 LIBS=$ac_check_lib_save_LIBS
28641 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28642 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28643 if test $ac_cv_lib_udis86_ud_init = yes; then
28644 cat >>confdefs.h <<_ACEOF
28645 #define HAVE_LIBUDIS86 1
28646 _ACEOF
28648 LIBS="-ludis86 $LIBS"
28650 else
28652 echo "Error! You need to have libudis86 around."
28653 exit -1
28658 else
28659 USE_UDIS86=0
28664 cat >>confdefs.h <<_ACEOF
28665 #define USE_UDIS86 $USE_UDIS86
28666 _ACEOF
28670 # Check whether --with-oprofile was given.
28671 if test "${with_oprofile+set}" = set; then
28672 withval=$with_oprofile;
28673 USE_OPROFILE=1
28675 case "$withval" in
28676 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28677 no) llvm_cv_oppath=
28678 USE_OPROFILE=0
28680 *) llvm_cv_oppath="${withval}/lib/oprofile"
28681 CPPFLAGS="-I${withval}/include";;
28682 esac
28683 if test -n "$llvm_cv_oppath" ; then
28684 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28685 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28686 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28687 if test "${ac_cv_search_bfd_init+set}" = set; then
28688 echo $ECHO_N "(cached) $ECHO_C" >&6
28689 else
28690 ac_func_search_save_LIBS=$LIBS
28691 cat >conftest.$ac_ext <<_ACEOF
28692 /* confdefs.h. */
28693 _ACEOF
28694 cat confdefs.h >>conftest.$ac_ext
28695 cat >>conftest.$ac_ext <<_ACEOF
28696 /* end confdefs.h. */
28698 /* Override any GCC internal prototype to avoid an error.
28699 Use char because int might match the return type of a GCC
28700 builtin and then its argument prototype would still apply. */
28701 #ifdef __cplusplus
28702 extern "C"
28703 #endif
28704 char bfd_init ();
28706 main ()
28708 return bfd_init ();
28710 return 0;
28712 _ACEOF
28713 for ac_lib in '' bfd; do
28714 if test -z "$ac_lib"; then
28715 ac_res="none required"
28716 else
28717 ac_res=-l$ac_lib
28718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28720 rm -f conftest.$ac_objext conftest$ac_exeext
28721 if { (ac_try="$ac_link"
28722 case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28725 esac
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_link") 2>conftest.er1
28728 ac_status=$?
28729 grep -v '^ *+' conftest.er1 >conftest.err
28730 rm -f conftest.er1
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } &&
28734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28735 { (case "(($ac_try" in
28736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737 *) ac_try_echo=$ac_try;;
28738 esac
28739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740 (eval "$ac_try") 2>&5
28741 ac_status=$?
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; } &&
28744 { ac_try='test -s conftest$ac_exeext'
28745 { (case "(($ac_try" in
28746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747 *) ac_try_echo=$ac_try;;
28748 esac
28749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750 (eval "$ac_try") 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
28754 ac_cv_search_bfd_init=$ac_res
28755 else
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28762 rm -f core conftest.err conftest.$ac_objext \
28763 conftest$ac_exeext
28764 if test "${ac_cv_search_bfd_init+set}" = set; then
28765 break
28767 done
28768 if test "${ac_cv_search_bfd_init+set}" = set; then
28770 else
28771 ac_cv_search_bfd_init=no
28773 rm conftest.$ac_ext
28774 LIBS=$ac_func_search_save_LIBS
28776 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28777 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28778 ac_res=$ac_cv_search_bfd_init
28779 if test "$ac_res" != no; then
28780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28784 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28785 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28786 if test "${ac_cv_search_op_open_agent+set}" = set; then
28787 echo $ECHO_N "(cached) $ECHO_C" >&6
28788 else
28789 ac_func_search_save_LIBS=$LIBS
28790 cat >conftest.$ac_ext <<_ACEOF
28791 /* confdefs.h. */
28792 _ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h. */
28797 /* Override any GCC internal prototype to avoid an error.
28798 Use char because int might match the return type of a GCC
28799 builtin and then its argument prototype would still apply. */
28800 #ifdef __cplusplus
28801 extern "C"
28802 #endif
28803 char op_open_agent ();
28805 main ()
28807 return op_open_agent ();
28809 return 0;
28811 _ACEOF
28812 for ac_lib in '' opagent; do
28813 if test -z "$ac_lib"; then
28814 ac_res="none required"
28815 else
28816 ac_res=-l$ac_lib
28817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28819 rm -f conftest.$ac_objext conftest$ac_exeext
28820 if { (ac_try="$ac_link"
28821 case "(($ac_try" in
28822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823 *) ac_try_echo=$ac_try;;
28824 esac
28825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28826 (eval "$ac_link") 2>conftest.er1
28827 ac_status=$?
28828 grep -v '^ *+' conftest.er1 >conftest.err
28829 rm -f conftest.er1
28830 cat conftest.err >&5
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); } &&
28833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28834 { (case "(($ac_try" in
28835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836 *) ac_try_echo=$ac_try;;
28837 esac
28838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839 (eval "$ac_try") 2>&5
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; } &&
28843 { ac_try='test -s conftest$ac_exeext'
28844 { (case "(($ac_try" in
28845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846 *) ac_try_echo=$ac_try;;
28847 esac
28848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849 (eval "$ac_try") 2>&5
28850 ac_status=$?
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; }; then
28853 ac_cv_search_op_open_agent=$ac_res
28854 else
28855 echo "$as_me: failed program was:" >&5
28856 sed 's/^/| /' conftest.$ac_ext >&5
28861 rm -f core conftest.err conftest.$ac_objext \
28862 conftest$ac_exeext
28863 if test "${ac_cv_search_op_open_agent+set}" = set; then
28864 break
28866 done
28867 if test "${ac_cv_search_op_open_agent+set}" = set; then
28869 else
28870 ac_cv_search_op_open_agent=no
28872 rm conftest.$ac_ext
28873 LIBS=$ac_func_search_save_LIBS
28875 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28876 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28877 ac_res=$ac_cv_search_op_open_agent
28878 if test "$ac_res" != no; then
28879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28881 else
28883 echo "Error! You need to have libopagent around."
28884 exit -1
28888 if test "${ac_cv_header_opagent_h+set}" = set; then
28889 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28890 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28891 if test "${ac_cv_header_opagent_h+set}" = set; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28894 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28895 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28896 else
28897 # Is the header compilable?
28898 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28899 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28900 cat >conftest.$ac_ext <<_ACEOF
28901 /* confdefs.h. */
28902 _ACEOF
28903 cat confdefs.h >>conftest.$ac_ext
28904 cat >>conftest.$ac_ext <<_ACEOF
28905 /* end confdefs.h. */
28906 $ac_includes_default
28907 #include <opagent.h>
28908 _ACEOF
28909 rm -f conftest.$ac_objext
28910 if { (ac_try="$ac_compile"
28911 case "(($ac_try" in
28912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913 *) ac_try_echo=$ac_try;;
28914 esac
28915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916 (eval "$ac_compile") 2>conftest.er1
28917 ac_status=$?
28918 grep -v '^ *+' conftest.er1 >conftest.err
28919 rm -f conftest.er1
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } &&
28923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28924 { (case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28927 esac
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_try") 2>&5
28930 ac_status=$?
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); }; } &&
28933 { ac_try='test -s conftest.$ac_objext'
28934 { (case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28937 esac
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_try") 2>&5
28940 ac_status=$?
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; }; then
28943 ac_header_compiler=yes
28944 else
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28948 ac_header_compiler=no
28951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28953 echo "${ECHO_T}$ac_header_compiler" >&6; }
28955 # Is the header present?
28956 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28957 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28958 cat >conftest.$ac_ext <<_ACEOF
28959 /* confdefs.h. */
28960 _ACEOF
28961 cat confdefs.h >>conftest.$ac_ext
28962 cat >>conftest.$ac_ext <<_ACEOF
28963 /* end confdefs.h. */
28964 #include <opagent.h>
28965 _ACEOF
28966 if { (ac_try="$ac_cpp conftest.$ac_ext"
28967 case "(($ac_try" in
28968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969 *) ac_try_echo=$ac_try;;
28970 esac
28971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28973 ac_status=$?
28974 grep -v '^ *+' conftest.er1 >conftest.err
28975 rm -f conftest.er1
28976 cat conftest.err >&5
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } >/dev/null; then
28979 if test -s conftest.err; then
28980 ac_cpp_err=$ac_c_preproc_warn_flag
28981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28982 else
28983 ac_cpp_err=
28985 else
28986 ac_cpp_err=yes
28988 if test -z "$ac_cpp_err"; then
28989 ac_header_preproc=yes
28990 else
28991 echo "$as_me: failed program was:" >&5
28992 sed 's/^/| /' conftest.$ac_ext >&5
28994 ac_header_preproc=no
28997 rm -f conftest.err conftest.$ac_ext
28998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28999 echo "${ECHO_T}$ac_header_preproc" >&6; }
29001 # So? What about this header?
29002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29003 yes:no: )
29004 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29005 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29006 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29007 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29008 ac_header_preproc=yes
29010 no:yes:* )
29011 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29012 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29014 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29016 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29017 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29018 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29020 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29021 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29022 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29023 ( cat <<\_ASBOX
29024 ## ----------------------------------- ##
29025 ## Report this to llvmbugs@cs.uiuc.edu ##
29026 ## ----------------------------------- ##
29027 _ASBOX
29028 ) | sed "s/^/$as_me: WARNING: /" >&2
29030 esac
29031 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29032 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29033 if test "${ac_cv_header_opagent_h+set}" = set; then
29034 echo $ECHO_N "(cached) $ECHO_C" >&6
29035 else
29036 ac_cv_header_opagent_h=$ac_header_preproc
29038 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29039 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29042 if test $ac_cv_header_opagent_h = yes; then
29044 else
29046 echo "Error! You need to have opagent.h around."
29047 exit -1
29054 else
29056 USE_OPROFILE=0
29062 cat >>confdefs.h <<_ACEOF
29063 #define USE_OPROFILE $USE_OPROFILE
29064 _ACEOF
29073 ac_header_dirent=no
29074 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29075 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29076 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29077 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29079 echo $ECHO_N "(cached) $ECHO_C" >&6
29080 else
29081 cat >conftest.$ac_ext <<_ACEOF
29082 /* confdefs.h. */
29083 _ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h. */
29087 #include <sys/types.h>
29088 #include <$ac_hdr>
29091 main ()
29093 if ((DIR *) 0)
29094 return 0;
29096 return 0;
29098 _ACEOF
29099 rm -f conftest.$ac_objext
29100 if { (ac_try="$ac_compile"
29101 case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29104 esac
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_compile") 2>conftest.er1
29107 ac_status=$?
29108 grep -v '^ *+' conftest.er1 >conftest.err
29109 rm -f conftest.er1
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
29113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29114 { (case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29117 esac
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_try") 2>&5
29120 ac_status=$?
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } &&
29123 { ac_try='test -s conftest.$ac_objext'
29124 { (case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29127 esac
29128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129 (eval "$ac_try") 2>&5
29130 ac_status=$?
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; }; then
29133 eval "$as_ac_Header=yes"
29134 else
29135 echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.$ac_ext >&5
29138 eval "$as_ac_Header=no"
29141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29143 ac_res=`eval echo '${'$as_ac_Header'}'`
29144 { echo "$as_me:$LINENO: result: $ac_res" >&5
29145 echo "${ECHO_T}$ac_res" >&6; }
29146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29147 cat >>confdefs.h <<_ACEOF
29148 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29149 _ACEOF
29151 ac_header_dirent=$ac_hdr; break
29154 done
29155 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29156 if test $ac_header_dirent = dirent.h; then
29157 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29158 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29159 if test "${ac_cv_search_opendir+set}" = set; then
29160 echo $ECHO_N "(cached) $ECHO_C" >&6
29161 else
29162 ac_func_search_save_LIBS=$LIBS
29163 cat >conftest.$ac_ext <<_ACEOF
29164 /* confdefs.h. */
29165 _ACEOF
29166 cat confdefs.h >>conftest.$ac_ext
29167 cat >>conftest.$ac_ext <<_ACEOF
29168 /* end confdefs.h. */
29170 /* Override any GCC internal prototype to avoid an error.
29171 Use char because int might match the return type of a GCC
29172 builtin and then its argument prototype would still apply. */
29173 #ifdef __cplusplus
29174 extern "C"
29175 #endif
29176 char opendir ();
29178 main ()
29180 return opendir ();
29182 return 0;
29184 _ACEOF
29185 for ac_lib in '' dir; do
29186 if test -z "$ac_lib"; then
29187 ac_res="none required"
29188 else
29189 ac_res=-l$ac_lib
29190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29192 rm -f conftest.$ac_objext conftest$ac_exeext
29193 if { (ac_try="$ac_link"
29194 case "(($ac_try" in
29195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29196 *) ac_try_echo=$ac_try;;
29197 esac
29198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29199 (eval "$ac_link") 2>conftest.er1
29200 ac_status=$?
29201 grep -v '^ *+' conftest.er1 >conftest.err
29202 rm -f conftest.er1
29203 cat conftest.err >&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } &&
29206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29207 { (case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29210 esac
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_try") 2>&5
29213 ac_status=$?
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; } &&
29216 { ac_try='test -s conftest$ac_exeext'
29217 { (case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29220 esac
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_try") 2>&5
29223 ac_status=$?
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; }; then
29226 ac_cv_search_opendir=$ac_res
29227 else
29228 echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29234 rm -f core conftest.err conftest.$ac_objext \
29235 conftest$ac_exeext
29236 if test "${ac_cv_search_opendir+set}" = set; then
29237 break
29239 done
29240 if test "${ac_cv_search_opendir+set}" = set; then
29242 else
29243 ac_cv_search_opendir=no
29245 rm conftest.$ac_ext
29246 LIBS=$ac_func_search_save_LIBS
29248 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29249 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29250 ac_res=$ac_cv_search_opendir
29251 if test "$ac_res" != no; then
29252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29256 else
29257 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29258 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29259 if test "${ac_cv_search_opendir+set}" = set; then
29260 echo $ECHO_N "(cached) $ECHO_C" >&6
29261 else
29262 ac_func_search_save_LIBS=$LIBS
29263 cat >conftest.$ac_ext <<_ACEOF
29264 /* confdefs.h. */
29265 _ACEOF
29266 cat confdefs.h >>conftest.$ac_ext
29267 cat >>conftest.$ac_ext <<_ACEOF
29268 /* end confdefs.h. */
29270 /* Override any GCC internal prototype to avoid an error.
29271 Use char because int might match the return type of a GCC
29272 builtin and then its argument prototype would still apply. */
29273 #ifdef __cplusplus
29274 extern "C"
29275 #endif
29276 char opendir ();
29278 main ()
29280 return opendir ();
29282 return 0;
29284 _ACEOF
29285 for ac_lib in '' x; do
29286 if test -z "$ac_lib"; then
29287 ac_res="none required"
29288 else
29289 ac_res=-l$ac_lib
29290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29297 esac
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299 (eval "$ac_link") 2>conftest.er1
29300 ac_status=$?
29301 grep -v '^ *+' conftest.er1 >conftest.err
29302 rm -f conftest.er1
29303 cat conftest.err >&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } &&
29306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29307 { (case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_try") 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; } &&
29316 { ac_try='test -s conftest$ac_exeext'
29317 { (case "(($ac_try" in
29318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319 *) ac_try_echo=$ac_try;;
29320 esac
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322 (eval "$ac_try") 2>&5
29323 ac_status=$?
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; }; then
29326 ac_cv_search_opendir=$ac_res
29327 else
29328 echo "$as_me: failed program was:" >&5
29329 sed 's/^/| /' conftest.$ac_ext >&5
29334 rm -f core conftest.err conftest.$ac_objext \
29335 conftest$ac_exeext
29336 if test "${ac_cv_search_opendir+set}" = set; then
29337 break
29339 done
29340 if test "${ac_cv_search_opendir+set}" = set; then
29342 else
29343 ac_cv_search_opendir=no
29345 rm conftest.$ac_ext
29346 LIBS=$ac_func_search_save_LIBS
29348 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29349 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29350 ac_res=$ac_cv_search_opendir
29351 if test "$ac_res" != no; then
29352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29358 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29359 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29360 if test "${ac_cv_header_mmap_anon+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29362 else
29363 ac_ext=c
29364 ac_cpp='$CPP $CPPFLAGS'
29365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29369 cat >conftest.$ac_ext <<_ACEOF
29370 /* confdefs.h. */
29371 _ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h. */
29375 #include <sys/mman.h>
29376 #include <unistd.h>
29377 #include <fcntl.h>
29379 main ()
29381 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29383 return 0;
29385 _ACEOF
29386 rm -f conftest.$ac_objext
29387 if { (ac_try="$ac_compile"
29388 case "(($ac_try" in
29389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390 *) ac_try_echo=$ac_try;;
29391 esac
29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393 (eval "$ac_compile") 2>conftest.er1
29394 ac_status=$?
29395 grep -v '^ *+' conftest.er1 >conftest.err
29396 rm -f conftest.er1
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
29400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29401 { (case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29404 esac
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_try") 2>&5
29407 ac_status=$?
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; } &&
29410 { ac_try='test -s conftest.$ac_objext'
29411 { (case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29414 esac
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_try") 2>&5
29417 ac_status=$?
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; }; then
29420 ac_cv_header_mmap_anon=yes
29421 else
29422 echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29425 ac_cv_header_mmap_anon=no
29428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29429 ac_ext=c
29430 ac_cpp='$CPP $CPPFLAGS'
29431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29437 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29438 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29439 if test "$ac_cv_header_mmap_anon" = yes; then
29441 cat >>confdefs.h <<\_ACEOF
29442 #define HAVE_MMAP_ANONYMOUS 1
29443 _ACEOF
29447 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29448 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29449 if test "${ac_cv_header_stat_broken+set}" = set; then
29450 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 else
29452 cat >conftest.$ac_ext <<_ACEOF
29453 /* confdefs.h. */
29454 _ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h. */
29458 #include <sys/types.h>
29459 #include <sys/stat.h>
29461 #if defined S_ISBLK && defined S_IFDIR
29462 # if S_ISBLK (S_IFDIR)
29463 You lose.
29464 # endif
29465 #endif
29467 #if defined S_ISBLK && defined S_IFCHR
29468 # if S_ISBLK (S_IFCHR)
29469 You lose.
29470 # endif
29471 #endif
29473 #if defined S_ISLNK && defined S_IFREG
29474 # if S_ISLNK (S_IFREG)
29475 You lose.
29476 # endif
29477 #endif
29479 #if defined S_ISSOCK && defined S_IFREG
29480 # if S_ISSOCK (S_IFREG)
29481 You lose.
29482 # endif
29483 #endif
29485 _ACEOF
29486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29487 $EGREP "You lose" >/dev/null 2>&1; then
29488 ac_cv_header_stat_broken=yes
29489 else
29490 ac_cv_header_stat_broken=no
29492 rm -f conftest*
29495 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29496 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29497 if test $ac_cv_header_stat_broken = yes; then
29499 cat >>confdefs.h <<\_ACEOF
29500 #define STAT_MACROS_BROKEN 1
29501 _ACEOF
29505 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29507 if test "${ac_cv_header_stdc+set}" = set; then
29508 echo $ECHO_N "(cached) $ECHO_C" >&6
29509 else
29510 cat >conftest.$ac_ext <<_ACEOF
29511 /* confdefs.h. */
29512 _ACEOF
29513 cat confdefs.h >>conftest.$ac_ext
29514 cat >>conftest.$ac_ext <<_ACEOF
29515 /* end confdefs.h. */
29516 #include <stdlib.h>
29517 #include <stdarg.h>
29518 #include <string.h>
29519 #include <float.h>
29522 main ()
29526 return 0;
29528 _ACEOF
29529 rm -f conftest.$ac_objext
29530 if { (ac_try="$ac_compile"
29531 case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29534 esac
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_compile") 2>conftest.er1
29537 ac_status=$?
29538 grep -v '^ *+' conftest.er1 >conftest.err
29539 rm -f conftest.er1
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } &&
29543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29544 { (case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29547 esac
29548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549 (eval "$ac_try") 2>&5
29550 ac_status=$?
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; } &&
29553 { ac_try='test -s conftest.$ac_objext'
29554 { (case "(($ac_try" in
29555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29557 esac
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559 (eval "$ac_try") 2>&5
29560 ac_status=$?
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; }; then
29563 ac_cv_header_stdc=yes
29564 else
29565 echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29568 ac_cv_header_stdc=no
29571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29573 if test $ac_cv_header_stdc = yes; then
29574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29575 cat >conftest.$ac_ext <<_ACEOF
29576 /* confdefs.h. */
29577 _ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h. */
29581 #include <string.h>
29583 _ACEOF
29584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29585 $EGREP "memchr" >/dev/null 2>&1; then
29587 else
29588 ac_cv_header_stdc=no
29590 rm -f conftest*
29594 if test $ac_cv_header_stdc = yes; then
29595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29596 cat >conftest.$ac_ext <<_ACEOF
29597 /* confdefs.h. */
29598 _ACEOF
29599 cat confdefs.h >>conftest.$ac_ext
29600 cat >>conftest.$ac_ext <<_ACEOF
29601 /* end confdefs.h. */
29602 #include <stdlib.h>
29604 _ACEOF
29605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29606 $EGREP "free" >/dev/null 2>&1; then
29608 else
29609 ac_cv_header_stdc=no
29611 rm -f conftest*
29615 if test $ac_cv_header_stdc = yes; then
29616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29617 if test "$cross_compiling" = yes; then
29619 else
29620 cat >conftest.$ac_ext <<_ACEOF
29621 /* confdefs.h. */
29622 _ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h. */
29626 #include <ctype.h>
29627 #include <stdlib.h>
29628 #if ((' ' & 0x0FF) == 0x020)
29629 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29630 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29631 #else
29632 # define ISLOWER(c) \
29633 (('a' <= (c) && (c) <= 'i') \
29634 || ('j' <= (c) && (c) <= 'r') \
29635 || ('s' <= (c) && (c) <= 'z'))
29636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29637 #endif
29639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29641 main ()
29643 int i;
29644 for (i = 0; i < 256; i++)
29645 if (XOR (islower (i), ISLOWER (i))
29646 || toupper (i) != TOUPPER (i))
29647 return 2;
29648 return 0;
29650 _ACEOF
29651 rm -f conftest$ac_exeext
29652 if { (ac_try="$ac_link"
29653 case "(($ac_try" in
29654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655 *) ac_try_echo=$ac_try;;
29656 esac
29657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658 (eval "$ac_link") 2>&5
29659 ac_status=$?
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29662 { (case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29665 esac
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_try") 2>&5
29668 ac_status=$?
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
29672 else
29673 echo "$as_me: program exited with status $ac_status" >&5
29674 echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29677 ( exit $ac_status )
29678 ac_cv_header_stdc=no
29680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29686 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29687 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29688 if test $ac_cv_header_stdc = yes; then
29690 cat >>confdefs.h <<\_ACEOF
29691 #define STDC_HEADERS 1
29692 _ACEOF
29696 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29697 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29698 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29700 else
29701 cat >conftest.$ac_ext <<_ACEOF
29702 /* confdefs.h. */
29703 _ACEOF
29704 cat confdefs.h >>conftest.$ac_ext
29705 cat >>conftest.$ac_ext <<_ACEOF
29706 /* end confdefs.h. */
29707 #include <sys/types.h>
29708 #include <sys/wait.h>
29709 #ifndef WEXITSTATUS
29710 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29711 #endif
29712 #ifndef WIFEXITED
29713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29714 #endif
29717 main ()
29719 int s;
29720 wait (&s);
29721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29723 return 0;
29725 _ACEOF
29726 rm -f conftest.$ac_objext
29727 if { (ac_try="$ac_compile"
29728 case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29731 esac
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_compile") 2>conftest.er1
29734 ac_status=$?
29735 grep -v '^ *+' conftest.er1 >conftest.err
29736 rm -f conftest.er1
29737 cat conftest.err >&5
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); } &&
29740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29741 { (case "(($ac_try" in
29742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29743 *) ac_try_echo=$ac_try;;
29744 esac
29745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29746 (eval "$ac_try") 2>&5
29747 ac_status=$?
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; } &&
29750 { ac_try='test -s conftest.$ac_objext'
29751 { (case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29754 esac
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_try") 2>&5
29757 ac_status=$?
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; }; then
29760 ac_cv_header_sys_wait_h=yes
29761 else
29762 echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29765 ac_cv_header_sys_wait_h=no
29768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29770 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29771 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29772 if test $ac_cv_header_sys_wait_h = yes; then
29774 cat >>confdefs.h <<\_ACEOF
29775 #define HAVE_SYS_WAIT_H 1
29776 _ACEOF
29780 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29781 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29782 if test "${ac_cv_header_time+set}" = set; then
29783 echo $ECHO_N "(cached) $ECHO_C" >&6
29784 else
29785 cat >conftest.$ac_ext <<_ACEOF
29786 /* confdefs.h. */
29787 _ACEOF
29788 cat confdefs.h >>conftest.$ac_ext
29789 cat >>conftest.$ac_ext <<_ACEOF
29790 /* end confdefs.h. */
29791 #include <sys/types.h>
29792 #include <sys/time.h>
29793 #include <time.h>
29796 main ()
29798 if ((struct tm *) 0)
29799 return 0;
29801 return 0;
29803 _ACEOF
29804 rm -f conftest.$ac_objext
29805 if { (ac_try="$ac_compile"
29806 case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29809 esac
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_compile") 2>conftest.er1
29812 ac_status=$?
29813 grep -v '^ *+' conftest.er1 >conftest.err
29814 rm -f conftest.er1
29815 cat conftest.err >&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } &&
29818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29819 { (case "(($ac_try" in
29820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29822 esac
29823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824 (eval "$ac_try") 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; } &&
29828 { ac_try='test -s conftest.$ac_objext'
29829 { (case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29832 esac
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_try") 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; }; then
29838 ac_cv_header_time=yes
29839 else
29840 echo "$as_me: failed program was:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29843 ac_cv_header_time=no
29846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29849 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29850 if test $ac_cv_header_time = yes; then
29852 cat >>confdefs.h <<\_ACEOF
29853 #define TIME_WITH_SYS_TIME 1
29854 _ACEOF
29865 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29872 echo $ECHO_N "(cached) $ECHO_C" >&6
29874 ac_res=`eval echo '${'$as_ac_Header'}'`
29875 { echo "$as_me:$LINENO: result: $ac_res" >&5
29876 echo "${ECHO_T}$ac_res" >&6; }
29877 else
29878 # Is the header compilable?
29879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29881 cat >conftest.$ac_ext <<_ACEOF
29882 /* confdefs.h. */
29883 _ACEOF
29884 cat confdefs.h >>conftest.$ac_ext
29885 cat >>conftest.$ac_ext <<_ACEOF
29886 /* end confdefs.h. */
29887 $ac_includes_default
29888 #include <$ac_header>
29889 _ACEOF
29890 rm -f conftest.$ac_objext
29891 if { (ac_try="$ac_compile"
29892 case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29895 esac
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_compile") 2>conftest.er1
29898 ac_status=$?
29899 grep -v '^ *+' conftest.er1 >conftest.err
29900 rm -f conftest.er1
29901 cat conftest.err >&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); } &&
29904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29905 { (case "(($ac_try" in
29906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907 *) ac_try_echo=$ac_try;;
29908 esac
29909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910 (eval "$ac_try") 2>&5
29911 ac_status=$?
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; } &&
29914 { ac_try='test -s conftest.$ac_objext'
29915 { (case "(($ac_try" in
29916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29917 *) ac_try_echo=$ac_try;;
29918 esac
29919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29920 (eval "$ac_try") 2>&5
29921 ac_status=$?
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; }; then
29924 ac_header_compiler=yes
29925 else
29926 echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29929 ac_header_compiler=no
29932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29934 echo "${ECHO_T}$ac_header_compiler" >&6; }
29936 # Is the header present?
29937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29939 cat >conftest.$ac_ext <<_ACEOF
29940 /* confdefs.h. */
29941 _ACEOF
29942 cat confdefs.h >>conftest.$ac_ext
29943 cat >>conftest.$ac_ext <<_ACEOF
29944 /* end confdefs.h. */
29945 #include <$ac_header>
29946 _ACEOF
29947 if { (ac_try="$ac_cpp conftest.$ac_ext"
29948 case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29951 esac
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29954 ac_status=$?
29955 grep -v '^ *+' conftest.er1 >conftest.err
29956 rm -f conftest.er1
29957 cat conftest.err >&5
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); } >/dev/null; then
29960 if test -s conftest.err; then
29961 ac_cpp_err=$ac_c_preproc_warn_flag
29962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29963 else
29964 ac_cpp_err=
29966 else
29967 ac_cpp_err=yes
29969 if test -z "$ac_cpp_err"; then
29970 ac_header_preproc=yes
29971 else
29972 echo "$as_me: failed program was:" >&5
29973 sed 's/^/| /' conftest.$ac_ext >&5
29975 ac_header_preproc=no
29978 rm -f conftest.err conftest.$ac_ext
29979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29980 echo "${ECHO_T}$ac_header_preproc" >&6; }
29982 # So? What about this header?
29983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29984 yes:no: )
29985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29989 ac_header_preproc=yes
29991 no:yes:* )
29992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30004 ( cat <<\_ASBOX
30005 ## ----------------------------------- ##
30006 ## Report this to llvmbugs@cs.uiuc.edu ##
30007 ## ----------------------------------- ##
30008 _ASBOX
30009 ) | sed "s/^/$as_me: WARNING: /" >&2
30011 esac
30012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30015 echo $ECHO_N "(cached) $ECHO_C" >&6
30016 else
30017 eval "$as_ac_Header=\$ac_header_preproc"
30019 ac_res=`eval echo '${'$as_ac_Header'}'`
30020 { echo "$as_me:$LINENO: result: $ac_res" >&5
30021 echo "${ECHO_T}$ac_res" >&6; }
30024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30025 cat >>confdefs.h <<_ACEOF
30026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30027 _ACEOF
30031 done
30039 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30046 echo $ECHO_N "(cached) $ECHO_C" >&6
30048 ac_res=`eval echo '${'$as_ac_Header'}'`
30049 { echo "$as_me:$LINENO: result: $ac_res" >&5
30050 echo "${ECHO_T}$ac_res" >&6; }
30051 else
30052 # Is the header compilable?
30053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30055 cat >conftest.$ac_ext <<_ACEOF
30056 /* confdefs.h. */
30057 _ACEOF
30058 cat confdefs.h >>conftest.$ac_ext
30059 cat >>conftest.$ac_ext <<_ACEOF
30060 /* end confdefs.h. */
30061 $ac_includes_default
30062 #include <$ac_header>
30063 _ACEOF
30064 rm -f conftest.$ac_objext
30065 if { (ac_try="$ac_compile"
30066 case "(($ac_try" in
30067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068 *) ac_try_echo=$ac_try;;
30069 esac
30070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071 (eval "$ac_compile") 2>conftest.er1
30072 ac_status=$?
30073 grep -v '^ *+' conftest.er1 >conftest.err
30074 rm -f conftest.er1
30075 cat conftest.err >&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); } &&
30078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30079 { (case "(($ac_try" in
30080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30081 *) ac_try_echo=$ac_try;;
30082 esac
30083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30084 (eval "$ac_try") 2>&5
30085 ac_status=$?
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); }; } &&
30088 { ac_try='test -s conftest.$ac_objext'
30089 { (case "(($ac_try" in
30090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30091 *) ac_try_echo=$ac_try;;
30092 esac
30093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30094 (eval "$ac_try") 2>&5
30095 ac_status=$?
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
30098 ac_header_compiler=yes
30099 else
30100 echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30103 ac_header_compiler=no
30106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30107 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30108 echo "${ECHO_T}$ac_header_compiler" >&6; }
30110 # Is the header present?
30111 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30113 cat >conftest.$ac_ext <<_ACEOF
30114 /* confdefs.h. */
30115 _ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h. */
30119 #include <$ac_header>
30120 _ACEOF
30121 if { (ac_try="$ac_cpp conftest.$ac_ext"
30122 case "(($ac_try" in
30123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30124 *) ac_try_echo=$ac_try;;
30125 esac
30126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30128 ac_status=$?
30129 grep -v '^ *+' conftest.er1 >conftest.err
30130 rm -f conftest.er1
30131 cat conftest.err >&5
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); } >/dev/null; then
30134 if test -s conftest.err; then
30135 ac_cpp_err=$ac_c_preproc_warn_flag
30136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30137 else
30138 ac_cpp_err=
30140 else
30141 ac_cpp_err=yes
30143 if test -z "$ac_cpp_err"; then
30144 ac_header_preproc=yes
30145 else
30146 echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30149 ac_header_preproc=no
30152 rm -f conftest.err conftest.$ac_ext
30153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30154 echo "${ECHO_T}$ac_header_preproc" >&6; }
30156 # So? What about this header?
30157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30158 yes:no: )
30159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30163 ac_header_preproc=yes
30165 no:yes:* )
30166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30178 ( cat <<\_ASBOX
30179 ## ----------------------------------- ##
30180 ## Report this to llvmbugs@cs.uiuc.edu ##
30181 ## ----------------------------------- ##
30182 _ASBOX
30183 ) | sed "s/^/$as_me: WARNING: /" >&2
30185 esac
30186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30189 echo $ECHO_N "(cached) $ECHO_C" >&6
30190 else
30191 eval "$as_ac_Header=\$ac_header_preproc"
30193 ac_res=`eval echo '${'$as_ac_Header'}'`
30194 { echo "$as_me:$LINENO: result: $ac_res" >&5
30195 echo "${ECHO_T}$ac_res" >&6; }
30198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30199 cat >>confdefs.h <<_ACEOF
30200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30201 _ACEOF
30205 done
30209 for ac_header in utime.h windows.h
30211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30218 ac_res=`eval echo '${'$as_ac_Header'}'`
30219 { echo "$as_me:$LINENO: result: $ac_res" >&5
30220 echo "${ECHO_T}$ac_res" >&6; }
30221 else
30222 # Is the header compilable?
30223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30225 cat >conftest.$ac_ext <<_ACEOF
30226 /* confdefs.h. */
30227 _ACEOF
30228 cat confdefs.h >>conftest.$ac_ext
30229 cat >>conftest.$ac_ext <<_ACEOF
30230 /* end confdefs.h. */
30231 $ac_includes_default
30232 #include <$ac_header>
30233 _ACEOF
30234 rm -f conftest.$ac_objext
30235 if { (ac_try="$ac_compile"
30236 case "(($ac_try" in
30237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30239 esac
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_compile") 2>conftest.er1
30242 ac_status=$?
30243 grep -v '^ *+' conftest.er1 >conftest.err
30244 rm -f conftest.er1
30245 cat conftest.err >&5
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247 (exit $ac_status); } &&
30248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30249 { (case "(($ac_try" in
30250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251 *) ac_try_echo=$ac_try;;
30252 esac
30253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254 (eval "$ac_try") 2>&5
30255 ac_status=$?
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; } &&
30258 { ac_try='test -s conftest.$ac_objext'
30259 { (case "(($ac_try" in
30260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261 *) ac_try_echo=$ac_try;;
30262 esac
30263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30264 (eval "$ac_try") 2>&5
30265 ac_status=$?
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; }; then
30268 ac_header_compiler=yes
30269 else
30270 echo "$as_me: failed program was:" >&5
30271 sed 's/^/| /' conftest.$ac_ext >&5
30273 ac_header_compiler=no
30276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30278 echo "${ECHO_T}$ac_header_compiler" >&6; }
30280 # Is the header present?
30281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30283 cat >conftest.$ac_ext <<_ACEOF
30284 /* confdefs.h. */
30285 _ACEOF
30286 cat confdefs.h >>conftest.$ac_ext
30287 cat >>conftest.$ac_ext <<_ACEOF
30288 /* end confdefs.h. */
30289 #include <$ac_header>
30290 _ACEOF
30291 if { (ac_try="$ac_cpp conftest.$ac_ext"
30292 case "(($ac_try" in
30293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294 *) ac_try_echo=$ac_try;;
30295 esac
30296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30298 ac_status=$?
30299 grep -v '^ *+' conftest.er1 >conftest.err
30300 rm -f conftest.er1
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } >/dev/null; then
30304 if test -s conftest.err; then
30305 ac_cpp_err=$ac_c_preproc_warn_flag
30306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30307 else
30308 ac_cpp_err=
30310 else
30311 ac_cpp_err=yes
30313 if test -z "$ac_cpp_err"; then
30314 ac_header_preproc=yes
30315 else
30316 echo "$as_me: failed program was:" >&5
30317 sed 's/^/| /' conftest.$ac_ext >&5
30319 ac_header_preproc=no
30322 rm -f conftest.err conftest.$ac_ext
30323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30324 echo "${ECHO_T}$ac_header_preproc" >&6; }
30326 # So? What about this header?
30327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30328 yes:no: )
30329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30333 ac_header_preproc=yes
30335 no:yes:* )
30336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30348 ( cat <<\_ASBOX
30349 ## ----------------------------------- ##
30350 ## Report this to llvmbugs@cs.uiuc.edu ##
30351 ## ----------------------------------- ##
30352 _ASBOX
30353 ) | sed "s/^/$as_me: WARNING: /" >&2
30355 esac
30356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30359 echo $ECHO_N "(cached) $ECHO_C" >&6
30360 else
30361 eval "$as_ac_Header=\$ac_header_preproc"
30363 ac_res=`eval echo '${'$as_ac_Header'}'`
30364 { echo "$as_me:$LINENO: result: $ac_res" >&5
30365 echo "${ECHO_T}$ac_res" >&6; }
30368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30369 cat >>confdefs.h <<_ACEOF
30370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30371 _ACEOF
30375 done
30381 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
30390 ac_res=`eval echo '${'$as_ac_Header'}'`
30391 { echo "$as_me:$LINENO: result: $ac_res" >&5
30392 echo "${ECHO_T}$ac_res" >&6; }
30393 else
30394 # Is the header compilable?
30395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30397 cat >conftest.$ac_ext <<_ACEOF
30398 /* confdefs.h. */
30399 _ACEOF
30400 cat confdefs.h >>conftest.$ac_ext
30401 cat >>conftest.$ac_ext <<_ACEOF
30402 /* end confdefs.h. */
30403 $ac_includes_default
30404 #include <$ac_header>
30405 _ACEOF
30406 rm -f conftest.$ac_objext
30407 if { (ac_try="$ac_compile"
30408 case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30411 esac
30412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_compile") 2>conftest.er1
30414 ac_status=$?
30415 grep -v '^ *+' conftest.er1 >conftest.err
30416 rm -f conftest.er1
30417 cat conftest.err >&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); } &&
30420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421 { (case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30424 esac
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_try") 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; } &&
30430 { ac_try='test -s conftest.$ac_objext'
30431 { (case "(($ac_try" in
30432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433 *) ac_try_echo=$ac_try;;
30434 esac
30435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436 (eval "$ac_try") 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 ac_header_compiler=yes
30441 else
30442 echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30445 ac_header_compiler=no
30448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30450 echo "${ECHO_T}$ac_header_compiler" >&6; }
30452 # Is the header present?
30453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30455 cat >conftest.$ac_ext <<_ACEOF
30456 /* confdefs.h. */
30457 _ACEOF
30458 cat confdefs.h >>conftest.$ac_ext
30459 cat >>conftest.$ac_ext <<_ACEOF
30460 /* end confdefs.h. */
30461 #include <$ac_header>
30462 _ACEOF
30463 if { (ac_try="$ac_cpp conftest.$ac_ext"
30464 case "(($ac_try" in
30465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466 *) ac_try_echo=$ac_try;;
30467 esac
30468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30470 ac_status=$?
30471 grep -v '^ *+' conftest.er1 >conftest.err
30472 rm -f conftest.er1
30473 cat conftest.err >&5
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); } >/dev/null; then
30476 if test -s conftest.err; then
30477 ac_cpp_err=$ac_c_preproc_warn_flag
30478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30479 else
30480 ac_cpp_err=
30482 else
30483 ac_cpp_err=yes
30485 if test -z "$ac_cpp_err"; then
30486 ac_header_preproc=yes
30487 else
30488 echo "$as_me: failed program was:" >&5
30489 sed 's/^/| /' conftest.$ac_ext >&5
30491 ac_header_preproc=no
30494 rm -f conftest.err conftest.$ac_ext
30495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30496 echo "${ECHO_T}$ac_header_preproc" >&6; }
30498 # So? What about this header?
30499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30500 yes:no: )
30501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30505 ac_header_preproc=yes
30507 no:yes:* )
30508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30520 ( cat <<\_ASBOX
30521 ## ----------------------------------- ##
30522 ## Report this to llvmbugs@cs.uiuc.edu ##
30523 ## ----------------------------------- ##
30524 _ASBOX
30525 ) | sed "s/^/$as_me: WARNING: /" >&2
30527 esac
30528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30531 echo $ECHO_N "(cached) $ECHO_C" >&6
30532 else
30533 eval "$as_ac_Header=\$ac_header_preproc"
30535 ac_res=`eval echo '${'$as_ac_Header'}'`
30536 { echo "$as_me:$LINENO: result: $ac_res" >&5
30537 echo "${ECHO_T}$ac_res" >&6; }
30540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30541 cat >>confdefs.h <<_ACEOF
30542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30543 _ACEOF
30547 done
30553 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30562 ac_res=`eval echo '${'$as_ac_Header'}'`
30563 { echo "$as_me:$LINENO: result: $ac_res" >&5
30564 echo "${ECHO_T}$ac_res" >&6; }
30565 else
30566 # Is the header compilable?
30567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30569 cat >conftest.$ac_ext <<_ACEOF
30570 /* confdefs.h. */
30571 _ACEOF
30572 cat confdefs.h >>conftest.$ac_ext
30573 cat >>conftest.$ac_ext <<_ACEOF
30574 /* end confdefs.h. */
30575 $ac_includes_default
30576 #include <$ac_header>
30577 _ACEOF
30578 rm -f conftest.$ac_objext
30579 if { (ac_try="$ac_compile"
30580 case "(($ac_try" in
30581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582 *) ac_try_echo=$ac_try;;
30583 esac
30584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_compile") 2>conftest.er1
30586 ac_status=$?
30587 grep -v '^ *+' conftest.er1 >conftest.err
30588 rm -f conftest.er1
30589 cat conftest.err >&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } &&
30592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30593 { (case "(($ac_try" in
30594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595 *) ac_try_echo=$ac_try;;
30596 esac
30597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598 (eval "$ac_try") 2>&5
30599 ac_status=$?
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; } &&
30602 { ac_try='test -s conftest.$ac_objext'
30603 { (case "(($ac_try" in
30604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30605 *) ac_try_echo=$ac_try;;
30606 esac
30607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30608 (eval "$ac_try") 2>&5
30609 ac_status=$?
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); }; }; then
30612 ac_header_compiler=yes
30613 else
30614 echo "$as_me: failed program was:" >&5
30615 sed 's/^/| /' conftest.$ac_ext >&5
30617 ac_header_compiler=no
30620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30622 echo "${ECHO_T}$ac_header_compiler" >&6; }
30624 # Is the header present?
30625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30627 cat >conftest.$ac_ext <<_ACEOF
30628 /* confdefs.h. */
30629 _ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h. */
30633 #include <$ac_header>
30634 _ACEOF
30635 if { (ac_try="$ac_cpp conftest.$ac_ext"
30636 case "(($ac_try" in
30637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30638 *) ac_try_echo=$ac_try;;
30639 esac
30640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30642 ac_status=$?
30643 grep -v '^ *+' conftest.er1 >conftest.err
30644 rm -f conftest.er1
30645 cat conftest.err >&5
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } >/dev/null; then
30648 if test -s conftest.err; then
30649 ac_cpp_err=$ac_c_preproc_warn_flag
30650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30651 else
30652 ac_cpp_err=
30654 else
30655 ac_cpp_err=yes
30657 if test -z "$ac_cpp_err"; then
30658 ac_header_preproc=yes
30659 else
30660 echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30663 ac_header_preproc=no
30666 rm -f conftest.err conftest.$ac_ext
30667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30668 echo "${ECHO_T}$ac_header_preproc" >&6; }
30670 # So? What about this header?
30671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30672 yes:no: )
30673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30677 ac_header_preproc=yes
30679 no:yes:* )
30680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30692 ( cat <<\_ASBOX
30693 ## ----------------------------------- ##
30694 ## Report this to llvmbugs@cs.uiuc.edu ##
30695 ## ----------------------------------- ##
30696 _ASBOX
30697 ) | sed "s/^/$as_me: WARNING: /" >&2
30699 esac
30700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30704 else
30705 eval "$as_ac_Header=\$ac_header_preproc"
30707 ac_res=`eval echo '${'$as_ac_Header'}'`
30708 { echo "$as_me:$LINENO: result: $ac_res" >&5
30709 echo "${ECHO_T}$ac_res" >&6; }
30712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30713 cat >>confdefs.h <<_ACEOF
30714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30715 _ACEOF
30719 done
30721 if test "$ENABLE_THREADS" -eq 1 ; then
30723 for ac_header in pthread.h
30725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30730 echo $ECHO_N "(cached) $ECHO_C" >&6
30732 ac_res=`eval echo '${'$as_ac_Header'}'`
30733 { echo "$as_me:$LINENO: result: $ac_res" >&5
30734 echo "${ECHO_T}$ac_res" >&6; }
30735 else
30736 # Is the header compilable?
30737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30739 cat >conftest.$ac_ext <<_ACEOF
30740 /* confdefs.h. */
30741 _ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h. */
30745 $ac_includes_default
30746 #include <$ac_header>
30747 _ACEOF
30748 rm -f conftest.$ac_objext
30749 if { (ac_try="$ac_compile"
30750 case "(($ac_try" in
30751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752 *) ac_try_echo=$ac_try;;
30753 esac
30754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_compile") 2>conftest.er1
30756 ac_status=$?
30757 grep -v '^ *+' conftest.er1 >conftest.err
30758 rm -f conftest.er1
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } &&
30762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30763 { (case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30766 esac
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768 (eval "$ac_try") 2>&5
30769 ac_status=$?
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; } &&
30772 { ac_try='test -s conftest.$ac_objext'
30773 { (case "(($ac_try" in
30774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775 *) ac_try_echo=$ac_try;;
30776 esac
30777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778 (eval "$ac_try") 2>&5
30779 ac_status=$?
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; }; then
30782 ac_header_compiler=yes
30783 else
30784 echo "$as_me: failed program was:" >&5
30785 sed 's/^/| /' conftest.$ac_ext >&5
30787 ac_header_compiler=no
30790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30792 echo "${ECHO_T}$ac_header_compiler" >&6; }
30794 # Is the header present?
30795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30797 cat >conftest.$ac_ext <<_ACEOF
30798 /* confdefs.h. */
30799 _ACEOF
30800 cat confdefs.h >>conftest.$ac_ext
30801 cat >>conftest.$ac_ext <<_ACEOF
30802 /* end confdefs.h. */
30803 #include <$ac_header>
30804 _ACEOF
30805 if { (ac_try="$ac_cpp conftest.$ac_ext"
30806 case "(($ac_try" in
30807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808 *) ac_try_echo=$ac_try;;
30809 esac
30810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30812 ac_status=$?
30813 grep -v '^ *+' conftest.er1 >conftest.err
30814 rm -f conftest.er1
30815 cat conftest.err >&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } >/dev/null; then
30818 if test -s conftest.err; then
30819 ac_cpp_err=$ac_c_preproc_warn_flag
30820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30821 else
30822 ac_cpp_err=
30824 else
30825 ac_cpp_err=yes
30827 if test -z "$ac_cpp_err"; then
30828 ac_header_preproc=yes
30829 else
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30833 ac_header_preproc=no
30836 rm -f conftest.err conftest.$ac_ext
30837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30838 echo "${ECHO_T}$ac_header_preproc" >&6; }
30840 # So? What about this header?
30841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30842 yes:no: )
30843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30847 ac_header_preproc=yes
30849 no:yes:* )
30850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30862 ( cat <<\_ASBOX
30863 ## ----------------------------------- ##
30864 ## Report this to llvmbugs@cs.uiuc.edu ##
30865 ## ----------------------------------- ##
30866 _ASBOX
30867 ) | sed "s/^/$as_me: WARNING: /" >&2
30869 esac
30870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30873 echo $ECHO_N "(cached) $ECHO_C" >&6
30874 else
30875 eval "$as_ac_Header=\$ac_header_preproc"
30877 ac_res=`eval echo '${'$as_ac_Header'}'`
30878 { echo "$as_me:$LINENO: result: $ac_res" >&5
30879 echo "${ECHO_T}$ac_res" >&6; }
30882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30883 cat >>confdefs.h <<_ACEOF
30884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30885 _ACEOF
30886 HAVE_PTHREAD=1
30888 else
30889 HAVE_PTHREAD=0
30893 done
30895 else
30896 HAVE_PTHREAD=0
30900 if test "$llvm_cv_enable_libffi" = "yes" ; then
30903 for ac_header in ffi.h ffi/ffi.h
30905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30910 echo $ECHO_N "(cached) $ECHO_C" >&6
30912 ac_res=`eval echo '${'$as_ac_Header'}'`
30913 { echo "$as_me:$LINENO: result: $ac_res" >&5
30914 echo "${ECHO_T}$ac_res" >&6; }
30915 else
30916 # Is the header compilable?
30917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30919 cat >conftest.$ac_ext <<_ACEOF
30920 /* confdefs.h. */
30921 _ACEOF
30922 cat confdefs.h >>conftest.$ac_ext
30923 cat >>conftest.$ac_ext <<_ACEOF
30924 /* end confdefs.h. */
30925 $ac_includes_default
30926 #include <$ac_header>
30927 _ACEOF
30928 rm -f conftest.$ac_objext
30929 if { (ac_try="$ac_compile"
30930 case "(($ac_try" in
30931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30932 *) ac_try_echo=$ac_try;;
30933 esac
30934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30935 (eval "$ac_compile") 2>conftest.er1
30936 ac_status=$?
30937 grep -v '^ *+' conftest.er1 >conftest.err
30938 rm -f conftest.er1
30939 cat conftest.err >&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); } &&
30942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30943 { (case "(($ac_try" in
30944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945 *) ac_try_echo=$ac_try;;
30946 esac
30947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948 (eval "$ac_try") 2>&5
30949 ac_status=$?
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; } &&
30952 { ac_try='test -s conftest.$ac_objext'
30953 { (case "(($ac_try" in
30954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30955 *) ac_try_echo=$ac_try;;
30956 esac
30957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30958 (eval "$ac_try") 2>&5
30959 ac_status=$?
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; }; then
30962 ac_header_compiler=yes
30963 else
30964 echo "$as_me: failed program was:" >&5
30965 sed 's/^/| /' conftest.$ac_ext >&5
30967 ac_header_compiler=no
30970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30972 echo "${ECHO_T}$ac_header_compiler" >&6; }
30974 # Is the header present?
30975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30977 cat >conftest.$ac_ext <<_ACEOF
30978 /* confdefs.h. */
30979 _ACEOF
30980 cat confdefs.h >>conftest.$ac_ext
30981 cat >>conftest.$ac_ext <<_ACEOF
30982 /* end confdefs.h. */
30983 #include <$ac_header>
30984 _ACEOF
30985 if { (ac_try="$ac_cpp conftest.$ac_ext"
30986 case "(($ac_try" in
30987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988 *) ac_try_echo=$ac_try;;
30989 esac
30990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30992 ac_status=$?
30993 grep -v '^ *+' conftest.er1 >conftest.err
30994 rm -f conftest.er1
30995 cat conftest.err >&5
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); } >/dev/null; then
30998 if test -s conftest.err; then
30999 ac_cpp_err=$ac_c_preproc_warn_flag
31000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31001 else
31002 ac_cpp_err=
31004 else
31005 ac_cpp_err=yes
31007 if test -z "$ac_cpp_err"; then
31008 ac_header_preproc=yes
31009 else
31010 echo "$as_me: failed program was:" >&5
31011 sed 's/^/| /' conftest.$ac_ext >&5
31013 ac_header_preproc=no
31016 rm -f conftest.err conftest.$ac_ext
31017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31018 echo "${ECHO_T}$ac_header_preproc" >&6; }
31020 # So? What about this header?
31021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31022 yes:no: )
31023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31027 ac_header_preproc=yes
31029 no:yes:* )
31030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31042 ( cat <<\_ASBOX
31043 ## ----------------------------------- ##
31044 ## Report this to llvmbugs@cs.uiuc.edu ##
31045 ## ----------------------------------- ##
31046 _ASBOX
31047 ) | sed "s/^/$as_me: WARNING: /" >&2
31049 esac
31050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31053 echo $ECHO_N "(cached) $ECHO_C" >&6
31054 else
31055 eval "$as_ac_Header=\$ac_header_preproc"
31057 ac_res=`eval echo '${'$as_ac_Header'}'`
31058 { echo "$as_me:$LINENO: result: $ac_res" >&5
31059 echo "${ECHO_T}$ac_res" >&6; }
31062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31063 cat >>confdefs.h <<_ACEOF
31064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31065 _ACEOF
31069 done
31075 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31076 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31077 if test "${ac_cv_huge_val_sanity+set}" = set; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31079 else
31081 ac_ext=cpp
31082 ac_cpp='$CXXCPP $CPPFLAGS'
31083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31087 CXXFLAGS=-pedantic
31088 if test "$cross_compiling" = yes; then
31089 ac_cv_huge_val_sanity=yes
31090 else
31091 cat >conftest.$ac_ext <<_ACEOF
31092 /* confdefs.h. */
31093 _ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h. */
31097 #include <math.h>
31099 main ()
31101 double x = HUGE_VAL; return x != x;
31103 return 0;
31105 _ACEOF
31106 rm -f conftest$ac_exeext
31107 if { (ac_try="$ac_link"
31108 case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31111 esac
31112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113 (eval "$ac_link") 2>&5
31114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31117 { (case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31120 esac
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_try") 2>&5
31123 ac_status=$?
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
31126 ac_cv_huge_val_sanity=yes
31127 else
31128 echo "$as_me: program exited with status $ac_status" >&5
31129 echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31132 ( exit $ac_status )
31133 ac_cv_huge_val_sanity=no
31135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31139 ac_ext=c
31140 ac_cpp='$CPP $CPPFLAGS'
31141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31147 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31148 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31149 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31152 { echo "$as_me:$LINENO: checking for pid_t" >&5
31153 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31154 if test "${ac_cv_type_pid_t+set}" = set; then
31155 echo $ECHO_N "(cached) $ECHO_C" >&6
31156 else
31157 cat >conftest.$ac_ext <<_ACEOF
31158 /* confdefs.h. */
31159 _ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h. */
31163 $ac_includes_default
31164 typedef pid_t ac__type_new_;
31166 main ()
31168 if ((ac__type_new_ *) 0)
31169 return 0;
31170 if (sizeof (ac__type_new_))
31171 return 0;
31173 return 0;
31175 _ACEOF
31176 rm -f conftest.$ac_objext
31177 if { (ac_try="$ac_compile"
31178 case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31181 esac
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_compile") 2>conftest.er1
31184 ac_status=$?
31185 grep -v '^ *+' conftest.er1 >conftest.err
31186 rm -f conftest.er1
31187 cat conftest.err >&5
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); } &&
31190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31191 { (case "(($ac_try" in
31192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31193 *) ac_try_echo=$ac_try;;
31194 esac
31195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31196 (eval "$ac_try") 2>&5
31197 ac_status=$?
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); }; } &&
31200 { ac_try='test -s conftest.$ac_objext'
31201 { (case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31204 esac
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_try") 2>&5
31207 ac_status=$?
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); }; }; then
31210 ac_cv_type_pid_t=yes
31211 else
31212 echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.$ac_ext >&5
31215 ac_cv_type_pid_t=no
31218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31220 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31221 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31222 if test $ac_cv_type_pid_t = yes; then
31224 else
31226 cat >>confdefs.h <<_ACEOF
31227 #define pid_t int
31228 _ACEOF
31232 { echo "$as_me:$LINENO: checking for size_t" >&5
31233 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31234 if test "${ac_cv_type_size_t+set}" = set; then
31235 echo $ECHO_N "(cached) $ECHO_C" >&6
31236 else
31237 cat >conftest.$ac_ext <<_ACEOF
31238 /* confdefs.h. */
31239 _ACEOF
31240 cat confdefs.h >>conftest.$ac_ext
31241 cat >>conftest.$ac_ext <<_ACEOF
31242 /* end confdefs.h. */
31243 $ac_includes_default
31244 typedef size_t ac__type_new_;
31246 main ()
31248 if ((ac__type_new_ *) 0)
31249 return 0;
31250 if (sizeof (ac__type_new_))
31251 return 0;
31253 return 0;
31255 _ACEOF
31256 rm -f conftest.$ac_objext
31257 if { (ac_try="$ac_compile"
31258 case "(($ac_try" in
31259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260 *) ac_try_echo=$ac_try;;
31261 esac
31262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263 (eval "$ac_compile") 2>conftest.er1
31264 ac_status=$?
31265 grep -v '^ *+' conftest.er1 >conftest.err
31266 rm -f conftest.er1
31267 cat conftest.err >&5
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); } &&
31270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31271 { (case "(($ac_try" in
31272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273 *) ac_try_echo=$ac_try;;
31274 esac
31275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276 (eval "$ac_try") 2>&5
31277 ac_status=$?
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; } &&
31280 { ac_try='test -s conftest.$ac_objext'
31281 { (case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31284 esac
31285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286 (eval "$ac_try") 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; }; then
31290 ac_cv_type_size_t=yes
31291 else
31292 echo "$as_me: failed program was:" >&5
31293 sed 's/^/| /' conftest.$ac_ext >&5
31295 ac_cv_type_size_t=no
31298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31300 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31301 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31302 if test $ac_cv_type_size_t = yes; then
31304 else
31306 cat >>confdefs.h <<_ACEOF
31307 #define size_t unsigned int
31308 _ACEOF
31312 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31313 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31314 if test "${ac_cv_type_signal+set}" = set; then
31315 echo $ECHO_N "(cached) $ECHO_C" >&6
31316 else
31317 cat >conftest.$ac_ext <<_ACEOF
31318 /* confdefs.h. */
31319 _ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h. */
31323 #include <sys/types.h>
31324 #include <signal.h>
31327 main ()
31329 return *(signal (0, 0)) (0) == 1;
31331 return 0;
31333 _ACEOF
31334 rm -f conftest.$ac_objext
31335 if { (ac_try="$ac_compile"
31336 case "(($ac_try" in
31337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31338 *) ac_try_echo=$ac_try;;
31339 esac
31340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31341 (eval "$ac_compile") 2>conftest.er1
31342 ac_status=$?
31343 grep -v '^ *+' conftest.er1 >conftest.err
31344 rm -f conftest.er1
31345 cat conftest.err >&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); } &&
31348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31349 { (case "(($ac_try" in
31350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351 *) ac_try_echo=$ac_try;;
31352 esac
31353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354 (eval "$ac_try") 2>&5
31355 ac_status=$?
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; } &&
31358 { ac_try='test -s conftest.$ac_objext'
31359 { (case "(($ac_try" in
31360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361 *) ac_try_echo=$ac_try;;
31362 esac
31363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364 (eval "$ac_try") 2>&5
31365 ac_status=$?
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; }; then
31368 ac_cv_type_signal=int
31369 else
31370 echo "$as_me: failed program was:" >&5
31371 sed 's/^/| /' conftest.$ac_ext >&5
31373 ac_cv_type_signal=void
31376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31378 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31379 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31381 cat >>confdefs.h <<_ACEOF
31382 #define RETSIGTYPE $ac_cv_type_signal
31383 _ACEOF
31386 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31387 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31388 if test "${ac_cv_struct_tm+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31390 else
31391 cat >conftest.$ac_ext <<_ACEOF
31392 /* confdefs.h. */
31393 _ACEOF
31394 cat confdefs.h >>conftest.$ac_ext
31395 cat >>conftest.$ac_ext <<_ACEOF
31396 /* end confdefs.h. */
31397 #include <sys/types.h>
31398 #include <time.h>
31401 main ()
31403 struct tm *tp; tp->tm_sec;
31405 return 0;
31407 _ACEOF
31408 rm -f conftest.$ac_objext
31409 if { (ac_try="$ac_compile"
31410 case "(($ac_try" in
31411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31412 *) ac_try_echo=$ac_try;;
31413 esac
31414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31415 (eval "$ac_compile") 2>conftest.er1
31416 ac_status=$?
31417 grep -v '^ *+' conftest.er1 >conftest.err
31418 rm -f conftest.er1
31419 cat conftest.err >&5
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); } &&
31422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31423 { (case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31426 esac
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_try") 2>&5
31429 ac_status=$?
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); }; } &&
31432 { ac_try='test -s conftest.$ac_objext'
31433 { (case "(($ac_try" in
31434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31435 *) ac_try_echo=$ac_try;;
31436 esac
31437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31438 (eval "$ac_try") 2>&5
31439 ac_status=$?
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); }; }; then
31442 ac_cv_struct_tm=time.h
31443 else
31444 echo "$as_me: failed program was:" >&5
31445 sed 's/^/| /' conftest.$ac_ext >&5
31447 ac_cv_struct_tm=sys/time.h
31450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31452 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31453 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31454 if test $ac_cv_struct_tm = sys/time.h; then
31456 cat >>confdefs.h <<\_ACEOF
31457 #define TM_IN_SYS_TIME 1
31458 _ACEOF
31462 { echo "$as_me:$LINENO: checking for int64_t" >&5
31463 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31464 if test "${ac_cv_type_int64_t+set}" = set; then
31465 echo $ECHO_N "(cached) $ECHO_C" >&6
31466 else
31467 cat >conftest.$ac_ext <<_ACEOF
31468 /* confdefs.h. */
31469 _ACEOF
31470 cat confdefs.h >>conftest.$ac_ext
31471 cat >>conftest.$ac_ext <<_ACEOF
31472 /* end confdefs.h. */
31473 $ac_includes_default
31474 typedef int64_t ac__type_new_;
31476 main ()
31478 if ((ac__type_new_ *) 0)
31479 return 0;
31480 if (sizeof (ac__type_new_))
31481 return 0;
31483 return 0;
31485 _ACEOF
31486 rm -f conftest.$ac_objext
31487 if { (ac_try="$ac_compile"
31488 case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31491 esac
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493 (eval "$ac_compile") 2>conftest.er1
31494 ac_status=$?
31495 grep -v '^ *+' conftest.er1 >conftest.err
31496 rm -f conftest.er1
31497 cat conftest.err >&5
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); } &&
31500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31501 { (case "(($ac_try" in
31502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31503 *) ac_try_echo=$ac_try;;
31504 esac
31505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31506 (eval "$ac_try") 2>&5
31507 ac_status=$?
31508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); }; } &&
31510 { ac_try='test -s conftest.$ac_objext'
31511 { (case "(($ac_try" in
31512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513 *) ac_try_echo=$ac_try;;
31514 esac
31515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516 (eval "$ac_try") 2>&5
31517 ac_status=$?
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); }; }; then
31520 ac_cv_type_int64_t=yes
31521 else
31522 echo "$as_me: failed program was:" >&5
31523 sed 's/^/| /' conftest.$ac_ext >&5
31525 ac_cv_type_int64_t=no
31528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31530 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31531 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31532 if test $ac_cv_type_int64_t = yes; then
31534 cat >>confdefs.h <<_ACEOF
31535 #define HAVE_INT64_T 1
31536 _ACEOF
31539 else
31540 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31541 echo "$as_me: error: Type int64_t required but not found" >&2;}
31542 { (exit 1); exit 1; }; }
31545 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31546 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31547 if test "${ac_cv_type_uint64_t+set}" = set; then
31548 echo $ECHO_N "(cached) $ECHO_C" >&6
31549 else
31550 cat >conftest.$ac_ext <<_ACEOF
31551 /* confdefs.h. */
31552 _ACEOF
31553 cat confdefs.h >>conftest.$ac_ext
31554 cat >>conftest.$ac_ext <<_ACEOF
31555 /* end confdefs.h. */
31556 $ac_includes_default
31557 typedef uint64_t ac__type_new_;
31559 main ()
31561 if ((ac__type_new_ *) 0)
31562 return 0;
31563 if (sizeof (ac__type_new_))
31564 return 0;
31566 return 0;
31568 _ACEOF
31569 rm -f conftest.$ac_objext
31570 if { (ac_try="$ac_compile"
31571 case "(($ac_try" in
31572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573 *) ac_try_echo=$ac_try;;
31574 esac
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576 (eval "$ac_compile") 2>conftest.er1
31577 ac_status=$?
31578 grep -v '^ *+' conftest.er1 >conftest.err
31579 rm -f conftest.er1
31580 cat conftest.err >&5
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); } &&
31583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31584 { (case "(($ac_try" in
31585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586 *) ac_try_echo=$ac_try;;
31587 esac
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589 (eval "$ac_try") 2>&5
31590 ac_status=$?
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); }; } &&
31593 { ac_try='test -s conftest.$ac_objext'
31594 { (case "(($ac_try" in
31595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31596 *) ac_try_echo=$ac_try;;
31597 esac
31598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599 (eval "$ac_try") 2>&5
31600 ac_status=$?
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; }; then
31603 ac_cv_type_uint64_t=yes
31604 else
31605 echo "$as_me: failed program was:" >&5
31606 sed 's/^/| /' conftest.$ac_ext >&5
31608 ac_cv_type_uint64_t=no
31611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31613 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31614 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31615 if test $ac_cv_type_uint64_t = yes; then
31617 cat >>confdefs.h <<_ACEOF
31618 #define HAVE_UINT64_T 1
31619 _ACEOF
31622 else
31623 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31624 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31625 if test "${ac_cv_type_u_int64_t+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31627 else
31628 cat >conftest.$ac_ext <<_ACEOF
31629 /* confdefs.h. */
31630 _ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h. */
31634 $ac_includes_default
31635 typedef u_int64_t ac__type_new_;
31637 main ()
31639 if ((ac__type_new_ *) 0)
31640 return 0;
31641 if (sizeof (ac__type_new_))
31642 return 0;
31644 return 0;
31646 _ACEOF
31647 rm -f conftest.$ac_objext
31648 if { (ac_try="$ac_compile"
31649 case "(($ac_try" in
31650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651 *) ac_try_echo=$ac_try;;
31652 esac
31653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654 (eval "$ac_compile") 2>conftest.er1
31655 ac_status=$?
31656 grep -v '^ *+' conftest.er1 >conftest.err
31657 rm -f conftest.er1
31658 cat conftest.err >&5
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); } &&
31661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31662 { (case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31665 esac
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_try") 2>&5
31668 ac_status=$?
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; } &&
31671 { ac_try='test -s conftest.$ac_objext'
31672 { (case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31675 esac
31676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677 (eval "$ac_try") 2>&5
31678 ac_status=$?
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; }; then
31681 ac_cv_type_u_int64_t=yes
31682 else
31683 echo "$as_me: failed program was:" >&5
31684 sed 's/^/| /' conftest.$ac_ext >&5
31686 ac_cv_type_u_int64_t=no
31689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31691 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31692 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31693 if test $ac_cv_type_u_int64_t = yes; then
31695 cat >>confdefs.h <<_ACEOF
31696 #define HAVE_U_INT64_T 1
31697 _ACEOF
31700 else
31701 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31702 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31703 { (exit 1); exit 1; }; }
31717 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31723 echo $ECHO_N "(cached) $ECHO_C" >&6
31724 else
31725 cat >conftest.$ac_ext <<_ACEOF
31726 /* confdefs.h. */
31727 _ACEOF
31728 cat confdefs.h >>conftest.$ac_ext
31729 cat >>conftest.$ac_ext <<_ACEOF
31730 /* end confdefs.h. */
31731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31733 #define $ac_func innocuous_$ac_func
31735 /* System header to define __stub macros and hopefully few prototypes,
31736 which can conflict with char $ac_func (); below.
31737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31738 <limits.h> exists even on freestanding compilers. */
31740 #ifdef __STDC__
31741 # include <limits.h>
31742 #else
31743 # include <assert.h>
31744 #endif
31746 #undef $ac_func
31748 /* Override any GCC internal prototype to avoid an error.
31749 Use char because int might match the return type of a GCC
31750 builtin and then its argument prototype would still apply. */
31751 #ifdef __cplusplus
31752 extern "C"
31753 #endif
31754 char $ac_func ();
31755 /* The GNU C library defines this for functions which it implements
31756 to always fail with ENOSYS. Some functions are actually named
31757 something starting with __ and the normal name is an alias. */
31758 #if defined __stub_$ac_func || defined __stub___$ac_func
31759 choke me
31760 #endif
31763 main ()
31765 return $ac_func ();
31767 return 0;
31769 _ACEOF
31770 rm -f conftest.$ac_objext conftest$ac_exeext
31771 if { (ac_try="$ac_link"
31772 case "(($ac_try" in
31773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31774 *) ac_try_echo=$ac_try;;
31775 esac
31776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31777 (eval "$ac_link") 2>conftest.er1
31778 ac_status=$?
31779 grep -v '^ *+' conftest.er1 >conftest.err
31780 rm -f conftest.er1
31781 cat conftest.err >&5
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); } &&
31784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31785 { (case "(($ac_try" in
31786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31787 *) ac_try_echo=$ac_try;;
31788 esac
31789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31790 (eval "$ac_try") 2>&5
31791 ac_status=$?
31792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793 (exit $ac_status); }; } &&
31794 { ac_try='test -s conftest$ac_exeext'
31795 { (case "(($ac_try" in
31796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31797 *) ac_try_echo=$ac_try;;
31798 esac
31799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31800 (eval "$ac_try") 2>&5
31801 ac_status=$?
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; }; then
31804 eval "$as_ac_var=yes"
31805 else
31806 echo "$as_me: failed program was:" >&5
31807 sed 's/^/| /' conftest.$ac_ext >&5
31809 eval "$as_ac_var=no"
31812 rm -f core conftest.err conftest.$ac_objext \
31813 conftest$ac_exeext conftest.$ac_ext
31815 ac_res=`eval echo '${'$as_ac_var'}'`
31816 { echo "$as_me:$LINENO: result: $ac_res" >&5
31817 echo "${ECHO_T}$ac_res" >&6; }
31818 if test `eval echo '${'$as_ac_var'}'` = yes; then
31819 cat >>confdefs.h <<_ACEOF
31820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31821 _ACEOF
31824 done
31830 for ac_func in powf fmodf strtof round
31832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31836 echo $ECHO_N "(cached) $ECHO_C" >&6
31837 else
31838 cat >conftest.$ac_ext <<_ACEOF
31839 /* confdefs.h. */
31840 _ACEOF
31841 cat confdefs.h >>conftest.$ac_ext
31842 cat >>conftest.$ac_ext <<_ACEOF
31843 /* end confdefs.h. */
31844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31846 #define $ac_func innocuous_$ac_func
31848 /* System header to define __stub macros and hopefully few prototypes,
31849 which can conflict with char $ac_func (); below.
31850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31851 <limits.h> exists even on freestanding compilers. */
31853 #ifdef __STDC__
31854 # include <limits.h>
31855 #else
31856 # include <assert.h>
31857 #endif
31859 #undef $ac_func
31861 /* Override any GCC internal prototype to avoid an error.
31862 Use char because int might match the return type of a GCC
31863 builtin and then its argument prototype would still apply. */
31864 #ifdef __cplusplus
31865 extern "C"
31866 #endif
31867 char $ac_func ();
31868 /* The GNU C library defines this for functions which it implements
31869 to always fail with ENOSYS. Some functions are actually named
31870 something starting with __ and the normal name is an alias. */
31871 #if defined __stub_$ac_func || defined __stub___$ac_func
31872 choke me
31873 #endif
31876 main ()
31878 return $ac_func ();
31880 return 0;
31882 _ACEOF
31883 rm -f conftest.$ac_objext conftest$ac_exeext
31884 if { (ac_try="$ac_link"
31885 case "(($ac_try" in
31886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31887 *) ac_try_echo=$ac_try;;
31888 esac
31889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31890 (eval "$ac_link") 2>conftest.er1
31891 ac_status=$?
31892 grep -v '^ *+' conftest.er1 >conftest.err
31893 rm -f conftest.er1
31894 cat conftest.err >&5
31895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 (exit $ac_status); } &&
31897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31898 { (case "(($ac_try" in
31899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900 *) ac_try_echo=$ac_try;;
31901 esac
31902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903 (eval "$ac_try") 2>&5
31904 ac_status=$?
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; } &&
31907 { ac_try='test -s conftest$ac_exeext'
31908 { (case "(($ac_try" in
31909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910 *) ac_try_echo=$ac_try;;
31911 esac
31912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913 (eval "$ac_try") 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; }; then
31917 eval "$as_ac_var=yes"
31918 else
31919 echo "$as_me: failed program was:" >&5
31920 sed 's/^/| /' conftest.$ac_ext >&5
31922 eval "$as_ac_var=no"
31925 rm -f core conftest.err conftest.$ac_objext \
31926 conftest$ac_exeext conftest.$ac_ext
31928 ac_res=`eval echo '${'$as_ac_var'}'`
31929 { echo "$as_me:$LINENO: result: $ac_res" >&5
31930 echo "${ECHO_T}$ac_res" >&6; }
31931 if test `eval echo '${'$as_ac_var'}'` = yes; then
31932 cat >>confdefs.h <<_ACEOF
31933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31934 _ACEOF
31937 done
31944 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31950 echo $ECHO_N "(cached) $ECHO_C" >&6
31951 else
31952 cat >conftest.$ac_ext <<_ACEOF
31953 /* confdefs.h. */
31954 _ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h. */
31958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31960 #define $ac_func innocuous_$ac_func
31962 /* System header to define __stub macros and hopefully few prototypes,
31963 which can conflict with char $ac_func (); below.
31964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31965 <limits.h> exists even on freestanding compilers. */
31967 #ifdef __STDC__
31968 # include <limits.h>
31969 #else
31970 # include <assert.h>
31971 #endif
31973 #undef $ac_func
31975 /* Override any GCC internal prototype to avoid an error.
31976 Use char because int might match the return type of a GCC
31977 builtin and then its argument prototype would still apply. */
31978 #ifdef __cplusplus
31979 extern "C"
31980 #endif
31981 char $ac_func ();
31982 /* The GNU C library defines this for functions which it implements
31983 to always fail with ENOSYS. Some functions are actually named
31984 something starting with __ and the normal name is an alias. */
31985 #if defined __stub_$ac_func || defined __stub___$ac_func
31986 choke me
31987 #endif
31990 main ()
31992 return $ac_func ();
31994 return 0;
31996 _ACEOF
31997 rm -f conftest.$ac_objext conftest$ac_exeext
31998 if { (ac_try="$ac_link"
31999 case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32002 esac
32003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_link") 2>conftest.er1
32005 ac_status=$?
32006 grep -v '^ *+' conftest.er1 >conftest.err
32007 rm -f conftest.er1
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); } &&
32011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32012 { (case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32015 esac
32016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_try") 2>&5
32018 ac_status=$?
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest$ac_exeext'
32022 { (case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_try") 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; }; then
32031 eval "$as_ac_var=yes"
32032 else
32033 echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32036 eval "$as_ac_var=no"
32039 rm -f core conftest.err conftest.$ac_objext \
32040 conftest$ac_exeext conftest.$ac_ext
32042 ac_res=`eval echo '${'$as_ac_var'}'`
32043 { echo "$as_me:$LINENO: result: $ac_res" >&5
32044 echo "${ECHO_T}$ac_res" >&6; }
32045 if test `eval echo '${'$as_ac_var'}'` = yes; then
32046 cat >>confdefs.h <<_ACEOF
32047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32048 _ACEOF
32051 done
32056 for ac_func in isatty mkdtemp mkstemp
32058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32062 echo $ECHO_N "(cached) $ECHO_C" >&6
32063 else
32064 cat >conftest.$ac_ext <<_ACEOF
32065 /* confdefs.h. */
32066 _ACEOF
32067 cat confdefs.h >>conftest.$ac_ext
32068 cat >>conftest.$ac_ext <<_ACEOF
32069 /* end confdefs.h. */
32070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32072 #define $ac_func innocuous_$ac_func
32074 /* System header to define __stub macros and hopefully few prototypes,
32075 which can conflict with char $ac_func (); below.
32076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32077 <limits.h> exists even on freestanding compilers. */
32079 #ifdef __STDC__
32080 # include <limits.h>
32081 #else
32082 # include <assert.h>
32083 #endif
32085 #undef $ac_func
32087 /* Override any GCC internal prototype to avoid an error.
32088 Use char because int might match the return type of a GCC
32089 builtin and then its argument prototype would still apply. */
32090 #ifdef __cplusplus
32091 extern "C"
32092 #endif
32093 char $ac_func ();
32094 /* The GNU C library defines this for functions which it implements
32095 to always fail with ENOSYS. Some functions are actually named
32096 something starting with __ and the normal name is an alias. */
32097 #if defined __stub_$ac_func || defined __stub___$ac_func
32098 choke me
32099 #endif
32102 main ()
32104 return $ac_func ();
32106 return 0;
32108 _ACEOF
32109 rm -f conftest.$ac_objext conftest$ac_exeext
32110 if { (ac_try="$ac_link"
32111 case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32114 esac
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_link") 2>conftest.er1
32117 ac_status=$?
32118 grep -v '^ *+' conftest.er1 >conftest.err
32119 rm -f conftest.er1
32120 cat conftest.err >&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); } &&
32123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32124 { (case "(($ac_try" in
32125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126 *) ac_try_echo=$ac_try;;
32127 esac
32128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129 (eval "$ac_try") 2>&5
32130 ac_status=$?
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); }; } &&
32133 { ac_try='test -s conftest$ac_exeext'
32134 { (case "(($ac_try" in
32135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136 *) ac_try_echo=$ac_try;;
32137 esac
32138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139 (eval "$ac_try") 2>&5
32140 ac_status=$?
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); }; }; then
32143 eval "$as_ac_var=yes"
32144 else
32145 echo "$as_me: failed program was:" >&5
32146 sed 's/^/| /' conftest.$ac_ext >&5
32148 eval "$as_ac_var=no"
32151 rm -f core conftest.err conftest.$ac_objext \
32152 conftest$ac_exeext conftest.$ac_ext
32154 ac_res=`eval echo '${'$as_ac_var'}'`
32155 { echo "$as_me:$LINENO: result: $ac_res" >&5
32156 echo "${ECHO_T}$ac_res" >&6; }
32157 if test `eval echo '${'$as_ac_var'}'` = yes; then
32158 cat >>confdefs.h <<_ACEOF
32159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32160 _ACEOF
32163 done
32170 for ac_func in mktemp realpath sbrk setrlimit strdup
32172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32177 else
32178 cat >conftest.$ac_ext <<_ACEOF
32179 /* confdefs.h. */
32180 _ACEOF
32181 cat confdefs.h >>conftest.$ac_ext
32182 cat >>conftest.$ac_ext <<_ACEOF
32183 /* end confdefs.h. */
32184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32186 #define $ac_func innocuous_$ac_func
32188 /* System header to define __stub macros and hopefully few prototypes,
32189 which can conflict with char $ac_func (); below.
32190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32191 <limits.h> exists even on freestanding compilers. */
32193 #ifdef __STDC__
32194 # include <limits.h>
32195 #else
32196 # include <assert.h>
32197 #endif
32199 #undef $ac_func
32201 /* Override any GCC internal prototype to avoid an error.
32202 Use char because int might match the return type of a GCC
32203 builtin and then its argument prototype would still apply. */
32204 #ifdef __cplusplus
32205 extern "C"
32206 #endif
32207 char $ac_func ();
32208 /* The GNU C library defines this for functions which it implements
32209 to always fail with ENOSYS. Some functions are actually named
32210 something starting with __ and the normal name is an alias. */
32211 #if defined __stub_$ac_func || defined __stub___$ac_func
32212 choke me
32213 #endif
32216 main ()
32218 return $ac_func ();
32220 return 0;
32222 _ACEOF
32223 rm -f conftest.$ac_objext conftest$ac_exeext
32224 if { (ac_try="$ac_link"
32225 case "(($ac_try" in
32226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227 *) ac_try_echo=$ac_try;;
32228 esac
32229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230 (eval "$ac_link") 2>conftest.er1
32231 ac_status=$?
32232 grep -v '^ *+' conftest.er1 >conftest.err
32233 rm -f conftest.er1
32234 cat conftest.err >&5
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); } &&
32237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32238 { (case "(($ac_try" in
32239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240 *) ac_try_echo=$ac_try;;
32241 esac
32242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243 (eval "$ac_try") 2>&5
32244 ac_status=$?
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); }; } &&
32247 { ac_try='test -s conftest$ac_exeext'
32248 { (case "(($ac_try" in
32249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32250 *) ac_try_echo=$ac_try;;
32251 esac
32252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32253 (eval "$ac_try") 2>&5
32254 ac_status=$?
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); }; }; then
32257 eval "$as_ac_var=yes"
32258 else
32259 echo "$as_me: failed program was:" >&5
32260 sed 's/^/| /' conftest.$ac_ext >&5
32262 eval "$as_ac_var=no"
32265 rm -f core conftest.err conftest.$ac_objext \
32266 conftest$ac_exeext conftest.$ac_ext
32268 ac_res=`eval echo '${'$as_ac_var'}'`
32269 { echo "$as_me:$LINENO: result: $ac_res" >&5
32270 echo "${ECHO_T}$ac_res" >&6; }
32271 if test `eval echo '${'$as_ac_var'}'` = yes; then
32272 cat >>confdefs.h <<_ACEOF
32273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32274 _ACEOF
32277 done
32283 for ac_func in strerror strerror_r strerror_s setenv
32285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32289 echo $ECHO_N "(cached) $ECHO_C" >&6
32290 else
32291 cat >conftest.$ac_ext <<_ACEOF
32292 /* confdefs.h. */
32293 _ACEOF
32294 cat confdefs.h >>conftest.$ac_ext
32295 cat >>conftest.$ac_ext <<_ACEOF
32296 /* end confdefs.h. */
32297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32299 #define $ac_func innocuous_$ac_func
32301 /* System header to define __stub macros and hopefully few prototypes,
32302 which can conflict with char $ac_func (); below.
32303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32304 <limits.h> exists even on freestanding compilers. */
32306 #ifdef __STDC__
32307 # include <limits.h>
32308 #else
32309 # include <assert.h>
32310 #endif
32312 #undef $ac_func
32314 /* Override any GCC internal prototype to avoid an error.
32315 Use char because int might match the return type of a GCC
32316 builtin and then its argument prototype would still apply. */
32317 #ifdef __cplusplus
32318 extern "C"
32319 #endif
32320 char $ac_func ();
32321 /* The GNU C library defines this for functions which it implements
32322 to always fail with ENOSYS. Some functions are actually named
32323 something starting with __ and the normal name is an alias. */
32324 #if defined __stub_$ac_func || defined __stub___$ac_func
32325 choke me
32326 #endif
32329 main ()
32331 return $ac_func ();
32333 return 0;
32335 _ACEOF
32336 rm -f conftest.$ac_objext conftest$ac_exeext
32337 if { (ac_try="$ac_link"
32338 case "(($ac_try" in
32339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32340 *) ac_try_echo=$ac_try;;
32341 esac
32342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32343 (eval "$ac_link") 2>conftest.er1
32344 ac_status=$?
32345 grep -v '^ *+' conftest.er1 >conftest.err
32346 rm -f conftest.er1
32347 cat conftest.err >&5
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); } &&
32350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32351 { (case "(($ac_try" in
32352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353 *) ac_try_echo=$ac_try;;
32354 esac
32355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356 (eval "$ac_try") 2>&5
32357 ac_status=$?
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; } &&
32360 { ac_try='test -s conftest$ac_exeext'
32361 { (case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32364 esac
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_try") 2>&5
32367 ac_status=$?
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); }; }; then
32370 eval "$as_ac_var=yes"
32371 else
32372 echo "$as_me: failed program was:" >&5
32373 sed 's/^/| /' conftest.$ac_ext >&5
32375 eval "$as_ac_var=no"
32378 rm -f core conftest.err conftest.$ac_objext \
32379 conftest$ac_exeext conftest.$ac_ext
32381 ac_res=`eval echo '${'$as_ac_var'}'`
32382 { echo "$as_me:$LINENO: result: $ac_res" >&5
32383 echo "${ECHO_T}$ac_res" >&6; }
32384 if test `eval echo '${'$as_ac_var'}'` = yes; then
32385 cat >>confdefs.h <<_ACEOF
32386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32387 _ACEOF
32390 done
32396 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32403 else
32404 cat >conftest.$ac_ext <<_ACEOF
32405 /* confdefs.h. */
32406 _ACEOF
32407 cat confdefs.h >>conftest.$ac_ext
32408 cat >>conftest.$ac_ext <<_ACEOF
32409 /* end confdefs.h. */
32410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32412 #define $ac_func innocuous_$ac_func
32414 /* System header to define __stub macros and hopefully few prototypes,
32415 which can conflict with char $ac_func (); below.
32416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32417 <limits.h> exists even on freestanding compilers. */
32419 #ifdef __STDC__
32420 # include <limits.h>
32421 #else
32422 # include <assert.h>
32423 #endif
32425 #undef $ac_func
32427 /* Override any GCC internal prototype to avoid an error.
32428 Use char because int might match the return type of a GCC
32429 builtin and then its argument prototype would still apply. */
32430 #ifdef __cplusplus
32431 extern "C"
32432 #endif
32433 char $ac_func ();
32434 /* The GNU C library defines this for functions which it implements
32435 to always fail with ENOSYS. Some functions are actually named
32436 something starting with __ and the normal name is an alias. */
32437 #if defined __stub_$ac_func || defined __stub___$ac_func
32438 choke me
32439 #endif
32442 main ()
32444 return $ac_func ();
32446 return 0;
32448 _ACEOF
32449 rm -f conftest.$ac_objext conftest$ac_exeext
32450 if { (ac_try="$ac_link"
32451 case "(($ac_try" in
32452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453 *) ac_try_echo=$ac_try;;
32454 esac
32455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456 (eval "$ac_link") 2>conftest.er1
32457 ac_status=$?
32458 grep -v '^ *+' conftest.er1 >conftest.err
32459 rm -f conftest.er1
32460 cat conftest.err >&5
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } &&
32463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32464 { (case "(($ac_try" in
32465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466 *) ac_try_echo=$ac_try;;
32467 esac
32468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469 (eval "$ac_try") 2>&5
32470 ac_status=$?
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); }; } &&
32473 { ac_try='test -s conftest$ac_exeext'
32474 { (case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32477 esac
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_try") 2>&5
32480 ac_status=$?
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); }; }; then
32483 eval "$as_ac_var=yes"
32484 else
32485 echo "$as_me: failed program was:" >&5
32486 sed 's/^/| /' conftest.$ac_ext >&5
32488 eval "$as_ac_var=no"
32491 rm -f core conftest.err conftest.$ac_objext \
32492 conftest$ac_exeext conftest.$ac_ext
32494 ac_res=`eval echo '${'$as_ac_var'}'`
32495 { echo "$as_me:$LINENO: result: $ac_res" >&5
32496 echo "${ECHO_T}$ac_res" >&6; }
32497 if test `eval echo '${'$as_ac_var'}'` = yes; then
32498 cat >>confdefs.h <<_ACEOF
32499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32500 _ACEOF
32503 done
32509 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32515 echo $ECHO_N "(cached) $ECHO_C" >&6
32516 else
32517 cat >conftest.$ac_ext <<_ACEOF
32518 /* confdefs.h. */
32519 _ACEOF
32520 cat confdefs.h >>conftest.$ac_ext
32521 cat >>conftest.$ac_ext <<_ACEOF
32522 /* end confdefs.h. */
32523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32525 #define $ac_func innocuous_$ac_func
32527 /* System header to define __stub macros and hopefully few prototypes,
32528 which can conflict with char $ac_func (); below.
32529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32530 <limits.h> exists even on freestanding compilers. */
32532 #ifdef __STDC__
32533 # include <limits.h>
32534 #else
32535 # include <assert.h>
32536 #endif
32538 #undef $ac_func
32540 /* Override any GCC internal prototype to avoid an error.
32541 Use char because int might match the return type of a GCC
32542 builtin and then its argument prototype would still apply. */
32543 #ifdef __cplusplus
32544 extern "C"
32545 #endif
32546 char $ac_func ();
32547 /* The GNU C library defines this for functions which it implements
32548 to always fail with ENOSYS. Some functions are actually named
32549 something starting with __ and the normal name is an alias. */
32550 #if defined __stub_$ac_func || defined __stub___$ac_func
32551 choke me
32552 #endif
32555 main ()
32557 return $ac_func ();
32559 return 0;
32561 _ACEOF
32562 rm -f conftest.$ac_objext conftest$ac_exeext
32563 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
32570 ac_status=$?
32571 grep -v '^ *+' conftest.er1 >conftest.err
32572 rm -f conftest.er1
32573 cat conftest.err >&5
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575 (exit $ac_status); } &&
32576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32577 { (case "(($ac_try" in
32578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579 *) ac_try_echo=$ac_try;;
32580 esac
32581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582 (eval "$ac_try") 2>&5
32583 ac_status=$?
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); }; } &&
32586 { ac_try='test -s conftest$ac_exeext'
32587 { (case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32590 esac
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_try") 2>&5
32593 ac_status=$?
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); }; }; then
32596 eval "$as_ac_var=yes"
32597 else
32598 echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32601 eval "$as_ac_var=no"
32604 rm -f core conftest.err conftest.$ac_objext \
32605 conftest$ac_exeext conftest.$ac_ext
32607 ac_res=`eval echo '${'$as_ac_var'}'`
32608 { echo "$as_me:$LINENO: result: $ac_res" >&5
32609 echo "${ECHO_T}$ac_res" >&6; }
32610 if test `eval echo '${'$as_ac_var'}'` = yes; then
32611 cat >>confdefs.h <<_ACEOF
32612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32613 _ACEOF
32616 done
32618 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32619 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32620 if test "${llvm_cv_c_printf_a+set}" = set; then
32621 echo $ECHO_N "(cached) $ECHO_C" >&6
32622 else
32623 ac_ext=c
32624 ac_cpp='$CPP $CPPFLAGS'
32625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32629 if test "$cross_compiling" = yes; then
32630 llvmac_cv_c_printf_a=no
32631 else
32632 cat >conftest.$ac_ext <<_ACEOF
32634 /* confdefs.h. */
32635 _ACEOF
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h. */
32640 #include <stdio.h>
32641 #include <stdlib.h>
32644 main ()
32647 volatile double A, B;
32648 char Buffer[100];
32649 A = 1;
32650 A /= 10.0;
32651 sprintf(Buffer, "%a", A);
32652 B = atof(Buffer);
32653 if (A != B)
32654 return (1);
32655 if (A != 0x1.999999999999ap-4)
32656 return (1);
32657 return (0);
32659 return 0;
32661 _ACEOF
32662 rm -f conftest$ac_exeext
32663 if { (ac_try="$ac_link"
32664 case "(($ac_try" in
32665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32666 *) ac_try_echo=$ac_try;;
32667 esac
32668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32669 (eval "$ac_link") 2>&5
32670 ac_status=$?
32671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32673 { (case "(($ac_try" in
32674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675 *) ac_try_echo=$ac_try;;
32676 esac
32677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678 (eval "$ac_try") 2>&5
32679 ac_status=$?
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); }; }; then
32682 llvm_cv_c_printf_a=yes
32683 else
32684 echo "$as_me: program exited with status $ac_status" >&5
32685 echo "$as_me: failed program was:" >&5
32686 sed 's/^/| /' conftest.$ac_ext >&5
32688 ( exit $ac_status )
32689 llvmac_cv_c_printf_a=no
32691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32695 ac_ext=c
32696 ac_cpp='$CPP $CPPFLAGS'
32697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32702 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32703 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32704 if test "$llvm_cv_c_printf_a" = "yes"; then
32706 cat >>confdefs.h <<\_ACEOF
32707 #define HAVE_PRINTF_A 1
32708 _ACEOF
32712 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32713 # for constant arguments. Useless!
32714 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32715 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32716 if test "${ac_cv_working_alloca_h+set}" = set; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32718 else
32719 cat >conftest.$ac_ext <<_ACEOF
32720 /* confdefs.h. */
32721 _ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h. */
32725 #include <alloca.h>
32727 main ()
32729 char *p = (char *) alloca (2 * sizeof (int));
32730 if (p) return 0;
32732 return 0;
32734 _ACEOF
32735 rm -f conftest.$ac_objext conftest$ac_exeext
32736 if { (ac_try="$ac_link"
32737 case "(($ac_try" in
32738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32739 *) ac_try_echo=$ac_try;;
32740 esac
32741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32742 (eval "$ac_link") 2>conftest.er1
32743 ac_status=$?
32744 grep -v '^ *+' conftest.er1 >conftest.err
32745 rm -f conftest.er1
32746 cat conftest.err >&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); } &&
32749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32750 { (case "(($ac_try" in
32751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752 *) ac_try_echo=$ac_try;;
32753 esac
32754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755 (eval "$ac_try") 2>&5
32756 ac_status=$?
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); }; } &&
32759 { ac_try='test -s conftest$ac_exeext'
32760 { (case "(($ac_try" in
32761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32762 *) ac_try_echo=$ac_try;;
32763 esac
32764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32765 (eval "$ac_try") 2>&5
32766 ac_status=$?
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); }; }; then
32769 ac_cv_working_alloca_h=yes
32770 else
32771 echo "$as_me: failed program was:" >&5
32772 sed 's/^/| /' conftest.$ac_ext >&5
32774 ac_cv_working_alloca_h=no
32777 rm -f core conftest.err conftest.$ac_objext \
32778 conftest$ac_exeext conftest.$ac_ext
32780 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32781 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32782 if test $ac_cv_working_alloca_h = yes; then
32784 cat >>confdefs.h <<\_ACEOF
32785 #define HAVE_ALLOCA_H 1
32786 _ACEOF
32790 { echo "$as_me:$LINENO: checking for alloca" >&5
32791 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32792 if test "${ac_cv_func_alloca_works+set}" = set; then
32793 echo $ECHO_N "(cached) $ECHO_C" >&6
32794 else
32795 cat >conftest.$ac_ext <<_ACEOF
32796 /* confdefs.h. */
32797 _ACEOF
32798 cat confdefs.h >>conftest.$ac_ext
32799 cat >>conftest.$ac_ext <<_ACEOF
32800 /* end confdefs.h. */
32801 #ifdef __GNUC__
32802 # define alloca __builtin_alloca
32803 #else
32804 # ifdef _MSC_VER
32805 # include <malloc.h>
32806 # define alloca _alloca
32807 # else
32808 # if HAVE_ALLOCA_H
32809 # include <alloca.h>
32810 # else
32811 # ifdef _AIX
32812 #pragma alloca
32813 # else
32814 # ifndef alloca /* predefined by HP cc +Olibcalls */
32815 char *alloca ();
32816 # endif
32817 # endif
32818 # endif
32819 # endif
32820 #endif
32823 main ()
32825 char *p = (char *) alloca (1);
32826 if (p) return 0;
32828 return 0;
32830 _ACEOF
32831 rm -f conftest.$ac_objext conftest$ac_exeext
32832 if { (ac_try="$ac_link"
32833 case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32836 esac
32837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_link") 2>conftest.er1
32839 ac_status=$?
32840 grep -v '^ *+' conftest.er1 >conftest.err
32841 rm -f conftest.er1
32842 cat conftest.err >&5
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); } &&
32845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32846 { (case "(($ac_try" in
32847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32848 *) ac_try_echo=$ac_try;;
32849 esac
32850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32851 (eval "$ac_try") 2>&5
32852 ac_status=$?
32853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854 (exit $ac_status); }; } &&
32855 { ac_try='test -s conftest$ac_exeext'
32856 { (case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32859 esac
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_try") 2>&5
32862 ac_status=$?
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); }; }; then
32865 ac_cv_func_alloca_works=yes
32866 else
32867 echo "$as_me: failed program was:" >&5
32868 sed 's/^/| /' conftest.$ac_ext >&5
32870 ac_cv_func_alloca_works=no
32873 rm -f core conftest.err conftest.$ac_objext \
32874 conftest$ac_exeext conftest.$ac_ext
32876 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32877 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32879 if test $ac_cv_func_alloca_works = yes; then
32881 cat >>confdefs.h <<\_ACEOF
32882 #define HAVE_ALLOCA 1
32883 _ACEOF
32885 else
32886 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32887 # that cause trouble. Some versions do not even contain alloca or
32888 # contain a buggy version. If you still want to use their alloca,
32889 # use ar to extract alloca.o from them instead of compiling alloca.c.
32891 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32893 cat >>confdefs.h <<\_ACEOF
32894 #define C_ALLOCA 1
32895 _ACEOF
32898 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32899 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32900 if test "${ac_cv_os_cray+set}" = set; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32902 else
32903 cat >conftest.$ac_ext <<_ACEOF
32904 /* confdefs.h. */
32905 _ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32909 #if defined CRAY && ! defined CRAY2
32910 webecray
32911 #else
32912 wenotbecray
32913 #endif
32915 _ACEOF
32916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32917 $EGREP "webecray" >/dev/null 2>&1; then
32918 ac_cv_os_cray=yes
32919 else
32920 ac_cv_os_cray=no
32922 rm -f conftest*
32925 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32926 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32927 if test $ac_cv_os_cray = yes; then
32928 for ac_func in _getb67 GETB67 getb67; do
32929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32933 echo $ECHO_N "(cached) $ECHO_C" >&6
32934 else
32935 cat >conftest.$ac_ext <<_ACEOF
32936 /* confdefs.h. */
32937 _ACEOF
32938 cat confdefs.h >>conftest.$ac_ext
32939 cat >>conftest.$ac_ext <<_ACEOF
32940 /* end confdefs.h. */
32941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32943 #define $ac_func innocuous_$ac_func
32945 /* System header to define __stub macros and hopefully few prototypes,
32946 which can conflict with char $ac_func (); below.
32947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32948 <limits.h> exists even on freestanding compilers. */
32950 #ifdef __STDC__
32951 # include <limits.h>
32952 #else
32953 # include <assert.h>
32954 #endif
32956 #undef $ac_func
32958 /* Override any GCC internal prototype to avoid an error.
32959 Use char because int might match the return type of a GCC
32960 builtin and then its argument prototype would still apply. */
32961 #ifdef __cplusplus
32962 extern "C"
32963 #endif
32964 char $ac_func ();
32965 /* The GNU C library defines this for functions which it implements
32966 to always fail with ENOSYS. Some functions are actually named
32967 something starting with __ and the normal name is an alias. */
32968 #if defined __stub_$ac_func || defined __stub___$ac_func
32969 choke me
32970 #endif
32973 main ()
32975 return $ac_func ();
32977 return 0;
32979 _ACEOF
32980 rm -f conftest.$ac_objext conftest$ac_exeext
32981 if { (ac_try="$ac_link"
32982 case "(($ac_try" in
32983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32984 *) ac_try_echo=$ac_try;;
32985 esac
32986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32987 (eval "$ac_link") 2>conftest.er1
32988 ac_status=$?
32989 grep -v '^ *+' conftest.er1 >conftest.err
32990 rm -f conftest.er1
32991 cat conftest.err >&5
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); } &&
32994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32995 { (case "(($ac_try" in
32996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997 *) ac_try_echo=$ac_try;;
32998 esac
32999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000 (eval "$ac_try") 2>&5
33001 ac_status=$?
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; } &&
33004 { ac_try='test -s conftest$ac_exeext'
33005 { (case "(($ac_try" in
33006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007 *) ac_try_echo=$ac_try;;
33008 esac
33009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33010 (eval "$ac_try") 2>&5
33011 ac_status=$?
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; }; then
33014 eval "$as_ac_var=yes"
33015 else
33016 echo "$as_me: failed program was:" >&5
33017 sed 's/^/| /' conftest.$ac_ext >&5
33019 eval "$as_ac_var=no"
33022 rm -f core conftest.err conftest.$ac_objext \
33023 conftest$ac_exeext conftest.$ac_ext
33025 ac_res=`eval echo '${'$as_ac_var'}'`
33026 { echo "$as_me:$LINENO: result: $ac_res" >&5
33027 echo "${ECHO_T}$ac_res" >&6; }
33028 if test `eval echo '${'$as_ac_var'}'` = yes; then
33030 cat >>confdefs.h <<_ACEOF
33031 #define CRAY_STACKSEG_END $ac_func
33032 _ACEOF
33034 break
33037 done
33040 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33041 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33042 if test "${ac_cv_c_stack_direction+set}" = set; then
33043 echo $ECHO_N "(cached) $ECHO_C" >&6
33044 else
33045 if test "$cross_compiling" = yes; then
33046 ac_cv_c_stack_direction=0
33047 else
33048 cat >conftest.$ac_ext <<_ACEOF
33049 /* confdefs.h. */
33050 _ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33054 $ac_includes_default
33056 find_stack_direction ()
33058 static char *addr = 0;
33059 auto char dummy;
33060 if (addr == 0)
33062 addr = &dummy;
33063 return find_stack_direction ();
33065 else
33066 return (&dummy > addr) ? 1 : -1;
33070 main ()
33072 return find_stack_direction () < 0;
33074 _ACEOF
33075 rm -f conftest$ac_exeext
33076 if { (ac_try="$ac_link"
33077 case "(($ac_try" in
33078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33079 *) ac_try_echo=$ac_try;;
33080 esac
33081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33082 (eval "$ac_link") 2>&5
33083 ac_status=$?
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33086 { (case "(($ac_try" in
33087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33088 *) ac_try_echo=$ac_try;;
33089 esac
33090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33091 (eval "$ac_try") 2>&5
33092 ac_status=$?
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); }; }; then
33095 ac_cv_c_stack_direction=1
33096 else
33097 echo "$as_me: program exited with status $ac_status" >&5
33098 echo "$as_me: failed program was:" >&5
33099 sed 's/^/| /' conftest.$ac_ext >&5
33101 ( exit $ac_status )
33102 ac_cv_c_stack_direction=-1
33104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33109 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33110 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33112 cat >>confdefs.h <<_ACEOF
33113 #define STACK_DIRECTION $ac_cv_c_stack_direction
33114 _ACEOF
33120 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33121 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33122 if test "${ac_cv_func_rand48+set}" = set; then
33123 echo $ECHO_N "(cached) $ECHO_C" >&6
33124 else
33125 ac_ext=cpp
33126 ac_cpp='$CXXCPP $CPPFLAGS'
33127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33131 cat >conftest.$ac_ext <<_ACEOF
33132 /* confdefs.h. */
33133 _ACEOF
33134 cat confdefs.h >>conftest.$ac_ext
33135 cat >>conftest.$ac_ext <<_ACEOF
33136 /* end confdefs.h. */
33137 #include <stdlib.h>
33139 main ()
33141 srand48(0);lrand48();drand48();
33143 return 0;
33145 _ACEOF
33146 rm -f conftest.$ac_objext
33147 if { (ac_try="$ac_compile"
33148 case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33151 esac
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_compile") 2>conftest.er1
33154 ac_status=$?
33155 grep -v '^ *+' conftest.er1 >conftest.err
33156 rm -f conftest.er1
33157 cat conftest.err >&5
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); } &&
33160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33161 { (case "(($ac_try" in
33162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33163 *) ac_try_echo=$ac_try;;
33164 esac
33165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33166 (eval "$ac_try") 2>&5
33167 ac_status=$?
33168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169 (exit $ac_status); }; } &&
33170 { ac_try='test -s conftest.$ac_objext'
33171 { (case "(($ac_try" in
33172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173 *) ac_try_echo=$ac_try;;
33174 esac
33175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176 (eval "$ac_try") 2>&5
33177 ac_status=$?
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); }; }; then
33180 ac_cv_func_rand48=yes
33181 else
33182 echo "$as_me: failed program was:" >&5
33183 sed 's/^/| /' conftest.$ac_ext >&5
33185 ac_cv_func_rand48=no
33188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33189 ac_ext=c
33190 ac_cpp='$CPP $CPPFLAGS'
33191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33196 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33197 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33199 if test "$ac_cv_func_rand48" = "yes" ; then
33201 cat >>confdefs.h <<\_ACEOF
33202 #define HAVE_RAND48 1
33203 _ACEOF
33208 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33209 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33210 if test "${ac_cv_cxx_namespaces+set}" = set; then
33211 echo $ECHO_N "(cached) $ECHO_C" >&6
33212 else
33213 ac_ext=cpp
33214 ac_cpp='$CXXCPP $CPPFLAGS'
33215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33219 cat >conftest.$ac_ext <<_ACEOF
33220 /* confdefs.h. */
33221 _ACEOF
33222 cat confdefs.h >>conftest.$ac_ext
33223 cat >>conftest.$ac_ext <<_ACEOF
33224 /* end confdefs.h. */
33225 namespace Outer { namespace Inner { int i = 0; }}
33227 main ()
33229 using namespace Outer::Inner; return i;
33231 return 0;
33233 _ACEOF
33234 rm -f conftest.$ac_objext
33235 if { (ac_try="$ac_compile"
33236 case "(($ac_try" in
33237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33238 *) ac_try_echo=$ac_try;;
33239 esac
33240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33241 (eval "$ac_compile") 2>conftest.er1
33242 ac_status=$?
33243 grep -v '^ *+' conftest.er1 >conftest.err
33244 rm -f conftest.er1
33245 cat conftest.err >&5
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); } &&
33248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33249 { (case "(($ac_try" in
33250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33251 *) ac_try_echo=$ac_try;;
33252 esac
33253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33254 (eval "$ac_try") 2>&5
33255 ac_status=$?
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; } &&
33258 { ac_try='test -s conftest.$ac_objext'
33259 { (case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33262 esac
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_try") 2>&5
33265 ac_status=$?
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; }; then
33268 ac_cv_cxx_namespaces=yes
33269 else
33270 echo "$as_me: failed program was:" >&5
33271 sed 's/^/| /' conftest.$ac_ext >&5
33273 ac_cv_cxx_namespaces=no
33276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33277 ac_ext=c
33278 ac_cpp='$CPP $CPPFLAGS'
33279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33285 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33286 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33287 if test "$ac_cv_cxx_namespaces" = yes; then
33289 cat >>confdefs.h <<\_ACEOF
33290 #define HAVE_NAMESPACES
33291 _ACEOF
33295 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33296 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33297 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33298 echo $ECHO_N "(cached) $ECHO_C" >&6
33299 else
33301 ac_ext=cpp
33302 ac_cpp='$CXXCPP $CPPFLAGS'
33303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33307 cat >conftest.$ac_ext <<_ACEOF
33308 /* confdefs.h. */
33309 _ACEOF
33310 cat confdefs.h >>conftest.$ac_ext
33311 cat >>conftest.$ac_ext <<_ACEOF
33312 /* end confdefs.h. */
33313 #include <iterator>
33314 #ifdef HAVE_NAMESPACES
33315 using namespace std;
33316 #endif
33318 main ()
33320 iterator<int,int,int> t; return 0;
33322 return 0;
33324 _ACEOF
33325 rm -f conftest.$ac_objext
33326 if { (ac_try="$ac_compile"
33327 case "(($ac_try" in
33328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329 *) ac_try_echo=$ac_try;;
33330 esac
33331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33332 (eval "$ac_compile") 2>conftest.er1
33333 ac_status=$?
33334 grep -v '^ *+' conftest.er1 >conftest.err
33335 rm -f conftest.er1
33336 cat conftest.err >&5
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); } &&
33339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33340 { (case "(($ac_try" in
33341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33342 *) ac_try_echo=$ac_try;;
33343 esac
33344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33345 (eval "$ac_try") 2>&5
33346 ac_status=$?
33347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348 (exit $ac_status); }; } &&
33349 { ac_try='test -s conftest.$ac_objext'
33350 { (case "(($ac_try" in
33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352 *) ac_try_echo=$ac_try;;
33353 esac
33354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_try") 2>&5
33356 ac_status=$?
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; }; then
33359 ac_cv_cxx_have_std_iterator=yes
33360 else
33361 echo "$as_me: failed program was:" >&5
33362 sed 's/^/| /' conftest.$ac_ext >&5
33364 ac_cv_cxx_have_std_iterator=no
33367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33368 ac_ext=c
33369 ac_cpp='$CPP $CPPFLAGS'
33370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33376 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33377 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33378 if test "$ac_cv_cxx_have_std_iterator" = yes
33379 then
33381 cat >>confdefs.h <<\_ACEOF
33382 #define HAVE_STD_ITERATOR 1
33383 _ACEOF
33385 else
33387 cat >>confdefs.h <<\_ACEOF
33388 #define HAVE_STD_ITERATOR 0
33389 _ACEOF
33393 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33394 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33395 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33396 echo $ECHO_N "(cached) $ECHO_C" >&6
33397 else
33399 ac_ext=cpp
33400 ac_cpp='$CXXCPP $CPPFLAGS'
33401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33405 cat >conftest.$ac_ext <<_ACEOF
33406 /* confdefs.h. */
33407 _ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h. */
33411 #include <iterator>
33412 #ifdef HAVE_NAMESPACES
33413 using namespace std;
33414 #endif
33416 main ()
33418 bidirectional_iterator<int,int> t; return 0;
33420 return 0;
33422 _ACEOF
33423 rm -f conftest.$ac_objext
33424 if { (ac_try="$ac_compile"
33425 case "(($ac_try" in
33426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427 *) ac_try_echo=$ac_try;;
33428 esac
33429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430 (eval "$ac_compile") 2>conftest.er1
33431 ac_status=$?
33432 grep -v '^ *+' conftest.er1 >conftest.err
33433 rm -f conftest.er1
33434 cat conftest.err >&5
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); } &&
33437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33438 { (case "(($ac_try" in
33439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440 *) ac_try_echo=$ac_try;;
33441 esac
33442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33443 (eval "$ac_try") 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; } &&
33447 { ac_try='test -s conftest.$ac_objext'
33448 { (case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33451 esac
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_try") 2>&5
33454 ac_status=$?
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; }; then
33457 ac_cv_cxx_have_bi_iterator=yes
33458 else
33459 echo "$as_me: failed program was:" >&5
33460 sed 's/^/| /' conftest.$ac_ext >&5
33462 ac_cv_cxx_have_bi_iterator=no
33465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33466 ac_ext=c
33467 ac_cpp='$CPP $CPPFLAGS'
33468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33474 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33475 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33476 if test "$ac_cv_cxx_have_bi_iterator" = yes
33477 then
33479 cat >>confdefs.h <<\_ACEOF
33480 #define HAVE_BI_ITERATOR 1
33481 _ACEOF
33483 else
33485 cat >>confdefs.h <<\_ACEOF
33486 #define HAVE_BI_ITERATOR 0
33487 _ACEOF
33491 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33492 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33493 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33494 echo $ECHO_N "(cached) $ECHO_C" >&6
33495 else
33497 ac_ext=cpp
33498 ac_cpp='$CXXCPP $CPPFLAGS'
33499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33503 cat >conftest.$ac_ext <<_ACEOF
33504 /* confdefs.h. */
33505 _ACEOF
33506 cat confdefs.h >>conftest.$ac_ext
33507 cat >>conftest.$ac_ext <<_ACEOF
33508 /* end confdefs.h. */
33509 #include <iterator>
33510 #ifdef HAVE_NAMESPACES
33511 using namespace std;
33512 #endif
33514 main ()
33516 forward_iterator<int,int> t; return 0;
33518 return 0;
33520 _ACEOF
33521 rm -f conftest.$ac_objext
33522 if { (ac_try="$ac_compile"
33523 case "(($ac_try" in
33524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525 *) ac_try_echo=$ac_try;;
33526 esac
33527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528 (eval "$ac_compile") 2>conftest.er1
33529 ac_status=$?
33530 grep -v '^ *+' conftest.er1 >conftest.err
33531 rm -f conftest.er1
33532 cat conftest.err >&5
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); } &&
33535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33536 { (case "(($ac_try" in
33537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538 *) ac_try_echo=$ac_try;;
33539 esac
33540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541 (eval "$ac_try") 2>&5
33542 ac_status=$?
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; } &&
33545 { ac_try='test -s conftest.$ac_objext'
33546 { (case "(($ac_try" in
33547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548 *) ac_try_echo=$ac_try;;
33549 esac
33550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551 (eval "$ac_try") 2>&5
33552 ac_status=$?
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); }; }; then
33555 ac_cv_cxx_have_fwd_iterator=yes
33556 else
33557 echo "$as_me: failed program was:" >&5
33558 sed 's/^/| /' conftest.$ac_ext >&5
33560 ac_cv_cxx_have_fwd_iterator=no
33563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33564 ac_ext=c
33565 ac_cpp='$CPP $CPPFLAGS'
33566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33572 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33573 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33574 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33575 then
33577 cat >>confdefs.h <<\_ACEOF
33578 #define HAVE_FWD_ITERATOR 1
33579 _ACEOF
33581 else
33583 cat >>confdefs.h <<\_ACEOF
33584 #define HAVE_FWD_ITERATOR 0
33585 _ACEOF
33590 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33591 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33592 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33593 echo $ECHO_N "(cached) $ECHO_C" >&6
33594 else
33595 ac_ext=cpp
33596 ac_cpp='$CXXCPP $CPPFLAGS'
33597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33601 cat >conftest.$ac_ext <<_ACEOF
33602 /* confdefs.h. */
33603 _ACEOF
33604 cat confdefs.h >>conftest.$ac_ext
33605 cat >>conftest.$ac_ext <<_ACEOF
33606 /* end confdefs.h. */
33607 #include <math.h>
33609 main ()
33611 float f; isnan(f);
33613 return 0;
33615 _ACEOF
33616 rm -f conftest.$ac_objext
33617 if { (ac_try="$ac_compile"
33618 case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33621 esac
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_compile") 2>conftest.er1
33624 ac_status=$?
33625 grep -v '^ *+' conftest.er1 >conftest.err
33626 rm -f conftest.er1
33627 cat conftest.err >&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); } &&
33630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33631 { (case "(($ac_try" in
33632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633 *) ac_try_echo=$ac_try;;
33634 esac
33635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636 (eval "$ac_try") 2>&5
33637 ac_status=$?
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); }; } &&
33640 { ac_try='test -s conftest.$ac_objext'
33641 { (case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644 esac
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_try") 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
33650 ac_cv_func_isnan_in_math_h=yes
33651 else
33652 echo "$as_me: failed program was:" >&5
33653 sed 's/^/| /' conftest.$ac_ext >&5
33655 ac_cv_func_isnan_in_math_h=no
33658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33659 ac_ext=c
33660 ac_cpp='$CPP $CPPFLAGS'
33661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33666 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33667 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33670 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33672 cat >>confdefs.h <<\_ACEOF
33673 #define HAVE_ISNAN_IN_MATH_H 1
33674 _ACEOF
33678 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33679 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33680 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33681 echo $ECHO_N "(cached) $ECHO_C" >&6
33682 else
33683 ac_ext=cpp
33684 ac_cpp='$CXXCPP $CPPFLAGS'
33685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33689 cat >conftest.$ac_ext <<_ACEOF
33690 /* confdefs.h. */
33691 _ACEOF
33692 cat confdefs.h >>conftest.$ac_ext
33693 cat >>conftest.$ac_ext <<_ACEOF
33694 /* end confdefs.h. */
33695 #include <cmath>
33697 main ()
33699 float f; isnan(f);
33701 return 0;
33703 _ACEOF
33704 rm -f conftest.$ac_objext
33705 if { (ac_try="$ac_compile"
33706 case "(($ac_try" in
33707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33708 *) ac_try_echo=$ac_try;;
33709 esac
33710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33711 (eval "$ac_compile") 2>conftest.er1
33712 ac_status=$?
33713 grep -v '^ *+' conftest.er1 >conftest.err
33714 rm -f conftest.er1
33715 cat conftest.err >&5
33716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717 (exit $ac_status); } &&
33718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33719 { (case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33722 esac
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_try") 2>&5
33725 ac_status=$?
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); }; } &&
33728 { ac_try='test -s conftest.$ac_objext'
33729 { (case "(($ac_try" in
33730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33731 *) ac_try_echo=$ac_try;;
33732 esac
33733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33734 (eval "$ac_try") 2>&5
33735 ac_status=$?
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; }; then
33738 ac_cv_func_isnan_in_cmath=yes
33739 else
33740 echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33743 ac_cv_func_isnan_in_cmath=no
33746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33747 ac_ext=c
33748 ac_cpp='$CPP $CPPFLAGS'
33749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33754 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33755 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33757 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33759 cat >>confdefs.h <<\_ACEOF
33760 #define HAVE_ISNAN_IN_CMATH 1
33761 _ACEOF
33765 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33766 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33767 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33768 echo $ECHO_N "(cached) $ECHO_C" >&6
33769 else
33770 ac_ext=cpp
33771 ac_cpp='$CXXCPP $CPPFLAGS'
33772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33776 cat >conftest.$ac_ext <<_ACEOF
33777 /* confdefs.h. */
33778 _ACEOF
33779 cat confdefs.h >>conftest.$ac_ext
33780 cat >>conftest.$ac_ext <<_ACEOF
33781 /* end confdefs.h. */
33782 #include <cmath>
33784 main ()
33786 float f; std::isnan(f);
33788 return 0;
33790 _ACEOF
33791 rm -f conftest.$ac_objext
33792 if { (ac_try="$ac_compile"
33793 case "(($ac_try" in
33794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795 *) ac_try_echo=$ac_try;;
33796 esac
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798 (eval "$ac_compile") 2>conftest.er1
33799 ac_status=$?
33800 grep -v '^ *+' conftest.er1 >conftest.err
33801 rm -f conftest.er1
33802 cat conftest.err >&5
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); } &&
33805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33806 { (case "(($ac_try" in
33807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33808 *) ac_try_echo=$ac_try;;
33809 esac
33810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33811 (eval "$ac_try") 2>&5
33812 ac_status=$?
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; } &&
33815 { ac_try='test -s conftest.$ac_objext'
33816 { (case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33819 esac
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_try") 2>&5
33822 ac_status=$?
33823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 (exit $ac_status); }; }; then
33825 ac_cv_func_std_isnan_in_cmath=yes
33826 else
33827 echo "$as_me: failed program was:" >&5
33828 sed 's/^/| /' conftest.$ac_ext >&5
33830 ac_cv_func_std_isnan_in_cmath=no
33833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33834 ac_ext=c
33835 ac_cpp='$CPP $CPPFLAGS'
33836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33841 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33842 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33844 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33846 cat >>confdefs.h <<\_ACEOF
33847 #define HAVE_STD_ISNAN_IN_CMATH 1
33848 _ACEOF
33853 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33854 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33855 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33856 echo $ECHO_N "(cached) $ECHO_C" >&6
33857 else
33858 ac_ext=cpp
33859 ac_cpp='$CXXCPP $CPPFLAGS'
33860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33864 cat >conftest.$ac_ext <<_ACEOF
33865 /* confdefs.h. */
33866 _ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h. */
33870 #include <math.h>
33872 main ()
33874 float f; isinf(f);
33876 return 0;
33878 _ACEOF
33879 rm -f conftest.$ac_objext
33880 if { (ac_try="$ac_compile"
33881 case "(($ac_try" in
33882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883 *) ac_try_echo=$ac_try;;
33884 esac
33885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886 (eval "$ac_compile") 2>conftest.er1
33887 ac_status=$?
33888 grep -v '^ *+' conftest.er1 >conftest.err
33889 rm -f conftest.er1
33890 cat conftest.err >&5
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); } &&
33893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33894 { (case "(($ac_try" in
33895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33896 *) ac_try_echo=$ac_try;;
33897 esac
33898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33899 (eval "$ac_try") 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; } &&
33903 { ac_try='test -s conftest.$ac_objext'
33904 { (case "(($ac_try" in
33905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906 *) ac_try_echo=$ac_try;;
33907 esac
33908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909 (eval "$ac_try") 2>&5
33910 ac_status=$?
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); }; }; then
33913 ac_cv_func_isinf_in_math_h=yes
33914 else
33915 echo "$as_me: failed program was:" >&5
33916 sed 's/^/| /' conftest.$ac_ext >&5
33918 ac_cv_func_isinf_in_math_h=no
33921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33922 ac_ext=c
33923 ac_cpp='$CPP $CPPFLAGS'
33924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33929 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33930 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33932 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33934 cat >>confdefs.h <<\_ACEOF
33935 #define HAVE_ISINF_IN_MATH_H 1
33936 _ACEOF
33940 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33941 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33942 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33943 echo $ECHO_N "(cached) $ECHO_C" >&6
33944 else
33945 ac_ext=cpp
33946 ac_cpp='$CXXCPP $CPPFLAGS'
33947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33951 cat >conftest.$ac_ext <<_ACEOF
33952 /* confdefs.h. */
33953 _ACEOF
33954 cat confdefs.h >>conftest.$ac_ext
33955 cat >>conftest.$ac_ext <<_ACEOF
33956 /* end confdefs.h. */
33957 #include <cmath>
33959 main ()
33961 float f; isinf(f);
33963 return 0;
33965 _ACEOF
33966 rm -f conftest.$ac_objext
33967 if { (ac_try="$ac_compile"
33968 case "(($ac_try" in
33969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970 *) ac_try_echo=$ac_try;;
33971 esac
33972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973 (eval "$ac_compile") 2>conftest.er1
33974 ac_status=$?
33975 grep -v '^ *+' conftest.er1 >conftest.err
33976 rm -f conftest.er1
33977 cat conftest.err >&5
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); } &&
33980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33981 { (case "(($ac_try" in
33982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33983 *) ac_try_echo=$ac_try;;
33984 esac
33985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33986 (eval "$ac_try") 2>&5
33987 ac_status=$?
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); }; } &&
33990 { ac_try='test -s conftest.$ac_objext'
33991 { (case "(($ac_try" in
33992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33994 esac
33995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_try") 2>&5
33997 ac_status=$?
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); }; }; then
34000 ac_cv_func_isinf_in_cmath=yes
34001 else
34002 echo "$as_me: failed program was:" >&5
34003 sed 's/^/| /' conftest.$ac_ext >&5
34005 ac_cv_func_isinf_in_cmath=no
34008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34009 ac_ext=c
34010 ac_cpp='$CPP $CPPFLAGS'
34011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34016 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34017 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34019 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34021 cat >>confdefs.h <<\_ACEOF
34022 #define HAVE_ISINF_IN_CMATH 1
34023 _ACEOF
34027 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34028 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34029 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34030 echo $ECHO_N "(cached) $ECHO_C" >&6
34031 else
34032 ac_ext=cpp
34033 ac_cpp='$CXXCPP $CPPFLAGS'
34034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34038 cat >conftest.$ac_ext <<_ACEOF
34039 /* confdefs.h. */
34040 _ACEOF
34041 cat confdefs.h >>conftest.$ac_ext
34042 cat >>conftest.$ac_ext <<_ACEOF
34043 /* end confdefs.h. */
34044 #include <cmath>
34046 main ()
34048 float f; std::isinf(f)}
34050 return 0;
34052 _ACEOF
34053 rm -f conftest.$ac_objext
34054 if { (ac_try="$ac_compile"
34055 case "(($ac_try" in
34056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057 *) ac_try_echo=$ac_try;;
34058 esac
34059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060 (eval "$ac_compile") 2>conftest.er1
34061 ac_status=$?
34062 grep -v '^ *+' conftest.er1 >conftest.err
34063 rm -f conftest.er1
34064 cat conftest.err >&5
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); } &&
34067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34068 { (case "(($ac_try" in
34069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34070 *) ac_try_echo=$ac_try;;
34071 esac
34072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34073 (eval "$ac_try") 2>&5
34074 ac_status=$?
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); }; } &&
34077 { ac_try='test -s conftest.$ac_objext'
34078 { (case "(($ac_try" in
34079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34080 *) ac_try_echo=$ac_try;;
34081 esac
34082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34083 (eval "$ac_try") 2>&5
34084 ac_status=$?
34085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086 (exit $ac_status); }; }; then
34087 ac_cv_func_std_isinf_in_cmath=yes
34088 else
34089 echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34092 ac_cv_func_std_isinf_in_cmath=no
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096 ac_ext=c
34097 ac_cpp='$CPP $CPPFLAGS'
34098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34103 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34104 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34106 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34108 cat >>confdefs.h <<\_ACEOF
34109 #define HAVE_STD_ISINF_IN_CMATH 1
34110 _ACEOF
34114 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34115 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34116 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34118 else
34119 ac_ext=cpp
34120 ac_cpp='$CXXCPP $CPPFLAGS'
34121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34125 cat >conftest.$ac_ext <<_ACEOF
34126 /* confdefs.h. */
34127 _ACEOF
34128 cat confdefs.h >>conftest.$ac_ext
34129 cat >>conftest.$ac_ext <<_ACEOF
34130 /* end confdefs.h. */
34131 #include <ieeefp.h>
34133 main ()
34135 float f; finite(f);
34137 return 0;
34139 _ACEOF
34140 rm -f conftest.$ac_objext
34141 if { (ac_try="$ac_compile"
34142 case "(($ac_try" in
34143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34144 *) ac_try_echo=$ac_try;;
34145 esac
34146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34147 (eval "$ac_compile") 2>conftest.er1
34148 ac_status=$?
34149 grep -v '^ *+' conftest.er1 >conftest.err
34150 rm -f conftest.er1
34151 cat conftest.err >&5
34152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); } &&
34154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34155 { (case "(($ac_try" in
34156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34157 *) ac_try_echo=$ac_try;;
34158 esac
34159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34160 (eval "$ac_try") 2>&5
34161 ac_status=$?
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); }; } &&
34164 { ac_try='test -s conftest.$ac_objext'
34165 { (case "(($ac_try" in
34166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167 *) ac_try_echo=$ac_try;;
34168 esac
34169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170 (eval "$ac_try") 2>&5
34171 ac_status=$?
34172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173 (exit $ac_status); }; }; then
34174 ac_cv_func_finite_in_ieeefp_h=yes
34175 else
34176 echo "$as_me: failed program was:" >&5
34177 sed 's/^/| /' conftest.$ac_ext >&5
34179 ac_cv_func_finite_in_ieeefp_h=no
34182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34183 ac_ext=c
34184 ac_cpp='$CPP $CPPFLAGS'
34185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34190 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34191 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34193 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34195 cat >>confdefs.h <<\_ACEOF
34196 #define HAVE_FINITE_IN_IEEEFP_H 1
34197 _ACEOF
34203 if test "$llvm_cv_platform_type" = "Unix" ; then
34206 for ac_header in stdlib.h unistd.h
34208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34213 echo $ECHO_N "(cached) $ECHO_C" >&6
34215 ac_res=`eval echo '${'$as_ac_Header'}'`
34216 { echo "$as_me:$LINENO: result: $ac_res" >&5
34217 echo "${ECHO_T}$ac_res" >&6; }
34218 else
34219 # Is the header compilable?
34220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34222 cat >conftest.$ac_ext <<_ACEOF
34223 /* confdefs.h. */
34224 _ACEOF
34225 cat confdefs.h >>conftest.$ac_ext
34226 cat >>conftest.$ac_ext <<_ACEOF
34227 /* end confdefs.h. */
34228 $ac_includes_default
34229 #include <$ac_header>
34230 _ACEOF
34231 rm -f conftest.$ac_objext
34232 if { (ac_try="$ac_compile"
34233 case "(($ac_try" in
34234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34235 *) ac_try_echo=$ac_try;;
34236 esac
34237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34238 (eval "$ac_compile") 2>conftest.er1
34239 ac_status=$?
34240 grep -v '^ *+' conftest.er1 >conftest.err
34241 rm -f conftest.er1
34242 cat conftest.err >&5
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); } &&
34245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34246 { (case "(($ac_try" in
34247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34248 *) ac_try_echo=$ac_try;;
34249 esac
34250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251 (eval "$ac_try") 2>&5
34252 ac_status=$?
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); }; } &&
34255 { ac_try='test -s conftest.$ac_objext'
34256 { (case "(($ac_try" in
34257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34258 *) ac_try_echo=$ac_try;;
34259 esac
34260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34261 (eval "$ac_try") 2>&5
34262 ac_status=$?
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); }; }; then
34265 ac_header_compiler=yes
34266 else
34267 echo "$as_me: failed program was:" >&5
34268 sed 's/^/| /' conftest.$ac_ext >&5
34270 ac_header_compiler=no
34273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34275 echo "${ECHO_T}$ac_header_compiler" >&6; }
34277 # Is the header present?
34278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34280 cat >conftest.$ac_ext <<_ACEOF
34281 /* confdefs.h. */
34282 _ACEOF
34283 cat confdefs.h >>conftest.$ac_ext
34284 cat >>conftest.$ac_ext <<_ACEOF
34285 /* end confdefs.h. */
34286 #include <$ac_header>
34287 _ACEOF
34288 if { (ac_try="$ac_cpp conftest.$ac_ext"
34289 case "(($ac_try" in
34290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34291 *) ac_try_echo=$ac_try;;
34292 esac
34293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34295 ac_status=$?
34296 grep -v '^ *+' conftest.er1 >conftest.err
34297 rm -f conftest.er1
34298 cat conftest.err >&5
34299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300 (exit $ac_status); } >/dev/null; then
34301 if test -s conftest.err; then
34302 ac_cpp_err=$ac_c_preproc_warn_flag
34303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34304 else
34305 ac_cpp_err=
34307 else
34308 ac_cpp_err=yes
34310 if test -z "$ac_cpp_err"; then
34311 ac_header_preproc=yes
34312 else
34313 echo "$as_me: failed program was:" >&5
34314 sed 's/^/| /' conftest.$ac_ext >&5
34316 ac_header_preproc=no
34319 rm -f conftest.err conftest.$ac_ext
34320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34321 echo "${ECHO_T}$ac_header_preproc" >&6; }
34323 # So? What about this header?
34324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34325 yes:no: )
34326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34330 ac_header_preproc=yes
34332 no:yes:* )
34333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34345 ( cat <<\_ASBOX
34346 ## ----------------------------------- ##
34347 ## Report this to llvmbugs@cs.uiuc.edu ##
34348 ## ----------------------------------- ##
34349 _ASBOX
34350 ) | sed "s/^/$as_me: WARNING: /" >&2
34352 esac
34353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34356 echo $ECHO_N "(cached) $ECHO_C" >&6
34357 else
34358 eval "$as_ac_Header=\$ac_header_preproc"
34360 ac_res=`eval echo '${'$as_ac_Header'}'`
34361 { echo "$as_me:$LINENO: result: $ac_res" >&5
34362 echo "${ECHO_T}$ac_res" >&6; }
34365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34366 cat >>confdefs.h <<_ACEOF
34367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34368 _ACEOF
34372 done
34375 for ac_func in getpagesize
34377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34381 echo $ECHO_N "(cached) $ECHO_C" >&6
34382 else
34383 cat >conftest.$ac_ext <<_ACEOF
34384 /* confdefs.h. */
34385 _ACEOF
34386 cat confdefs.h >>conftest.$ac_ext
34387 cat >>conftest.$ac_ext <<_ACEOF
34388 /* end confdefs.h. */
34389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34391 #define $ac_func innocuous_$ac_func
34393 /* System header to define __stub macros and hopefully few prototypes,
34394 which can conflict with char $ac_func (); below.
34395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34396 <limits.h> exists even on freestanding compilers. */
34398 #ifdef __STDC__
34399 # include <limits.h>
34400 #else
34401 # include <assert.h>
34402 #endif
34404 #undef $ac_func
34406 /* Override any GCC internal prototype to avoid an error.
34407 Use char because int might match the return type of a GCC
34408 builtin and then its argument prototype would still apply. */
34409 #ifdef __cplusplus
34410 extern "C"
34411 #endif
34412 char $ac_func ();
34413 /* The GNU C library defines this for functions which it implements
34414 to always fail with ENOSYS. Some functions are actually named
34415 something starting with __ and the normal name is an alias. */
34416 #if defined __stub_$ac_func || defined __stub___$ac_func
34417 choke me
34418 #endif
34421 main ()
34423 return $ac_func ();
34425 return 0;
34427 _ACEOF
34428 rm -f conftest.$ac_objext conftest$ac_exeext
34429 if { (ac_try="$ac_link"
34430 case "(($ac_try" in
34431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34432 *) ac_try_echo=$ac_try;;
34433 esac
34434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34435 (eval "$ac_link") 2>conftest.er1
34436 ac_status=$?
34437 grep -v '^ *+' conftest.er1 >conftest.err
34438 rm -f conftest.er1
34439 cat conftest.err >&5
34440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441 (exit $ac_status); } &&
34442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34443 { (case "(($ac_try" in
34444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34445 *) ac_try_echo=$ac_try;;
34446 esac
34447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34448 (eval "$ac_try") 2>&5
34449 ac_status=$?
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; } &&
34452 { ac_try='test -s conftest$ac_exeext'
34453 { (case "(($ac_try" in
34454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455 *) ac_try_echo=$ac_try;;
34456 esac
34457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_try") 2>&5
34459 ac_status=$?
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); }; }; then
34462 eval "$as_ac_var=yes"
34463 else
34464 echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34467 eval "$as_ac_var=no"
34470 rm -f core conftest.err conftest.$ac_objext \
34471 conftest$ac_exeext conftest.$ac_ext
34473 ac_res=`eval echo '${'$as_ac_var'}'`
34474 { echo "$as_me:$LINENO: result: $ac_res" >&5
34475 echo "${ECHO_T}$ac_res" >&6; }
34476 if test `eval echo '${'$as_ac_var'}'` = yes; then
34477 cat >>confdefs.h <<_ACEOF
34478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34479 _ACEOF
34482 done
34484 { echo "$as_me:$LINENO: checking for working mmap" >&5
34485 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34486 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34487 echo $ECHO_N "(cached) $ECHO_C" >&6
34488 else
34489 if test "$cross_compiling" = yes; then
34490 ac_cv_func_mmap_fixed_mapped=no
34491 else
34492 cat >conftest.$ac_ext <<_ACEOF
34493 /* confdefs.h. */
34494 _ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h. */
34498 $ac_includes_default
34499 /* malloc might have been renamed as rpl_malloc. */
34500 #undef malloc
34502 /* Thanks to Mike Haertel and Jim Avera for this test.
34503 Here is a matrix of mmap possibilities:
34504 mmap private not fixed
34505 mmap private fixed at somewhere currently unmapped
34506 mmap private fixed at somewhere already mapped
34507 mmap shared not fixed
34508 mmap shared fixed at somewhere currently unmapped
34509 mmap shared fixed at somewhere already mapped
34510 For private mappings, we should verify that changes cannot be read()
34511 back from the file, nor mmap's back from the file at a different
34512 address. (There have been systems where private was not correctly
34513 implemented like the infamous i386 svr4.0, and systems where the
34514 VM page cache was not coherent with the file system buffer cache
34515 like early versions of FreeBSD and possibly contemporary NetBSD.)
34516 For shared mappings, we should conversely verify that changes get
34517 propagated back to all the places they're supposed to be.
34519 Grep wants private fixed already mapped.
34520 The main things grep needs to know about mmap are:
34521 * does it exist and is it safe to write into the mmap'd area
34522 * how to use it (BSD variants) */
34524 #include <fcntl.h>
34525 #include <sys/mman.h>
34527 #if !STDC_HEADERS && !HAVE_STDLIB_H
34528 char *malloc ();
34529 #endif
34531 /* This mess was copied from the GNU getpagesize.h. */
34532 #if !HAVE_GETPAGESIZE
34533 /* Assume that all systems that can run configure have sys/param.h. */
34534 # if !HAVE_SYS_PARAM_H
34535 # define HAVE_SYS_PARAM_H 1
34536 # endif
34538 # ifdef _SC_PAGESIZE
34539 # define getpagesize() sysconf(_SC_PAGESIZE)
34540 # else /* no _SC_PAGESIZE */
34541 # if HAVE_SYS_PARAM_H
34542 # include <sys/param.h>
34543 # ifdef EXEC_PAGESIZE
34544 # define getpagesize() EXEC_PAGESIZE
34545 # else /* no EXEC_PAGESIZE */
34546 # ifdef NBPG
34547 # define getpagesize() NBPG * CLSIZE
34548 # ifndef CLSIZE
34549 # define CLSIZE 1
34550 # endif /* no CLSIZE */
34551 # else /* no NBPG */
34552 # ifdef NBPC
34553 # define getpagesize() NBPC
34554 # else /* no NBPC */
34555 # ifdef PAGESIZE
34556 # define getpagesize() PAGESIZE
34557 # endif /* PAGESIZE */
34558 # endif /* no NBPC */
34559 # endif /* no NBPG */
34560 # endif /* no EXEC_PAGESIZE */
34561 # else /* no HAVE_SYS_PARAM_H */
34562 # define getpagesize() 8192 /* punt totally */
34563 # endif /* no HAVE_SYS_PARAM_H */
34564 # endif /* no _SC_PAGESIZE */
34566 #endif /* no HAVE_GETPAGESIZE */
34569 main ()
34571 char *data, *data2, *data3;
34572 int i, pagesize;
34573 int fd;
34575 pagesize = getpagesize ();
34577 /* First, make a file with some known garbage in it. */
34578 data = (char *) malloc (pagesize);
34579 if (!data)
34580 return 1;
34581 for (i = 0; i < pagesize; ++i)
34582 *(data + i) = rand ();
34583 umask (0);
34584 fd = creat ("conftest.mmap", 0600);
34585 if (fd < 0)
34586 return 1;
34587 if (write (fd, data, pagesize) != pagesize)
34588 return 1;
34589 close (fd);
34591 /* Next, try to mmap the file at a fixed address which already has
34592 something else allocated at it. If we can, also make sure that
34593 we see the same garbage. */
34594 fd = open ("conftest.mmap", O_RDWR);
34595 if (fd < 0)
34596 return 1;
34597 data2 = (char *) malloc (2 * pagesize);
34598 if (!data2)
34599 return 1;
34600 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34603 return 1;
34604 for (i = 0; i < pagesize; ++i)
34605 if (*(data + i) != *(data2 + i))
34606 return 1;
34608 /* Finally, make sure that changes to the mapped area do not
34609 percolate back to the file as seen by read(). (This is a bug on
34610 some variants of i386 svr4.0.) */
34611 for (i = 0; i < pagesize; ++i)
34612 *(data2 + i) = *(data2 + i) + 1;
34613 data3 = (char *) malloc (pagesize);
34614 if (!data3)
34615 return 1;
34616 if (read (fd, data3, pagesize) != pagesize)
34617 return 1;
34618 for (i = 0; i < pagesize; ++i)
34619 if (*(data + i) != *(data3 + i))
34620 return 1;
34621 close (fd);
34622 return 0;
34624 _ACEOF
34625 rm -f conftest$ac_exeext
34626 if { (ac_try="$ac_link"
34627 case "(($ac_try" in
34628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629 *) ac_try_echo=$ac_try;;
34630 esac
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632 (eval "$ac_link") 2>&5
34633 ac_status=$?
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34636 { (case "(($ac_try" in
34637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34638 *) ac_try_echo=$ac_try;;
34639 esac
34640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34641 (eval "$ac_try") 2>&5
34642 ac_status=$?
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); }; }; then
34645 ac_cv_func_mmap_fixed_mapped=yes
34646 else
34647 echo "$as_me: program exited with status $ac_status" >&5
34648 echo "$as_me: failed program was:" >&5
34649 sed 's/^/| /' conftest.$ac_ext >&5
34651 ( exit $ac_status )
34652 ac_cv_func_mmap_fixed_mapped=no
34654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34659 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34660 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34661 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34663 cat >>confdefs.h <<\_ACEOF
34664 #define HAVE_MMAP 1
34665 _ACEOF
34668 rm -f conftest.mmap
34670 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34671 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34672 if test "${ac_cv_func_mmap_file+set}" = set; then
34673 echo $ECHO_N "(cached) $ECHO_C" >&6
34674 else
34675 ac_ext=c
34676 ac_cpp='$CPP $CPPFLAGS'
34677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34681 if test "$cross_compiling" = yes; then
34682 ac_cv_func_mmap_file=no
34683 else
34684 cat >conftest.$ac_ext <<_ACEOF
34686 /* confdefs.h. */
34687 _ACEOF
34688 cat confdefs.h >>conftest.$ac_ext
34689 cat >>conftest.$ac_ext <<_ACEOF
34690 /* end confdefs.h. */
34692 #include <sys/types.h>
34693 #include <sys/mman.h>
34694 #include <fcntl.h>
34697 main ()
34700 int fd;
34701 fd = creat ("foo",0777);
34702 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34703 unlink ("foo");
34704 return (fd != (int) MAP_FAILED);
34706 return 0;
34708 _ACEOF
34709 rm -f conftest$ac_exeext
34710 if { (ac_try="$ac_link"
34711 case "(($ac_try" in
34712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34713 *) ac_try_echo=$ac_try;;
34714 esac
34715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34716 (eval "$ac_link") 2>&5
34717 ac_status=$?
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34720 { (case "(($ac_try" in
34721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34722 *) ac_try_echo=$ac_try;;
34723 esac
34724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34725 (eval "$ac_try") 2>&5
34726 ac_status=$?
34727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); }; }; then
34729 ac_cv_func_mmap_file=yes
34730 else
34731 echo "$as_me: program exited with status $ac_status" >&5
34732 echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34735 ( exit $ac_status )
34736 ac_cv_func_mmap_file=no
34738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34742 ac_ext=c
34743 ac_cpp='$CPP $CPPFLAGS'
34744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34750 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34751 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34752 if test "$ac_cv_func_mmap_file" = yes; then
34754 cat >>confdefs.h <<\_ACEOF
34755 #define HAVE_MMAP_FILE
34756 _ACEOF
34758 MMAP_FILE=yes
34762 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34763 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34764 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34765 echo $ECHO_N "(cached) $ECHO_C" >&6
34766 else
34767 if test "$llvm_cv_os_type" = "Interix" ; then
34768 ac_cv_need_dev_zero_for_mmap=yes
34769 else
34770 ac_cv_need_dev_zero_for_mmap=no
34774 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34775 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34776 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34778 cat >>confdefs.h <<\_ACEOF
34779 #define NEED_DEV_ZERO_FOR_MMAP 1
34780 _ACEOF
34784 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34785 then
34786 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34787 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34789 if test "$ac_cv_func_mmap_file" = "no"
34790 then
34791 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34792 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34796 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34797 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34798 cat >conftest.$ac_ext <<_ACEOF
34799 /* confdefs.h. */
34800 _ACEOF
34801 cat confdefs.h >>conftest.$ac_ext
34802 cat >>conftest.$ac_ext <<_ACEOF
34803 /* end confdefs.h. */
34804 int main() {
34805 volatile unsigned long val = 1;
34806 __sync_synchronize();
34807 __sync_val_compare_and_swap(&val, 1, 0);
34808 __sync_add_and_fetch(&val, 1);
34809 __sync_sub_and_fetch(&val, 1);
34810 return 0;
34813 _ACEOF
34814 rm -f conftest.$ac_objext conftest$ac_exeext
34815 if { (ac_try="$ac_link"
34816 case "(($ac_try" in
34817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34818 *) ac_try_echo=$ac_try;;
34819 esac
34820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34821 (eval "$ac_link") 2>conftest.er1
34822 ac_status=$?
34823 grep -v '^ *+' conftest.er1 >conftest.err
34824 rm -f conftest.er1
34825 cat conftest.err >&5
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); } &&
34828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34829 { (case "(($ac_try" in
34830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34831 *) ac_try_echo=$ac_try;;
34832 esac
34833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34834 (eval "$ac_try") 2>&5
34835 ac_status=$?
34836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837 (exit $ac_status); }; } &&
34838 { ac_try='test -s conftest$ac_exeext'
34839 { (case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34842 esac
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_try") 2>&5
34845 ac_status=$?
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); }; }; then
34848 { echo "$as_me:$LINENO: result: yes" >&5
34849 echo "${ECHO_T}yes" >&6; }
34851 cat >>confdefs.h <<\_ACEOF
34852 #define LLVM_MULTITHREADED 1
34853 _ACEOF
34855 else
34856 echo "$as_me: failed program was:" >&5
34857 sed 's/^/| /' conftest.$ac_ext >&5
34859 { echo "$as_me:$LINENO: result: no" >&5
34860 echo "${ECHO_T}no" >&6; }
34862 cat >>confdefs.h <<\_ACEOF
34863 #define LLVM_MULTITHREADED 0
34864 _ACEOF
34866 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34867 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34870 rm -f core conftest.err conftest.$ac_objext \
34871 conftest$ac_exeext conftest.$ac_ext
34875 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34876 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34877 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34878 if test "${llvm_cv_linux_mixed+set}" = set; then
34879 echo $ECHO_N "(cached) $ECHO_C" >&6
34880 else
34881 ac_ext=c
34882 ac_cpp='$CPP $CPPFLAGS'
34883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34887 cat >conftest.$ac_ext <<_ACEOF
34888 /* confdefs.h. */
34889 _ACEOF
34890 cat confdefs.h >>conftest.$ac_ext
34891 cat >>conftest.$ac_ext <<_ACEOF
34892 /* end confdefs.h. */
34893 #ifndef __x86_64__
34894 error: Not x86-64 even if uname says so!
34895 #endif
34898 main ()
34902 return 0;
34904 _ACEOF
34905 rm -f conftest.$ac_objext
34906 if { (ac_try="$ac_compile"
34907 case "(($ac_try" in
34908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34909 *) ac_try_echo=$ac_try;;
34910 esac
34911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34912 (eval "$ac_compile") 2>conftest.er1
34913 ac_status=$?
34914 grep -v '^ *+' conftest.er1 >conftest.err
34915 rm -f conftest.er1
34916 cat conftest.err >&5
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); } &&
34919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34920 { (case "(($ac_try" in
34921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34922 *) ac_try_echo=$ac_try;;
34923 esac
34924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34925 (eval "$ac_try") 2>&5
34926 ac_status=$?
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); }; } &&
34929 { ac_try='test -s conftest.$ac_objext'
34930 { (case "(($ac_try" in
34931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34932 *) ac_try_echo=$ac_try;;
34933 esac
34934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34935 (eval "$ac_try") 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; }; then
34939 llvm_cv_linux_mixed=no
34940 else
34941 echo "$as_me: failed program was:" >&5
34942 sed 's/^/| /' conftest.$ac_ext >&5
34944 llvm_cv_linux_mixed=yes
34947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34948 ac_ext=c
34949 ac_cpp='$CPP $CPPFLAGS'
34950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34956 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34957 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34959 if test "$llvm_cv_linux_mixed" = "yes"; then
34960 llvm_cv_target_arch="x86"
34961 ARCH="x86"
34966 for ac_func in __dso_handle
34968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34973 else
34974 cat >conftest.$ac_ext <<_ACEOF
34975 /* confdefs.h. */
34976 _ACEOF
34977 cat confdefs.h >>conftest.$ac_ext
34978 cat >>conftest.$ac_ext <<_ACEOF
34979 /* end confdefs.h. */
34980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34982 #define $ac_func innocuous_$ac_func
34984 /* System header to define __stub macros and hopefully few prototypes,
34985 which can conflict with char $ac_func (); below.
34986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34987 <limits.h> exists even on freestanding compilers. */
34989 #ifdef __STDC__
34990 # include <limits.h>
34991 #else
34992 # include <assert.h>
34993 #endif
34995 #undef $ac_func
34997 /* Override any GCC internal prototype to avoid an error.
34998 Use char because int might match the return type of a GCC
34999 builtin and then its argument prototype would still apply. */
35000 #ifdef __cplusplus
35001 extern "C"
35002 #endif
35003 char $ac_func ();
35004 /* The GNU C library defines this for functions which it implements
35005 to always fail with ENOSYS. Some functions are actually named
35006 something starting with __ and the normal name is an alias. */
35007 #if defined __stub_$ac_func || defined __stub___$ac_func
35008 choke me
35009 #endif
35012 main ()
35014 return $ac_func ();
35016 return 0;
35018 _ACEOF
35019 rm -f conftest.$ac_objext conftest$ac_exeext
35020 if { (ac_try="$ac_link"
35021 case "(($ac_try" in
35022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023 *) ac_try_echo=$ac_try;;
35024 esac
35025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35026 (eval "$ac_link") 2>conftest.er1
35027 ac_status=$?
35028 grep -v '^ *+' conftest.er1 >conftest.err
35029 rm -f conftest.er1
35030 cat conftest.err >&5
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); } &&
35033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35034 { (case "(($ac_try" in
35035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35036 *) ac_try_echo=$ac_try;;
35037 esac
35038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35039 (eval "$ac_try") 2>&5
35040 ac_status=$?
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); }; } &&
35043 { ac_try='test -s conftest$ac_exeext'
35044 { (case "(($ac_try" in
35045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35046 *) ac_try_echo=$ac_try;;
35047 esac
35048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35049 (eval "$ac_try") 2>&5
35050 ac_status=$?
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); }; }; then
35053 eval "$as_ac_var=yes"
35054 else
35055 echo "$as_me: failed program was:" >&5
35056 sed 's/^/| /' conftest.$ac_ext >&5
35058 eval "$as_ac_var=no"
35061 rm -f core conftest.err conftest.$ac_objext \
35062 conftest$ac_exeext conftest.$ac_ext
35064 ac_res=`eval echo '${'$as_ac_var'}'`
35065 { echo "$as_me:$LINENO: result: $ac_res" >&5
35066 echo "${ECHO_T}$ac_res" >&6; }
35067 if test `eval echo '${'$as_ac_var'}'` = yes; then
35068 cat >>confdefs.h <<_ACEOF
35069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35070 _ACEOF
35073 done
35076 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35077 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35078 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35079 echo $ECHO_N "(cached) $ECHO_C" >&6
35080 else
35081 llvm_cv_llvmgcc_sanity="no"
35082 if test -x "$LLVMGCC" ; then
35083 cp /dev/null conftest.c
35084 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35085 grep 'target datalayout =' > /dev/null 2>&1
35086 if test $? -eq 0 ; then
35087 llvm_cv_llvmgcc_sanity="yes"
35089 rm conftest.c
35092 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35093 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35095 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35096 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35097 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35098 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35099 LLVMCC1=$llvmcc1path
35101 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35102 LLVMCC1PLUS=$llvmcc1pluspath
35104 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35105 LLVMGCCDIR=$llvmgccdir
35107 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35108 LLVMGCCLIBEXEC=$llvmgcclibexec
35110 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35111 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35112 LLVMGCC_VERSION=$llvmgccversion
35114 LLVMGCC_MAJVERS=$llvmgccmajvers
35116 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35117 LLVMGCC_LANGS=$llvmgcclangs
35119 { echo "$as_me:$LINENO: result: ok" >&5
35120 echo "${ECHO_T}ok" >&6; }
35123 SHLIBEXT=$libltdl_cv_shlibext
35126 # Translate the various configuration directories and other basic
35127 # information into substitutions that will end up in Makefile.config.in
35128 # that these configured values can be used by the makefiles
35129 if test "${prefix}" = "NONE" ; then
35130 prefix="/usr/local"
35132 eval LLVM_PREFIX="${prefix}";
35133 eval LLVM_BINDIR="${prefix}/bin";
35134 eval LLVM_LIBDIR="${prefix}/lib";
35135 eval LLVM_DATADIR="${prefix}/share/llvm";
35136 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35137 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35138 eval LLVM_INCLUDEDIR="${prefix}/include";
35139 eval LLVM_INFODIR="${prefix}/info";
35140 eval LLVM_MANDIR="${prefix}/man";
35141 LLVM_CONFIGTIME=`date`
35153 # Place the various directores into the config.h file as #defines so that we
35154 # can know about the installation paths within LLVM.
35156 cat >>confdefs.h <<_ACEOF
35157 #define LLVM_PREFIX "$LLVM_PREFIX"
35158 _ACEOF
35161 cat >>confdefs.h <<_ACEOF
35162 #define LLVM_BINDIR "$LLVM_BINDIR"
35163 _ACEOF
35166 cat >>confdefs.h <<_ACEOF
35167 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35168 _ACEOF
35171 cat >>confdefs.h <<_ACEOF
35172 #define LLVM_DATADIR "$LLVM_DATADIR"
35173 _ACEOF
35176 cat >>confdefs.h <<_ACEOF
35177 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35178 _ACEOF
35181 cat >>confdefs.h <<_ACEOF
35182 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35183 _ACEOF
35186 cat >>confdefs.h <<_ACEOF
35187 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35188 _ACEOF
35191 cat >>confdefs.h <<_ACEOF
35192 #define LLVM_INFODIR "$LLVM_INFODIR"
35193 _ACEOF
35196 cat >>confdefs.h <<_ACEOF
35197 #define LLVM_MANDIR "$LLVM_MANDIR"
35198 _ACEOF
35201 cat >>confdefs.h <<_ACEOF
35202 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35203 _ACEOF
35206 cat >>confdefs.h <<_ACEOF
35207 #define LLVM_HOSTTRIPLE "$host"
35208 _ACEOF
35211 # Determine which bindings to build.
35212 if test "$BINDINGS_TO_BUILD" = auto ; then
35213 BINDINGS_TO_BUILD=""
35214 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35215 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35218 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35221 # This isn't really configurey, but it avoids having to repeat the list in
35222 # other files.
35223 ALL_BINDINGS=ocaml
35226 # Do any work necessary to ensure that bindings have what they need.
35227 binding_prereqs_failed=0
35228 for a_binding in $BINDINGS_TO_BUILD ; do
35229 case "$a_binding" in
35230 ocaml)
35231 if test "x$OCAMLC" = x ; then
35232 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35233 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35234 binding_prereqs_failed=1
35236 if test "x$OCAMLDEP" = x ; then
35237 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35238 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35239 binding_prereqs_failed=1
35241 if test "x$OCAMLOPT" = x ; then
35242 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35243 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35245 if test "x$with_ocaml_libdir" != xauto ; then
35246 OCAML_LIBDIR=$with_ocaml_libdir
35248 else
35249 ocaml_stdlib="`"$OCAMLC" -where`"
35250 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35251 then
35252 # ocaml stdlib is beneath our prefix; use stdlib
35253 OCAML_LIBDIR=$ocaml_stdlib
35255 else
35256 # ocaml stdlib is outside our prefix; use libdir/ocaml
35257 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35262 esac
35263 done
35264 if test "$binding_prereqs_failed" = 1 ; then
35265 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35266 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35267 { (exit 1); exit 1; }; }
35270 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35271 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35272 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35273 echo $ECHO_N "(cached) $ECHO_C" >&6
35274 else
35275 ac_ext=cpp
35276 ac_cpp='$CXXCPP $CPPFLAGS'
35277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35281 oldcxxflags="$CXXFLAGS"
35282 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35283 cat >conftest.$ac_ext <<_ACEOF
35284 /* confdefs.h. */
35285 _ACEOF
35286 cat confdefs.h >>conftest.$ac_ext
35287 cat >>conftest.$ac_ext <<_ACEOF
35288 /* end confdefs.h. */
35291 main ()
35295 return 0;
35297 _ACEOF
35298 rm -f conftest.$ac_objext
35299 if { (ac_try="$ac_compile"
35300 case "(($ac_try" in
35301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35302 *) ac_try_echo=$ac_try;;
35303 esac
35304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35305 (eval "$ac_compile") 2>conftest.er1
35306 ac_status=$?
35307 grep -v '^ *+' conftest.er1 >conftest.err
35308 rm -f conftest.er1
35309 cat conftest.err >&5
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); } &&
35312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35313 { (case "(($ac_try" in
35314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35315 *) ac_try_echo=$ac_try;;
35316 esac
35317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35318 (eval "$ac_try") 2>&5
35319 ac_status=$?
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; } &&
35322 { ac_try='test -s conftest.$ac_objext'
35323 { (case "(($ac_try" in
35324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35325 *) ac_try_echo=$ac_try;;
35326 esac
35327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35328 (eval "$ac_try") 2>&5
35329 ac_status=$?
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); }; }; then
35332 llvm_cv_cxx_visibility_inlines_hidden=yes
35333 else
35334 echo "$as_me: failed program was:" >&5
35335 sed 's/^/| /' conftest.$ac_ext >&5
35337 llvm_cv_cxx_visibility_inlines_hidden=no
35340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35341 CXXFLAGS="$oldcxxflags"
35342 ac_ext=c
35343 ac_cpp='$CPP $CPPFLAGS'
35344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35350 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35351 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35352 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35353 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35355 else
35356 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35361 if test "$llvm_cv_link_use_r" = "yes" ; then
35362 RPATH="-Wl,-R"
35363 else
35364 RPATH="-Wl,-rpath"
35368 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35369 RDYNAMIC="-Wl,-export-dynamic"
35370 else
35371 RDYNAMIC=""
35376 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35378 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35380 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35382 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35384 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
35386 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
35389 ac_config_files="$ac_config_files Makefile.config"
35392 ac_config_files="$ac_config_files llvm.spec"
35395 ac_config_files="$ac_config_files docs/doxygen.cfg"
35398 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35401 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35404 ac_config_commands="$ac_config_commands setup"
35406 ac_config_commands="$ac_config_commands Makefile"
35409 ac_config_commands="$ac_config_commands Makefile.common"
35412 ac_config_commands="$ac_config_commands examples/Makefile"
35415 ac_config_commands="$ac_config_commands lib/Makefile"
35418 ac_config_commands="$ac_config_commands runtime/Makefile"
35421 ac_config_commands="$ac_config_commands test/Makefile"
35424 ac_config_commands="$ac_config_commands test/Makefile.tests"
35427 ac_config_commands="$ac_config_commands unittests/Makefile"
35430 ac_config_commands="$ac_config_commands tools/Makefile"
35433 ac_config_commands="$ac_config_commands utils/Makefile"
35436 ac_config_commands="$ac_config_commands projects/Makefile"
35439 ac_config_commands="$ac_config_commands bindings/Makefile"
35442 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35446 cat >confcache <<\_ACEOF
35447 # This file is a shell script that caches the results of configure
35448 # tests run on this system so they can be shared between configure
35449 # scripts and configure runs, see configure's option --config-cache.
35450 # It is not useful on other systems. If it contains results you don't
35451 # want to keep, you may remove or edit it.
35453 # config.status only pays attention to the cache file if you give it
35454 # the --recheck option to rerun configure.
35456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35458 # following values.
35460 _ACEOF
35462 # The following way of writing the cache mishandles newlines in values,
35463 # but we know of no workaround that is simple, portable, and efficient.
35464 # So, we kill variables containing newlines.
35465 # Ultrix sh set writes to stderr and can't be redirected directly,
35466 # and sets the high bit in the cache file unless we assign to the vars.
35468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35469 eval ac_val=\$$ac_var
35470 case $ac_val in #(
35471 *${as_nl}*)
35472 case $ac_var in #(
35473 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35474 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35475 esac
35476 case $ac_var in #(
35477 _ | IFS | as_nl) ;; #(
35478 *) $as_unset $ac_var ;;
35479 esac ;;
35480 esac
35481 done
35483 (set) 2>&1 |
35484 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35485 *${as_nl}ac_space=\ *)
35486 # `set' does not quote correctly, so add quotes (double-quote
35487 # substitution turns \\\\ into \\, and sed turns \\ into \).
35488 sed -n \
35489 "s/'/'\\\\''/g;
35490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35491 ;; #(
35493 # `set' quotes correctly as required by POSIX, so do not add quotes.
35494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35496 esac |
35497 sort
35499 sed '
35500 /^ac_cv_env_/b end
35501 t clear
35502 :clear
35503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35504 t end
35505 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35506 :end' >>confcache
35507 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35508 if test -w "$cache_file"; then
35509 test "x$cache_file" != "x/dev/null" &&
35510 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35511 echo "$as_me: updating cache $cache_file" >&6;}
35512 cat confcache >$cache_file
35513 else
35514 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35515 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35518 rm -f confcache
35520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35521 # Let make expand exec_prefix.
35522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35524 DEFS=-DHAVE_CONFIG_H
35526 ac_libobjs=
35527 ac_ltlibobjs=
35528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35529 # 1. Remove the extension, and $U if already installed.
35530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35531 ac_i=`echo "$ac_i" | sed "$ac_script"`
35532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35533 # will be set to the directory where LIBOBJS objects are built.
35534 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35535 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35536 done
35537 LIBOBJS=$ac_libobjs
35539 LTLIBOBJS=$ac_ltlibobjs
35542 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35543 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35544 Usually this means the macro was only invoked conditionally." >&5
35545 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35546 Usually this means the macro was only invoked conditionally." >&2;}
35547 { (exit 1); exit 1; }; }
35549 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35550 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35551 Usually this means the macro was only invoked conditionally." >&5
35552 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35553 Usually this means the macro was only invoked conditionally." >&2;}
35554 { (exit 1); exit 1; }; }
35557 : ${CONFIG_STATUS=./config.status}
35558 ac_clean_files_save=$ac_clean_files
35559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35560 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35562 cat >$CONFIG_STATUS <<_ACEOF
35563 #! $SHELL
35564 # Generated by $as_me.
35565 # Run this file to recreate the current configuration.
35566 # Compiler output produced by configure, useful for debugging
35567 # configure, is in config.log if it exists.
35569 debug=false
35570 ac_cs_recheck=false
35571 ac_cs_silent=false
35572 SHELL=\${CONFIG_SHELL-$SHELL}
35573 _ACEOF
35575 cat >>$CONFIG_STATUS <<\_ACEOF
35576 ## --------------------- ##
35577 ## M4sh Initialization. ##
35578 ## --------------------- ##
35580 # Be Bourne compatible
35581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35582 emulate sh
35583 NULLCMD=:
35584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35585 # is contrary to our usage. Disable this feature.
35586 alias -g '${1+"$@"}'='"$@"'
35587 setopt NO_GLOB_SUBST
35588 else
35589 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35591 BIN_SH=xpg4; export BIN_SH # for Tru64
35592 DUALCASE=1; export DUALCASE # for MKS sh
35595 # PATH needs CR
35596 # Avoid depending upon Character Ranges.
35597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35600 as_cr_digits='0123456789'
35601 as_cr_alnum=$as_cr_Letters$as_cr_digits
35603 # The user is always right.
35604 if test "${PATH_SEPARATOR+set}" != set; then
35605 echo "#! /bin/sh" >conf$$.sh
35606 echo "exit 0" >>conf$$.sh
35607 chmod +x conf$$.sh
35608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35609 PATH_SEPARATOR=';'
35610 else
35611 PATH_SEPARATOR=:
35613 rm -f conf$$.sh
35616 # Support unset when possible.
35617 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35618 as_unset=unset
35619 else
35620 as_unset=false
35624 # IFS
35625 # We need space, tab and new line, in precisely that order. Quoting is
35626 # there to prevent editors from complaining about space-tab.
35627 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35628 # splitting by setting IFS to empty value.)
35629 as_nl='
35631 IFS=" "" $as_nl"
35633 # Find who we are. Look in the path if we contain no directory separator.
35634 case $0 in
35635 *[\\/]* ) as_myself=$0 ;;
35636 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35637 for as_dir in $PATH
35639 IFS=$as_save_IFS
35640 test -z "$as_dir" && as_dir=.
35641 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35642 done
35643 IFS=$as_save_IFS
35646 esac
35647 # We did not find ourselves, most probably we were run as `sh COMMAND'
35648 # in which case we are not to be found in the path.
35649 if test "x$as_myself" = x; then
35650 as_myself=$0
35652 if test ! -f "$as_myself"; then
35653 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35654 { (exit 1); exit 1; }
35657 # Work around bugs in pre-3.0 UWIN ksh.
35658 for as_var in ENV MAIL MAILPATH
35659 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35660 done
35661 PS1='$ '
35662 PS2='> '
35663 PS4='+ '
35665 # NLS nuisances.
35666 for as_var in \
35667 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35668 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35669 LC_TELEPHONE LC_TIME
35671 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35672 eval $as_var=C; export $as_var
35673 else
35674 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35676 done
35678 # Required to use basename.
35679 if expr a : '\(a\)' >/dev/null 2>&1 &&
35680 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35681 as_expr=expr
35682 else
35683 as_expr=false
35686 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35687 as_basename=basename
35688 else
35689 as_basename=false
35693 # Name of the executable.
35694 as_me=`$as_basename -- "$0" ||
35695 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35696 X"$0" : 'X\(//\)$' \| \
35697 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35698 echo X/"$0" |
35699 sed '/^.*\/\([^/][^/]*\)\/*$/{
35700 s//\1/
35703 /^X\/\(\/\/\)$/{
35704 s//\1/
35707 /^X\/\(\/\).*/{
35708 s//\1/
35711 s/.*/./; q'`
35713 # CDPATH.
35714 $as_unset CDPATH
35718 as_lineno_1=$LINENO
35719 as_lineno_2=$LINENO
35720 test "x$as_lineno_1" != "x$as_lineno_2" &&
35721 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35723 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35724 # uniformly replaced by the line number. The first 'sed' inserts a
35725 # line-number line after each line using $LINENO; the second 'sed'
35726 # does the real work. The second script uses 'N' to pair each
35727 # line-number line with the line containing $LINENO, and appends
35728 # trailing '-' during substitution so that $LINENO is not a special
35729 # case at line end.
35730 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35731 # scripts with optimization help from Paolo Bonzini. Blame Lee
35732 # E. McMahon (1931-1989) for sed's syntax. :-)
35733 sed -n '
35735 /[$]LINENO/=
35736 ' <$as_myself |
35737 sed '
35738 s/[$]LINENO.*/&-/
35739 t lineno
35741 :lineno
35743 :loop
35744 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35745 t loop
35746 s/-\n.*//
35747 ' >$as_me.lineno &&
35748 chmod +x "$as_me.lineno" ||
35749 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35750 { (exit 1); exit 1; }; }
35752 # Don't try to exec as it changes $[0], causing all sort of problems
35753 # (the dirname of $[0] is not the place where we might find the
35754 # original and so on. Autoconf is especially sensitive to this).
35755 . "./$as_me.lineno"
35756 # Exit status is that of the last command.
35757 exit
35761 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35762 as_dirname=dirname
35763 else
35764 as_dirname=false
35767 ECHO_C= ECHO_N= ECHO_T=
35768 case `echo -n x` in
35769 -n*)
35770 case `echo 'x\c'` in
35771 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35772 *) ECHO_C='\c';;
35773 esac;;
35775 ECHO_N='-n';;
35776 esac
35778 if expr a : '\(a\)' >/dev/null 2>&1 &&
35779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35780 as_expr=expr
35781 else
35782 as_expr=false
35785 rm -f conf$$ conf$$.exe conf$$.file
35786 if test -d conf$$.dir; then
35787 rm -f conf$$.dir/conf$$.file
35788 else
35789 rm -f conf$$.dir
35790 mkdir conf$$.dir
35792 echo >conf$$.file
35793 if ln -s conf$$.file conf$$ 2>/dev/null; then
35794 as_ln_s='ln -s'
35795 # ... but there are two gotchas:
35796 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35797 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35798 # In both cases, we have to default to `cp -p'.
35799 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35800 as_ln_s='cp -p'
35801 elif ln conf$$.file conf$$ 2>/dev/null; then
35802 as_ln_s=ln
35803 else
35804 as_ln_s='cp -p'
35806 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35807 rmdir conf$$.dir 2>/dev/null
35809 if mkdir -p . 2>/dev/null; then
35810 as_mkdir_p=:
35811 else
35812 test -d ./-p && rmdir ./-p
35813 as_mkdir_p=false
35816 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35817 # systems may use methods other than mode bits to determine executability.
35818 cat >conf$$.file <<_ASEOF
35819 #! /bin/sh
35820 exit 0
35821 _ASEOF
35822 chmod +x conf$$.file
35823 if test -x conf$$.file >/dev/null 2>&1; then
35824 as_executable_p="test -x"
35825 else
35826 as_executable_p=:
35828 rm -f conf$$.file
35830 # Sed expression to map a string onto a valid CPP name.
35831 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35833 # Sed expression to map a string onto a valid variable name.
35834 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35837 exec 6>&1
35839 # Save the log message, to keep $[0] and so on meaningful, and to
35840 # report actual input values of CONFIG_FILES etc. instead of their
35841 # values after options handling.
35842 ac_log="
35843 This file was extended by llvm $as_me 2.7svn, which was
35844 generated by GNU Autoconf 2.60. Invocation command line was
35846 CONFIG_FILES = $CONFIG_FILES
35847 CONFIG_HEADERS = $CONFIG_HEADERS
35848 CONFIG_LINKS = $CONFIG_LINKS
35849 CONFIG_COMMANDS = $CONFIG_COMMANDS
35850 $ $0 $@
35852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35855 _ACEOF
35857 cat >>$CONFIG_STATUS <<_ACEOF
35858 # Files that config.status was made for.
35859 config_files="$ac_config_files"
35860 config_headers="$ac_config_headers"
35861 config_commands="$ac_config_commands"
35863 _ACEOF
35865 cat >>$CONFIG_STATUS <<\_ACEOF
35866 ac_cs_usage="\
35867 \`$as_me' instantiates files from templates according to the
35868 current configuration.
35870 Usage: $0 [OPTIONS] [FILE]...
35872 -h, --help print this help, then exit
35873 -V, --version print version number, then exit
35874 -q, --quiet do not print progress messages
35875 -d, --debug don't remove temporary files
35876 --recheck update $as_me by reconfiguring in the same conditions
35877 --file=FILE[:TEMPLATE]
35878 instantiate the configuration file FILE
35879 --header=FILE[:TEMPLATE]
35880 instantiate the configuration header FILE
35882 Configuration files:
35883 $config_files
35885 Configuration headers:
35886 $config_headers
35888 Configuration commands:
35889 $config_commands
35891 Report bugs to <bug-autoconf@gnu.org>."
35893 _ACEOF
35894 cat >>$CONFIG_STATUS <<_ACEOF
35895 ac_cs_version="\\
35896 llvm config.status 2.7svn
35897 configured by $0, generated by GNU Autoconf 2.60,
35898 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35900 Copyright (C) 2006 Free Software Foundation, Inc.
35901 This config.status script is free software; the Free Software Foundation
35902 gives unlimited permission to copy, distribute and modify it."
35904 ac_pwd='$ac_pwd'
35905 srcdir='$srcdir'
35906 INSTALL='$INSTALL'
35907 _ACEOF
35909 cat >>$CONFIG_STATUS <<\_ACEOF
35910 # If no file are specified by the user, then we need to provide default
35911 # value. By we need to know if files were specified by the user.
35912 ac_need_defaults=:
35913 while test $# != 0
35915 case $1 in
35916 --*=*)
35917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35918 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35919 ac_shift=:
35922 ac_option=$1
35923 ac_optarg=$2
35924 ac_shift=shift
35926 esac
35928 case $ac_option in
35929 # Handling of the options.
35930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35931 ac_cs_recheck=: ;;
35932 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35933 echo "$ac_cs_version"; exit ;;
35934 --debug | --debu | --deb | --de | --d | -d )
35935 debug=: ;;
35936 --file | --fil | --fi | --f )
35937 $ac_shift
35938 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35939 ac_need_defaults=false;;
35940 --header | --heade | --head | --hea )
35941 $ac_shift
35942 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35943 ac_need_defaults=false;;
35944 --he | --h)
35945 # Conflict between --help and --header
35946 { echo "$as_me: error: ambiguous option: $1
35947 Try \`$0 --help' for more information." >&2
35948 { (exit 1); exit 1; }; };;
35949 --help | --hel | -h )
35950 echo "$ac_cs_usage"; exit ;;
35951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35953 ac_cs_silent=: ;;
35955 # This is an error.
35956 -*) { echo "$as_me: error: unrecognized option: $1
35957 Try \`$0 --help' for more information." >&2
35958 { (exit 1); exit 1; }; } ;;
35960 *) ac_config_targets="$ac_config_targets $1"
35961 ac_need_defaults=false ;;
35963 esac
35964 shift
35965 done
35967 ac_configure_extra_args=
35969 if $ac_cs_silent; then
35970 exec 6>/dev/null
35971 ac_configure_extra_args="$ac_configure_extra_args --silent"
35974 _ACEOF
35975 cat >>$CONFIG_STATUS <<_ACEOF
35976 if \$ac_cs_recheck; then
35977 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35978 CONFIG_SHELL=$SHELL
35979 export CONFIG_SHELL
35980 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35983 _ACEOF
35984 cat >>$CONFIG_STATUS <<\_ACEOF
35985 exec 5>>config.log
35987 echo
35988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35989 ## Running $as_me. ##
35990 _ASBOX
35991 echo "$ac_log"
35992 } >&5
35994 _ACEOF
35995 cat >>$CONFIG_STATUS <<_ACEOF
35997 # INIT-COMMANDS
35999 llvm_src="${srcdir}"
36001 _ACEOF
36003 cat >>$CONFIG_STATUS <<\_ACEOF
36005 # Handling of arguments.
36006 for ac_config_target in $ac_config_targets
36008 case $ac_config_target in
36009 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
36010 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36011 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
36012 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
36013 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
36014 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
36015 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
36016 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
36017 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
36018 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
36019 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36020 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36021 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36022 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36023 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36024 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
36025 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
36026 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36027 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
36028 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
36029 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36030 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36031 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
36032 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36033 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
36035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36037 { (exit 1); exit 1; }; };;
36038 esac
36039 done
36042 # If the user did not use the arguments to specify the items to instantiate,
36043 # then the envvar interface is used. Set only those that are not.
36044 # We use the long form for the default assignment because of an extremely
36045 # bizarre bug on SunOS 4.1.3.
36046 if $ac_need_defaults; then
36047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36052 # Have a temporary directory for convenience. Make it in the build tree
36053 # simply because there is no reason against having it here, and in addition,
36054 # creating and moving files from /tmp can sometimes cause problems.
36055 # Hook for its removal unless debugging.
36056 # Note that there is a small window in which the directory will not be cleaned:
36057 # after its creation but before its name has been assigned to `$tmp'.
36058 $debug ||
36060 tmp=
36061 trap 'exit_status=$?
36062 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36064 trap '{ (exit 1); exit 1; }' 1 2 13 15
36066 # Create a (secure) tmp directory for tmp files.
36069 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36070 test -n "$tmp" && test -d "$tmp"
36071 } ||
36073 tmp=./conf$$-$RANDOM
36074 (umask 077 && mkdir "$tmp")
36075 } ||
36077 echo "$me: cannot create a temporary directory in ." >&2
36078 { (exit 1); exit 1; }
36082 # Set up the sed scripts for CONFIG_FILES section.
36085 # No need to generate the scripts if there are no CONFIG_FILES.
36086 # This happens for instance when ./config.status config.h
36087 if test -n "$CONFIG_FILES"; then
36089 _ACEOF
36093 ac_delim='%!_!# '
36094 for ac_last_try in false false false false false :; do
36095 cat >conf$$subs.sed <<_ACEOF
36096 SHELL!$SHELL$ac_delim
36097 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36098 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36099 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36100 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36101 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36102 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36103 exec_prefix!$exec_prefix$ac_delim
36104 prefix!$prefix$ac_delim
36105 program_transform_name!$program_transform_name$ac_delim
36106 bindir!$bindir$ac_delim
36107 sbindir!$sbindir$ac_delim
36108 libexecdir!$libexecdir$ac_delim
36109 datarootdir!$datarootdir$ac_delim
36110 datadir!$datadir$ac_delim
36111 sysconfdir!$sysconfdir$ac_delim
36112 sharedstatedir!$sharedstatedir$ac_delim
36113 localstatedir!$localstatedir$ac_delim
36114 includedir!$includedir$ac_delim
36115 oldincludedir!$oldincludedir$ac_delim
36116 docdir!$docdir$ac_delim
36117 infodir!$infodir$ac_delim
36118 htmldir!$htmldir$ac_delim
36119 dvidir!$dvidir$ac_delim
36120 pdfdir!$pdfdir$ac_delim
36121 psdir!$psdir$ac_delim
36122 libdir!$libdir$ac_delim
36123 localedir!$localedir$ac_delim
36124 mandir!$mandir$ac_delim
36125 DEFS!$DEFS$ac_delim
36126 ECHO_C!$ECHO_C$ac_delim
36127 ECHO_N!$ECHO_N$ac_delim
36128 ECHO_T!$ECHO_T$ac_delim
36129 LIBS!$LIBS$ac_delim
36130 build_alias!$build_alias$ac_delim
36131 host_alias!$host_alias$ac_delim
36132 target_alias!$target_alias$ac_delim
36133 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36134 subdirs!$subdirs$ac_delim
36135 build!$build$ac_delim
36136 build_cpu!$build_cpu$ac_delim
36137 build_vendor!$build_vendor$ac_delim
36138 build_os!$build_os$ac_delim
36139 host!$host$ac_delim
36140 host_cpu!$host_cpu$ac_delim
36141 host_vendor!$host_vendor$ac_delim
36142 host_os!$host_os$ac_delim
36143 target!$target$ac_delim
36144 target_cpu!$target_cpu$ac_delim
36145 target_vendor!$target_vendor$ac_delim
36146 target_os!$target_os$ac_delim
36147 OS!$OS$ac_delim
36148 HOST_OS!$HOST_OS$ac_delim
36149 TARGET_OS!$TARGET_OS$ac_delim
36150 LINKALL!$LINKALL$ac_delim
36151 NOLINKALL!$NOLINKALL$ac_delim
36152 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36153 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36154 ARCH!$ARCH$ac_delim
36155 ENDIAN!$ENDIAN$ac_delim
36156 CC!$CC$ac_delim
36157 CFLAGS!$CFLAGS$ac_delim
36158 LDFLAGS!$LDFLAGS$ac_delim
36159 CPPFLAGS!$CPPFLAGS$ac_delim
36160 ac_ct_CC!$ac_ct_CC$ac_delim
36161 EXEEXT!$EXEEXT$ac_delim
36162 OBJEXT!$OBJEXT$ac_delim
36163 CPP!$CPP$ac_delim
36164 GREP!$GREP$ac_delim
36165 EGREP!$EGREP$ac_delim
36166 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36167 BUILD_CC!$BUILD_CC$ac_delim
36168 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36169 BUILD_CXX!$BUILD_CXX$ac_delim
36170 CVSBUILD!$CVSBUILD$ac_delim
36171 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36172 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36173 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36174 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36175 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36176 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36177 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36178 JIT!$JIT$ac_delim
36179 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36180 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36181 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36182 ENABLE_PIC!$ENABLE_PIC$ac_delim
36183 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36184 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36185 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36186 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36187 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
36188 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36189 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
36190 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36191 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36192 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36193 _ACEOF
36195 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36196 break
36197 elif $ac_last_try; then
36198 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36200 { (exit 1); exit 1; }; }
36201 else
36202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36204 done
36206 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36207 if test -n "$ac_eof"; then
36208 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36209 ac_eof=`expr $ac_eof + 1`
36212 cat >>$CONFIG_STATUS <<_ACEOF
36213 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36215 _ACEOF
36216 sed '
36217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36218 s/^/s,@/; s/!/@,|#_!!_#|/
36221 s/'"$ac_delim"'$/,g/; t
36222 s/$/\\/; p
36223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36224 ' >>$CONFIG_STATUS <conf$$subs.sed
36225 rm -f conf$$subs.sed
36226 cat >>$CONFIG_STATUS <<_ACEOF
36227 CEOF$ac_eof
36228 _ACEOF
36231 ac_delim='%!_!# '
36232 for ac_last_try in false false false false false :; do
36233 cat >conf$$subs.sed <<_ACEOF
36234 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36235 CXX!$CXX$ac_delim
36236 CXXFLAGS!$CXXFLAGS$ac_delim
36237 ac_ct_CXX!$ac_ct_CXX$ac_delim
36238 NM!$NM$ac_delim
36239 ifGNUmake!$ifGNUmake$ac_delim
36240 LN_S!$LN_S$ac_delim
36241 CMP!$CMP$ac_delim
36242 CP!$CP$ac_delim
36243 DATE!$DATE$ac_delim
36244 FIND!$FIND$ac_delim
36245 MKDIR!$MKDIR$ac_delim
36246 MV!$MV$ac_delim
36247 RANLIB!$RANLIB$ac_delim
36248 RM!$RM$ac_delim
36249 SED!$SED$ac_delim
36250 TAR!$TAR$ac_delim
36251 BINPWD!$BINPWD$ac_delim
36252 GRAPHVIZ!$GRAPHVIZ$ac_delim
36253 DOT!$DOT$ac_delim
36254 FDP!$FDP$ac_delim
36255 NEATO!$NEATO$ac_delim
36256 TWOPI!$TWOPI$ac_delim
36257 CIRCO!$CIRCO$ac_delim
36258 GV!$GV$ac_delim
36259 DOTTY!$DOTTY$ac_delim
36260 PERL!$PERL$ac_delim
36261 HAVE_PERL!$HAVE_PERL$ac_delim
36262 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36263 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36264 INSTALL_DATA!$INSTALL_DATA$ac_delim
36265 BZIP2!$BZIP2$ac_delim
36266 DOXYGEN!$DOXYGEN$ac_delim
36267 GROFF!$GROFF$ac_delim
36268 GZIP!$GZIP$ac_delim
36269 POD2HTML!$POD2HTML$ac_delim
36270 POD2MAN!$POD2MAN$ac_delim
36271 RUNTEST!$RUNTEST$ac_delim
36272 TCLSH!$TCLSH$ac_delim
36273 ZIP!$ZIP$ac_delim
36274 OCAMLC!$OCAMLC$ac_delim
36275 OCAMLOPT!$OCAMLOPT$ac_delim
36276 OCAMLDEP!$OCAMLDEP$ac_delim
36277 OCAMLDOC!$OCAMLDOC$ac_delim
36278 GAS!$GAS$ac_delim
36279 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36280 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36281 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36282 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36283 LIBADD_DL!$LIBADD_DL$ac_delim
36284 ECHO!$ECHO$ac_delim
36285 AR!$AR$ac_delim
36286 STRIP!$STRIP$ac_delim
36287 CXXCPP!$CXXCPP$ac_delim
36288 F77!$F77$ac_delim
36289 FFLAGS!$FFLAGS$ac_delim
36290 ac_ct_F77!$ac_ct_F77$ac_delim
36291 LIBTOOL!$LIBTOOL$ac_delim
36292 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36293 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36294 LLVMGCC!$LLVMGCC$ac_delim
36295 LLVMGXX!$LLVMGXX$ac_delim
36296 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36297 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
36298 USE_UDIS86!$USE_UDIS86$ac_delim
36299 USE_OPROFILE!$USE_OPROFILE$ac_delim
36300 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36301 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36302 ALLOCA!$ALLOCA$ac_delim
36303 MMAP_FILE!$MMAP_FILE$ac_delim
36304 LLVMCC1!$LLVMCC1$ac_delim
36305 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36306 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36307 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36308 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36309 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36310 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36311 SHLIBEXT!$SHLIBEXT$ac_delim
36312 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36313 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36314 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36315 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36316 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36317 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36318 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36319 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36320 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36321 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36322 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36323 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36324 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36325 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36326 RPATH!$RPATH$ac_delim
36327 RDYNAMIC!$RDYNAMIC$ac_delim
36328 LIBOBJS!$LIBOBJS$ac_delim
36329 LTLIBOBJS!$LTLIBOBJS$ac_delim
36330 _ACEOF
36332 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
36333 break
36334 elif $ac_last_try; then
36335 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36336 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36337 { (exit 1); exit 1; }; }
36338 else
36339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36341 done
36343 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36344 if test -n "$ac_eof"; then
36345 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36346 ac_eof=`expr $ac_eof + 1`
36349 cat >>$CONFIG_STATUS <<_ACEOF
36350 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36352 _ACEOF
36353 sed '
36354 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36355 s/^/s,@/; s/!/@,|#_!!_#|/
36358 s/'"$ac_delim"'$/,g/; t
36359 s/$/\\/; p
36360 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36361 ' >>$CONFIG_STATUS <conf$$subs.sed
36362 rm -f conf$$subs.sed
36363 cat >>$CONFIG_STATUS <<_ACEOF
36364 CEOF$ac_eof
36365 _ACEOF
36368 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36369 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36370 # trailing colons and then remove the whole line if VPATH becomes empty
36371 # (actually we leave an empty line to preserve line numbers).
36372 if test "x$srcdir" = x.; then
36373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36374 s/:*\$(srcdir):*/:/
36375 s/:*\${srcdir}:*/:/
36376 s/:*@srcdir@:*/:/
36377 s/^\([^=]*=[ ]*\):*/\1/
36378 s/:*$//
36379 s/^[^=]*=[ ]*$//
36383 cat >>$CONFIG_STATUS <<\_ACEOF
36384 fi # test -n "$CONFIG_FILES"
36387 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36389 case $ac_tag in
36390 :[FHLC]) ac_mode=$ac_tag; continue;;
36391 esac
36392 case $ac_mode$ac_tag in
36393 :[FHL]*:*);;
36394 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36395 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36396 { (exit 1); exit 1; }; };;
36397 :[FH]-) ac_tag=-:-;;
36398 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36399 esac
36400 ac_save_IFS=$IFS
36401 IFS=:
36402 set x $ac_tag
36403 IFS=$ac_save_IFS
36404 shift
36405 ac_file=$1
36406 shift
36408 case $ac_mode in
36409 :L) ac_source=$1;;
36410 :[FH])
36411 ac_file_inputs=
36412 for ac_f
36414 case $ac_f in
36415 -) ac_f="$tmp/stdin";;
36416 *) # Look for the file first in the build tree, then in the source tree
36417 # (if the path is not absolute). The absolute path cannot be DOS-style,
36418 # because $ac_f cannot contain `:'.
36419 test -f "$ac_f" ||
36420 case $ac_f in
36421 [\\/$]*) false;;
36422 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36423 esac ||
36424 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36425 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36426 { (exit 1); exit 1; }; };;
36427 esac
36428 ac_file_inputs="$ac_file_inputs $ac_f"
36429 done
36431 # Let's still pretend it is `configure' which instantiates (i.e., don't
36432 # use $as_me), people would be surprised to read:
36433 # /* config.h. Generated by config.status. */
36434 configure_input="Generated from "`IFS=:
36435 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36436 if test x"$ac_file" != x-; then
36437 configure_input="$ac_file. $configure_input"
36438 { echo "$as_me:$LINENO: creating $ac_file" >&5
36439 echo "$as_me: creating $ac_file" >&6;}
36442 case $ac_tag in
36443 *:-:* | *:-) cat >"$tmp/stdin";;
36444 esac
36446 esac
36448 ac_dir=`$as_dirname -- "$ac_file" ||
36449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36450 X"$ac_file" : 'X\(//\)[^/]' \| \
36451 X"$ac_file" : 'X\(//\)$' \| \
36452 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36453 echo X"$ac_file" |
36454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36455 s//\1/
36458 /^X\(\/\/\)[^/].*/{
36459 s//\1/
36462 /^X\(\/\/\)$/{
36463 s//\1/
36466 /^X\(\/\).*/{
36467 s//\1/
36470 s/.*/./; q'`
36471 { as_dir="$ac_dir"
36472 case $as_dir in #(
36473 -*) as_dir=./$as_dir;;
36474 esac
36475 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36476 as_dirs=
36477 while :; do
36478 case $as_dir in #(
36479 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36480 *) as_qdir=$as_dir;;
36481 esac
36482 as_dirs="'$as_qdir' $as_dirs"
36483 as_dir=`$as_dirname -- "$as_dir" ||
36484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36485 X"$as_dir" : 'X\(//\)[^/]' \| \
36486 X"$as_dir" : 'X\(//\)$' \| \
36487 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36488 echo X"$as_dir" |
36489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36490 s//\1/
36493 /^X\(\/\/\)[^/].*/{
36494 s//\1/
36497 /^X\(\/\/\)$/{
36498 s//\1/
36501 /^X\(\/\).*/{
36502 s//\1/
36505 s/.*/./; q'`
36506 test -d "$as_dir" && break
36507 done
36508 test -z "$as_dirs" || eval "mkdir $as_dirs"
36509 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36510 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36511 { (exit 1); exit 1; }; }; }
36512 ac_builddir=.
36514 case "$ac_dir" in
36515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36518 # A ".." for each directory in $ac_dir_suffix.
36519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36520 case $ac_top_builddir_sub in
36521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36523 esac ;;
36524 esac
36525 ac_abs_top_builddir=$ac_pwd
36526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36527 # for backward compatibility:
36528 ac_top_builddir=$ac_top_build_prefix
36530 case $srcdir in
36531 .) # We are building in place.
36532 ac_srcdir=.
36533 ac_top_srcdir=$ac_top_builddir_sub
36534 ac_abs_top_srcdir=$ac_pwd ;;
36535 [\\/]* | ?:[\\/]* ) # Absolute name.
36536 ac_srcdir=$srcdir$ac_dir_suffix;
36537 ac_top_srcdir=$srcdir
36538 ac_abs_top_srcdir=$srcdir ;;
36539 *) # Relative name.
36540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36541 ac_top_srcdir=$ac_top_build_prefix$srcdir
36542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36543 esac
36544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36547 case $ac_mode in
36550 # CONFIG_FILE
36553 case $INSTALL in
36554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36555 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36556 esac
36557 _ACEOF
36559 cat >>$CONFIG_STATUS <<\_ACEOF
36560 # If the template does not know about datarootdir, expand it.
36561 # FIXME: This hack should be removed a few years after 2.60.
36562 ac_datarootdir_hack=; ac_datarootdir_seen=
36564 case `sed -n '/datarootdir/ {
36568 /@datadir@/p
36569 /@docdir@/p
36570 /@infodir@/p
36571 /@localedir@/p
36572 /@mandir@/p
36573 ' $ac_file_inputs` in
36574 *datarootdir*) ac_datarootdir_seen=yes;;
36575 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36576 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36577 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36578 _ACEOF
36579 cat >>$CONFIG_STATUS <<_ACEOF
36580 ac_datarootdir_hack='
36581 s&@datadir@&$datadir&g
36582 s&@docdir@&$docdir&g
36583 s&@infodir@&$infodir&g
36584 s&@localedir@&$localedir&g
36585 s&@mandir@&$mandir&g
36586 s&\\\${datarootdir}&$datarootdir&g' ;;
36587 esac
36588 _ACEOF
36590 # Neutralize VPATH when `$srcdir' = `.'.
36591 # Shell code in configure.ac might set extrasub.
36592 # FIXME: do we really want to maintain this feature?
36593 cat >>$CONFIG_STATUS <<_ACEOF
36594 sed "$ac_vpsub
36595 $extrasub
36596 _ACEOF
36597 cat >>$CONFIG_STATUS <<\_ACEOF
36599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36600 s&@configure_input@&$configure_input&;t t
36601 s&@top_builddir@&$ac_top_builddir_sub&;t t
36602 s&@srcdir@&$ac_srcdir&;t t
36603 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36604 s&@top_srcdir@&$ac_top_srcdir&;t t
36605 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36606 s&@builddir@&$ac_builddir&;t t
36607 s&@abs_builddir@&$ac_abs_builddir&;t t
36608 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36609 s&@INSTALL@&$ac_INSTALL&;t t
36610 $ac_datarootdir_hack
36611 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
36613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36614 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36616 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36617 which seems to be undefined. Please make sure it is defined." >&5
36618 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36619 which seems to be undefined. Please make sure it is defined." >&2;}
36621 rm -f "$tmp/stdin"
36622 case $ac_file in
36623 -) cat "$tmp/out"; rm -f "$tmp/out";;
36624 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36625 esac
36629 # CONFIG_HEADER
36631 _ACEOF
36633 # Transform confdefs.h into a sed script `conftest.defines', that
36634 # substitutes the proper values into config.h.in to produce config.h.
36635 rm -f conftest.defines conftest.tail
36636 # First, append a space to every undef/define line, to ease matching.
36637 echo 's/$/ /' >conftest.defines
36638 # Then, protect against being on the right side of a sed subst, or in
36639 # an unquoted here document, in config.status. If some macros were
36640 # called several times there might be several #defines for the same
36641 # symbol, which is useless. But do not sort them, since the last
36642 # AC_DEFINE must be honored.
36643 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36644 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36645 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36646 # PARAMS is the parameter list in the macro definition--in most cases, it's
36647 # just an empty string.
36648 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36649 ac_dB='\\)[ (].*,\\1define\\2'
36650 ac_dC=' '
36651 ac_dD=' ,'
36653 uniq confdefs.h |
36654 sed -n '
36655 t rset
36656 :rset
36657 s/^[ ]*#[ ]*define[ ][ ]*//
36658 t ok
36661 s/[\\&,]/\\&/g
36662 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36663 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36664 ' >>conftest.defines
36666 # Remove the space that was appended to ease matching.
36667 # Then replace #undef with comments. This is necessary, for
36668 # example, in the case of _POSIX_SOURCE, which is predefined and required
36669 # on some systems where configure will not decide to define it.
36670 # (The regexp can be short, since the line contains either #define or #undef.)
36671 echo 's/ $//
36672 s,^[ #]*u.*,/* & */,' >>conftest.defines
36674 # Break up conftest.defines:
36675 ac_max_sed_lines=50
36677 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36678 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36679 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36680 # et cetera.
36681 ac_in='$ac_file_inputs'
36682 ac_out='"$tmp/out1"'
36683 ac_nxt='"$tmp/out2"'
36685 while :
36687 # Write a here document:
36688 cat >>$CONFIG_STATUS <<_ACEOF
36689 # First, check the format of the line:
36690 cat >"\$tmp/defines.sed" <<\\CEOF
36691 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36692 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36694 :def
36695 _ACEOF
36696 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36697 echo 'CEOF
36698 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36699 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36700 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36701 grep . conftest.tail >/dev/null || break
36702 rm -f conftest.defines
36703 mv conftest.tail conftest.defines
36704 done
36705 rm -f conftest.defines conftest.tail
36707 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36708 cat >>$CONFIG_STATUS <<\_ACEOF
36709 if test x"$ac_file" != x-; then
36710 echo "/* $configure_input */" >"$tmp/config.h"
36711 cat "$ac_result" >>"$tmp/config.h"
36712 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36713 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36714 echo "$as_me: $ac_file is unchanged" >&6;}
36715 else
36716 rm -f $ac_file
36717 mv "$tmp/config.h" $ac_file
36719 else
36720 echo "/* $configure_input */"
36721 cat "$ac_result"
36723 rm -f "$tmp/out12"
36726 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36727 echo "$as_me: executing $ac_file commands" >&6;}
36729 esac
36732 case $ac_file$ac_mode in
36733 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36735 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36737 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36739 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36741 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36743 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36744 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36745 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36746 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36747 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36748 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36749 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36750 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36751 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36752 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36753 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36754 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36755 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36756 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36757 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36758 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36760 esac
36761 done # for ac_tag
36764 { (exit 0); exit 0; }
36765 _ACEOF
36766 chmod +x $CONFIG_STATUS
36767 ac_clean_files=$ac_clean_files_save
36770 # configure is writing to config.log, and then calls config.status.
36771 # config.status does its own redirection, appending to config.log.
36772 # Unfortunately, on DOS this fails, as config.log is still kept open
36773 # by configure, so config.status won't be able to write to it; its
36774 # output is simply discarded. So we exec the FD to /dev/null,
36775 # effectively closing config.log, so it can be properly (re)opened and
36776 # appended to by config.status. When coming back to configure, we
36777 # need to make the FD available again.
36778 if test "$no_create" != yes; then
36779 ac_cs_success=:
36780 ac_config_status_args=
36781 test "$silent" = yes &&
36782 ac_config_status_args="$ac_config_status_args --quiet"
36783 exec 5>/dev/null
36784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36785 exec 5>>config.log
36786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36787 # would make configure fail if this is the last instruction.
36788 $ac_cs_success || { (exit 1); exit 1; }
36792 # CONFIG_SUBDIRS section.
36794 if test "$no_recursion" != yes; then
36796 # Remove --cache-file and --srcdir arguments so they do not pile up.
36797 ac_sub_configure_args=
36798 ac_prev=
36799 eval "set x $ac_configure_args"
36800 shift
36801 for ac_arg
36803 if test -n "$ac_prev"; then
36804 ac_prev=
36805 continue
36807 case $ac_arg in
36808 -cache-file | --cache-file | --cache-fil | --cache-fi \
36809 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36810 ac_prev=cache_file ;;
36811 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36812 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36813 | --c=*)
36815 --config-cache | -C)
36817 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36818 ac_prev=srcdir ;;
36819 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36821 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36822 ac_prev=prefix ;;
36823 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36826 case $ac_arg in
36827 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36828 esac
36829 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36830 esac
36831 done
36833 # Always prepend --prefix to ensure using the same prefix
36834 # in subdir configurations.
36835 ac_arg="--prefix=$prefix"
36836 case $ac_arg in
36837 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36838 esac
36839 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36841 ac_popdir=`pwd`
36842 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36844 # Do not complain, so a configure script can configure whichever
36845 # parts of a large source tree are present.
36846 test -d "$srcdir/$ac_dir" || continue
36848 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36849 echo "$as_me:$LINENO: $ac_msg" >&5
36850 echo "$ac_msg" >&6
36851 { as_dir="$ac_dir"
36852 case $as_dir in #(
36853 -*) as_dir=./$as_dir;;
36854 esac
36855 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36856 as_dirs=
36857 while :; do
36858 case $as_dir in #(
36859 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36860 *) as_qdir=$as_dir;;
36861 esac
36862 as_dirs="'$as_qdir' $as_dirs"
36863 as_dir=`$as_dirname -- "$as_dir" ||
36864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36865 X"$as_dir" : 'X\(//\)[^/]' \| \
36866 X"$as_dir" : 'X\(//\)$' \| \
36867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36868 echo X"$as_dir" |
36869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36870 s//\1/
36873 /^X\(\/\/\)[^/].*/{
36874 s//\1/
36877 /^X\(\/\/\)$/{
36878 s//\1/
36881 /^X\(\/\).*/{
36882 s//\1/
36885 s/.*/./; q'`
36886 test -d "$as_dir" && break
36887 done
36888 test -z "$as_dirs" || eval "mkdir $as_dirs"
36889 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36890 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36891 { (exit 1); exit 1; }; }; }
36892 ac_builddir=.
36894 case "$ac_dir" in
36895 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36898 # A ".." for each directory in $ac_dir_suffix.
36899 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36900 case $ac_top_builddir_sub in
36901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36903 esac ;;
36904 esac
36905 ac_abs_top_builddir=$ac_pwd
36906 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36907 # for backward compatibility:
36908 ac_top_builddir=$ac_top_build_prefix
36910 case $srcdir in
36911 .) # We are building in place.
36912 ac_srcdir=.
36913 ac_top_srcdir=$ac_top_builddir_sub
36914 ac_abs_top_srcdir=$ac_pwd ;;
36915 [\\/]* | ?:[\\/]* ) # Absolute name.
36916 ac_srcdir=$srcdir$ac_dir_suffix;
36917 ac_top_srcdir=$srcdir
36918 ac_abs_top_srcdir=$srcdir ;;
36919 *) # Relative name.
36920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36921 ac_top_srcdir=$ac_top_build_prefix$srcdir
36922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36923 esac
36924 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36927 cd "$ac_dir"
36929 # Check for guested configure; otherwise get Cygnus style configure.
36930 if test -f "$ac_srcdir/configure.gnu"; then
36931 ac_sub_configure=$ac_srcdir/configure.gnu
36932 elif test -f "$ac_srcdir/configure"; then
36933 ac_sub_configure=$ac_srcdir/configure
36934 elif test -f "$ac_srcdir/configure.in"; then
36935 # This should be Cygnus configure.
36936 ac_sub_configure=$ac_aux_dir/configure
36937 else
36938 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36939 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36940 ac_sub_configure=
36943 # The recursion is here.
36944 if test -n "$ac_sub_configure"; then
36945 # Make the cache file name correct relative to the subdirectory.
36946 case $cache_file in
36947 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36948 *) # Relative name.
36949 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36950 esac
36952 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36953 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36954 # The eval makes quoting arguments work.
36955 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36956 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36957 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36958 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36959 { (exit 1); exit 1; }; }
36962 cd "$ac_popdir"
36963 done