Turn some insert_subreg, extract_subreg, subreg_to_reg into implicit_defs.
[llvm/avr.git] / configure
blobe7ce56dcae846006a4c180e196025a97d3859824
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
545 case X$ECHO in
546 X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550 esac
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
562 else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
573 exit 0
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
591 done
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
598 else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
607 IFS="$lt_save_ifs"
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
615 done
616 IFS="$lt_save_ifs"
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
664 prev="$cmd"
665 done
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 # Initializations.
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 # include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 # include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 ENABLE_PROFILING
834 DISABLE_ASSERTIONS
835 ENABLE_EXPENSIVE_CHECKS
836 EXPENSIVE_CHECKS
837 DEBUG_RUNTIME
839 TARGET_HAS_JIT
840 ENABLE_DOXYGEN
841 ENABLE_THREADS
842 ENABLE_PIC
843 TARGETS_TO_BUILD
844 LLVM_ENUM_TARGETS
845 LLVM_ENUM_ASM_PRINTERS
846 LLVM_ENUM_ASM_PARSERS
847 ENABLE_CBE_PRINTF_A
848 EXTRA_OPTIONS
849 BINUTILS_INCDIR
850 ENABLE_LLVMC_DYNAMIC
851 ENABLE_LLVMC_DYNAMIC_PLUGINS
853 CXXFLAGS
854 ac_ct_CXX
856 ifGNUmake
857 LN_S
860 DATE
861 FIND
862 MKDIR
864 RANLIB
868 BINPWD
869 GRAPHVIZ
872 NEATO
873 TWOPI
874 CIRCO
876 DOTTY
877 PERL
878 HAVE_PERL
879 INSTALL_PROGRAM
880 INSTALL_SCRIPT
881 INSTALL_DATA
882 BZIP2
883 DOXYGEN
884 GROFF
885 GZIP
886 POD2HTML
887 POD2MAN
888 RUNTEST
889 TCLSH
891 OCAMLC
892 OCAMLOPT
893 OCAMLDEP
894 OCAMLDOC
896 INSTALL_LTDL_TRUE
897 INSTALL_LTDL_FALSE
898 CONVENIENCE_LTDL_TRUE
899 CONVENIENCE_LTDL_FALSE
900 LIBADD_DL
901 ECHO
903 STRIP
904 CXXCPP
906 FFLAGS
907 ac_ct_F77
908 LIBTOOL
909 LLVMGCCCOMMAND
910 LLVMGXXCOMMAND
911 LLVMGCC
912 LLVMGXX
913 USE_UDIS86
914 USE_OPROFILE
915 HAVE_PTHREAD
916 HUGE_VAL_SANITY
917 ALLOCA
918 MMAP_FILE
919 LLVMCC1
920 LLVMCC1PLUS
921 LLVMGCCDIR
922 LLVMGCCLIBEXEC
923 LLVMGCC_VERSION
924 LLVMGCC_MAJVERS
925 LLVMGCC_LANGS
926 SHLIBEXT
927 LLVM_PREFIX
928 LLVM_BINDIR
929 LLVM_LIBDIR
930 LLVM_DATADIR
931 LLVM_DOCSDIR
932 LLVM_ETCDIR
933 LLVM_INCLUDEDIR
934 LLVM_INFODIR
935 LLVM_MANDIR
936 LLVM_CONFIGTIME
937 BINDINGS_TO_BUILD
938 ALL_BINDINGS
939 OCAML_LIBDIR
940 ENABLE_VISIBILITY_INLINES_HIDDEN
941 RPATH
942 RDYNAMIC
943 LIBOBJS
944 LTLIBOBJS'
945 ac_subst_files=''
946 ac_precious_vars='build_alias
947 host_alias
948 target_alias
950 CFLAGS
951 LDFLAGS
952 CPPFLAGS
955 CXXFLAGS
957 CXXCPP
959 FFLAGS'
960 ac_subdirs_all='projects/sample
961 projects/privbracket
962 projects/llvm-stacker
963 projects/llvm-test
964 projects/test-suite
965 projects/llvm-reopt
966 projects/llvm-gcc
967 projects/llvm-java
968 projects/llvm-tv
969 projects/llvm-poolalloc
970 projects/poolalloc
971 projects/llvm-kernel'
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1026 ac_prev=
1027 continue
1030 case $ac_option in
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *) ac_optarg=yes ;;
1033 esac
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1039 ac_dashdash=yes ;;
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1062 ac_prev=datadir ;;
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1080 eval enable_$ac_feature=no ;;
1082 -docdir | --docdir | --docdi | --doc | --do)
1083 ac_prev=docdir ;;
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 ac_prev=dvidir ;;
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1092 -enable-* | --enable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1099 eval enable_$ac_feature=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1289 -with-* | --with-*)
1290 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package=`echo $ac_package| sed 's/-/_/g'`
1296 eval with_$ac_package=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package=`echo $ac_package | sed 's/-/_/g'`
1305 eval with_$ac_package=no ;;
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 esac
1348 done
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1356 # Be sure to have absolute directory names.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val=\$$ac_var
1363 case $ac_val in
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 esac
1367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1369 done
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
1413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 echo X"$0" |
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 s//\1/
1419 /^X\(\/\/\)[^/].*/{
1420 s//\1/
1423 /^X\(\/\/\)$/{
1424 s//\1/
1427 /^X\(\/\).*/{
1428 s//\1/
1431 s/.*/./; q'`
1432 srcdir=$ac_confdir
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 srcdir=..
1436 else
1437 ac_srcdir_defaulted=no
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1448 pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 srcdir=.
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1472 cat <<_ACEOF
1473 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1482 Configuration:
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1497 [PREFIX]
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1526 _ACEOF
1528 cat <<\_ACEOF
1530 System types:
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533 --target=TARGET configure for building compilers for TARGET [HOST]
1534 _ACEOF
1537 if test -n "$ac_init_help"; then
1538 case $ac_init_help in
1539 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1540 esac
1541 cat <<\_ACEOF
1543 Optional Features:
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1546 --enable-optimized Compile with optimizations enabled (default is NO)
1547 --enable-profiling Compile with profiling enabled (default is NO)
1548 --enable-assertions Compile with assertion checks enabled (default is
1549 YES)
1550 --enable-expensive-checks
1551 Compile with expensive debug checks enabled (default
1552 is NO)
1553 --enable-debug-runtime Build runtime libs with debug symbols (default is
1555 --enable-jit Enable Just In Time Compiling (default is YES)
1556 --enable-doxygen Build doxygen documentation (default is NO)
1557 --enable-threads Use threads if available (default is YES)
1558 --enable-pic Build LLVM with Position Independent Code (default
1559 is YES)
1560 --enable-targets Build specific host targets:
1561 all,host-only,{target-name} (default=all)
1562 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1563 %a (default is YES)
1564 --enable-bindings Build specific language bindings:
1565 all,auto,none,{binding-name} (default=auto)
1566 --enable-libffi Check for the presence of libffi (default is YES)
1567 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1568 Win32)
1569 --enable-llvmc-dynamic-plugins
1570 Enable dynamic LLVMC plugins (default is YES)
1571 --enable-ltdl-install install libltdl
1572 --enable-shared[=PKGS] build shared libraries
1573 [default=yes]
1574 --enable-static[=PKGS] build static libraries
1575 [default=yes]
1576 --enable-fast-install[=PKGS]
1577 optimize for fast installation
1578 [default=yes]
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1581 Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1585 searches PATH)
1586 --with-llvmgcc Specify location of llvm-gcc driver (default
1587 searches PATH)
1588 --with-llvmgxx Specify location of llvm-g++ driver (default
1589 searches PATH)
1590 --with-extra-options Specify additional options to compile LLVM with
1591 --with-ocaml-libdir Specify install location for ocaml bindings (default
1592 is stdlib)
1593 --with-binutils-include Specify path to binutils/include/ containing
1594 plugin-api.h file for gold plugin.
1595 --with-tclinclude directory where tcl headers are
1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1597 --with-pic try to use only PIC/non-PIC objects [default=use
1598 both]
1599 --with-tags[=TAGS] include additional configurations [automatic]
1600 --with-udis86=<path> Use udis86 external x86 disassembler library
1601 --with-oprofile=<prefix>
1602 Tell OProfile >= 0.9.4 how to symbolize JIT output
1604 Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
1611 CPP C preprocessor
1612 CXX C++ compiler command
1613 CXXFLAGS C++ compiler flags
1614 CXXCPP C++ preprocessor
1615 F77 Fortran 77 compiler command
1616 FFLAGS Fortran 77 compiler flags
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1621 Report bugs to <llvmbugs@cs.uiuc.edu>.
1622 _ACEOF
1623 ac_status=$?
1626 if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
1628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629 test -d "$ac_dir" || continue
1630 ac_builddir=.
1632 case "$ac_dir" in
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642 esac
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1648 case $srcdir in
1649 .) # We are building in place.
1650 ac_srcdir=.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 esac
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1672 else
1673 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 fi || ac_status=$?
1675 cd "$ac_pwd" || { ac_status=$?; break; }
1676 done
1679 test -n "$ac_init_help" && exit $ac_status
1680 if $ac_init_version; then
1681 cat <<\_ACEOF
1682 llvm configure 2.6svn
1683 generated by GNU Autoconf 2.60
1685 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1686 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1690 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1691 _ACEOF
1692 exit
1694 cat >config.log <<_ACEOF
1695 This file contains any messages produced by compilers while
1696 running configure, to aid debugging if configure makes a mistake.
1698 It was created by llvm $as_me 2.6svn, which was
1699 generated by GNU Autoconf 2.60. Invocation command line was
1701 $ $0 $@
1703 _ACEOF
1704 exec 5>>config.log
1706 cat <<_ASUNAME
1707 ## --------- ##
1708 ## Platform. ##
1709 ## --------- ##
1711 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1712 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1713 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1714 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1715 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1717 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1718 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1720 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1721 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1722 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1723 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1724 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1725 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1726 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1728 _ASUNAME
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 echo "PATH: $as_dir"
1736 done
1737 IFS=$as_save_IFS
1739 } >&5
1741 cat >&5 <<_ACEOF
1744 ## ----------- ##
1745 ## Core tests. ##
1746 ## ----------- ##
1748 _ACEOF
1751 # Keep a trace of the command line.
1752 # Strip out --no-create and --no-recursion so they do not pile up.
1753 # Strip out --silent because we don't want to record it for future runs.
1754 # Also quote any args containing shell meta-characters.
1755 # Make two passes to allow for proper duplicate-argument suppression.
1756 ac_configure_args=
1757 ac_configure_args0=
1758 ac_configure_args1=
1759 ac_must_keep_next=false
1760 for ac_pass in 1 2
1762 for ac_arg
1764 case $ac_arg in
1765 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1767 | -silent | --silent | --silen | --sile | --sil)
1768 continue ;;
1769 *\'*)
1770 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1771 esac
1772 case $ac_pass in
1773 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1775 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1776 if test $ac_must_keep_next = true; then
1777 ac_must_keep_next=false # Got value, back to normal.
1778 else
1779 case $ac_arg in
1780 *=* | --config-cache | -C | -disable-* | --disable-* \
1781 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1782 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1783 | -with-* | --with-* | -without-* | --without-* | --x)
1784 case "$ac_configure_args0 " in
1785 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1786 esac
1788 -* ) ac_must_keep_next=true ;;
1789 esac
1791 ac_configure_args="$ac_configure_args '$ac_arg'"
1793 esac
1794 done
1795 done
1796 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1797 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1799 # When interrupted or exit'd, cleanup temporary files, and complete
1800 # config.log. We remove comments because anyway the quotes in there
1801 # would cause problems or look ugly.
1802 # WARNING: Use '\'' to represent an apostrophe within the trap.
1803 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1804 trap 'exit_status=$?
1805 # Save into config.log some information that might help in debugging.
1807 echo
1809 cat <<\_ASBOX
1810 ## ---------------- ##
1811 ## Cache variables. ##
1812 ## ---------------- ##
1813 _ASBOX
1814 echo
1815 # The following way of writing the cache mishandles newlines in values,
1817 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in #(
1820 *${as_nl}*)
1821 case $ac_var in #(
1822 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1823 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1824 esac
1825 case $ac_var in #(
1826 _ | IFS | as_nl) ;; #(
1827 *) $as_unset $ac_var ;;
1828 esac ;;
1829 esac
1830 done
1831 (set) 2>&1 |
1832 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1833 *${as_nl}ac_space=\ *)
1834 sed -n \
1835 "s/'\''/'\''\\\\'\'''\''/g;
1836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1837 ;; #(
1839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841 esac |
1842 sort
1844 echo
1846 cat <<\_ASBOX
1847 ## ----------------- ##
1848 ## Output variables. ##
1849 ## ----------------- ##
1850 _ASBOX
1851 echo
1852 for ac_var in $ac_subst_vars
1854 eval ac_val=\$$ac_var
1855 case $ac_val in
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 esac
1858 echo "$ac_var='\''$ac_val'\''"
1859 done | sort
1860 echo
1862 if test -n "$ac_subst_files"; then
1863 cat <<\_ASBOX
1864 ## ------------------- ##
1865 ## File substitutions. ##
1866 ## ------------------- ##
1867 _ASBOX
1868 echo
1869 for ac_var in $ac_subst_files
1871 eval ac_val=\$$ac_var
1872 case $ac_val in
1873 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874 esac
1875 echo "$ac_var='\''$ac_val'\''"
1876 done | sort
1877 echo
1880 if test -s confdefs.h; then
1881 cat <<\_ASBOX
1882 ## ----------- ##
1883 ## confdefs.h. ##
1884 ## ----------- ##
1885 _ASBOX
1886 echo
1887 cat confdefs.h
1888 echo
1890 test "$ac_signal" != 0 &&
1891 echo "$as_me: caught signal $ac_signal"
1892 echo "$as_me: exit $exit_status"
1893 } >&5
1894 rm -f core *.core core.conftest.* &&
1895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1896 exit $exit_status
1898 for ac_signal in 1 2 13 15; do
1899 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1900 done
1901 ac_signal=0
1903 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1904 rm -f -r conftest* confdefs.h
1906 # Predefined preprocessor variables.
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_NAME "$PACKAGE_NAME"
1910 _ACEOF
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1915 _ACEOF
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1920 _ACEOF
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_STRING "$PACKAGE_STRING"
1925 _ACEOF
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1930 _ACEOF
1933 # Let the site file select an alternate cache file if it wants to.
1934 # Prefer explicitly selected file to automatically selected ones.
1935 if test -n "$CONFIG_SITE"; then
1936 set x "$CONFIG_SITE"
1937 elif test "x$prefix" != xNONE; then
1938 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1939 else
1940 set x "$ac_default_prefix/share/config.site" \
1941 "$ac_default_prefix/etc/config.site"
1943 shift
1944 for ac_site_file
1946 if test -r "$ac_site_file"; then
1947 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1948 echo "$as_me: loading site script $ac_site_file" >&6;}
1949 sed 's/^/| /' "$ac_site_file" >&5
1950 . "$ac_site_file"
1952 done
1954 if test -r "$cache_file"; then
1955 # Some versions of bash will fail to source /dev/null (special
1956 # files actually), so we avoid doing that.
1957 if test -f "$cache_file"; then
1958 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1959 echo "$as_me: loading cache $cache_file" >&6;}
1960 case $cache_file in
1961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
1963 esac
1965 else
1966 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1967 echo "$as_me: creating cache $cache_file" >&6;}
1968 >$cache_file
1971 # Check that the precious variables saved in the cache have kept the same
1972 # value.
1973 ac_cache_corrupted=false
1974 for ac_var in $ac_precious_vars; do
1975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
1977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
1979 case $ac_old_set,$ac_new_set in
1980 set,)
1981 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1982 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1984 ,set)
1985 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1986 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1988 ,);;
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
1991 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1992 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1993 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1994 echo "$as_me: former value: $ac_old_val" >&2;}
1995 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1996 echo "$as_me: current value: $ac_new_val" >&2;}
1997 ac_cache_corrupted=:
1998 fi;;
1999 esac
2000 # Pass precious variables to config.status.
2001 if test "$ac_new_set" = set; then
2002 case $ac_new_val in
2003 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 *) ac_arg=$ac_var=$ac_new_val ;;
2005 esac
2006 case " $ac_configure_args " in
2007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2008 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009 esac
2011 done
2012 if $ac_cache_corrupted; then
2013 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2014 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2015 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2016 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2017 { (exit 1); exit 1; }; }
2044 ac_ext=c
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2060 ac_aux_dir=
2061 for ac_dir in autoconf "$srcdir"/autoconf; do
2062 if test -f "$ac_dir/install-sh"; then
2063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/install-sh -c"
2065 break
2066 elif test -f "$ac_dir/install.sh"; then
2067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 break
2070 elif test -f "$ac_dir/shtool"; then
2071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/shtool install -c"
2073 break
2075 done
2076 if test -z "$ac_aux_dir"; then
2077 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2078 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2079 { (exit 1); exit 1; }; }
2082 # These three variables are undocumented and unsupported,
2083 # and are intended to be withdrawn in a future Autoconf release.
2084 # They can cause serious problems if a builder's source tree is in a directory
2085 # whose full name contains unusual characters.
2086 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2087 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2088 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2092 if test ${srcdir} != "." ; then
2093 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2094 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2095 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2096 { (exit 1); exit 1; }; }
2100 for i in `ls ${srcdir}/projects`
2102 if test -d ${srcdir}/projects/${i} ; then
2103 case ${i} in
2104 CVS) ;;
2105 sample) subdirs="$subdirs projects/sample"
2107 privbracket) subdirs="$subdirs projects/privbracket"
2109 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2111 # llvm-test is the old name of the test-suite, kept here for backwards
2112 # compatibility
2113 llvm-test) subdirs="$subdirs projects/llvm-test"
2115 test-suite) subdirs="$subdirs projects/test-suite"
2117 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2119 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2121 llvm-java) subdirs="$subdirs projects/llvm-java"
2123 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2125 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2127 poolalloc) subdirs="$subdirs projects/poolalloc"
2129 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2132 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2133 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2135 esac
2137 done
2140 # Make sure we can run config.sub.
2141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2143 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2144 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: checking build system type" >&5
2147 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2148 if test "${ac_cv_build+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 ac_build_alias=$build_alias
2152 test "x$ac_build_alias" = x &&
2153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2154 test "x$ac_build_alias" = x &&
2155 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157 { (exit 1); exit 1; }; }
2158 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2159 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2160 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165 echo "${ECHO_T}$ac_cv_build" >&6; }
2166 case $ac_cv_build in
2167 *-*-*) ;;
2168 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2169 echo "$as_me: error: invalid value of canonical build" >&2;}
2170 { (exit 1); exit 1; }; };;
2171 esac
2172 build=$ac_cv_build
2173 ac_save_IFS=$IFS; IFS='-'
2174 set x $ac_cv_build
2175 shift
2176 build_cpu=$1
2177 build_vendor=$2
2178 shift; shift
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2181 build_os=$*
2182 IFS=$ac_save_IFS
2183 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2186 { echo "$as_me:$LINENO: checking host system type" >&5
2187 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2188 if test "${ac_cv_host+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test "x$host_alias" = x; then
2192 ac_cv_host=$ac_cv_build
2193 else
2194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2196 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2197 { (exit 1); exit 1; }; }
2201 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2202 echo "${ECHO_T}$ac_cv_host" >&6; }
2203 case $ac_cv_host in
2204 *-*-*) ;;
2205 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2206 echo "$as_me: error: invalid value of canonical host" >&2;}
2207 { (exit 1); exit 1; }; };;
2208 esac
2209 host=$ac_cv_host
2210 ac_save_IFS=$IFS; IFS='-'
2211 set x $ac_cv_host
2212 shift
2213 host_cpu=$1
2214 host_vendor=$2
2215 shift; shift
2216 # Remember, the first character of IFS is used to create $*,
2217 # except with old shells:
2218 host_os=$*
2219 IFS=$ac_save_IFS
2220 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2223 { echo "$as_me:$LINENO: checking target system type" >&5
2224 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2225 if test "${ac_cv_target+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228 if test "x$target_alias" = x; then
2229 ac_cv_target=$ac_cv_host
2230 else
2231 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2232 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2233 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2234 { (exit 1); exit 1; }; }
2238 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2239 echo "${ECHO_T}$ac_cv_target" >&6; }
2240 case $ac_cv_target in
2241 *-*-*) ;;
2242 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2243 echo "$as_me: error: invalid value of canonical target" >&2;}
2244 { (exit 1); exit 1; }; };;
2245 esac
2246 target=$ac_cv_target
2247 ac_save_IFS=$IFS; IFS='-'
2248 set x $ac_cv_target
2249 shift
2250 target_cpu=$1
2251 target_vendor=$2
2252 shift; shift
2253 # Remember, the first character of IFS is used to create $*,
2254 # except with old shells:
2255 target_os=$*
2256 IFS=$ac_save_IFS
2257 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2260 # The aliases save the names the user supplied, while $host etc.
2261 # will get canonicalized.
2262 test -n "$target_alias" &&
2263 test "$program_prefix$program_suffix$program_transform_name" = \
2264 NONENONEs,x,x, &&
2265 program_prefix=${target_alias}-
2267 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2268 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2269 if test "${llvm_cv_os_type+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 case $host in
2273 *-*-aix*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="AIX"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-irix*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="IRIX"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-cygwin*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Cygwin"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-darwin*)
2289 llvm_cv_link_all_option="-Wl,-all_load"
2290 llvm_cv_no_link_all_option="-Wl,-noall_load"
2291 llvm_cv_os_type="Darwin"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-freebsd*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="FreeBSD"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-openbsd*)
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="OpenBSD"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-netbsd*)
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="NetBSD"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-dragonfly*)
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="DragonFly"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-hpux*)
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="HP-UX"
2317 llvm_cv_platform_type="Unix" ;;
2318 *-*-interix*)
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="Interix"
2322 llvm_cv_platform_type="Unix" ;;
2323 *-*-linux*)
2324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326 llvm_cv_os_type="Linux"
2327 llvm_cv_platform_type="Unix" ;;
2328 *-*-solaris*)
2329 llvm_cv_link_all_option="-Wl,-z,allextract"
2330 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2331 llvm_cv_os_type="SunOS"
2332 llvm_cv_platform_type="Unix" ;;
2333 *-*-win32*)
2334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2336 llvm_cv_os_type="Win32"
2337 llvm_cv_platform_type="Win32" ;;
2338 *-*-mingw*)
2339 llvm_cv_link_all_option="-Wl,--whole-archive"
2340 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2341 llvm_cv_os_type="MingW"
2342 llvm_cv_platform_type="Win32" ;;
2344 llvm_cv_link_all_option=""
2345 llvm_cv_no_link_all_option=""
2346 llvm_cv_os_type="Unknown"
2347 llvm_cv_platform_type="Unknown" ;;
2348 esac
2350 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2351 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2353 if test "$llvm_cv_os_type" = "Unknown" ; then
2354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2356 { (exit 1); exit 1; }; }
2359 OS=$llvm_cv_os_type
2362 LINKALL=$llvm_cv_link_all_option
2364 NOLINKALL=$llvm_cv_no_link_all_option
2367 case $llvm_cv_platform_type in
2368 Unix)
2370 cat >>confdefs.h <<\_ACEOF
2371 #define LLVM_ON_UNIX 1
2372 _ACEOF
2374 LLVM_ON_UNIX=1
2376 LLVM_ON_WIN32=0
2379 Win32)
2381 cat >>confdefs.h <<\_ACEOF
2382 #define LLVM_ON_WIN32 1
2383 _ACEOF
2385 LLVM_ON_UNIX=0
2387 LLVM_ON_WIN32=1
2390 esac
2392 { echo "$as_me:$LINENO: checking target architecture" >&5
2393 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2394 if test "${llvm_cv_target_arch+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 case $target in
2398 i?86-*) llvm_cv_target_arch="x86" ;;
2399 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2400 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2401 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2402 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2403 arm*-*) llvm_cv_target_arch="ARM" ;;
2404 mips-*) llvm_cv_target_arch="Mips" ;;
2405 pic16-*) llvm_cv_target_arch="PIC16" ;;
2406 xcore-*) llvm_cv_target_arch="XCore" ;;
2407 msp430-*) llvm_cv_target_arch="MSP430" ;;
2408 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2409 *) llvm_cv_target_arch="Unknown" ;;
2410 esac
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420 # Determine the LLVM native architecture for the target
2421 case "$llvm_cv_target_arch" in
2422 x86) LLVM_NATIVE_ARCH="X86" ;;
2423 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2424 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2425 esac
2427 ARCH=$llvm_cv_target_arch
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2457 done
2458 done
2459 IFS=$as_save_IFS
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2475 ac_ct_CC=$CC
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2497 done
2498 done
2499 IFS=$as_save_IFS
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_CC" = x; then
2513 CC=""
2514 else
2515 case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525 CC=$ac_ct_CC
2527 else
2528 CC="$ac_cv_prog_CC"
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2554 done
2555 done
2556 IFS=$as_save_IFS
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583 ac_prog_rejected=no
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2593 continue
2595 ac_cv_prog_CC="cc"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2606 shift
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2611 shift
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2621 else
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2663 else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$CC" && break
2670 done
2672 if test -z "$CC"; then
2673 ac_ct_CC=$CC
2674 for ac_prog in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2699 IFS=$as_save_IFS
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2713 test -n "$ac_ct_CC" && break
2714 done
2716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 CC=$ac_ct_CC
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2756 case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2784 main ()
2788 return 0;
2790 _ACEOF
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2795 # of exeext.
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2808 ac_rmfiles=
2809 for ac_file in $ac_files
2811 case $ac_file in
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 esac
2815 done
2816 rm -f $ac_rmfiles
2818 if { (ac_try="$ac_link_default"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2832 # Autoconf.
2833 for ac_file in $ac_files
2835 test -f "$ac_file" || continue
2836 case $ac_file in
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2839 [ab].out )
2840 # We found the default executable, but exeext='' is most
2841 # certainly right.
2842 break;;
2843 *.* )
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 then :; else
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2852 # actually working.
2853 break;;
2855 break;;
2856 esac
2857 done
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880 # If not cross compiling, check that we can run a simple program.
2881 if test "$cross_compiling" != yes; then
2882 if { ac_try='./$ac_file'
2883 { (case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 cross_compiling=no
2893 else
2894 if test "$cross_compiling" = maybe; then
2895 cross_compiling=yes
2896 else
2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2907 { echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 # Check that the compiler produces executables we can run. If not, either
2913 # the compiler is broken, or we cross compile.
2914 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917 echo "${ECHO_T}$cross_compiling" >&6; }
2919 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921 if { (ac_try="$ac_link"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_link") 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
2931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 # `rm'.
2935 for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
2937 case $ac_file in
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 break;;
2941 * ) break;;
2942 esac
2943 done
2944 else
2945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&5
2947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2952 rm -f conftest$ac_cv_exeext
2953 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2956 rm -f conftest.$ac_ext
2957 EXEEXT=$ac_cv_exeext
2958 ac_exeext=$EXEEXT
2959 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961 if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 main ()
2976 return 0;
2978 _ACEOF
2979 rm -f conftest.o conftest.obj
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 break;;
2996 esac
2997 done
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 echo "${ECHO_T}$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3014 ac_objext=$OBJEXT
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 main ()
3030 #ifndef __GNUC__
3031 choke me
3032 #endif
3035 return 0;
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_compiler_gnu=yes
3073 else
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 ac_compiler_gnu=no
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3096 ac_cv_prog_cc_g=no
3097 CFLAGS="-g"
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3106 main ()
3110 return 0;
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cc_g=yes
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 CFLAGS=""
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3161 main ()
3165 return 0;
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3208 CFLAGS="-g"
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3217 main ()
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_prog_cc_g=yes
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3275 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3281 CFLAGS="-g -O2"
3282 else
3283 CFLAGS="-g"
3285 else
3286 if test "$GCC" = yes; then
3287 CFLAGS="-O2"
3288 else
3289 CFLAGS=
3292 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_c89+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 ac_cv_prog_cc_c89=no
3298 ac_save_CC=$CC
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 #include <stdarg.h>
3306 #include <stdio.h>
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310 struct buf { int x; };
3311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312 static char *e (p, i)
3313 char **p;
3314 int i;
3316 return p[i];
3318 static char *f (char * (*g) (char **, int), char **p, ...)
3320 char *s;
3321 va_list v;
3322 va_start (v,p);
3323 s = g (p, va_arg (v,int));
3324 va_end (v);
3325 return s;
3328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
3331 as 'x'. The following induces an error, until -std is added to get
3332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
3334 that's true only with -std. */
3335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3339 #define FOO(x) 'x'
3340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3342 int test (int i, double x);
3343 struct s1 {int (*f) (int a);};
3344 struct s2 {int (*f) (double a);};
3345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346 int argc;
3347 char **argv;
3349 main ()
3351 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3353 return 0;
3355 _ACEOF
3356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3359 CC="$ac_save_CC $ac_arg"
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_cc_c89=$ac_arg
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3402 rm -f core conftest.err conftest.$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
3404 done
3405 rm -f conftest.$ac_ext
3406 CC=$ac_save_CC
3409 # AC_CACHE_VAL
3410 case "x$ac_cv_prog_cc_c89" in
3412 { echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6; } ;;
3414 xno)
3415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416 echo "${ECHO_T}unsupported" >&6; } ;;
3418 CC="$CC $ac_cv_prog_cc_c89"
3419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3421 esac
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3440 CPP=
3442 if test -z "$CPP"; then
3443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 # Double quotes because CPP needs to be expanded
3447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449 ac_preproc_ok=false
3450 for ac_c_preproc_warn_flag in '' yes
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h. */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #ifdef __STDC__
3465 # include <limits.h>
3466 #else
3467 # include <assert.h>
3468 #endif
3469 Syntax error
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3490 else
3491 ac_cpp_err=yes
3493 if test -z "$ac_cpp_err"; then
3495 else
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3500 continue
3503 rm -f conftest.err conftest.$ac_ext
3505 # OK, works on sane cases. Now check whether nonexistent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3514 _ACEOF
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531 else
3532 ac_cpp_err=
3534 else
3535 ac_cpp_err=yes
3537 if test -z "$ac_cpp_err"; then
3538 # Broken: success on invalid input.
3539 continue
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3549 rm -f conftest.err conftest.$ac_ext
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3555 break
3558 done
3559 ac_cv_prog_CPP=$CPP
3562 CPP=$ac_cv_prog_CPP
3563 else
3564 ac_cv_prog_CPP=$CPP
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3568 ac_preproc_ok=false
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588 Syntax error
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3609 else
3610 ac_cpp_err=yes
3612 if test -z "$ac_cpp_err"; then
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Broken: fails on valid input.
3619 continue
3622 rm -f conftest.err conftest.$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <ac_nonexistent.h>
3633 _ACEOF
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650 else
3651 ac_cpp_err=
3653 else
3654 ac_cpp_err=yes
3656 if test -z "$ac_cpp_err"; then
3657 # Broken: success on invalid input.
3658 continue
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 # Passes both tests.
3664 ac_preproc_ok=:
3665 break
3668 rm -f conftest.err conftest.$ac_ext
3670 done
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then
3675 else
3676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy grep ggrep; ac_prog_name=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 ac_path_GREP_found=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_prog in grep ggrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3715 *GNU*)
3716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3718 ac_count=0
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720 while :
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728 ac_count=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP="$ac_path_GREP"
3732 ac_path_GREP_max=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3736 done
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738 esac
3741 $ac_path_GREP_found && break 3
3742 done
3743 done
3745 done
3746 IFS=$as_save_IFS
3751 GREP="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3758 else
3759 ac_cv_path_GREP=$GREP
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP="$ac_cv_path_GREP"
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775 then ac_cv_path_EGREP="$GREP -E"
3776 else
3777 # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy egrep; ac_prog_name=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3797 *GNU*)
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3800 ac_count=0
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 while :
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 ac_count=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 esac
3823 $ac_path_EGREP_found && break 3
3824 done
3825 done
3827 done
3828 IFS=$as_save_IFS
3833 EGREP="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3840 else
3841 ac_cv_path_EGREP=$EGREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP="$ac_cv_path_EGREP"
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #include <stdlib.h>
3864 #include <stdarg.h>
3865 #include <string.h>
3866 #include <float.h>
3869 main ()
3873 return 0;
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_header_stdc=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_header_stdc=no
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #include <string.h>
3930 _ACEOF
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 $EGREP "memchr" >/dev/null 2>&1; then
3934 else
3935 ac_cv_header_stdc=no
3937 rm -f conftest*
3941 if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <stdlib.h>
3951 _ACEOF
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 $EGREP "free" >/dev/null 2>&1; then
3955 else
3956 ac_cv_header_stdc=no
3958 rm -f conftest*
3962 if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964 if test "$cross_compiling" = yes; then
3966 else
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 #include <ctype.h>
3974 #include <stdlib.h>
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 #else
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984 #endif
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3988 main ()
3990 int i;
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3994 return 2;
3995 return 0;
3997 _ACEOF
3998 rm -f conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4019 else
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 ( exit $ac_status )
4025 ac_cv_header_stdc=no
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define STDC_HEADERS 1
4039 _ACEOF
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
4056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4070 #include <$ac_header>
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_Header=yes"
4107 else
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 eval "$as_ac_Header=no"
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_res=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 _ACEOF
4126 done
4129 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131 if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 # See if sys/param.h defines the BYTE_ORDER macro.
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 #include <sys/param.h>
4145 main ()
4147 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4148 bogus endian macros
4149 #endif
4152 return 0;
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (ac_try="$ac_compile"
4157 case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160 esac
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 # It does; now see whether it defined to BIG_ENDIAN or not.
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <sys/types.h>
4197 #include <sys/param.h>
4200 main ()
4202 #if BYTE_ORDER != BIG_ENDIAN
4203 not big endian
4204 #endif
4207 return 0;
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_c_bigendian=yes
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_c_bigendian=no
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4257 # It does not; compile a test program.
4258 if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian=unknown
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4274 main ()
4276 _ascii (); _ebcdic ();
4278 return 0;
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4283 case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316 ac_cv_c_bigendian=yes
4318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4321 else
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 else
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h. */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4343 main ()
4346 /* Are we little or big endian? From Harbison&Steele. */
4347 union
4349 long int l;
4350 char c[sizeof (long int)];
4351 } u;
4352 u.l = 1;
4353 return u.c[sizeof (long int) - 1] == 1;
4356 return 0;
4358 _ACEOF
4359 rm -f conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_c_bigendian=no
4380 else
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ( exit $ac_status )
4386 ac_cv_c_bigendian=yes
4388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in
4399 yes)
4400 ENDIAN=big
4403 ENDIAN=little
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408 echo "$as_me: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4411 esac
4414 if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4418 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420 if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4425 else
4426 ac_build_prefix=${build_alias}-
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467 set dummy gcc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 ac_cv_prog_BUILD_CC="gcc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4489 IFS=$as_save_IFS
4493 BUILD_CC=$ac_cv_prog_BUILD_CC
4494 if test -n "$BUILD_CC"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496 echo "${ECHO_T}$BUILD_CC" >&6; }
4497 else
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505 set dummy cc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4513 else
4514 ac_prog_rejected=no
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4524 continue
4526 ac_cv_prog_BUILD_CC="cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4534 if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4537 shift
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4542 shift
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4552 else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564 rm -f conftest*
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4566 ac_cv_build_exeext=
4567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568 (eval $ac_build_link) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
4572 for file in conftest.*; do
4573 case $file in
4574 *.c | *.o | *.obj | *.dSYM) ;;
4575 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4576 esac
4577 done
4578 else
4579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
4583 rm -f conftest*
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4588 BUILD_EXEEXT=""
4589 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592 ac_build_exeext=$BUILD_EXEEXT
4594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596 set dummy ${ac_build_prefix}g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4626 else
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634 set dummy g++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_BUILD_CXX="g++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661 if test -n "$BUILD_CXX"; then
4662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663 echo "${ECHO_T}$BUILD_CXX" >&6; }
4664 else
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672 set dummy c++; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4680 else
4681 ac_prog_rejected=no
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4691 continue
4693 ac_cv_prog_BUILD_CXX="c++"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4701 if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4704 shift
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4709 shift
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4719 else
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4727 else
4728 LLVM_CROSS_COMPILING=0
4732 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4733 cvsbuild="yes"
4734 optimize="no"
4735 CVSBUILD=CVSBUILD=1
4737 else
4738 cvsbuild="no"
4739 optimize="yes"
4743 # Check whether --enable-optimized was given.
4744 if test "${enable_optimized+set}" = set; then
4745 enableval=$enable_optimized;
4746 else
4747 enableval=$optimize
4750 if test ${enableval} = "no" ; then
4751 ENABLE_OPTIMIZED=
4753 else
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4758 # Check whether --enable-profiling was given.
4759 if test "${enable_profiling+set}" = set; then
4760 enableval=$enable_profiling;
4761 else
4762 enableval="no"
4765 if test ${enableval} = "no" ; then
4766 ENABLE_PROFILING=
4768 else
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4773 # Check whether --enable-assertions was given.
4774 if test "${enable_assertions+set}" = set; then
4775 enableval=$enable_assertions;
4776 else
4777 enableval="yes"
4780 if test ${enableval} = "yes" ; then
4781 DISABLE_ASSERTIONS=
4783 else
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4788 # Check whether --enable-expensive-checks was given.
4789 if test "${enable_expensive_checks+set}" = set; then
4790 enableval=$enable_expensive_checks;
4791 else
4792 enableval="no"
4795 if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4798 EXPENSIVE_CHECKS=yes
4800 else
4801 ENABLE_EXPENSIVE_CHECKS=
4803 EXPENSIVE_CHECKS=no
4807 # Check whether --enable-debug-runtime was given.
4808 if test "${enable_debug_runtime+set}" = set; then
4809 enableval=$enable_debug_runtime;
4810 else
4811 enableval=no
4814 if test ${enableval} = "no" ; then
4815 DEBUG_RUNTIME=
4817 else
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4822 # Check whether --enable-jit was given.
4823 if test "${enable_jit+set}" = set; then
4824 enableval=$enable_jit;
4825 else
4826 enableval=default
4829 if test ${enableval} = "no"
4830 then
4831 JIT=
4833 else
4834 case "$llvm_cv_target_arch" in
4835 x86) TARGET_HAS_JIT=1
4837 Sparc) TARGET_HAS_JIT=0
4839 PowerPC) TARGET_HAS_JIT=1
4841 x86_64) TARGET_HAS_JIT=1
4843 Alpha) TARGET_HAS_JIT=1
4845 ARM) TARGET_HAS_JIT=0
4847 Mips) TARGET_HAS_JIT=0
4849 PIC16) TARGET_HAS_JIT=0
4851 XCore) TARGET_HAS_JIT=0
4853 MSP430) TARGET_HAS_JIT=0
4855 SystemZ) TARGET_HAS_JIT=0
4857 *) TARGET_HAS_JIT=0
4859 esac
4862 # Check whether --enable-doxygen was given.
4863 if test "${enable_doxygen+set}" = set; then
4864 enableval=$enable_doxygen;
4865 else
4866 enableval=default
4869 case "$enableval" in
4870 yes) ENABLE_DOXYGEN=1
4872 no) ENABLE_DOXYGEN=0
4874 default) ENABLE_DOXYGEN=0
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4877 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4879 esac
4881 # Check whether --enable-threads was given.
4882 if test "${enable_threads+set}" = set; then
4883 enableval=$enable_threads;
4884 else
4885 enableval=default
4888 case "$enableval" in
4889 yes) ENABLE_THREADS=1
4891 no) ENABLE_THREADS=0
4893 default) ENABLE_THREADS=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898 esac
4900 cat >>confdefs.h <<_ACEOF
4901 #define ENABLE_THREADS $ENABLE_THREADS
4902 _ACEOF
4905 # Check whether --enable-pic was given.
4906 if test "${enable_pic+set}" = set; then
4907 enableval=$enable_pic;
4908 else
4909 enableval=default
4912 case "$enableval" in
4913 yes) ENABLE_PIC=1
4915 no) ENABLE_PIC=0
4917 default) ENABLE_PIC=1
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4922 esac
4924 cat >>confdefs.h <<_ACEOF
4925 #define ENABLE_PIC $ENABLE_PIC
4926 _ACEOF
4929 TARGETS_TO_BUILD=""
4930 # Check whether --enable-targets was given.
4931 if test "${enable_targets+set}" = set; then
4932 enableval=$enable_targets;
4933 else
4934 enableval=all
4937 case "$enableval" in
4938 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4939 host-only)
4940 case "$llvm_cv_target_arch" in
4941 x86) TARGETS_TO_BUILD="X86" ;;
4942 x86_64) TARGETS_TO_BUILD="X86" ;;
4943 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4944 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4945 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4946 ARM) TARGETS_TO_BUILD="ARM" ;;
4947 Mips) TARGETS_TO_BUILD="Mips" ;;
4948 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4949 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4950 XCore) TARGETS_TO_BUILD="XCore" ;;
4951 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4952 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
4953 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4954 echo "$as_me: error: Can not set target to build" >&2;}
4955 { (exit 1); exit 1; }; } ;;
4956 esac
4958 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4959 case "$a_target" in
4960 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4963 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4964 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4965 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4966 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4967 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4968 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4969 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4971 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4972 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4973 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4974 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4975 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4976 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4978 esac
4979 done
4981 esac
4982 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4985 # Determine whether we are building LLVM support for the native architecture.
4986 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4987 for a_target in $TARGETS_TO_BUILD; do
4988 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4989 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4991 cat >>confdefs.h <<_ACEOF
4992 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4993 _ACEOF
4996 done
4998 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4999 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5000 LLVM_ENUM_TARGETS=""
5001 LLVM_ENUM_ASM_PRINTERS=""
5002 LLVM_ENUM_ASM_PARSERS=""
5003 for target_to_build in $TARGETS_TO_BUILD; do
5004 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5005 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5006 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5009 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5011 done
5016 # Check whether --enable-cbe-printf-a was given.
5017 if test "${enable_cbe_printf_a+set}" = set; then
5018 enableval=$enable_cbe_printf_a;
5019 else
5020 enableval=default
5023 case "$enableval" in
5024 yes) ENABLE_CBE_PRINTF_A=1
5026 no) ENABLE_CBE_PRINTF_A=0
5028 default) ENABLE_CBE_PRINTF_A=1
5030 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5031 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5032 { (exit 1); exit 1; }; } ;;
5033 esac
5035 cat >>confdefs.h <<_ACEOF
5036 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5037 _ACEOF
5041 # Check whether --with-llvmgccdir was given.
5042 if test "${with_llvmgccdir+set}" = set; then
5043 withval=$with_llvmgccdir;
5044 else
5045 withval=default
5048 case "$withval" in
5049 default) WITH_LLVMGCCDIR=default ;;
5050 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5051 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5052 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5054 esac
5057 # Check whether --with-llvmgcc was given.
5058 if test "${with_llvmgcc+set}" = set; then
5059 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5060 WITH_LLVMGCCDIR=""
5065 # Check whether --with-llvmgxx was given.
5066 if test "${with_llvmgxx+set}" = set; then
5067 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5068 WITH_LLVMGCCDIR=""
5072 if test -n "$LLVMGCC"; then
5073 LLVMGCCCOMMAND="$LLVMGCC"
5076 if test -n "$LLVMGXX"; then
5077 LLVMGXXCOMMAND="$LLVMGXX"
5080 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5082 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5083 { (exit 1); exit 1; }; };
5086 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5087 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5088 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5089 { (exit 1); exit 1; }; };
5093 # Check whether --with-extra-options was given.
5094 if test "${with_extra_options+set}" = set; then
5095 withval=$with_extra_options;
5096 else
5097 withval=default
5100 case "$withval" in
5101 default) EXTRA_OPTIONS= ;;
5102 *) EXTRA_OPTIONS=$withval ;;
5103 esac
5104 EXTRA_OPTIONS=$EXTRA_OPTIONS
5107 # Check whether --enable-bindings was given.
5108 if test "${enable_bindings+set}" = set; then
5109 enableval=$enable_bindings;
5110 else
5111 enableval=default
5114 BINDINGS_TO_BUILD=""
5115 case "$enableval" in
5116 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5117 all ) BINDINGS_TO_BUILD="ocaml" ;;
5118 none | no) BINDINGS_TO_BUILD="" ;;
5119 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5120 case "$a_binding" in
5121 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5122 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5123 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5124 { (exit 1); exit 1; }; } ;;
5125 esac
5126 done
5128 esac
5131 # Check whether --with-ocaml-libdir was given.
5132 if test "${with_ocaml_libdir+set}" = set; then
5133 withval=$with_ocaml_libdir;
5134 else
5135 withval=auto
5138 case "$withval" in
5139 auto) with_ocaml_libdir="$withval" ;;
5140 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5141 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5142 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5144 esac
5147 # Check whether --with-binutils-include was given.
5148 if test "${with_binutils_include+set}" = set; then
5149 withval=$with_binutils_include;
5150 else
5151 withval=default
5154 case "$withval" in
5155 default) WITH_BINUTILS_INCDIR=default ;;
5156 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5157 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5158 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5160 esac
5161 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5162 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5164 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5165 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5166 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5167 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5168 { (exit 1); exit 1; }; };
5172 # Check whether --enable-libffi was given.
5173 if test "${enable_libffi+set}" = set; then
5174 enableval=$enable_libffi;
5175 else
5176 enableval=yes
5179 case "$enableval" in
5180 yes) llvm_cv_enable_libffi="yes" ;;
5181 no) llvm_cv_enable_libffi="no" ;;
5182 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5183 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5184 { (exit 1); exit 1; }; } ;;
5185 esac
5187 if test "$llvm_cv_os_type" = "Win32" ; then
5188 llvmc_dynamic="yes"
5189 else
5190 llvmc_dynamic="no"
5193 # Check whether --enable-llvmc-dynamic was given.
5194 if test "${enable_llvmc_dynamic+set}" = set; then
5195 enableval=$enable_llvmc_dynamic;
5196 else
5197 enableval=$llvmc_dynamic
5200 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5201 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5203 else
5204 ENABLE_LLVMC_DYNAMIC=
5208 # Check whether --enable-llvmc-dynamic-plugins was given.
5209 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5210 enableval=$enable_llvmc_dynamic_plugins;
5211 else
5212 enableval=yes
5215 if test ${enableval} = "yes" ; then
5216 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5218 else
5219 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5224 ac_ext=c
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5230 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5231 # On Suns, sometimes $CPP names a directory.
5232 if test -n "$CPP" && test -d "$CPP"; then
5233 CPP=
5235 if test -z "$CPP"; then
5236 if test "${ac_cv_prog_CPP+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 # Double quotes because CPP needs to be expanded
5240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5242 ac_preproc_ok=false
5243 for ac_c_preproc_warn_flag in '' yes
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 #ifdef __STDC__
5258 # include <limits.h>
5259 #else
5260 # include <assert.h>
5261 #endif
5262 Syntax error
5263 _ACEOF
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5265 case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } >/dev/null; then
5277 if test -s conftest.err; then
5278 ac_cpp_err=$ac_c_preproc_warn_flag
5279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5280 else
5281 ac_cpp_err=
5283 else
5284 ac_cpp_err=yes
5286 if test -z "$ac_cpp_err"; then
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 # Broken: fails on valid input.
5293 continue
5296 rm -f conftest.err conftest.$ac_ext
5298 # OK, works on sane cases. Now check whether nonexistent headers
5299 # can be detected and how.
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 #include <ac_nonexistent.h>
5307 _ACEOF
5308 if { (ac_try="$ac_cpp conftest.$ac_ext"
5309 case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5312 esac
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } >/dev/null; then
5321 if test -s conftest.err; then
5322 ac_cpp_err=$ac_c_preproc_warn_flag
5323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5324 else
5325 ac_cpp_err=
5327 else
5328 ac_cpp_err=yes
5330 if test -z "$ac_cpp_err"; then
5331 # Broken: success on invalid input.
5332 continue
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 # Passes both tests.
5338 ac_preproc_ok=:
5339 break
5342 rm -f conftest.err conftest.$ac_ext
5344 done
5345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5346 rm -f conftest.err conftest.$ac_ext
5347 if $ac_preproc_ok; then
5348 break
5351 done
5352 ac_cv_prog_CPP=$CPP
5355 CPP=$ac_cv_prog_CPP
5356 else
5357 ac_cv_prog_CPP=$CPP
5359 { echo "$as_me:$LINENO: result: $CPP" >&5
5360 echo "${ECHO_T}$CPP" >&6; }
5361 ac_preproc_ok=false
5362 for ac_c_preproc_warn_flag in '' yes
5364 # Use a header file that comes with gcc, so configuring glibc
5365 # with a fresh cross-compiler works.
5366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5367 # <limits.h> exists even on freestanding compilers.
5368 # On the NeXT, cc -E runs the code through the compiler's parser,
5369 # not just through cpp. "Syntax error" is here to catch this case.
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 #ifdef __STDC__
5377 # include <limits.h>
5378 #else
5379 # include <assert.h>
5380 #endif
5381 Syntax error
5382 _ACEOF
5383 if { (ac_try="$ac_cpp conftest.$ac_ext"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev/null; then
5396 if test -s conftest.err; then
5397 ac_cpp_err=$ac_c_preproc_warn_flag
5398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5399 else
5400 ac_cpp_err=
5402 else
5403 ac_cpp_err=yes
5405 if test -z "$ac_cpp_err"; then
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 # Broken: fails on valid input.
5412 continue
5415 rm -f conftest.err conftest.$ac_ext
5417 # OK, works on sane cases. Now check whether nonexistent headers
5418 # can be detected and how.
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 #include <ac_nonexistent.h>
5426 _ACEOF
5427 if { (ac_try="$ac_cpp conftest.$ac_ext"
5428 case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev/null; then
5440 if test -s conftest.err; then
5441 ac_cpp_err=$ac_c_preproc_warn_flag
5442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5443 else
5444 ac_cpp_err=
5446 else
5447 ac_cpp_err=yes
5449 if test -z "$ac_cpp_err"; then
5450 # Broken: success on invalid input.
5451 continue
5452 else
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 # Passes both tests.
5457 ac_preproc_ok=:
5458 break
5461 rm -f conftest.err conftest.$ac_ext
5463 done
5464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5465 rm -f conftest.err conftest.$ac_ext
5466 if $ac_preproc_ok; then
5468 else
5469 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5470 See \`config.log' for more details." >&5
5471 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5472 See \`config.log' for more details." >&2;}
5473 { (exit 1); exit 1; }; }
5476 ac_ext=c
5477 ac_cpp='$CPP $CPPFLAGS'
5478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482 ac_ext=c
5483 ac_cpp='$CPP $CPPFLAGS'
5484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487 if test -n "$ac_tool_prefix"; then
5488 for ac_prog in gcc
5490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5494 if test "${ac_cv_prog_CC+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497 if test -n "$CC"; then
5498 ac_cv_prog_CC="$CC" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5511 done
5512 done
5513 IFS=$as_save_IFS
5517 CC=$ac_cv_prog_CC
5518 if test -n "$CC"; then
5519 { echo "$as_me:$LINENO: result: $CC" >&5
5520 echo "${ECHO_T}$CC" >&6; }
5521 else
5522 { echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6; }
5527 test -n "$CC" && break
5528 done
5530 if test -z "$CC"; then
5531 ac_ct_CC=$CC
5532 for ac_prog in gcc
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 if test -n "$ac_ct_CC"; then
5542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_CC="$ac_prog"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5562 if test -n "$ac_ct_CC"; then
5563 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5564 echo "${ECHO_T}$ac_ct_CC" >&6; }
5565 else
5566 { echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6; }
5571 test -n "$ac_ct_CC" && break
5572 done
5574 if test "x$ac_ct_CC" = x; then
5575 CC=""
5576 else
5577 case $cross_compiling:$ac_tool_warned in
5578 yes:)
5579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5580 whose name does not start with the host triplet. If you think this
5581 configuration is useful to you, please write to autoconf@gnu.org." >&5
5582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5583 whose name does not start with the host triplet. If you think this
5584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587 CC=$ac_ct_CC
5592 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5593 See \`config.log' for more details." >&5
5594 echo "$as_me: error: no acceptable C compiler found in \$PATH
5595 See \`config.log' for more details." >&2;}
5596 { (exit 1); exit 1; }; }
5598 # Provide some information about the compiler.
5599 echo "$as_me:$LINENO: checking for C compiler version" >&5
5600 ac_compiler=`set X $ac_compile; echo $2`
5601 { (ac_try="$ac_compiler --version >&5"
5602 case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compiler --version >&5") 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }
5611 { (ac_try="$ac_compiler -v >&5"
5612 case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compiler -v >&5") 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }
5621 { (ac_try="$ac_compiler -V >&5"
5622 case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compiler -V >&5") 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }
5632 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5645 main ()
5647 #ifndef __GNUC__
5648 choke me
5649 #endif
5652 return 0;
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670 { (case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_compiler_gnu=yes
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5694 ac_compiler_gnu=no
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5701 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5702 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5703 GCC=`test $ac_compiler_gnu = yes && echo yes`
5704 ac_test_CFLAGS=${CFLAGS+set}
5705 ac_save_CFLAGS=$CFLAGS
5706 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5707 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5708 if test "${ac_cv_prog_cc_g+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 ac_save_c_werror_flag=$ac_c_werror_flag
5712 ac_c_werror_flag=yes
5713 ac_cv_prog_cc_g=no
5714 CFLAGS="-g"
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5723 main ()
5727 return 0;
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5732 case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748 esac
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758 esac
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_cv_prog_cc_g=yes
5765 else
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 CFLAGS=""
5770 cat >conftest.$ac_ext <<_ACEOF
5771 /* confdefs.h. */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5778 main ()
5782 return 0;
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5787 case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5800 { (case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_try") 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5813 esac
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_try") 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 ac_c_werror_flag=$ac_save_c_werror_flag
5825 CFLAGS="-g"
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5834 main ()
5838 return 0;
5840 _ACEOF
5841 rm -f conftest.$ac_objext
5842 if { (ac_try="$ac_compile"
5843 case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_compile") 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5856 { (case "(($ac_try" in
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5859 esac
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_try") 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; } &&
5865 { ac_try='test -s conftest.$ac_objext'
5866 { (case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_try") 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_cv_prog_cc_g=yes
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 ac_c_werror_flag=$ac_save_c_werror_flag
5892 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5893 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5894 if test "$ac_test_CFLAGS" = set; then
5895 CFLAGS=$ac_save_CFLAGS
5896 elif test $ac_cv_prog_cc_g = yes; then
5897 if test "$GCC" = yes; then
5898 CFLAGS="-g -O2"
5899 else
5900 CFLAGS="-g"
5902 else
5903 if test "$GCC" = yes; then
5904 CFLAGS="-O2"
5905 else
5906 CFLAGS=
5909 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5910 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5911 if test "${ac_cv_prog_cc_c89+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 ac_cv_prog_cc_c89=no
5915 ac_save_CC=$CC
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 #include <stdarg.h>
5923 #include <stdio.h>
5924 #include <sys/types.h>
5925 #include <sys/stat.h>
5926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5927 struct buf { int x; };
5928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5929 static char *e (p, i)
5930 char **p;
5931 int i;
5933 return p[i];
5935 static char *f (char * (*g) (char **, int), char **p, ...)
5937 char *s;
5938 va_list v;
5939 va_start (v,p);
5940 s = g (p, va_arg (v,int));
5941 va_end (v);
5942 return s;
5945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5946 function prototypes and stuff, but not '\xHH' hex character constants.
5947 These don't provoke an error unfortunately, instead are silently treated
5948 as 'x'. The following induces an error, until -std is added to get
5949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5950 array size at least. It's necessary to write '\x00'==0 to get something
5951 that's true only with -std. */
5952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5955 inside strings and character constants. */
5956 #define FOO(x) 'x'
5957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5959 int test (int i, double x);
5960 struct s1 {int (*f) (int a);};
5961 struct s2 {int (*f) (double a);};
5962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5963 int argc;
5964 char **argv;
5966 main ()
5968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5970 return 0;
5972 _ACEOF
5973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5976 CC="$ac_save_CC $ac_arg"
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5979 case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5992 { (case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_try") 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_try") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_prog_cc_c89=$ac_arg
6012 else
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6019 rm -f core conftest.err conftest.$ac_objext
6020 test "x$ac_cv_prog_cc_c89" != "xno" && break
6021 done
6022 rm -f conftest.$ac_ext
6023 CC=$ac_save_CC
6026 # AC_CACHE_VAL
6027 case "x$ac_cv_prog_cc_c89" in
6029 { echo "$as_me:$LINENO: result: none needed" >&5
6030 echo "${ECHO_T}none needed" >&6; } ;;
6031 xno)
6032 { echo "$as_me:$LINENO: result: unsupported" >&5
6033 echo "${ECHO_T}unsupported" >&6; } ;;
6035 CC="$CC $ac_cv_prog_cc_c89"
6036 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6037 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6038 esac
6041 ac_ext=c
6042 ac_cpp='$CPP $CPPFLAGS'
6043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047 ac_ext=cpp
6048 ac_cpp='$CXXCPP $CPPFLAGS'
6049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6052 if test -z "$CXX"; then
6053 if test -n "$CCC"; then
6054 CXX=$CCC
6055 else
6056 if test -n "$ac_tool_prefix"; then
6057 for ac_prog in g++
6059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063 if test "${ac_cv_prog_CXX+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 if test -n "$CXX"; then
6067 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6080 done
6081 done
6082 IFS=$as_save_IFS
6086 CXX=$ac_cv_prog_CXX
6087 if test -n "$CXX"; then
6088 { echo "$as_me:$LINENO: result: $CXX" >&5
6089 echo "${ECHO_T}$CXX" >&6; }
6090 else
6091 { echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6; }
6096 test -n "$CXX" && break
6097 done
6099 if test -z "$CXX"; then
6100 ac_ct_CXX=$CXX
6101 for ac_prog in g++
6103 # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy $ac_prog; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 if test -n "$ac_ct_CXX"; then
6111 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_ac_ct_CXX="$ac_prog"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6124 done
6125 done
6126 IFS=$as_save_IFS
6130 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6131 if test -n "$ac_ct_CXX"; then
6132 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6133 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6134 else
6135 { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6140 test -n "$ac_ct_CXX" && break
6141 done
6143 if test "x$ac_ct_CXX" = x; then
6144 CXX="g++"
6145 else
6146 case $cross_compiling:$ac_tool_warned in
6147 yes:)
6148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6149 whose name does not start with the host triplet. If you think this
6150 configuration is useful to you, please write to autoconf@gnu.org." >&5
6151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6152 whose name does not start with the host triplet. If you think this
6153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6154 ac_tool_warned=yes ;;
6155 esac
6156 CXX=$ac_ct_CXX
6162 # Provide some information about the compiler.
6163 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6164 ac_compiler=`set X $ac_compile; echo $2`
6165 { (ac_try="$ac_compiler --version >&5"
6166 case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169 esac
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compiler --version >&5") 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }
6175 { (ac_try="$ac_compiler -v >&5"
6176 case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_compiler -v >&5") 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }
6185 { (ac_try="$ac_compiler -V >&5"
6186 case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compiler -V >&5") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }
6196 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6197 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6198 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h. */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6209 main ()
6211 #ifndef __GNUC__
6212 choke me
6213 #endif
6216 return 0;
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (ac_try="$ac_compile"
6221 case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224 esac
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6234 { (case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_try") 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
6243 { ac_try='test -s conftest.$ac_objext'
6244 { (case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_try") 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_compiler_gnu=yes
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_compiler_gnu=no
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6265 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6266 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6267 GXX=`test $ac_compiler_gnu = yes && echo yes`
6268 ac_test_CXXFLAGS=${CXXFLAGS+set}
6269 ac_save_CXXFLAGS=$CXXFLAGS
6270 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6271 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6272 if test "${ac_cv_prog_cxx_g+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6276 ac_cxx_werror_flag=yes
6277 ac_cv_prog_cxx_g=no
6278 CXXFLAGS="-g"
6279 cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6287 main ()
6291 return 0;
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (ac_try="$ac_compile"
6296 case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6309 { (case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312 esac
6313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_try") 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6322 esac
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_try") 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_cv_prog_cxx_g=yes
6329 else
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 CXXFLAGS=""
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6342 main ()
6346 return 0;
6348 _ACEOF
6349 rm -f conftest.$ac_objext
6350 if { (ac_try="$ac_compile"
6351 case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest.$ac_objext'
6374 { (case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377 esac
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_try") 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6384 else
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6389 CXXFLAGS="-g"
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6398 main ()
6402 return 0;
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6407 case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_compile") 2>conftest.er1
6413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; } &&
6429 { ac_try='test -s conftest.$ac_objext'
6430 { (case "(($ac_try" in
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6433 esac
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_try") 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_prog_cxx_g=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6456 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6457 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6458 if test "$ac_test_CXXFLAGS" = set; then
6459 CXXFLAGS=$ac_save_CXXFLAGS
6460 elif test $ac_cv_prog_cxx_g = yes; then
6461 if test "$GXX" = yes; then
6462 CXXFLAGS="-g -O2"
6463 else
6464 CXXFLAGS="-g"
6466 else
6467 if test "$GXX" = yes; then
6468 CXXFLAGS="-O2"
6469 else
6470 CXXFLAGS=
6473 ac_ext=c
6474 ac_cpp='$CPP $CPPFLAGS'
6475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6480 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6481 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6482 if test "${lt_cv_path_NM+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 if test -n "$NM"; then
6486 # Let the user override the test.
6487 lt_cv_path_NM="$NM"
6488 else
6489 lt_nm_to_check="${ac_tool_prefix}nm"
6490 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6491 lt_nm_to_check="$lt_nm_to_check nm"
6493 for lt_tmp_nm in $lt_nm_to_check; do
6494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6495 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6496 IFS="$lt_save_ifs"
6497 test -z "$ac_dir" && ac_dir=.
6498 tmp_nm="$ac_dir/$lt_tmp_nm"
6499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6500 # Check to see if the nm accepts a BSD-compat flag.
6501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6502 # nm: unknown option "B" ignored
6503 # Tru64's nm complains that /dev/null is an invalid object file
6504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6505 */dev/null* | *'Invalid file or object type'*)
6506 lt_cv_path_NM="$tmp_nm -B"
6507 break
6510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6511 */dev/null*)
6512 lt_cv_path_NM="$tmp_nm -p"
6513 break
6516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6517 continue # so that we can try to find one that supports BSD flags
6519 esac
6521 esac
6523 done
6524 IFS="$lt_save_ifs"
6525 done
6526 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6529 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6530 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6531 NM="$lt_cv_path_NM"
6535 { echo "$as_me:$LINENO: checking for GNU make" >&5
6536 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6537 if test "${llvm_cv_gnu_make_command+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 llvm_cv_gnu_make_command=''
6541 for a in "$MAKE" make gmake gnumake ; do
6542 if test -z "$a" ; then continue ; fi ;
6543 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6544 then
6545 llvm_cv_gnu_make_command=$a ;
6546 break;
6548 done
6550 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6551 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6552 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6553 ifGNUmake='' ;
6554 else
6555 ifGNUmake='#' ;
6556 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6557 echo "${ECHO_T}\"Not found\"" >&6; };
6561 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6562 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6563 LN_S=$as_ln_s
6564 if test "$LN_S" = "ln -s"; then
6565 { echo "$as_me:$LINENO: result: yes" >&5
6566 echo "${ECHO_T}yes" >&6; }
6567 else
6568 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6569 echo "${ECHO_T}no, using $LN_S" >&6; }
6572 # Extract the first word of "cmp", so it can be a program name with args.
6573 set dummy cmp; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_CMP+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579 case $CMP in
6580 [\\/]* | ?:[\\/]*)
6581 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6595 done
6596 done
6597 IFS=$as_save_IFS
6599 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6601 esac
6603 CMP=$ac_cv_path_CMP
6604 if test -n "$CMP"; then
6605 { echo "$as_me:$LINENO: result: $CMP" >&5
6606 echo "${ECHO_T}$CMP" >&6; }
6607 else
6608 { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6613 # Extract the first word of "cp", so it can be a program name with args.
6614 set dummy cp; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_CP+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620 case $CP in
6621 [\\/]* | ?:[\\/]*)
6622 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6636 done
6637 done
6638 IFS=$as_save_IFS
6640 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6642 esac
6644 CP=$ac_cv_path_CP
6645 if test -n "$CP"; then
6646 { echo "$as_me:$LINENO: result: $CP" >&5
6647 echo "${ECHO_T}$CP" >&6; }
6648 else
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6654 # Extract the first word of "date", so it can be a program name with args.
6655 set dummy date; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_DATE+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661 case $DATE in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6681 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6683 esac
6685 DATE=$ac_cv_path_DATE
6686 if test -n "$DATE"; then
6687 { echo "$as_me:$LINENO: result: $DATE" >&5
6688 echo "${ECHO_T}$DATE" >&6; }
6689 else
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6695 # Extract the first word of "find", so it can be a program name with args.
6696 set dummy find; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_FIND+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 case $FIND in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6718 done
6719 done
6720 IFS=$as_save_IFS
6722 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6724 esac
6726 FIND=$ac_cv_path_FIND
6727 if test -n "$FIND"; then
6728 { echo "$as_me:$LINENO: result: $FIND" >&5
6729 echo "${ECHO_T}$FIND" >&6; }
6730 else
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6736 # Extract the first word of "grep", so it can be a program name with args.
6737 set dummy grep; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_GREP+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 case $GREP in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6759 done
6760 done
6761 IFS=$as_save_IFS
6763 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6765 esac
6767 GREP=$ac_cv_path_GREP
6768 if test -n "$GREP"; then
6769 { echo "$as_me:$LINENO: result: $GREP" >&5
6770 echo "${ECHO_T}$GREP" >&6; }
6771 else
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6777 # Extract the first word of "mkdir", so it can be a program name with args.
6778 set dummy mkdir; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_path_MKDIR+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784 case $MKDIR in
6785 [\\/]* | ?:[\\/]*)
6786 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6800 done
6801 done
6802 IFS=$as_save_IFS
6804 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6806 esac
6808 MKDIR=$ac_cv_path_MKDIR
6809 if test -n "$MKDIR"; then
6810 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6811 echo "${ECHO_T}$MKDIR" >&6; }
6812 else
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6818 # Extract the first word of "mv", so it can be a program name with args.
6819 set dummy mv; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_MV+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825 case $MV in
6826 [\\/]* | ?:[\\/]*)
6827 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6841 done
6842 done
6843 IFS=$as_save_IFS
6845 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6847 esac
6849 MV=$ac_cv_path_MV
6850 if test -n "$MV"; then
6851 { echo "$as_me:$LINENO: result: $MV" >&5
6852 echo "${ECHO_T}$MV" >&6; }
6853 else
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_prog_RANLIB+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 if test -n "$RANLIB"; then
6868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6881 done
6882 done
6883 IFS=$as_save_IFS
6887 RANLIB=$ac_cv_prog_RANLIB
6888 if test -n "$RANLIB"; then
6889 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6890 echo "${ECHO_T}$RANLIB" >&6; }
6891 else
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6898 if test -z "$ac_cv_prog_RANLIB"; then
6899 ac_ct_RANLIB=$RANLIB
6900 # Extract the first word of "ranlib", so it can be a program name with args.
6901 set dummy ranlib; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 if test -n "$ac_ct_RANLIB"; then
6908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_ac_ct_RANLIB="ranlib"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6921 done
6922 done
6923 IFS=$as_save_IFS
6927 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6928 if test -n "$ac_ct_RANLIB"; then
6929 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6930 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6931 else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6936 if test "x$ac_ct_RANLIB" = x; then
6937 RANLIB=":"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940 yes:)
6941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942 whose name does not start with the host triplet. If you think this
6943 configuration is useful to you, please write to autoconf@gnu.org." >&5
6944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet. If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949 RANLIB=$ac_ct_RANLIB
6951 else
6952 RANLIB="$ac_cv_prog_RANLIB"
6955 # Extract the first word of "rm", so it can be a program name with args.
6956 set dummy rm; ac_word=$2
6957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6959 if test "${ac_cv_path_RM+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 case $RM in
6963 [\\/]* | ?:[\\/]*)
6964 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6974 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6978 done
6979 done
6980 IFS=$as_save_IFS
6982 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6984 esac
6986 RM=$ac_cv_path_RM
6987 if test -n "$RM"; then
6988 { echo "$as_me:$LINENO: result: $RM" >&5
6989 echo "${ECHO_T}$RM" >&6; }
6990 else
6991 { echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6; }
6996 # Extract the first word of "sed", so it can be a program name with args.
6997 set dummy sed; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_path_SED+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 case $SED in
7004 [\\/]* | ?:[\\/]*)
7005 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7019 done
7020 done
7021 IFS=$as_save_IFS
7023 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7025 esac
7027 SED=$ac_cv_path_SED
7028 if test -n "$SED"; then
7029 { echo "$as_me:$LINENO: result: $SED" >&5
7030 echo "${ECHO_T}$SED" >&6; }
7031 else
7032 { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7037 # Extract the first word of "tar", so it can be a program name with args.
7038 set dummy tar; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_TAR+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 case $TAR in
7045 [\\/]* | ?:[\\/]*)
7046 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7060 done
7061 done
7062 IFS=$as_save_IFS
7064 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7066 esac
7068 TAR=$ac_cv_path_TAR
7069 if test -n "$TAR"; then
7070 { echo "$as_me:$LINENO: result: $TAR" >&5
7071 echo "${ECHO_T}$TAR" >&6; }
7072 else
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7078 # Extract the first word of "pwd", so it can be a program name with args.
7079 set dummy pwd; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_BINPWD+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 case $BINPWD in
7086 [\\/]* | ?:[\\/]*)
7087 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7101 done
7102 done
7103 IFS=$as_save_IFS
7105 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7107 esac
7109 BINPWD=$ac_cv_path_BINPWD
7110 if test -n "$BINPWD"; then
7111 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7112 echo "${ECHO_T}$BINPWD" >&6; }
7113 else
7114 { echo "$as_me:$LINENO: result: no" >&5
7115 echo "${ECHO_T}no" >&6; }
7120 # Extract the first word of "Graphviz", so it can be a program name with args.
7121 set dummy Graphviz; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127 case $GRAPHVIZ in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7143 done
7144 done
7145 IFS=$as_save_IFS
7147 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7149 esac
7151 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7152 if test -n "$GRAPHVIZ"; then
7153 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7154 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7155 else
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7161 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7163 cat >>confdefs.h <<\_ACEOF
7164 #define HAVE_GRAPHVIZ 1
7165 _ACEOF
7167 if test "$llvm_cv_os_type" = "MingW" ; then
7168 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7171 cat >>confdefs.h <<_ACEOF
7172 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7173 _ACEOF
7176 # Extract the first word of "dot", so it can be a program name with args.
7177 set dummy dot; ac_word=$2
7178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180 if test "${ac_cv_path_DOT+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183 case $DOT in
7184 [\\/]* | ?:[\\/]*)
7185 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7199 done
7200 done
7201 IFS=$as_save_IFS
7203 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7205 esac
7207 DOT=$ac_cv_path_DOT
7208 if test -n "$DOT"; then
7209 { echo "$as_me:$LINENO: result: $DOT" >&5
7210 echo "${ECHO_T}$DOT" >&6; }
7211 else
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7217 if test "$DOT" != "echo dot" ; then
7219 cat >>confdefs.h <<\_ACEOF
7220 #define HAVE_DOT 1
7221 _ACEOF
7223 if test "$llvm_cv_os_type" = "MingW" ; then
7224 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7227 cat >>confdefs.h <<_ACEOF
7228 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7229 _ACEOF
7232 # Extract the first word of "fdp", so it can be a program name with args.
7233 set dummy fdp; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_FDP+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 case $FDP in
7240 [\\/]* | ?:[\\/]*)
7241 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7255 done
7256 done
7257 IFS=$as_save_IFS
7259 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7261 esac
7263 FDP=$ac_cv_path_FDP
7264 if test -n "$FDP"; then
7265 { echo "$as_me:$LINENO: result: $FDP" >&5
7266 echo "${ECHO_T}$FDP" >&6; }
7267 else
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7273 if test "$FDP" != "echo fdp" ; then
7275 cat >>confdefs.h <<\_ACEOF
7276 #define HAVE_FDP 1
7277 _ACEOF
7279 if test "$llvm_cv_os_type" = "MingW" ; then
7280 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7283 cat >>confdefs.h <<_ACEOF
7284 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7285 _ACEOF
7288 # Extract the first word of "neato", so it can be a program name with args.
7289 set dummy neato; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_path_NEATO+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295 case $NEATO in
7296 [\\/]* | ?:[\\/]*)
7297 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7311 done
7312 done
7313 IFS=$as_save_IFS
7315 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7317 esac
7319 NEATO=$ac_cv_path_NEATO
7320 if test -n "$NEATO"; then
7321 { echo "$as_me:$LINENO: result: $NEATO" >&5
7322 echo "${ECHO_T}$NEATO" >&6; }
7323 else
7324 { echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6; }
7329 if test "$NEATO" != "echo neato" ; then
7331 cat >>confdefs.h <<\_ACEOF
7332 #define HAVE_NEATO 1
7333 _ACEOF
7335 if test "$llvm_cv_os_type" = "MingW" ; then
7336 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7339 cat >>confdefs.h <<_ACEOF
7340 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7341 _ACEOF
7344 # Extract the first word of "twopi", so it can be a program name with args.
7345 set dummy twopi; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_TWOPI+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 case $TWOPI in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7367 done
7368 done
7369 IFS=$as_save_IFS
7371 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7373 esac
7375 TWOPI=$ac_cv_path_TWOPI
7376 if test -n "$TWOPI"; then
7377 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7378 echo "${ECHO_T}$TWOPI" >&6; }
7379 else
7380 { echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6; }
7385 if test "$TWOPI" != "echo twopi" ; then
7387 cat >>confdefs.h <<\_ACEOF
7388 #define HAVE_TWOPI 1
7389 _ACEOF
7391 if test "$llvm_cv_os_type" = "MingW" ; then
7392 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7395 cat >>confdefs.h <<_ACEOF
7396 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7397 _ACEOF
7400 # Extract the first word of "circo", so it can be a program name with args.
7401 set dummy circo; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_CIRCO+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 case $CIRCO in
7408 [\\/]* | ?:[\\/]*)
7409 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7423 done
7424 done
7425 IFS=$as_save_IFS
7427 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7429 esac
7431 CIRCO=$ac_cv_path_CIRCO
7432 if test -n "$CIRCO"; then
7433 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7434 echo "${ECHO_T}$CIRCO" >&6; }
7435 else
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7441 if test "$CIRCO" != "echo circo" ; then
7443 cat >>confdefs.h <<\_ACEOF
7444 #define HAVE_CIRCO 1
7445 _ACEOF
7447 if test "$llvm_cv_os_type" = "MingW" ; then
7448 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7451 cat >>confdefs.h <<_ACEOF
7452 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7453 _ACEOF
7456 for ac_prog in gv gsview32
7458 # Extract the first word of "$ac_prog", so it can be a program name with args.
7459 set dummy $ac_prog; ac_word=$2
7460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7462 if test "${ac_cv_path_GV+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 case $GV in
7466 [\\/]* | ?:[\\/]*)
7467 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7477 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7481 done
7482 done
7483 IFS=$as_save_IFS
7486 esac
7488 GV=$ac_cv_path_GV
7489 if test -n "$GV"; then
7490 { echo "$as_me:$LINENO: result: $GV" >&5
7491 echo "${ECHO_T}$GV" >&6; }
7492 else
7493 { echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6; }
7498 test -n "$GV" && break
7499 done
7500 test -n "$GV" || GV="echo gv"
7502 if test "$GV" != "echo gv" ; then
7504 cat >>confdefs.h <<\_ACEOF
7505 #define HAVE_GV 1
7506 _ACEOF
7508 if test "$llvm_cv_os_type" = "MingW" ; then
7509 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7512 cat >>confdefs.h <<_ACEOF
7513 #define LLVM_PATH_GV "$GV${EXEEXT}"
7514 _ACEOF
7517 # Extract the first word of "dotty", so it can be a program name with args.
7518 set dummy dotty; ac_word=$2
7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521 if test "${ac_cv_path_DOTTY+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 case $DOTTY in
7525 [\\/]* | ?:[\\/]*)
7526 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7540 done
7541 done
7542 IFS=$as_save_IFS
7544 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7546 esac
7548 DOTTY=$ac_cv_path_DOTTY
7549 if test -n "$DOTTY"; then
7550 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7551 echo "${ECHO_T}$DOTTY" >&6; }
7552 else
7553 { echo "$as_me:$LINENO: result: no" >&5
7554 echo "${ECHO_T}no" >&6; }
7558 if test "$DOTTY" != "echo dotty" ; then
7560 cat >>confdefs.h <<\_ACEOF
7561 #define HAVE_DOTTY 1
7562 _ACEOF
7564 if test "$llvm_cv_os_type" = "MingW" ; then
7565 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7568 cat >>confdefs.h <<_ACEOF
7569 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7570 _ACEOF
7575 # Extract the first word of "perl", so it can be a program name with args.
7576 set dummy perl; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_PERL+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 case $PERL in
7583 [\\/]* | ?:[\\/]*)
7584 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7598 done
7599 done
7600 IFS=$as_save_IFS
7602 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7604 esac
7606 PERL=$ac_cv_path_PERL
7607 if test -n "$PERL"; then
7608 { echo "$as_me:$LINENO: result: $PERL" >&5
7609 echo "${ECHO_T}$PERL" >&6; }
7610 else
7611 { echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6; }
7616 if test "$PERL" != "none"; then
7617 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7618 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7619 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7620 { echo "$as_me:$LINENO: result: yes" >&5
7621 echo "${ECHO_T}yes" >&6; }
7622 else
7623 PERL=none
7624 { echo "$as_me:$LINENO: result: not found" >&5
7625 echo "${ECHO_T}not found" >&6; }
7630 if test x"$PERL" = xnone; then
7631 HAVE_PERL=0
7633 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7634 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7635 { (exit 1); exit 1; }; }
7636 else
7637 HAVE_PERL=1
7641 # Find a good install program. We prefer a C program (faster),
7642 # so one script is as good as another. But avoid the broken or
7643 # incompatible versions:
7644 # SysV /etc/install, /usr/sbin/install
7645 # SunOS /usr/etc/install
7646 # IRIX /sbin/install
7647 # AIX /bin/install
7648 # AmigaOS /C/install, which installs bootblocks on floppy discs
7649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7652 # OS/2's system install, which has a completely different semantic
7653 # ./install, which can be erroneously created by make from ./install.sh.
7654 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7655 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7656 if test -z "$INSTALL"; then
7657 if test "${ac_cv_path_install+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 # Account for people who put trailing slashes in PATH elements.
7666 case $as_dir/ in
7667 ./ | .// | /cC/* | \
7668 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7669 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7670 /usr/ucb/* ) ;;
7672 # OSF1 and SCO ODT 3.0 have their own names for install.
7673 # Don't use installbsd from OSF since it installs stuff as root
7674 # by default.
7675 for ac_prog in ginstall scoinst install; do
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7678 if test $ac_prog = install &&
7679 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7680 # AIX install. It has an incompatible calling convention.
7682 elif test $ac_prog = install &&
7683 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7684 # program-specific install script used by HP pwplus--don't use.
7686 else
7687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7688 break 3
7691 done
7692 done
7694 esac
7695 done
7696 IFS=$as_save_IFS
7700 if test "${ac_cv_path_install+set}" = set; then
7701 INSTALL=$ac_cv_path_install
7702 else
7703 # As a last resort, use the slow shell script. Don't cache a
7704 # value for INSTALL within a source directory, because that will
7705 # break other packages using the cache if that directory is
7706 # removed, or if the value is a relative name.
7707 INSTALL=$ac_install_sh
7710 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7711 echo "${ECHO_T}$INSTALL" >&6; }
7713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7714 # It thinks the first close brace ends the variable substitution.
7715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7719 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7722 # Extract the first word of "bzip2", so it can be a program name with args.
7723 set dummy bzip2; ac_word=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_path_BZIP2+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 case $BZIP2 in
7730 [\\/]* | ?:[\\/]*)
7731 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7745 done
7746 done
7747 IFS=$as_save_IFS
7750 esac
7752 BZIP2=$ac_cv_path_BZIP2
7753 if test -n "$BZIP2"; then
7754 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7755 echo "${ECHO_T}$BZIP2" >&6; }
7756 else
7757 { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7762 # Extract the first word of "doxygen", so it can be a program name with args.
7763 set dummy doxygen; ac_word=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769 case $DOXYGEN in
7770 [\\/]* | ?:[\\/]*)
7771 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7785 done
7786 done
7787 IFS=$as_save_IFS
7790 esac
7792 DOXYGEN=$ac_cv_path_DOXYGEN
7793 if test -n "$DOXYGEN"; then
7794 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7795 echo "${ECHO_T}$DOXYGEN" >&6; }
7796 else
7797 { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7802 # Extract the first word of "groff", so it can be a program name with args.
7803 set dummy groff; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_path_GROFF+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 case $GROFF in
7810 [\\/]* | ?:[\\/]*)
7811 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7825 done
7826 done
7827 IFS=$as_save_IFS
7830 esac
7832 GROFF=$ac_cv_path_GROFF
7833 if test -n "$GROFF"; then
7834 { echo "$as_me:$LINENO: result: $GROFF" >&5
7835 echo "${ECHO_T}$GROFF" >&6; }
7836 else
7837 { echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6; }
7842 # Extract the first word of "gzip", so it can be a program name with args.
7843 set dummy gzip; ac_word=$2
7844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7846 if test "${ac_cv_path_GZIP+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849 case $GZIP in
7850 [\\/]* | ?:[\\/]*)
7851 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7865 done
7866 done
7867 IFS=$as_save_IFS
7870 esac
7872 GZIP=$ac_cv_path_GZIP
7873 if test -n "$GZIP"; then
7874 { echo "$as_me:$LINENO: result: $GZIP" >&5
7875 echo "${ECHO_T}$GZIP" >&6; }
7876 else
7877 { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7882 # Extract the first word of "pod2html", so it can be a program name with args.
7883 set dummy pod2html; ac_word=$2
7884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886 if test "${ac_cv_path_POD2HTML+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 case $POD2HTML in
7890 [\\/]* | ?:[\\/]*)
7891 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7905 done
7906 done
7907 IFS=$as_save_IFS
7910 esac
7912 POD2HTML=$ac_cv_path_POD2HTML
7913 if test -n "$POD2HTML"; then
7914 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7915 echo "${ECHO_T}$POD2HTML" >&6; }
7916 else
7917 { echo "$as_me:$LINENO: result: no" >&5
7918 echo "${ECHO_T}no" >&6; }
7922 # Extract the first word of "pod2man", so it can be a program name with args.
7923 set dummy pod2man; ac_word=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_path_POD2MAN+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 case $POD2MAN in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7945 done
7946 done
7947 IFS=$as_save_IFS
7950 esac
7952 POD2MAN=$ac_cv_path_POD2MAN
7953 if test -n "$POD2MAN"; then
7954 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7955 echo "${ECHO_T}$POD2MAN" >&6; }
7956 else
7957 { echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6; }
7962 # Extract the first word of "runtest", so it can be a program name with args.
7963 set dummy runtest; ac_word=$2
7964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966 if test "${ac_cv_path_RUNTEST+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969 case $RUNTEST in
7970 [\\/]* | ?:[\\/]*)
7971 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7985 done
7986 done
7987 IFS=$as_save_IFS
7990 esac
7992 RUNTEST=$ac_cv_path_RUNTEST
7993 if test -n "$RUNTEST"; then
7994 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7995 echo "${ECHO_T}$RUNTEST" >&6; }
7996 else
7997 { echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6; }
8003 no_itcl=true
8004 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8005 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8007 # Check whether --with-tclinclude was given.
8008 if test "${with_tclinclude+set}" = set; then
8009 withval=$with_tclinclude; with_tclinclude=${withval}
8010 else
8011 with_tclinclude=''
8014 if test "${ac_cv_path_tclsh+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8018 if test x"${with_tclinclude}" != x ; then
8019 if test -f ${with_tclinclude}/tclsh ; then
8020 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8021 elif test -f ${with_tclinclude}/src/tclsh ; then
8022 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8023 else
8024 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8025 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8026 { (exit 1); exit 1; }; }
8030 if test x"${ac_cv_path_tclsh}" = x ; then
8031 { echo "$as_me:$LINENO: result: none" >&5
8032 echo "${ECHO_T}none" >&6; }
8033 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
8035 # Extract the first word of "$ac_prog", so it can be a program name with args.
8036 set dummy $ac_prog; ac_word=$2
8037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039 if test "${ac_cv_path_TCLSH+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042 case $TCLSH in
8043 [\\/]* | ?:[\\/]*)
8044 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8058 done
8059 done
8060 IFS=$as_save_IFS
8063 esac
8065 TCLSH=$ac_cv_path_TCLSH
8066 if test -n "$TCLSH"; then
8067 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8068 echo "${ECHO_T}$TCLSH" >&6; }
8069 else
8070 { echo "$as_me:$LINENO: result: no" >&5
8071 echo "${ECHO_T}no" >&6; }
8075 test -n "$TCLSH" && break
8076 done
8078 if test x"${TCLSH}" = x ; then
8079 ac_cv_path_tclsh='';
8080 else
8081 ac_cv_path_tclsh="${TCLSH}";
8083 else
8084 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8085 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8086 TCLSH="${ac_cv_path_tclsh}"
8092 # Extract the first word of "zip", so it can be a program name with args.
8093 set dummy zip; ac_word=$2
8094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096 if test "${ac_cv_path_ZIP+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099 case $ZIP in
8100 [\\/]* | ?:[\\/]*)
8101 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8115 done
8116 done
8117 IFS=$as_save_IFS
8120 esac
8122 ZIP=$ac_cv_path_ZIP
8123 if test -n "$ZIP"; then
8124 { echo "$as_me:$LINENO: result: $ZIP" >&5
8125 echo "${ECHO_T}$ZIP" >&6; }
8126 else
8127 { echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6; }
8132 for ac_prog in ocamlc
8134 # Extract the first word of "$ac_prog", so it can be a program name with args.
8135 set dummy $ac_prog; 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_OCAMLC+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141 case $OCAMLC in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_OCAMLC="$OCAMLC" # 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_OCAMLC="$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 OCAMLC=$ac_cv_path_OCAMLC
8165 if test -n "$OCAMLC"; then
8166 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8167 echo "${ECHO_T}$OCAMLC" >&6; }
8168 else
8169 { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8174 test -n "$OCAMLC" && break
8175 done
8177 for ac_prog in ocamlopt
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180 set dummy $ac_prog; ac_word=$2
8181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 case $OCAMLOPT in
8187 [\\/]* | ?:[\\/]*)
8188 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8198 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8202 done
8203 done
8204 IFS=$as_save_IFS
8207 esac
8209 OCAMLOPT=$ac_cv_path_OCAMLOPT
8210 if test -n "$OCAMLOPT"; then
8211 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8212 echo "${ECHO_T}$OCAMLOPT" >&6; }
8213 else
8214 { echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6; }
8219 test -n "$OCAMLOPT" && break
8220 done
8222 for ac_prog in ocamldep
8224 # Extract the first word of "$ac_prog", so it can be a program name with args.
8225 set dummy $ac_prog; ac_word=$2
8226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8228 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 case $OCAMLDEP in
8232 [\\/]* | ?:[\\/]*)
8233 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8247 done
8248 done
8249 IFS=$as_save_IFS
8252 esac
8254 OCAMLDEP=$ac_cv_path_OCAMLDEP
8255 if test -n "$OCAMLDEP"; then
8256 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8257 echo "${ECHO_T}$OCAMLDEP" >&6; }
8258 else
8259 { echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6; }
8264 test -n "$OCAMLDEP" && break
8265 done
8267 for ac_prog in ocamldoc
8269 # Extract the first word of "$ac_prog", so it can be a program name with args.
8270 set dummy $ac_prog; ac_word=$2
8271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8273 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276 case $OCAMLDOC in
8277 [\\/]* | ?:[\\/]*)
8278 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8292 done
8293 done
8294 IFS=$as_save_IFS
8297 esac
8299 OCAMLDOC=$ac_cv_path_OCAMLDOC
8300 if test -n "$OCAMLDOC"; then
8301 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8302 echo "${ECHO_T}$OCAMLDOC" >&6; }
8303 else
8304 { echo "$as_me:$LINENO: result: no" >&5
8305 echo "${ECHO_T}no" >&6; }
8309 test -n "$OCAMLDOC" && break
8310 done
8312 for ac_prog in gas as
8314 # Extract the first word of "$ac_prog", so it can be a program name with args.
8315 set dummy $ac_prog; ac_word=$2
8316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8318 if test "${ac_cv_path_GAS+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 case $GAS in
8322 [\\/]* | ?:[\\/]*)
8323 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8333 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8337 done
8338 done
8339 IFS=$as_save_IFS
8342 esac
8344 GAS=$ac_cv_path_GAS
8345 if test -n "$GAS"; then
8346 { echo "$as_me:$LINENO: result: $GAS" >&5
8347 echo "${ECHO_T}$GAS" >&6; }
8348 else
8349 { echo "$as_me:$LINENO: result: no" >&5
8350 echo "${ECHO_T}no" >&6; }
8354 test -n "$GAS" && break
8355 done
8358 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8359 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8360 if test "${llvm_cv_link_use_r+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363 ac_ext=c
8364 ac_cpp='$CPP $CPPFLAGS'
8365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8369 oldcflags="$CFLAGS"
8370 CFLAGS="$CFLAGS -Wl,-R."
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h. */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8379 main ()
8381 int main() { return 0; }
8383 return 0;
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8388 case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_link") 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_try") 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 llvm_cv_link_use_r=yes
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 llvm_cv_link_use_r=no
8428 rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
8430 CFLAGS="$oldcflags"
8431 ac_ext=c
8432 ac_cpp='$CPP $CPPFLAGS'
8433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8439 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8440 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8441 if test "$llvm_cv_link_use_r" = yes ; then
8443 cat >>confdefs.h <<\_ACEOF
8444 #define HAVE_LINK_R 1
8445 _ACEOF
8450 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8451 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8452 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455 ac_ext=c
8456 ac_cpp='$CPP $CPPFLAGS'
8457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8461 oldcflags="$CFLAGS"
8462 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h. */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8471 main ()
8473 int main() { return 0; }
8475 return 0;
8477 _ACEOF
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8480 case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483 esac
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_link") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 llvm_cv_link_use_export_dynamic=yes
8513 else
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 llvm_cv_link_use_export_dynamic=no
8520 rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8522 CFLAGS="$oldcflags"
8523 ac_ext=c
8524 ac_cpp='$CPP $CPPFLAGS'
8525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8531 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8532 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8533 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8535 cat >>confdefs.h <<\_ACEOF
8536 #define HAVE_LINK_EXPORT_DYNAMIC 1
8537 _ACEOF
8544 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8545 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8546 if test "${ac_cv_c_const+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8557 main ()
8559 /* FIXME: Include the comments suggested by Paul. */
8560 #ifndef __cplusplus
8561 /* Ultrix mips cc rejects this. */
8562 typedef int charset[2];
8563 const charset x;
8564 /* SunOS 4.1.1 cc rejects this. */
8565 char const *const *ccp;
8566 char **p;
8567 /* NEC SVR4.0.2 mips cc rejects this. */
8568 struct point {int x, y;};
8569 static struct point const zero = {0,0};
8570 /* AIX XL C 1.02.0.0 rejects this.
8571 It does not let you subtract one const X* pointer from another in
8572 an arm of an if-expression whose if-part is not a constant
8573 expression */
8574 const char *g = "string";
8575 ccp = &g + (g ? g-g : 0);
8576 /* HPUX 7.0 cc rejects these. */
8577 ++ccp;
8578 p = (char**) ccp;
8579 ccp = (char const *const *) p;
8580 { /* SCO 3.2v4 cc rejects this. */
8581 char *t;
8582 char const *s = 0 ? (char *) 0 : (char const *) 0;
8584 *t++ = 0;
8585 if (s) return 0;
8587 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8588 int x[] = {25, 17};
8589 const int *foo = &x[0];
8590 ++foo;
8592 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8593 typedef const int *iptr;
8594 iptr p = 0;
8595 ++p;
8597 { /* AIX XL C 1.02.0.0 rejects this saying
8598 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8599 struct s { int j; const int *ap[3]; };
8600 struct s *b; b->j = 5;
8602 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8603 const int foo = 10;
8604 if (!foo) return 0;
8606 return !x[0] && !zero.x;
8607 #endif
8610 return 0;
8612 _ACEOF
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8615 case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8621 ac_status=$?
8622 grep -v '^ *+' conftest.er1 >conftest.err
8623 rm -f conftest.er1
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_try") 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 ac_cv_c_const=yes
8648 else
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8652 ac_cv_c_const=no
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8658 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8659 if test $ac_cv_c_const = no; then
8661 cat >>confdefs.h <<\_ACEOF
8662 #define const
8663 _ACEOF
8672 ac_header_dirent=no
8673 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8674 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8675 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8676 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 #include <sys/types.h>
8687 #include <$ac_hdr>
8690 main ()
8692 if ((DIR *) 0)
8693 return 0;
8695 return 0;
8697 _ACEOF
8698 rm -f conftest.$ac_objext
8699 if { (ac_try="$ac_compile"
8700 case "(($ac_try" in
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8703 esac
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_compile") 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8713 { (case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8716 esac
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_try") 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest.$ac_objext'
8723 { (case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_try") 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 eval "$as_ac_Header=yes"
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 eval "$as_ac_Header=no"
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 ac_res=`eval echo '${'$as_ac_Header'}'`
8743 { echo "$as_me:$LINENO: result: $ac_res" >&5
8744 echo "${ECHO_T}$ac_res" >&6; }
8745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8748 _ACEOF
8750 ac_header_dirent=$ac_hdr; break
8753 done
8754 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8755 if test $ac_header_dirent = dirent.h; then
8756 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8757 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8758 if test "${ac_cv_search_opendir+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761 ac_func_search_save_LIBS=$LIBS
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h. */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8769 /* Override any GCC internal prototype to avoid an error.
8770 Use char because int might match the return type of a GCC
8771 builtin and then its argument prototype would still apply. */
8772 #ifdef __cplusplus
8773 extern "C"
8774 #endif
8775 char opendir ();
8777 main ()
8779 return opendir ();
8781 return 0;
8783 _ACEOF
8784 for ac_lib in '' dir; do
8785 if test -z "$ac_lib"; then
8786 ac_res="none required"
8787 else
8788 ac_res=-l$ac_lib
8789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (ac_try="$ac_link"
8793 case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8796 esac
8797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8798 (eval "$ac_link") 2>conftest.er1
8799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806 { (case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8809 esac
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_try") 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest$ac_exeext'
8816 { (case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8819 esac
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_try") 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_search_opendir=$ac_res
8826 else
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8833 rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext
8835 if test "${ac_cv_search_opendir+set}" = set; then
8836 break
8838 done
8839 if test "${ac_cv_search_opendir+set}" = set; then
8841 else
8842 ac_cv_search_opendir=no
8844 rm conftest.$ac_ext
8845 LIBS=$ac_func_search_save_LIBS
8847 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8848 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8849 ac_res=$ac_cv_search_opendir
8850 if test "$ac_res" != no; then
8851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8855 else
8856 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8857 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8858 if test "${ac_cv_search_opendir+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 else
8861 ac_func_search_save_LIBS=$LIBS
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 char opendir ();
8877 main ()
8879 return opendir ();
8881 return 0;
8883 _ACEOF
8884 for ac_lib in '' x; do
8885 if test -z "$ac_lib"; then
8886 ac_res="none required"
8887 else
8888 ac_res=-l$ac_lib
8889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (ac_try="$ac_link"
8893 case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_link") 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8906 { (case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909 esac
8910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_try") 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919 esac
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_try") 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 ac_cv_search_opendir=$ac_res
8926 else
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8933 rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext
8935 if test "${ac_cv_search_opendir+set}" = set; then
8936 break
8938 done
8939 if test "${ac_cv_search_opendir+set}" = set; then
8941 else
8942 ac_cv_search_opendir=no
8944 rm conftest.$ac_ext
8945 LIBS=$ac_func_search_save_LIBS
8947 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8948 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8949 ac_res=$ac_cv_search_opendir
8950 if test "$ac_res" != no; then
8951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8958 for ac_header in dlfcn.h
8960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 ac_res=`eval echo '${'$as_ac_Header'}'`
8968 { echo "$as_me:$LINENO: result: $ac_res" >&5
8969 echo "${ECHO_T}$ac_res" >&6; }
8970 else
8971 # Is the header compilable?
8972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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. */
8980 $ac_includes_default
8981 #include <$ac_header>
8982 _ACEOF
8983 rm -f conftest.$ac_objext
8984 if { (ac_try="$ac_compile"
8985 case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998 { (case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9001 esac
9002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003 (eval "$ac_try") 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest.$ac_objext'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011 esac
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_header_compiler=yes
9018 else
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_header_compiler=no
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9027 echo "${ECHO_T}$ac_header_compiler" >&6; }
9029 # Is the header present?
9030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9038 #include <$ac_header>
9039 _ACEOF
9040 if { (ac_try="$ac_cpp conftest.$ac_ext"
9041 case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044 esac
9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } >/dev/null; then
9053 if test -s conftest.err; then
9054 ac_cpp_err=$ac_c_preproc_warn_flag
9055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9056 else
9057 ac_cpp_err=
9059 else
9060 ac_cpp_err=yes
9062 if test -z "$ac_cpp_err"; then
9063 ac_header_preproc=yes
9064 else
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_header_preproc=no
9071 rm -f conftest.err conftest.$ac_ext
9072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9073 echo "${ECHO_T}$ac_header_preproc" >&6; }
9075 # So? What about this header?
9076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9077 yes:no: )
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9082 ac_header_preproc=yes
9084 no:yes:* )
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9097 ( cat <<\_ASBOX
9098 ## ----------------------------------- ##
9099 ## Report this to llvmbugs@cs.uiuc.edu ##
9100 ## ----------------------------------- ##
9101 _ASBOX
9102 ) | sed "s/^/$as_me: WARNING: /" >&2
9104 esac
9105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110 eval "$as_ac_Header=\$ac_header_preproc"
9112 ac_res=`eval echo '${'$as_ac_Header'}'`
9113 { echo "$as_me:$LINENO: result: $ac_res" >&5
9114 echo "${ECHO_T}$ac_res" >&6; }
9117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9118 cat >>confdefs.h <<_ACEOF
9119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9120 _ACEOF
9124 done
9126 # Check whether --enable-ltdl-install was given.
9127 if test "${enable_ltdl_install+set}" = set; then
9128 enableval=$enable_ltdl_install;
9134 if test x"${enable_ltdl_install-no}" != xno; then
9135 INSTALL_LTDL_TRUE=
9136 INSTALL_LTDL_FALSE='#'
9137 else
9138 INSTALL_LTDL_TRUE='#'
9139 INSTALL_LTDL_FALSE=
9144 if test x"${enable_ltdl_convenience-no}" != xno; then
9145 CONVENIENCE_LTDL_TRUE=
9146 CONVENIENCE_LTDL_FALSE='#'
9147 else
9148 CONVENIENCE_LTDL_TRUE='#'
9149 CONVENIENCE_LTDL_FALSE=
9153 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9154 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9155 library_names_spec=
9156 libname_spec='lib$name'
9157 soname_spec=
9158 shrext_cmds=".so"
9159 postinstall_cmds=
9160 postuninstall_cmds=
9161 finish_cmds=
9162 finish_eval=
9163 shlibpath_var=
9164 shlibpath_overrides_runpath=unknown
9165 version_type=none
9166 dynamic_linker="$host_os ld.so"
9167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9168 if test "$GCC" = yes; then
9169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9170 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9171 # if the path contains ";" then we assume it to be the separator
9172 # otherwise default to the standard path separator (i.e. ":") - it is
9173 # assumed that no part of a normal pathname contains ";" but that should
9174 # okay in the real world where ";" in dirpaths is itself problematic.
9175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9176 else
9177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9179 else
9180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9182 need_lib_prefix=unknown
9183 hardcode_into_libs=no
9185 # when you set need_version to no, make sure it does not cause -set_version
9186 # flags to be left without arguments
9187 need_version=unknown
9189 case $host_os in
9190 aix3*)
9191 version_type=linux
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9193 shlibpath_var=LIBPATH
9195 # AIX 3 has no versioning support, so we append a major version to the name.
9196 soname_spec='${libname}${release}${shared_ext}$major'
9199 aix4* | aix5*)
9200 version_type=linux
9201 need_lib_prefix=no
9202 need_version=no
9203 hardcode_into_libs=yes
9204 if test "$host_cpu" = ia64; then
9205 # AIX 5 supports IA64
9206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 else
9209 # With GCC up to 2.95.x, collect2 would create an import file
9210 # for dependence libraries. The import file would start with
9211 # the line `#! .'. This would cause the generated library to
9212 # depend on `.', always an invalid library. This was fixed in
9213 # development snapshots of GCC prior to 3.0.
9214 case $host_os in
9215 aix4 | aix4.[01] | aix4.[01].*)
9216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9217 echo ' yes '
9218 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9220 else
9221 can_build_shared=no
9224 esac
9225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9226 # soname into executable. Probably we can add versioning support to
9227 # collect2, so additional links can be useful in future.
9228 if test "$aix_use_runtimelinking" = yes; then
9229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9230 # instead of lib<name>.a to let people know that these are not
9231 # typical AIX shared libraries.
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 else
9234 # We preserve .a as extension for shared libraries through AIX4.2
9235 # and later when we are not doing run time linking.
9236 library_names_spec='${libname}${release}.a $libname.a'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LIBPATH
9243 amigaos*)
9244 library_names_spec='$libname.ixlibrary $libname.a'
9245 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9246 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'
9249 beos*)
9250 library_names_spec='${libname}${shared_ext}'
9251 dynamic_linker="$host_os ld.so"
9252 shlibpath_var=LIBRARY_PATH
9255 bsdi[45]*)
9256 version_type=linux
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9264 # the default ld.so.conf also contains /usr/contrib/lib and
9265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9266 # libtool to hard-code these into programs
9269 cygwin* | mingw* | pw32*)
9270 version_type=windows
9271 shrext_cmds=".dll"
9272 need_version=no
9273 need_lib_prefix=no
9275 case $GCC,$host_os in
9276 yes,cygwin* | yes,mingw* | yes,pw32*)
9277 library_names_spec='$libname.dll.a'
9278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9279 postinstall_cmds='base_file=`basename \${file}`~
9280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9281 dldir=$destdir/`dirname \$dlpath`~
9282 test -d \$dldir || mkdir -p \$dldir~
9283 $install_prog $dir/$dlname \$dldir/$dlname~
9284 chmod a+x \$dldir/$dlname'
9285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9286 dlpath=$dir/\$dldll~
9287 $rm \$dlpath'
9288 shlibpath_overrides_runpath=yes
9290 case $host_os in
9291 cygwin*)
9292 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9294 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9296 mingw*)
9297 # MinGW DLLs use traditional 'lib' prefix
9298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9300 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9301 # It is most probably a Windows format PATH printed by
9302 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9303 # path with ; separators, and with drive letters. We can handle the
9304 # drive letters (cygwin fileutils understands them), so leave them,
9305 # especially as we might pass files found there to a mingw objdump,
9306 # which wouldn't understand a cygwinified path. Ahh.
9307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9308 else
9309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9312 pw32*)
9313 # pw32 DLLs use 'pw' prefix rather than 'lib'
9314 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9316 esac
9320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9322 esac
9323 dynamic_linker='Win32 ld.exe'
9324 # FIXME: first we should search . and the directory the executable is in
9325 shlibpath_var=PATH
9328 darwin* | rhapsody*)
9329 dynamic_linker="$host_os dyld"
9330 version_type=darwin
9331 need_lib_prefix=no
9332 need_version=no
9333 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9334 soname_spec='${libname}${release}${major}$shared_ext'
9335 shlibpath_overrides_runpath=yes
9336 shlibpath_var=DYLD_LIBRARY_PATH
9337 shrext_cmds='.dylib'
9338 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9339 if test "$GCC" = yes; then
9340 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"`
9341 else
9342 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9347 dgux*)
9348 version_type=linux
9349 need_lib_prefix=no
9350 need_version=no
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9356 freebsd1*)
9357 dynamic_linker=no
9360 kfreebsd*-gnu)
9361 version_type=linux
9362 need_lib_prefix=no
9363 need_version=no
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath=no
9368 hardcode_into_libs=yes
9369 dynamic_linker='GNU ld.so'
9372 freebsd* | dragonfly*)
9373 # DragonFly does not have aout. When/if they implement a new
9374 # versioning mechanism, adjust this.
9375 if test -x /usr/bin/objformat; then
9376 objformat=`/usr/bin/objformat`
9377 else
9378 case $host_os in
9379 freebsd[123]*) objformat=aout ;;
9380 *) objformat=elf ;;
9381 esac
9383 version_type=freebsd-$objformat
9384 case $version_type in
9385 freebsd-elf*)
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9387 need_version=no
9388 need_lib_prefix=no
9390 freebsd-*)
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9392 need_version=yes
9394 esac
9395 shlibpath_var=LD_LIBRARY_PATH
9396 case $host_os in
9397 freebsd2*)
9398 shlibpath_overrides_runpath=yes
9400 freebsd3.[01]* | freebsdelf3.[01]*)
9401 shlibpath_overrides_runpath=yes
9402 hardcode_into_libs=yes
9404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9406 shlibpath_overrides_runpath=no
9407 hardcode_into_libs=yes
9409 freebsd*) # from 4.6 on
9410 shlibpath_overrides_runpath=yes
9411 hardcode_into_libs=yes
9413 esac
9416 gnu*)
9417 version_type=linux
9418 need_lib_prefix=no
9419 need_version=no
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 hardcode_into_libs=yes
9426 hpux9* | hpux10* | hpux11*)
9427 # Give a soname corresponding to the major version so that dld.sl refuses to
9428 # link against other versions.
9429 version_type=sunos
9430 need_lib_prefix=no
9431 need_version=no
9432 case $host_cpu in
9433 ia64*)
9434 shrext_cmds='.so'
9435 hardcode_into_libs=yes
9436 dynamic_linker="$host_os dld.so"
9437 shlibpath_var=LD_LIBRARY_PATH
9438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 if test "X$HPUX_IA64_MODE" = X32; then
9442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9443 else
9444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9448 hppa*64*)
9449 shrext_cmds='.sl'
9450 hardcode_into_libs=yes
9451 dynamic_linker="$host_os dld.sl"
9452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9460 shrext_cmds='.sl'
9461 dynamic_linker="$host_os dld.sl"
9462 shlibpath_var=SHLIB_PATH
9463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9467 esac
9468 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9469 postinstall_cmds='chmod 555 $lib'
9472 interix3*)
9473 version_type=linux
9474 need_lib_prefix=no
9475 need_version=no
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 shlibpath_overrides_runpath=no
9481 hardcode_into_libs=yes
9484 irix5* | irix6* | nonstopux*)
9485 case $host_os in
9486 nonstopux*) version_type=nonstopux ;;
9488 if test "$lt_cv_prog_gnu_ld" = yes; then
9489 version_type=linux
9490 else
9491 version_type=irix
9492 fi ;;
9493 esac
9494 need_lib_prefix=no
9495 need_version=no
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9498 case $host_os in
9499 irix5* | nonstopux*)
9500 libsuff= shlibsuff=
9503 case $LD in # libtool.m4 will add one of these switches to LD
9504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9505 libsuff= shlibsuff= libmagic=32-bit;;
9506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9507 libsuff=32 shlibsuff=N32 libmagic=N32;;
9508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9510 *) libsuff= shlibsuff= libmagic=never-match;;
9511 esac
9513 esac
9514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9515 shlibpath_overrides_runpath=no
9516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9518 hardcode_into_libs=yes
9521 # No shared lib support for Linux oldld, aout, or coff.
9522 linux*oldld* | linux*aout* | linux*coff*)
9523 dynamic_linker=no
9526 # This must be Linux ELF.
9527 linux*)
9528 version_type=linux
9529 need_lib_prefix=no
9530 need_version=no
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 shlibpath_overrides_runpath=no
9536 # This implies no fast_install, which is unacceptable.
9537 # Some rework will be needed to allow for fast_install
9538 # before this can be enabled.
9539 hardcode_into_libs=yes
9541 # Append ld.so.conf contents to the search path
9542 if test -f /etc/ld.so.conf; then
9543 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' ' '`
9544 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9547 # We used to test for /lib/ld.so.1 and disable shared libraries on
9548 # powerpc, because MkLinux only supported shared libraries with the
9549 # GNU dynamic linker. Since this was broken with cross compilers,
9550 # most powerpc-linux boxes support dynamic linking these days and
9551 # people can always --disable-shared, the test was removed, and we
9552 # assume the GNU/Linux dynamic linker is in use.
9553 dynamic_linker='GNU/Linux ld.so'
9556 knetbsd*-gnu)
9557 version_type=linux
9558 need_lib_prefix=no
9559 need_version=no
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=no
9564 hardcode_into_libs=yes
9565 dynamic_linker='GNU ld.so'
9568 netbsd*)
9569 version_type=sunos
9570 need_lib_prefix=no
9571 need_version=no
9572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9575 dynamic_linker='NetBSD (a.out) ld.so'
9576 else
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 dynamic_linker='NetBSD ld.elf_so'
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=yes
9583 hardcode_into_libs=yes
9586 newsos6)
9587 version_type=linux
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 shlibpath_overrides_runpath=yes
9593 nto-qnx*)
9594 version_type=linux
9595 need_lib_prefix=no
9596 need_version=no
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 shlibpath_overrides_runpath=yes
9603 openbsd*)
9604 version_type=sunos
9605 sys_lib_dlsearch_path_spec="/usr/lib"
9606 need_lib_prefix=no
9607 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9608 case $host_os in
9609 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9610 *) need_version=no ;;
9611 esac
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9616 case $host_os in
9617 openbsd2.[89] | openbsd2.[89].*)
9618 shlibpath_overrides_runpath=no
9621 shlibpath_overrides_runpath=yes
9623 esac
9624 else
9625 shlibpath_overrides_runpath=yes
9629 os2*)
9630 libname_spec='$name'
9631 shrext_cmds=".dll"
9632 need_lib_prefix=no
9633 library_names_spec='$libname${shared_ext} $libname.a'
9634 dynamic_linker='OS/2 ld.exe'
9635 shlibpath_var=LIBPATH
9638 osf3* | osf4* | osf5*)
9639 version_type=osf
9640 need_lib_prefix=no
9641 need_version=no
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9649 solaris*)
9650 version_type=linux
9651 need_lib_prefix=no
9652 need_version=no
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 shlibpath_overrides_runpath=yes
9657 hardcode_into_libs=yes
9658 # ldd complains unless libraries are executable
9659 postinstall_cmds='chmod +x $lib'
9662 sunos4*)
9663 version_type=sunos
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9665 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 shlibpath_overrides_runpath=yes
9668 if test "$with_gnu_ld" = yes; then
9669 need_lib_prefix=no
9671 need_version=yes
9674 sysv4 | sysv4.3*)
9675 version_type=linux
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'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 case $host_vendor in
9680 sni)
9681 shlibpath_overrides_runpath=no
9682 need_lib_prefix=no
9683 export_dynamic_flag_spec='${wl}-Blargedynsym'
9684 runpath_var=LD_RUN_PATH
9686 siemens)
9687 need_lib_prefix=no
9689 motorola)
9690 need_lib_prefix=no
9691 need_version=no
9692 shlibpath_overrides_runpath=no
9693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9695 esac
9698 sysv4*MP*)
9699 if test -d /usr/nec ;then
9700 version_type=linux
9701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9702 soname_spec='$libname${shared_ext}.$major'
9703 shlibpath_var=LD_LIBRARY_PATH
9707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9708 version_type=freebsd-elf
9709 need_lib_prefix=no
9710 need_version=no
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9712 soname_spec='${libname}${release}${shared_ext}$major'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 hardcode_into_libs=yes
9715 if test "$with_gnu_ld" = yes; then
9716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9717 shlibpath_overrides_runpath=no
9718 else
9719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9720 shlibpath_overrides_runpath=yes
9721 case $host_os in
9722 sco3.2v5*)
9723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9725 esac
9727 sys_lib_dlsearch_path_spec='/usr/lib'
9730 uts4*)
9731 version_type=linux
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 shlibpath_var=LD_LIBRARY_PATH
9738 dynamic_linker=no
9740 esac
9741 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9742 echo "${ECHO_T}$dynamic_linker" >&6; }
9743 test "$dynamic_linker" = no && can_build_shared=no
9745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9746 if test "$GCC" = yes; then
9747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9751 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9752 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9753 if test "${libltdl_cv_shlibext+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9757 module=yes
9758 eval libltdl_cv_shlibext=$shrext_cmds
9761 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9762 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9763 if test -n "$libltdl_cv_shlibext"; then
9765 cat >>confdefs.h <<_ACEOF
9766 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9767 _ACEOF
9772 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9773 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9774 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777 libltdl_cv_shlibpath_var="$shlibpath_var"
9779 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9780 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9781 if test -n "$libltdl_cv_shlibpath_var"; then
9783 cat >>confdefs.h <<_ACEOF
9784 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9785 _ACEOF
9790 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9791 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9792 if test "${libltdl_cv_sys_search_path+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9797 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9798 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9799 if test -n "$libltdl_cv_sys_search_path"; then
9800 sys_search_path=
9801 for dir in $libltdl_cv_sys_search_path; do
9802 if test -z "$sys_search_path"; then
9803 sys_search_path="$dir"
9804 else
9805 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9807 done
9809 cat >>confdefs.h <<_ACEOF
9810 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9811 _ACEOF
9815 { echo "$as_me:$LINENO: checking for objdir" >&5
9816 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9817 if test "${libltdl_cv_objdir+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820 libltdl_cv_objdir="$objdir"
9821 if test -n "$objdir"; then
9823 else
9824 rm -f .libs 2>/dev/null
9825 mkdir .libs 2>/dev/null
9826 if test -d .libs; then
9827 libltdl_cv_objdir=.libs
9828 else
9829 # MS-DOS does not allow filenames that begin with a dot.
9830 libltdl_cv_objdir=_libs
9832 rmdir .libs 2>/dev/null
9836 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9837 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9839 cat >>confdefs.h <<_ACEOF
9840 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9841 _ACEOF
9848 # Check for command to grab the raw symbol name followed by C symbol from nm.
9849 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9850 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9851 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 else
9855 # These are sane defaults that work on at least a few old systems.
9856 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9858 # Character class describing NM global symbol codes.
9859 symcode='[BCDEGRST]'
9861 # Regexp to match symbols that can be accessed directly from C.
9862 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9864 # Transform an extracted symbol line into a proper C declaration
9865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9867 # Transform an extracted symbol line into symbol name and symbol address
9868 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'"
9870 # Define system-specific variables.
9871 case $host_os in
9872 aix*)
9873 symcode='[BCDT]'
9875 cygwin* | mingw* | pw32*)
9876 symcode='[ABCDGISTW]'
9878 hpux*) # Its linker distinguishes data from code symbols
9879 if test "$host_cpu" = ia64; then
9880 symcode='[ABCDEGRST]'
9882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9883 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'"
9885 linux*)
9886 if test "$host_cpu" = ia64; then
9887 symcode='[ABCDGIRSTW]'
9888 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9889 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'"
9892 irix* | nonstopux*)
9893 symcode='[BCDEGRST]'
9895 osf*)
9896 symcode='[BCDEGQRST]'
9898 solaris*)
9899 symcode='[BDRT]'
9901 sco3.2v5*)
9902 symcode='[DT]'
9904 sysv4.2uw2*)
9905 symcode='[DT]'
9907 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9908 symcode='[ABDT]'
9910 sysv4)
9911 symcode='[DFNSTU]'
9913 esac
9915 # Handle CRLF in mingw tool chain
9916 opt_cr=
9917 case $build_os in
9918 mingw*)
9919 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9921 esac
9923 # If we're using GNU nm, then use its standard symbol codes.
9924 case `$NM -V 2>&1` in
9925 *GNU* | *'with BFD'*)
9926 symcode='[ABCDGIRSTW]' ;;
9927 esac
9929 # Try without a prefix undercore, then with it.
9930 for ac_symprfx in "" "_"; do
9932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9933 symxfrm="\\1 $ac_symprfx\\2 \\2"
9935 # Write the raw and C identifiers.
9936 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9938 # Check to see that the pipe works correctly.
9939 pipe_works=no
9941 rm -f conftest*
9942 cat > conftest.$ac_ext <<EOF
9943 #ifdef __cplusplus
9944 extern "C" {
9945 #endif
9946 char nm_test_var;
9947 void nm_test_func(){}
9948 #ifdef __cplusplus
9950 #endif
9951 int main(){nm_test_var='a';nm_test_func();return(0);}
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; then
9959 # Now try to grab the symbols.
9960 nlist=conftest.nm
9961 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9962 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && test -s "$nlist"; then
9966 # Try sorting and uniquifying the output.
9967 if sort "$nlist" | uniq > "$nlist"T; then
9968 mv -f "$nlist"T "$nlist"
9969 else
9970 rm -f "$nlist"T
9973 # Make sure that we snagged all the symbols we need.
9974 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9975 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9976 cat <<EOF > conftest.$ac_ext
9977 #ifdef __cplusplus
9978 extern "C" {
9979 #endif
9982 # Now generate the symbol file.
9983 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9985 cat <<EOF >> conftest.$ac_ext
9986 #if defined (__STDC__) && __STDC__
9987 # define lt_ptr_t void *
9988 #else
9989 # define lt_ptr_t char *
9990 # define const
9991 #endif
9993 /* The mapping between symbol names and symbols. */
9994 const struct {
9995 const char *name;
9996 lt_ptr_t address;
9998 lt_preloaded_symbols[] =
10001 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10002 cat <<\EOF >> conftest.$ac_ext
10003 {0, (lt_ptr_t) 0}
10006 #ifdef __cplusplus
10008 #endif
10010 # Now try linking the two files.
10011 mv conftest.$ac_objext conftstm.$ac_objext
10012 lt_save_LIBS="$LIBS"
10013 lt_save_CFLAGS="$CFLAGS"
10014 LIBS="conftstm.$ac_objext"
10015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017 (eval $ac_link) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10021 pipe_works=yes
10023 LIBS="$lt_save_LIBS"
10024 CFLAGS="$lt_save_CFLAGS"
10025 else
10026 echo "cannot find nm_test_func in $nlist" >&5
10028 else
10029 echo "cannot find nm_test_var in $nlist" >&5
10031 else
10032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10034 else
10035 echo "$progname: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10038 rm -f conftest* conftst*
10040 # Do not use the global_symbol_pipe unless it works.
10041 if test "$pipe_works" = yes; then
10042 break
10043 else
10044 lt_cv_sys_global_symbol_pipe=
10046 done
10050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10051 lt_cv_sys_global_symbol_to_cdecl=
10053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10054 { echo "$as_me:$LINENO: result: failed" >&5
10055 echo "${ECHO_T}failed" >&6; }
10056 else
10057 { echo "$as_me:$LINENO: result: ok" >&5
10058 echo "${ECHO_T}ok" >&6; }
10062 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10063 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10064 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10068 libltdl_cv_preloaded_symbols=yes
10069 else
10070 libltdl_cv_preloaded_symbols=no
10074 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10075 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10076 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10078 cat >>confdefs.h <<\_ACEOF
10079 #define HAVE_PRELOADED_SYMBOLS 1
10080 _ACEOF
10084 LIBADD_DL=
10086 ac_ext=c
10087 ac_cpp='$CPP $CPPFLAGS'
10088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10093 { echo "$as_me:$LINENO: checking for shl_load" >&5
10094 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10095 if test "${ac_cv_func_shl_load+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10106 #define shl_load innocuous_shl_load
10108 /* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char shl_load (); below.
10110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111 <limits.h> exists even on freestanding compilers. */
10113 #ifdef __STDC__
10114 # include <limits.h>
10115 #else
10116 # include <assert.h>
10117 #endif
10119 #undef shl_load
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 char shl_load ();
10128 /* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131 #if defined __stub_shl_load || defined __stub___shl_load
10132 choke me
10133 #endif
10136 main ()
10138 return shl_load ();
10140 return 0;
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148 esac
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171 esac
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_try") 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_cv_func_shl_load=yes
10178 else
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_cv_func_shl_load=no
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10188 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10189 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10190 if test $ac_cv_func_shl_load = yes; then
10192 cat >>confdefs.h <<\_ACEOF
10193 #define HAVE_SHL_LOAD 1
10194 _ACEOF
10196 else
10197 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10198 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10199 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 ac_check_lib_save_LIBS=$LIBS
10203 LIBS="-ldld $LIBS"
10204 cat >conftest.$ac_ext <<_ACEOF
10205 /* confdefs.h. */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 char shl_load ();
10219 main ()
10221 return shl_load ();
10223 return 0;
10225 _ACEOF
10226 rm -f conftest.$ac_objext conftest$ac_exeext
10227 if { (ac_try="$ac_link"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231 esac
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_link") 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10241 { (case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_try") 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; } &&
10250 { ac_try='test -s conftest$ac_exeext'
10251 { (case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10254 esac
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_dld_shl_load=yes
10261 else
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_cv_lib_dld_shl_load=no
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10272 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10273 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10274 if test $ac_cv_lib_dld_shl_load = yes; then
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_SHL_LOAD 1
10278 _ACEOF
10280 LIBADD_DL="$LIBADD_DL -ldld"
10281 else
10282 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10283 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287 ac_check_lib_save_LIBS=$LIBS
10288 LIBS="-ldl $LIBS"
10289 cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h. */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char dlopen ();
10304 main ()
10306 return dlopen ();
10308 return 0;
10310 _ACEOF
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (ac_try="$ac_link"
10313 case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316 esac
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_link") 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10326 { (case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10329 esac
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_try") 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest$ac_exeext'
10336 { (case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339 esac
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_try") 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 ac_cv_lib_dl_dlopen=yes
10346 else
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_cv_lib_dl_dlopen=no
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10357 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10358 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10359 if test $ac_cv_lib_dl_dlopen = yes; then
10361 cat >>confdefs.h <<\_ACEOF
10362 #define HAVE_LIBDL 1
10363 _ACEOF
10365 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10366 else
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 #if HAVE_DLFCN_H
10374 # include <dlfcn.h>
10375 #endif
10378 main ()
10380 dlopen(0, 0);
10382 return 0;
10384 _ACEOF
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10400 { (case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_try") 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; } &&
10409 { ac_try='test -s conftest$ac_exeext'
10410 { (case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_try") 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_LIBDL 1
10422 _ACEOF
10423 libltdl_cv_func_dlopen="yes"
10424 else
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10428 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10429 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10430 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 ac_check_lib_save_LIBS=$LIBS
10434 LIBS="-lsvld $LIBS"
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10442 /* Override any GCC internal prototype to avoid an error.
10443 Use char because int might match the return type of a GCC
10444 builtin and then its argument prototype would still apply. */
10445 #ifdef __cplusplus
10446 extern "C"
10447 #endif
10448 char dlopen ();
10450 main ()
10452 return dlopen ();
10454 return 0;
10456 _ACEOF
10457 rm -f conftest.$ac_objext conftest$ac_exeext
10458 if { (ac_try="$ac_link"
10459 case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462 esac
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_link") 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10472 { (case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10475 esac
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_try") 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest$ac_exeext'
10482 { (case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_try") 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10491 ac_cv_lib_svld_dlopen=yes
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 ac_cv_lib_svld_dlopen=no
10499 rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10501 LIBS=$ac_check_lib_save_LIBS
10503 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10504 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10505 if test $ac_cv_lib_svld_dlopen = yes; then
10507 cat >>confdefs.h <<\_ACEOF
10508 #define HAVE_LIBDL 1
10509 _ACEOF
10511 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10512 else
10513 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10514 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10515 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 ac_check_lib_save_LIBS=$LIBS
10519 LIBS="-ldld $LIBS"
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10527 /* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char dld_link ();
10535 main ()
10537 return dld_link ();
10539 return 0;
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (ac_try="$ac_link"
10544 case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_link") 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10557 { (case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10560 esac
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_try") 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest$ac_exeext'
10567 { (case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570 esac
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_try") 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; }; then
10576 ac_cv_lib_dld_dld_link=yes
10577 else
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_cv_lib_dld_dld_link=no
10584 rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 LIBS=$ac_check_lib_save_LIBS
10588 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10589 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10590 if test $ac_cv_lib_dld_dld_link = yes; then
10592 cat >>confdefs.h <<\_ACEOF
10593 #define HAVE_DLD 1
10594 _ACEOF
10596 LIBADD_DL="$LIBADD_DL -ldld"
10597 else
10598 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10599 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10600 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h. */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10611 #define _dyld_func_lookup innocuous__dyld_func_lookup
10613 /* System header to define __stub macros and hopefully few prototypes,
10614 which can conflict with char _dyld_func_lookup (); below.
10615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616 <limits.h> exists even on freestanding compilers. */
10618 #ifdef __STDC__
10619 # include <limits.h>
10620 #else
10621 # include <assert.h>
10622 #endif
10624 #undef _dyld_func_lookup
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char _dyld_func_lookup ();
10633 /* The GNU C library defines this for functions which it implements
10634 to always fail with ENOSYS. Some functions are actually named
10635 something starting with __ and the normal name is an alias. */
10636 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10637 choke me
10638 #endif
10641 main ()
10643 return _dyld_func_lookup ();
10645 return 0;
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_link") 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10663 { (case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10666 esac
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_try") 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; } &&
10672 { ac_try='test -s conftest$ac_exeext'
10673 { (case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_cv_func__dyld_func_lookup=yes
10683 else
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ac_cv_func__dyld_func_lookup=no
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10693 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10694 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10695 if test $ac_cv_func__dyld_func_lookup = yes; then
10697 cat >>confdefs.h <<\_ACEOF
10698 #define HAVE_DYLD 1
10699 _ACEOF
10712 rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10724 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10725 then
10726 lt_save_LIBS="$LIBS"
10727 LIBS="$LIBS $LIBADD_DL"
10729 for ac_func in dlerror
10731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h. */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10745 #define $ac_func innocuous_$ac_func
10747 /* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char $ac_func (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10752 #ifdef __STDC__
10753 # include <limits.h>
10754 #else
10755 # include <assert.h>
10756 #endif
10758 #undef $ac_func
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char $ac_func ();
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined __stub_$ac_func || defined __stub___$ac_func
10771 choke me
10772 #endif
10775 main ()
10777 return $ac_func ();
10779 return 0;
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_link") 2>conftest.er1
10790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest$ac_exeext'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 eval "$as_ac_var=yes"
10817 else
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 eval "$as_ac_var=no"
10824 rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10827 ac_res=`eval echo '${'$as_ac_var'}'`
10828 { echo "$as_me:$LINENO: result: $ac_res" >&5
10829 echo "${ECHO_T}$ac_res" >&6; }
10830 if test `eval echo '${'$as_ac_var'}'` = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10833 _ACEOF
10836 done
10838 LIBS="$lt_save_LIBS"
10840 ac_ext=c
10841 ac_cpp='$CPP $CPPFLAGS'
10842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10848 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10849 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10850 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853 ac_cv_sys_symbol_underscore=no
10854 cat > conftest.$ac_ext <<EOF
10855 void nm_test_func(){}
10856 int main(){nm_test_func;return 0;}
10858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859 (eval $ac_compile) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; then
10863 # Now try to grab the symbols.
10864 ac_nlist=conftest.nm
10865 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10866 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && test -s "$ac_nlist"; then
10870 # See whether the symbols have a leading underscore.
10871 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10872 ac_cv_sys_symbol_underscore=yes
10873 else
10874 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10876 else
10877 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10880 else
10881 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10883 else
10884 echo "configure: failed program was:" >&5
10885 cat conftest.c >&5
10887 rm -rf conftest*
10890 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10891 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10894 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10895 if test x"$libltdl_cv_func_dlopen" = xyes ||
10896 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10897 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10898 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10899 if test "${libltdl_cv_need_uscore+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902 libltdl_cv_need_uscore=unknown
10903 save_LIBS="$LIBS"
10904 LIBS="$LIBS $LIBADD_DL"
10905 if test "$cross_compiling" = yes; then :
10906 libltdl_cv_need_uscore=cross
10907 else
10908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10909 lt_status=$lt_dlunknown
10910 cat > conftest.$ac_ext <<EOF
10911 #line 10916 "configure"
10912 #include "confdefs.h"
10914 #if HAVE_DLFCN_H
10915 #include <dlfcn.h>
10916 #endif
10918 #include <stdio.h>
10920 #ifdef RTLD_GLOBAL
10921 # define LT_DLGLOBAL RTLD_GLOBAL
10922 #else
10923 # ifdef DL_GLOBAL
10924 # define LT_DLGLOBAL DL_GLOBAL
10925 # else
10926 # define LT_DLGLOBAL 0
10927 # endif
10928 #endif
10930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10931 find out it does not work in some platform. */
10932 #ifndef LT_DLLAZY_OR_NOW
10933 # ifdef RTLD_LAZY
10934 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10935 # else
10936 # ifdef DL_LAZY
10937 # define LT_DLLAZY_OR_NOW DL_LAZY
10938 # else
10939 # ifdef RTLD_NOW
10940 # define LT_DLLAZY_OR_NOW RTLD_NOW
10941 # else
10942 # ifdef DL_NOW
10943 # define LT_DLLAZY_OR_NOW DL_NOW
10944 # else
10945 # define LT_DLLAZY_OR_NOW 0
10946 # endif
10947 # endif
10948 # endif
10949 # endif
10950 #endif
10952 #ifdef __cplusplus
10953 extern "C" void exit (int);
10954 #endif
10956 void fnord() { int i=42;}
10957 int main ()
10959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10960 int status = $lt_dlunknown;
10962 if (self)
10964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10966 /* dlclose (self); */
10968 else
10969 puts (dlerror ());
10971 exit (status);
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975 (eval $ac_link) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10979 (./conftest; exit; ) >&5 2>/dev/null
10980 lt_status=$?
10981 case x$lt_status in
10982 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10983 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10984 x$lt_dlunknown|x*) ;;
10985 esac
10986 else :
10987 # compilation failed
10991 rm -fr conftest*
10993 LIBS="$save_LIBS"
10996 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10997 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11001 if test x"$libltdl_cv_need_uscore" = xyes; then
11003 cat >>confdefs.h <<\_ACEOF
11004 #define NEED_USCORE 1
11005 _ACEOF
11010 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11011 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11012 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015 # PORTME does your system automatically load deplibs for dlopen?
11016 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11017 # For now, we just catch OSes we know something about -- in the
11018 # future, we'll try test this programmatically.
11019 libltdl_cv_sys_dlopen_deplibs=unknown
11020 case "$host_os" in
11021 aix3*|aix4.1.*|aix4.2.*)
11022 # Unknown whether this is true for these versions of AIX, but
11023 # we want this `case' here to explicitly catch those versions.
11024 libltdl_cv_sys_dlopen_deplibs=unknown
11026 aix[45]*)
11027 libltdl_cv_sys_dlopen_deplibs=yes
11029 darwin*)
11030 # Assuming the user has installed a libdl from somewhere, this is true
11031 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11032 libltdl_cv_sys_dlopen_deplibs=yes
11034 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11035 # GNU and its variants, using gnu ld.so (Glibc)
11036 libltdl_cv_sys_dlopen_deplibs=yes
11038 hpux10*|hpux11*)
11039 libltdl_cv_sys_dlopen_deplibs=yes
11041 interix*)
11042 libltdl_cv_sys_dlopen_deplibs=yes
11044 irix[12345]*|irix6.[01]*)
11045 # Catch all versions of IRIX before 6.2, and indicate that we don't
11046 # know how it worked for any of those versions.
11047 libltdl_cv_sys_dlopen_deplibs=unknown
11049 irix*)
11050 # The case above catches anything before 6.2, and it's known that
11051 # at 6.2 and later dlopen does load deplibs.
11052 libltdl_cv_sys_dlopen_deplibs=yes
11054 netbsd*)
11055 libltdl_cv_sys_dlopen_deplibs=yes
11057 openbsd*)
11058 libltdl_cv_sys_dlopen_deplibs=yes
11060 osf[1234]*)
11061 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11062 # it did *not* use an RPATH in a shared library to find objects the
11063 # library depends on, so we explictly say `no'.
11064 libltdl_cv_sys_dlopen_deplibs=no
11066 osf5.0|osf5.0a|osf5.1)
11067 # dlopen *does* load deplibs and with the right loader patch applied
11068 # it even uses RPATH in a shared library to search for shared objects
11069 # that the library depends on, but there's no easy way to know if that
11070 # patch is installed. Since this is the case, all we can really
11071 # say is unknown -- it depends on the patch being installed. If
11072 # it is, this changes to `yes'. Without it, it would be `no'.
11073 libltdl_cv_sys_dlopen_deplibs=unknown
11075 osf*)
11076 # the two cases above should catch all versions of osf <= 5.1. Read
11077 # the comments above for what we know about them.
11078 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11079 # is used to find them so we can finally say `yes'.
11080 libltdl_cv_sys_dlopen_deplibs=yes
11082 solaris*)
11083 libltdl_cv_sys_dlopen_deplibs=yes
11085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11086 libltdl_cv_sys_dlopen_deplibs=yes
11088 esac
11091 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11092 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11093 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11095 cat >>confdefs.h <<\_ACEOF
11096 #define LTDL_DLOPEN_DEPLIBS 1
11097 _ACEOF
11102 for ac_header in argz.h
11104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 ac_res=`eval echo '${'$as_ac_Header'}'`
11112 { echo "$as_me:$LINENO: result: $ac_res" >&5
11113 echo "${ECHO_T}$ac_res" >&6; }
11114 else
11115 # Is the header compilable?
11116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 $ac_includes_default
11125 #include <$ac_header>
11126 _ACEOF
11127 rm -f conftest.$ac_objext
11128 if { (ac_try="$ac_compile"
11129 case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_compile") 2>conftest.er1
11135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11155 esac
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
11161 ac_header_compiler=yes
11162 else
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 ac_header_compiler=no
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11171 echo "${ECHO_T}$ac_header_compiler" >&6; }
11173 # Is the header present?
11174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h. */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 #include <$ac_header>
11183 _ACEOF
11184 if { (ac_try="$ac_cpp conftest.$ac_ext"
11185 case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11188 esac
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } >/dev/null; then
11197 if test -s conftest.err; then
11198 ac_cpp_err=$ac_c_preproc_warn_flag
11199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11200 else
11201 ac_cpp_err=
11203 else
11204 ac_cpp_err=yes
11206 if test -z "$ac_cpp_err"; then
11207 ac_header_preproc=yes
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_header_preproc=no
11215 rm -f conftest.err conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11217 echo "${ECHO_T}$ac_header_preproc" >&6; }
11219 # So? What about this header?
11220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11221 yes:no: )
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11226 ac_header_preproc=yes
11228 no:yes:* )
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11241 ( cat <<\_ASBOX
11242 ## ----------------------------------- ##
11243 ## Report this to llvmbugs@cs.uiuc.edu ##
11244 ## ----------------------------------- ##
11245 _ASBOX
11246 ) | sed "s/^/$as_me: WARNING: /" >&2
11248 esac
11249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254 eval "$as_ac_Header=\$ac_header_preproc"
11256 ac_res=`eval echo '${'$as_ac_Header'}'`
11257 { echo "$as_me:$LINENO: result: $ac_res" >&5
11258 echo "${ECHO_T}$ac_res" >&6; }
11261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11262 cat >>confdefs.h <<_ACEOF
11263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11264 _ACEOF
11268 done
11271 { echo "$as_me:$LINENO: checking for error_t" >&5
11272 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11273 if test "${ac_cv_type_error_t+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h. */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 #if HAVE_ARGZ_H
11283 # include <argz.h>
11284 #endif
11286 typedef error_t ac__type_new_;
11288 main ()
11290 if ((ac__type_new_ *) 0)
11291 return 0;
11292 if (sizeof (ac__type_new_))
11293 return 0;
11295 return 0;
11297 _ACEOF
11298 rm -f conftest.$ac_objext
11299 if { (ac_try="$ac_compile"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_compile") 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest.$ac_objext'
11323 { (case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326 esac
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_try") 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_type_error_t=yes
11333 else
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_cv_type_error_t=no
11340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11342 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11343 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11344 if test $ac_cv_type_error_t = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347 #define HAVE_ERROR_T 1
11348 _ACEOF
11351 else
11353 cat >>confdefs.h <<\_ACEOF
11354 #define error_t int
11355 _ACEOF
11365 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h. */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11381 #define $ac_func innocuous_$ac_func
11383 /* System header to define __stub macros and hopefully few prototypes,
11384 which can conflict with char $ac_func (); below.
11385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11386 <limits.h> exists even on freestanding compilers. */
11388 #ifdef __STDC__
11389 # include <limits.h>
11390 #else
11391 # include <assert.h>
11392 #endif
11394 #undef $ac_func
11396 /* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
11399 #ifdef __cplusplus
11400 extern "C"
11401 #endif
11402 char $ac_func ();
11403 /* The GNU C library defines this for functions which it implements
11404 to always fail with ENOSYS. Some functions are actually named
11405 something starting with __ and the normal name is an alias. */
11406 #if defined __stub_$ac_func || defined __stub___$ac_func
11407 choke me
11408 #endif
11411 main ()
11413 return $ac_func ();
11415 return 0;
11417 _ACEOF
11418 rm -f conftest.$ac_objext conftest$ac_exeext
11419 if { (ac_try="$ac_link"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_link") 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433 { (case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_try") 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest$ac_exeext'
11443 { (case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_try") 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 eval "$as_ac_var=yes"
11453 else
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 eval "$as_ac_var=no"
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11463 ac_res=`eval echo '${'$as_ac_var'}'`
11464 { echo "$as_me:$LINENO: result: $ac_res" >&5
11465 echo "${ECHO_T}$ac_res" >&6; }
11466 if test `eval echo '${'$as_ac_var'}'` = yes; then
11467 cat >>confdefs.h <<_ACEOF
11468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11469 _ACEOF
11472 done
11501 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11502 stdio.h unistd.h
11504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 ac_res=`eval echo '${'$as_ac_Header'}'`
11512 { echo "$as_me:$LINENO: result: $ac_res" >&5
11513 echo "${ECHO_T}$ac_res" >&6; }
11514 else
11515 # Is the header compilable?
11516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 $ac_includes_default
11525 #include <$ac_header>
11526 _ACEOF
11527 rm -f conftest.$ac_objext
11528 if { (ac_try="$ac_compile"
11529 case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_compile") 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545 esac
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_try") 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_try") 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_header_compiler=yes
11562 else
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_header_compiler=no
11569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571 echo "${ECHO_T}$ac_header_compiler" >&6; }
11573 # Is the header present?
11574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11576 cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h. */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <$ac_header>
11583 _ACEOF
11584 if { (ac_try="$ac_cpp conftest.$ac_ext"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } >/dev/null; then
11597 if test -s conftest.err; then
11598 ac_cpp_err=$ac_c_preproc_warn_flag
11599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11600 else
11601 ac_cpp_err=
11603 else
11604 ac_cpp_err=yes
11606 if test -z "$ac_cpp_err"; then
11607 ac_header_preproc=yes
11608 else
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11612 ac_header_preproc=no
11615 rm -f conftest.err conftest.$ac_ext
11616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11617 echo "${ECHO_T}$ac_header_preproc" >&6; }
11619 # So? What about this header?
11620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11621 yes:no: )
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11626 ac_header_preproc=yes
11628 no:yes:* )
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11641 ( cat <<\_ASBOX
11642 ## ----------------------------------- ##
11643 ## Report this to llvmbugs@cs.uiuc.edu ##
11644 ## ----------------------------------- ##
11645 _ASBOX
11646 ) | sed "s/^/$as_me: WARNING: /" >&2
11648 esac
11649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654 eval "$as_ac_Header=\$ac_header_preproc"
11656 ac_res=`eval echo '${'$as_ac_Header'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11662 cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11664 _ACEOF
11668 done
11674 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 ac_res=`eval echo '${'$as_ac_Header'}'`
11684 { echo "$as_me:$LINENO: result: $ac_res" >&5
11685 echo "${ECHO_T}$ac_res" >&6; }
11686 else
11687 # Is the header compilable?
11688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11690 cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h. */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11697 #include <$ac_header>
11698 _ACEOF
11699 rm -f conftest.$ac_objext
11700 if { (ac_try="$ac_compile"
11701 case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_compile") 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717 esac
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727 esac
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 ac_header_compiler=yes
11734 else
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 ac_header_compiler=no
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11743 echo "${ECHO_T}$ac_header_compiler" >&6; }
11745 # Is the header present?
11746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11748 cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h. */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 #include <$ac_header>
11755 _ACEOF
11756 if { (ac_try="$ac_cpp conftest.$ac_ext"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } >/dev/null; then
11769 if test -s conftest.err; then
11770 ac_cpp_err=$ac_c_preproc_warn_flag
11771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11772 else
11773 ac_cpp_err=
11775 else
11776 ac_cpp_err=yes
11778 if test -z "$ac_cpp_err"; then
11779 ac_header_preproc=yes
11780 else
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 ac_header_preproc=no
11787 rm -f conftest.err conftest.$ac_ext
11788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11789 echo "${ECHO_T}$ac_header_preproc" >&6; }
11791 # So? What about this header?
11792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11793 yes:no: )
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11798 ac_header_preproc=yes
11800 no:yes:* )
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11813 ( cat <<\_ASBOX
11814 ## ----------------------------------- ##
11815 ## Report this to llvmbugs@cs.uiuc.edu ##
11816 ## ----------------------------------- ##
11817 _ASBOX
11818 ) | sed "s/^/$as_me: WARNING: /" >&2
11820 esac
11821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826 eval "$as_ac_Header=\$ac_header_preproc"
11828 ac_res=`eval echo '${'$as_ac_Header'}'`
11829 { echo "$as_me:$LINENO: result: $ac_res" >&5
11830 echo "${ECHO_T}$ac_res" >&6; }
11833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11834 cat >>confdefs.h <<_ACEOF
11835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11836 _ACEOF
11840 done
11844 for ac_header in string.h strings.h
11846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 ac_res=`eval echo '${'$as_ac_Header'}'`
11854 { echo "$as_me:$LINENO: result: $ac_res" >&5
11855 echo "${ECHO_T}$ac_res" >&6; }
11856 else
11857 # Is the header compilable?
11858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h. */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 $ac_includes_default
11867 #include <$ac_header>
11868 _ACEOF
11869 rm -f conftest.$ac_objext
11870 if { (ac_try="$ac_compile"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest.$ac_objext'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897 esac
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 ac_header_compiler=yes
11904 else
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 ac_header_compiler=no
11911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11913 echo "${ECHO_T}$ac_header_compiler" >&6; }
11915 # Is the header present?
11916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11918 cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h. */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 #include <$ac_header>
11925 _ACEOF
11926 if { (ac_try="$ac_cpp conftest.$ac_ext"
11927 case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930 esac
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } >/dev/null; then
11939 if test -s conftest.err; then
11940 ac_cpp_err=$ac_c_preproc_warn_flag
11941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11942 else
11943 ac_cpp_err=
11945 else
11946 ac_cpp_err=yes
11948 if test -z "$ac_cpp_err"; then
11949 ac_header_preproc=yes
11950 else
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 ac_header_preproc=no
11957 rm -f conftest.err conftest.$ac_ext
11958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11959 echo "${ECHO_T}$ac_header_preproc" >&6; }
11961 # So? What about this header?
11962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11963 yes:no: )
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11968 ac_header_preproc=yes
11970 no:yes:* )
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11983 ( cat <<\_ASBOX
11984 ## ----------------------------------- ##
11985 ## Report this to llvmbugs@cs.uiuc.edu ##
11986 ## ----------------------------------- ##
11987 _ASBOX
11988 ) | sed "s/^/$as_me: WARNING: /" >&2
11990 esac
11991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996 eval "$as_ac_Header=\$ac_header_preproc"
11998 ac_res=`eval echo '${'$as_ac_Header'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12006 _ACEOF
12007 break
12010 done
12015 for ac_func in strchr index
12017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h. */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12031 #define $ac_func innocuous_$ac_func
12033 /* System header to define __stub macros and hopefully few prototypes,
12034 which can conflict with char $ac_func (); below.
12035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036 <limits.h> exists even on freestanding compilers. */
12038 #ifdef __STDC__
12039 # include <limits.h>
12040 #else
12041 # include <assert.h>
12042 #endif
12044 #undef $ac_func
12046 /* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 char $ac_func ();
12053 /* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
12056 #if defined __stub_$ac_func || defined __stub___$ac_func
12057 choke me
12058 #endif
12061 main ()
12063 return $ac_func ();
12065 return 0;
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (ac_try="$ac_link"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073 esac
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_link") 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest$ac_exeext'
12093 { (case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_try") 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12102 eval "$as_ac_var=yes"
12103 else
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 eval "$as_ac_var=no"
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12113 ac_res=`eval echo '${'$as_ac_var'}'`
12114 { echo "$as_me:$LINENO: result: $ac_res" >&5
12115 echo "${ECHO_T}$ac_res" >&6; }
12116 if test `eval echo '${'$as_ac_var'}'` = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12119 _ACEOF
12120 break
12122 done
12126 for ac_func in strrchr rindex
12128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134 cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h. */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12142 #define $ac_func innocuous_$ac_func
12144 /* System header to define __stub macros and hopefully few prototypes,
12145 which can conflict with char $ac_func (); below.
12146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12147 <limits.h> exists even on freestanding compilers. */
12149 #ifdef __STDC__
12150 # include <limits.h>
12151 #else
12152 # include <assert.h>
12153 #endif
12155 #undef $ac_func
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char $ac_func ();
12164 /* The GNU C library defines this for functions which it implements
12165 to always fail with ENOSYS. Some functions are actually named
12166 something starting with __ and the normal name is an alias. */
12167 #if defined __stub_$ac_func || defined __stub___$ac_func
12168 choke me
12169 #endif
12172 main ()
12174 return $ac_func ();
12176 return 0;
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (ac_try="$ac_link"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_link") 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 eval "$as_ac_var=yes"
12214 else
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 eval "$as_ac_var=no"
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12224 ac_res=`eval echo '${'$as_ac_var'}'`
12225 { echo "$as_me:$LINENO: result: $ac_res" >&5
12226 echo "${ECHO_T}$ac_res" >&6; }
12227 if test `eval echo '${'$as_ac_var'}'` = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12230 _ACEOF
12231 break
12233 done
12237 for ac_func in memcpy bcopy
12239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12253 #define $ac_func innocuous_$ac_func
12255 /* System header to define __stub macros and hopefully few prototypes,
12256 which can conflict with char $ac_func (); below.
12257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12258 <limits.h> exists even on freestanding compilers. */
12260 #ifdef __STDC__
12261 # include <limits.h>
12262 #else
12263 # include <assert.h>
12264 #endif
12266 #undef $ac_func
12268 /* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
12271 #ifdef __cplusplus
12272 extern "C"
12273 #endif
12274 char $ac_func ();
12275 /* The GNU C library defines this for functions which it implements
12276 to always fail with ENOSYS. Some functions are actually named
12277 something starting with __ and the normal name is an alias. */
12278 #if defined __stub_$ac_func || defined __stub___$ac_func
12279 choke me
12280 #endif
12283 main ()
12285 return $ac_func ();
12287 return 0;
12289 _ACEOF
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (ac_try="$ac_link"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_link") 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12318 esac
12319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320 (eval "$ac_try") 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 eval "$as_ac_var=yes"
12325 else
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12329 eval "$as_ac_var=no"
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12335 ac_res=`eval echo '${'$as_ac_var'}'`
12336 { echo "$as_me:$LINENO: result: $ac_res" >&5
12337 echo "${ECHO_T}$ac_res" >&6; }
12338 if test `eval echo '${'$as_ac_var'}'` = yes; then
12339 cat >>confdefs.h <<_ACEOF
12340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12341 _ACEOF
12342 break
12344 done
12348 for ac_func in memmove strcmp
12350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h. */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12364 #define $ac_func innocuous_$ac_func
12366 /* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char $ac_func (); below.
12368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 <limits.h> exists even on freestanding compilers. */
12371 #ifdef __STDC__
12372 # include <limits.h>
12373 #else
12374 # include <assert.h>
12375 #endif
12377 #undef $ac_func
12379 /* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382 #ifdef __cplusplus
12383 extern "C"
12384 #endif
12385 char $ac_func ();
12386 /* The GNU C library defines this for functions which it implements
12387 to always fail with ENOSYS. Some functions are actually named
12388 something starting with __ and the normal name is an alias. */
12389 #if defined __stub_$ac_func || defined __stub___$ac_func
12390 choke me
12391 #endif
12394 main ()
12396 return $ac_func ();
12398 return 0;
12400 _ACEOF
12401 rm -f conftest.$ac_objext conftest$ac_exeext
12402 if { (ac_try="$ac_link"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_link") 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12425 { ac_try='test -s conftest$ac_exeext'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 eval "$as_ac_var=yes"
12436 else
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 eval "$as_ac_var=no"
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12446 ac_res=`eval echo '${'$as_ac_var'}'`
12447 { echo "$as_me:$LINENO: result: $ac_res" >&5
12448 echo "${ECHO_T}$ac_res" >&6; }
12449 if test `eval echo '${'$as_ac_var'}'` = yes; then
12450 cat >>confdefs.h <<_ACEOF
12451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12452 _ACEOF
12455 done
12460 for ac_func in closedir opendir readdir
12462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12476 #define $ac_func innocuous_$ac_func
12478 /* System header to define __stub macros and hopefully few prototypes,
12479 which can conflict with char $ac_func (); below.
12480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481 <limits.h> exists even on freestanding compilers. */
12483 #ifdef __STDC__
12484 # include <limits.h>
12485 #else
12486 # include <assert.h>
12487 #endif
12489 #undef $ac_func
12491 /* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12494 #ifdef __cplusplus
12495 extern "C"
12496 #endif
12497 char $ac_func ();
12498 /* The GNU C library defines this for functions which it implements
12499 to always fail with ENOSYS. Some functions are actually named
12500 something starting with __ and the normal name is an alias. */
12501 #if defined __stub_$ac_func || defined __stub___$ac_func
12502 choke me
12503 #endif
12506 main ()
12508 return $ac_func ();
12510 return 0;
12512 _ACEOF
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (ac_try="$ac_link"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_link") 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 eval "$as_ac_var=yes"
12548 else
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 eval "$as_ac_var=no"
12555 rm -f core conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12558 ac_res=`eval echo '${'$as_ac_var'}'`
12559 { echo "$as_me:$LINENO: result: $ac_res" >&5
12560 echo "${ECHO_T}$ac_res" >&6; }
12561 if test `eval echo '${'$as_ac_var'}'` = yes; then
12562 cat >>confdefs.h <<_ACEOF
12563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12564 _ACEOF
12567 done
12570 # Check whether --enable-shared was given.
12571 if test "${enable_shared+set}" = set; then
12572 enableval=$enable_shared; p=${PACKAGE-default}
12573 case $enableval in
12574 yes) enable_shared=yes ;;
12575 no) enable_shared=no ;;
12577 enable_shared=no
12578 # Look at the argument we got. We use all the common list separators.
12579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12580 for pkg in $enableval; do
12581 IFS="$lt_save_ifs"
12582 if test "X$pkg" = "X$p"; then
12583 enable_shared=yes
12585 done
12586 IFS="$lt_save_ifs"
12588 esac
12589 else
12590 enable_shared=yes
12594 # Check whether --enable-static was given.
12595 if test "${enable_static+set}" = set; then
12596 enableval=$enable_static; p=${PACKAGE-default}
12597 case $enableval in
12598 yes) enable_static=yes ;;
12599 no) enable_static=no ;;
12601 enable_static=no
12602 # Look at the argument we got. We use all the common list separators.
12603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12604 for pkg in $enableval; do
12605 IFS="$lt_save_ifs"
12606 if test "X$pkg" = "X$p"; then
12607 enable_static=yes
12609 done
12610 IFS="$lt_save_ifs"
12612 esac
12613 else
12614 enable_static=yes
12618 # Check whether --enable-fast-install was given.
12619 if test "${enable_fast_install+set}" = set; then
12620 enableval=$enable_fast_install; p=${PACKAGE-default}
12621 case $enableval in
12622 yes) enable_fast_install=yes ;;
12623 no) enable_fast_install=no ;;
12625 enable_fast_install=no
12626 # Look at the argument we got. We use all the common list separators.
12627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12628 for pkg in $enableval; do
12629 IFS="$lt_save_ifs"
12630 if test "X$pkg" = "X$p"; then
12631 enable_fast_install=yes
12633 done
12634 IFS="$lt_save_ifs"
12636 esac
12637 else
12638 enable_fast_install=yes
12642 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12643 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12644 if test "${lt_cv_path_SED+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647 # Loop through the user's path and test for sed and gsed.
12648 # Then use that list of sed's as ones to test for truncation.
12649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650 for as_dir in $PATH
12652 IFS=$as_save_IFS
12653 test -z "$as_dir" && as_dir=.
12654 for lt_ac_prog in sed gsed; do
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12657 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12659 done
12660 done
12661 done
12662 lt_ac_max=0
12663 lt_ac_count=0
12664 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12665 # along with /bin/sed that truncates output.
12666 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12667 test ! -f $lt_ac_sed && continue
12668 cat /dev/null > conftest.in
12669 lt_ac_count=0
12670 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12671 # Check for GNU sed and select it if it is found.
12672 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12673 lt_cv_path_SED=$lt_ac_sed
12674 break
12676 while true; do
12677 cat conftest.in conftest.in >conftest.tmp
12678 mv conftest.tmp conftest.in
12679 cp conftest.in conftest.nl
12680 echo >>conftest.nl
12681 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12682 cmp -s conftest.out conftest.nl || break
12683 # 10000 chars as input seems more than enough
12684 test $lt_ac_count -gt 10 && break
12685 lt_ac_count=`expr $lt_ac_count + 1`
12686 if test $lt_ac_count -gt $lt_ac_max; then
12687 lt_ac_max=$lt_ac_count
12688 lt_cv_path_SED=$lt_ac_sed
12690 done
12691 done
12695 SED=$lt_cv_path_SED
12696 { echo "$as_me:$LINENO: result: $SED" >&5
12697 echo "${ECHO_T}$SED" >&6; }
12700 # Check whether --with-gnu-ld was given.
12701 if test "${with_gnu_ld+set}" = set; then
12702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12703 else
12704 with_gnu_ld=no
12707 ac_prog=ld
12708 if test "$GCC" = yes; then
12709 # Check if gcc -print-prog-name=ld gives a path.
12710 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12712 case $host in
12713 *-*-mingw*)
12714 # gcc leaves a trailing carriage return which upsets mingw
12715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12718 esac
12719 case $ac_prog in
12720 # Accept absolute paths.
12721 [\\/]* | ?:[\\/]*)
12722 re_direlt='/[^/][^/]*/\.\./'
12723 # Canonicalize the pathname of ld
12724 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12725 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12726 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12727 done
12728 test -z "$LD" && LD="$ac_prog"
12731 # If it fails, then pretend we aren't using GCC.
12732 ac_prog=ld
12735 # If it is relative, then search for the first ld in PATH.
12736 with_gnu_ld=unknown
12738 esac
12739 elif test "$with_gnu_ld" = yes; then
12740 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12742 else
12743 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12746 if test "${lt_cv_path_LD+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 if test -z "$LD"; then
12750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12751 for ac_dir in $PATH; do
12752 IFS="$lt_save_ifs"
12753 test -z "$ac_dir" && ac_dir=.
12754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12755 lt_cv_path_LD="$ac_dir/$ac_prog"
12756 # Check to see if the program is GNU ld. I'd rather use --version,
12757 # but apparently some variants of GNU ld only accept -v.
12758 # Break only if it was the GNU/non-GNU ld that we prefer.
12759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12760 *GNU* | *'with BFD'*)
12761 test "$with_gnu_ld" != no && break
12764 test "$with_gnu_ld" != yes && break
12766 esac
12768 done
12769 IFS="$lt_save_ifs"
12770 else
12771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12775 LD="$lt_cv_path_LD"
12776 if test -n "$LD"; then
12777 { echo "$as_me:$LINENO: result: $LD" >&5
12778 echo "${ECHO_T}$LD" >&6; }
12779 else
12780 { echo "$as_me:$LINENO: result: no" >&5
12781 echo "${ECHO_T}no" >&6; }
12783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12785 { (exit 1); exit 1; }; }
12786 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12792 case `$LD -v 2>&1 </dev/null` in
12793 *GNU* | *'with BFD'*)
12794 lt_cv_prog_gnu_ld=yes
12797 lt_cv_prog_gnu_ld=no
12799 esac
12801 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12803 with_gnu_ld=$lt_cv_prog_gnu_ld
12806 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12807 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12808 if test "${lt_cv_ld_reload_flag+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 else
12811 lt_cv_ld_reload_flag='-r'
12813 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12814 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12815 reload_flag=$lt_cv_ld_reload_flag
12816 case $reload_flag in
12817 "" | " "*) ;;
12818 *) reload_flag=" $reload_flag" ;;
12819 esac
12820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12821 case $host_os in
12822 darwin*)
12823 if test "$GCC" = yes; then
12824 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12825 else
12826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12829 esac
12831 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12832 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12833 if test "${lt_cv_deplibs_check_method+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836 lt_cv_file_magic_cmd='$MAGIC_CMD'
12837 lt_cv_file_magic_test_file=
12838 lt_cv_deplibs_check_method='unknown'
12839 # Need to set the preceding variable on all platforms that support
12840 # interlibrary dependencies.
12841 # 'none' -- dependencies not supported.
12842 # `unknown' -- same as none, but documents that we really don't know.
12843 # 'pass_all' -- all dependencies passed with no checks.
12844 # 'test_compile' -- check by making test program.
12845 # 'file_magic [[regex]]' -- check by looking for files in library path
12846 # which responds to the $file_magic_cmd with a given extended regex.
12847 # If you have `file' or equivalent on your system and you're not sure
12848 # whether `pass_all' will *always* work, you probably want this one.
12850 case $host_os in
12851 aix4* | aix5*)
12852 lt_cv_deplibs_check_method=pass_all
12855 beos*)
12856 lt_cv_deplibs_check_method=pass_all
12859 bsdi[45]*)
12860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12861 lt_cv_file_magic_cmd='/usr/bin/file -L'
12862 lt_cv_file_magic_test_file=/shlib/libc.so
12865 cygwin*)
12866 # func_win32_libid is a shell function defined in ltmain.sh
12867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12868 lt_cv_file_magic_cmd='func_win32_libid'
12871 mingw* | pw32*)
12872 # Base MSYS/MinGW do not provide the 'file' command needed by
12873 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12874 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12875 lt_cv_file_magic_cmd='$OBJDUMP -f'
12878 darwin* | rhapsody*)
12879 lt_cv_deplibs_check_method=pass_all
12882 freebsd* | kfreebsd*-gnu | dragonfly*)
12883 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12884 case $host_cpu in
12885 i*86 )
12886 # Not sure whether the presence of OpenBSD here was a mistake.
12887 # Let's accept both of them until this is cleared up.
12888 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12889 lt_cv_file_magic_cmd=/usr/bin/file
12890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12892 esac
12893 else
12894 lt_cv_deplibs_check_method=pass_all
12898 gnu*)
12899 lt_cv_deplibs_check_method=pass_all
12902 hpux10.20* | hpux11*)
12903 lt_cv_file_magic_cmd=/usr/bin/file
12904 case $host_cpu in
12905 ia64*)
12906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12907 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12909 hppa*64*)
12910 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]'
12911 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12915 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12917 esac
12920 interix3*)
12921 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12925 irix5* | irix6* | nonstopux*)
12926 case $LD in
12927 *-32|*"-32 ") libmagic=32-bit;;
12928 *-n32|*"-n32 ") libmagic=N32;;
12929 *-64|*"-64 ") libmagic=64-bit;;
12930 *) libmagic=never-match;;
12931 esac
12932 lt_cv_deplibs_check_method=pass_all
12935 # This must be Linux ELF.
12936 linux*)
12937 lt_cv_deplibs_check_method=pass_all
12940 netbsd*)
12941 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12943 else
12944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12948 newos6*)
12949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12950 lt_cv_file_magic_cmd=/usr/bin/file
12951 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12954 nto-qnx*)
12955 lt_cv_deplibs_check_method=unknown
12958 openbsd*)
12959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12961 else
12962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12966 osf3* | osf4* | osf5*)
12967 lt_cv_deplibs_check_method=pass_all
12970 solaris*)
12971 lt_cv_deplibs_check_method=pass_all
12974 sysv4 | sysv4.3*)
12975 case $host_vendor in
12976 motorola)
12977 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]'
12978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12980 ncr)
12981 lt_cv_deplibs_check_method=pass_all
12983 sequent)
12984 lt_cv_file_magic_cmd='/bin/file'
12985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12987 sni)
12988 lt_cv_file_magic_cmd='/bin/file'
12989 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12990 lt_cv_file_magic_test_file=/lib/libc.so
12992 siemens)
12993 lt_cv_deplibs_check_method=pass_all
12996 lt_cv_deplibs_check_method=pass_all
12998 esac
13001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13002 lt_cv_deplibs_check_method=pass_all
13004 esac
13007 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13008 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13009 file_magic_cmd=$lt_cv_file_magic_cmd
13010 deplibs_check_method=$lt_cv_deplibs_check_method
13011 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13015 # If no C compiler was specified, use CC.
13016 LTCC=${LTCC-"$CC"}
13018 # If no C compiler flags were specified, use CFLAGS.
13019 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13021 # Allow CC to be a program name with arguments.
13022 compiler=$CC
13024 # Check whether --enable-libtool-lock was given.
13025 if test "${enable_libtool_lock+set}" = set; then
13026 enableval=$enable_libtool_lock;
13029 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13031 # Some flags need to be propagated to the compiler or linker for good
13032 # libtool support.
13033 case $host in
13034 ia64-*-hpux*)
13035 # Find out which ABI we are using.
13036 echo 'int i;' > conftest.$ac_ext
13037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13038 (eval $ac_compile) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; then
13042 case `/usr/bin/file conftest.$ac_objext` in
13043 *ELF-32*)
13044 HPUX_IA64_MODE="32"
13046 *ELF-64*)
13047 HPUX_IA64_MODE="64"
13049 esac
13051 rm -rf conftest*
13053 *-*-irix6*)
13054 # Find out which ABI we are using.
13055 echo '#line 13060 "configure"' > conftest.$ac_ext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; then
13061 if test "$lt_cv_prog_gnu_ld" = yes; then
13062 case `/usr/bin/file conftest.$ac_objext` in
13063 *32-bit*)
13064 LD="${LD-ld} -melf32bsmip"
13066 *N32*)
13067 LD="${LD-ld} -melf32bmipn32"
13069 *64-bit*)
13070 LD="${LD-ld} -melf64bmip"
13072 esac
13073 else
13074 case `/usr/bin/file conftest.$ac_objext` in
13075 *32-bit*)
13076 LD="${LD-ld} -32"
13078 *N32*)
13079 LD="${LD-ld} -n32"
13081 *64-bit*)
13082 LD="${LD-ld} -64"
13084 esac
13087 rm -rf conftest*
13090 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13091 # Find out which ABI we are using.
13092 echo 'int i;' > conftest.$ac_ext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; then
13098 case `/usr/bin/file conftest.o` in
13099 *32-bit*)
13100 case $host in
13101 x86_64-*linux*)
13102 LD="${LD-ld} -m elf_i386"
13104 ppc64-*linux*|powerpc64-*linux*)
13105 LD="${LD-ld} -m elf32ppclinux"
13107 s390x-*linux*)
13108 LD="${LD-ld} -m elf_s390"
13110 sparc64-*linux*)
13111 LD="${LD-ld} -m elf32_sparc"
13113 esac
13115 *64-bit*)
13116 case $host in
13117 x86_64-*linux*)
13118 LD="${LD-ld} -m elf_x86_64"
13120 ppc*-*linux*|powerpc*-*linux*)
13121 LD="${LD-ld} -m elf64ppc"
13123 s390*-*linux*)
13124 LD="${LD-ld} -m elf64_s390"
13126 sparc*-*linux*)
13127 LD="${LD-ld} -m elf64_sparc"
13129 esac
13131 esac
13133 rm -rf conftest*
13136 *-*-sco3.2v5*)
13137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13138 SAVE_CFLAGS="$CFLAGS"
13139 CFLAGS="$CFLAGS -belf"
13140 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13141 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13142 if test "${lt_cv_cc_needs_belf+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 else
13145 ac_ext=c
13146 ac_cpp='$CPP $CPPFLAGS'
13147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13159 main ()
13163 return 0;
13165 _ACEOF
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (ac_try="$ac_link"
13168 case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13171 esac
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184 esac
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194 esac
13195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 lt_cv_cc_needs_belf=yes
13201 else
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 lt_cv_cc_needs_belf=no
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13210 ac_ext=c
13211 ac_cpp='$CPP $CPPFLAGS'
13212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13217 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13218 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13219 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13220 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13221 CFLAGS="$SAVE_CFLAGS"
13224 sparc*-*solaris*)
13225 # Find out which ABI we are using.
13226 echo 'int i;' > conftest.$ac_ext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228 (eval $ac_compile) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; then
13232 case `/usr/bin/file conftest.o` in
13233 *64-bit*)
13234 case $lt_cv_prog_gnu_ld in
13235 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13236 *) LD="${LD-ld} -64" ;;
13237 esac
13239 esac
13241 rm -rf conftest*
13245 esac
13247 need_locks="$enable_libtool_lock"
13252 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13253 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13254 (test "X$CXX" != "Xg++"))) ; then
13255 ac_ext=cpp
13256 ac_cpp='$CXXCPP $CPPFLAGS'
13257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13260 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13261 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13262 if test -z "$CXXCPP"; then
13263 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 else
13266 # Double quotes because CXXCPP needs to be expanded
13267 for CXXCPP in "$CXX -E" "/lib/cpp"
13269 ac_preproc_ok=false
13270 for ac_cxx_preproc_warn_flag in '' yes
13272 # Use a header file that comes with gcc, so configuring glibc
13273 # with a fresh cross-compiler works.
13274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13275 # <limits.h> exists even on freestanding compilers.
13276 # On the NeXT, cc -E runs the code through the compiler's parser,
13277 # not just through cpp. "Syntax error" is here to catch this case.
13278 cat >conftest.$ac_ext <<_ACEOF
13279 /* confdefs.h. */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284 #ifdef __STDC__
13285 # include <limits.h>
13286 #else
13287 # include <assert.h>
13288 #endif
13289 Syntax error
13290 _ACEOF
13291 if { (ac_try="$ac_cpp conftest.$ac_ext"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } >/dev/null; then
13304 if test -s conftest.err; then
13305 ac_cpp_err=$ac_cxx_preproc_warn_flag
13306 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13307 else
13308 ac_cpp_err=
13310 else
13311 ac_cpp_err=yes
13313 if test -z "$ac_cpp_err"; then
13315 else
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 # Broken: fails on valid input.
13320 continue
13323 rm -f conftest.err conftest.$ac_ext
13325 # OK, works on sane cases. Now check whether nonexistent headers
13326 # can be detected and how.
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h. */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333 #include <ac_nonexistent.h>
13334 _ACEOF
13335 if { (ac_try="$ac_cpp conftest.$ac_ext"
13336 case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13339 esac
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13342 ac_status=$?
13343 grep -v '^ *+' conftest.er1 >conftest.err
13344 rm -f conftest.er1
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } >/dev/null; then
13348 if test -s conftest.err; then
13349 ac_cpp_err=$ac_cxx_preproc_warn_flag
13350 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13351 else
13352 ac_cpp_err=
13354 else
13355 ac_cpp_err=yes
13357 if test -z "$ac_cpp_err"; then
13358 # Broken: success on invalid input.
13359 continue
13360 else
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 # Passes both tests.
13365 ac_preproc_ok=:
13366 break
13369 rm -f conftest.err conftest.$ac_ext
13371 done
13372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13373 rm -f conftest.err conftest.$ac_ext
13374 if $ac_preproc_ok; then
13375 break
13378 done
13379 ac_cv_prog_CXXCPP=$CXXCPP
13382 CXXCPP=$ac_cv_prog_CXXCPP
13383 else
13384 ac_cv_prog_CXXCPP=$CXXCPP
13386 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13387 echo "${ECHO_T}$CXXCPP" >&6; }
13388 ac_preproc_ok=false
13389 for ac_cxx_preproc_warn_flag in '' yes
13391 # Use a header file that comes with gcc, so configuring glibc
13392 # with a fresh cross-compiler works.
13393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13394 # <limits.h> exists even on freestanding compilers.
13395 # On the NeXT, cc -E runs the code through the compiler's parser,
13396 # not just through cpp. "Syntax error" is here to catch this case.
13397 cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h. */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13403 #ifdef __STDC__
13404 # include <limits.h>
13405 #else
13406 # include <assert.h>
13407 #endif
13408 Syntax error
13409 _ACEOF
13410 if { (ac_try="$ac_cpp conftest.$ac_ext"
13411 case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } >/dev/null; then
13423 if test -s conftest.err; then
13424 ac_cpp_err=$ac_cxx_preproc_warn_flag
13425 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13426 else
13427 ac_cpp_err=
13429 else
13430 ac_cpp_err=yes
13432 if test -z "$ac_cpp_err"; then
13434 else
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 # Broken: fails on valid input.
13439 continue
13442 rm -f conftest.err conftest.$ac_ext
13444 # OK, works on sane cases. Now check whether nonexistent headers
13445 # can be detected and how.
13446 cat >conftest.$ac_ext <<_ACEOF
13447 /* confdefs.h. */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 #include <ac_nonexistent.h>
13453 _ACEOF
13454 if { (ac_try="$ac_cpp conftest.$ac_ext"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13458 esac
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } >/dev/null; then
13467 if test -s conftest.err; then
13468 ac_cpp_err=$ac_cxx_preproc_warn_flag
13469 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13470 else
13471 ac_cpp_err=
13473 else
13474 ac_cpp_err=yes
13476 if test -z "$ac_cpp_err"; then
13477 # Broken: success on invalid input.
13478 continue
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 # Passes both tests.
13484 ac_preproc_ok=:
13485 break
13488 rm -f conftest.err conftest.$ac_ext
13490 done
13491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13492 rm -f conftest.err conftest.$ac_ext
13493 if $ac_preproc_ok; then
13495 else
13496 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13497 See \`config.log' for more details." >&5
13498 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13499 See \`config.log' for more details." >&2;}
13500 { (exit 1); exit 1; }; }
13503 ac_ext=cpp
13504 ac_cpp='$CXXCPP $CPPFLAGS'
13505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13512 ac_ext=f
13513 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13514 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13515 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13516 if test -n "$ac_tool_prefix"; then
13517 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
13519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13523 if test "${ac_cv_prog_F77+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526 if test -n "$F77"; then
13527 ac_cv_prog_F77="$F77" # Let the user override the test.
13528 else
13529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530 for as_dir in $PATH
13532 IFS=$as_save_IFS
13533 test -z "$as_dir" && as_dir=.
13534 for ac_exec_ext in '' $ac_executable_extensions; do
13535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13536 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13538 break 2
13540 done
13541 done
13542 IFS=$as_save_IFS
13546 F77=$ac_cv_prog_F77
13547 if test -n "$F77"; then
13548 { echo "$as_me:$LINENO: result: $F77" >&5
13549 echo "${ECHO_T}$F77" >&6; }
13550 else
13551 { echo "$as_me:$LINENO: result: no" >&5
13552 echo "${ECHO_T}no" >&6; }
13556 test -n "$F77" && break
13557 done
13559 if test -z "$F77"; then
13560 ac_ct_F77=$F77
13561 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
13563 # Extract the first word of "$ac_prog", so it can be a program name with args.
13564 set dummy $ac_prog; ac_word=$2
13565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13567 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570 if test -n "$ac_ct_F77"; then
13571 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13580 ac_cv_prog_ac_ct_F77="$ac_prog"
13581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13584 done
13585 done
13586 IFS=$as_save_IFS
13590 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13591 if test -n "$ac_ct_F77"; then
13592 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13593 echo "${ECHO_T}$ac_ct_F77" >&6; }
13594 else
13595 { echo "$as_me:$LINENO: result: no" >&5
13596 echo "${ECHO_T}no" >&6; }
13600 test -n "$ac_ct_F77" && break
13601 done
13603 if test "x$ac_ct_F77" = x; then
13604 F77=""
13605 else
13606 case $cross_compiling:$ac_tool_warned in
13607 yes:)
13608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13609 whose name does not start with the host triplet. If you think this
13610 configuration is useful to you, please write to autoconf@gnu.org." >&5
13611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13612 whose name does not start with the host triplet. If you think this
13613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13614 ac_tool_warned=yes ;;
13615 esac
13616 F77=$ac_ct_F77
13621 # Provide some information about the compiler.
13622 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13623 ac_compiler=`set X $ac_compile; echo $2`
13624 { (ac_try="$ac_compiler --version >&5"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_compiler --version >&5") 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }
13634 { (ac_try="$ac_compiler -v >&5"
13635 case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_compiler -v >&5") 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }
13644 { (ac_try="$ac_compiler -V >&5"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_compiler -V >&5") 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }
13654 rm -f a.out
13656 # If we don't use `.F' as extension, the preprocessor is not run on the
13657 # input file. (Note that this only needs to work for GNU compilers.)
13658 ac_save_ext=$ac_ext
13659 ac_ext=F
13660 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13661 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13662 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 cat >conftest.$ac_ext <<_ACEOF
13666 program main
13667 #ifndef __GNUC__
13668 choke me
13669 #endif
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_compiler_gnu=yes
13708 else
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_compiler_gnu=no
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13719 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13720 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13721 ac_ext=$ac_save_ext
13722 ac_test_FFLAGS=${FFLAGS+set}
13723 ac_save_FFLAGS=$FFLAGS
13724 FFLAGS=
13725 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13726 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13727 if test "${ac_cv_prog_f77_g+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730 FFLAGS=-g
13731 cat >conftest.$ac_ext <<_ACEOF
13732 program main
13735 _ACEOF
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compile") 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13751 { (case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13754 esac
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_try") 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_cv_prog_f77_g=yes
13771 else
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 ac_cv_prog_f77_g=no
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13782 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13783 if test "$ac_test_FFLAGS" = set; then
13784 FFLAGS=$ac_save_FFLAGS
13785 elif test $ac_cv_prog_f77_g = yes; then
13786 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13787 FFLAGS="-g -O2"
13788 else
13789 FFLAGS="-g"
13791 else
13792 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13793 FFLAGS="-O2"
13794 else
13795 FFLAGS=
13799 G77=`test $ac_compiler_gnu = yes && echo yes`
13800 ac_ext=c
13801 ac_cpp='$CPP $CPPFLAGS'
13802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13808 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13810 # find the maximum length of command line arguments
13811 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13812 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13813 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13817 teststring="ABCD"
13819 case $build_os in
13820 msdosdjgpp*)
13821 # On DJGPP, this test can blow up pretty badly due to problems in libc
13822 # (any single argument exceeding 2000 bytes causes a buffer overrun
13823 # during glob expansion). Even if it were fixed, the result of this
13824 # check would be larger than it should be.
13825 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13828 gnu*)
13829 # Under GNU Hurd, this test is not required because there is
13830 # no limit to the length of command line arguments.
13831 # Libtool will interpret -1 as no limit whatsoever
13832 lt_cv_sys_max_cmd_len=-1;
13835 cygwin* | mingw*)
13836 # On Win9x/ME, this test blows up -- it succeeds, but takes
13837 # about 5 minutes as the teststring grows exponentially.
13838 # Worse, since 9x/ME are not pre-emptively multitasking,
13839 # you end up with a "frozen" computer, even though with patience
13840 # the test eventually succeeds (with a max line length of 256k).
13841 # Instead, let's just punt: use the minimum linelength reported by
13842 # all of the supported platforms: 8192 (on NT/2K/XP).
13843 lt_cv_sys_max_cmd_len=8192;
13846 amigaos*)
13847 # On AmigaOS with pdksh, this test takes hours, literally.
13848 # So we just punt and use a minimum line length of 8192.
13849 lt_cv_sys_max_cmd_len=8192;
13852 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13853 # This has been around since 386BSD, at least. Likely further.
13854 if test -x /sbin/sysctl; then
13855 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13856 elif test -x /usr/sbin/sysctl; then
13857 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13858 else
13859 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13861 # And add a safety zone
13862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13866 interix*)
13867 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13868 lt_cv_sys_max_cmd_len=196608
13871 osf*)
13872 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13873 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13874 # nice to cause kernel panics so lets avoid the loop below.
13875 # First set a reasonable default.
13876 lt_cv_sys_max_cmd_len=16384
13878 if test -x /sbin/sysconfig; then
13879 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13880 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13881 esac
13884 sco3.2v5*)
13885 lt_cv_sys_max_cmd_len=102400
13887 sysv5* | sco5v6* | sysv4.2uw2*)
13888 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13889 if test -n "$kargmax"; then
13890 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13891 else
13892 lt_cv_sys_max_cmd_len=32768
13896 # If test is not a shell built-in, we'll probably end up computing a
13897 # maximum length that is only half of the actual maximum length, but
13898 # we can't tell.
13899 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13900 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13901 = "XX$teststring") >/dev/null 2>&1 &&
13902 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13903 lt_cv_sys_max_cmd_len=$new_result &&
13904 test $i != 17 # 1/2 MB should be enough
13906 i=`expr $i + 1`
13907 teststring=$teststring$teststring
13908 done
13909 teststring=
13910 # Add a significant safety factor because C++ compilers can tack on massive
13911 # amounts of additional arguments before passing them to the linker.
13912 # It appears as though 1/2 is a usable value.
13913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13915 esac
13919 if test -n $lt_cv_sys_max_cmd_len ; then
13920 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13921 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13922 else
13923 { echo "$as_me:$LINENO: result: none" >&5
13924 echo "${ECHO_T}none" >&6; }
13930 # Check for command to grab the raw symbol name followed by C symbol from nm.
13931 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13932 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13933 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13937 # These are sane defaults that work on at least a few old systems.
13938 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13940 # Character class describing NM global symbol codes.
13941 symcode='[BCDEGRST]'
13943 # Regexp to match symbols that can be accessed directly from C.
13944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13946 # Transform an extracted symbol line into a proper C declaration
13947 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13949 # Transform an extracted symbol line into symbol name and symbol address
13950 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'"
13952 # Define system-specific variables.
13953 case $host_os in
13954 aix*)
13955 symcode='[BCDT]'
13957 cygwin* | mingw* | pw32*)
13958 symcode='[ABCDGISTW]'
13960 hpux*) # Its linker distinguishes data from code symbols
13961 if test "$host_cpu" = ia64; then
13962 symcode='[ABCDEGRST]'
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965 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'"
13967 linux*)
13968 if test "$host_cpu" = ia64; then
13969 symcode='[ABCDGIRSTW]'
13970 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13971 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'"
13974 irix* | nonstopux*)
13975 symcode='[BCDEGRST]'
13977 osf*)
13978 symcode='[BCDEGQRST]'
13980 solaris*)
13981 symcode='[BDRT]'
13983 sco3.2v5*)
13984 symcode='[DT]'
13986 sysv4.2uw2*)
13987 symcode='[DT]'
13989 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13990 symcode='[ABDT]'
13992 sysv4)
13993 symcode='[DFNSTU]'
13995 esac
13997 # Handle CRLF in mingw tool chain
13998 opt_cr=
13999 case $build_os in
14000 mingw*)
14001 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14003 esac
14005 # If we're using GNU nm, then use its standard symbol codes.
14006 case `$NM -V 2>&1` in
14007 *GNU* | *'with BFD'*)
14008 symcode='[ABCDGIRSTW]' ;;
14009 esac
14011 # Try without a prefix undercore, then with it.
14012 for ac_symprfx in "" "_"; do
14014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14015 symxfrm="\\1 $ac_symprfx\\2 \\2"
14017 # Write the raw and C identifiers.
14018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14020 # Check to see that the pipe works correctly.
14021 pipe_works=no
14023 rm -f conftest*
14024 cat > conftest.$ac_ext <<EOF
14025 #ifdef __cplusplus
14026 extern "C" {
14027 #endif
14028 char nm_test_var;
14029 void nm_test_func(){}
14030 #ifdef __cplusplus
14032 #endif
14033 int main(){nm_test_var='a';nm_test_func();return(0);}
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; then
14041 # Now try to grab the symbols.
14042 nlist=conftest.nm
14043 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14044 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } && test -s "$nlist"; then
14048 # Try sorting and uniquifying the output.
14049 if sort "$nlist" | uniq > "$nlist"T; then
14050 mv -f "$nlist"T "$nlist"
14051 else
14052 rm -f "$nlist"T
14055 # Make sure that we snagged all the symbols we need.
14056 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14057 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14058 cat <<EOF > conftest.$ac_ext
14059 #ifdef __cplusplus
14060 extern "C" {
14061 #endif
14064 # Now generate the symbol file.
14065 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14067 cat <<EOF >> conftest.$ac_ext
14068 #if defined (__STDC__) && __STDC__
14069 # define lt_ptr_t void *
14070 #else
14071 # define lt_ptr_t char *
14072 # define const
14073 #endif
14075 /* The mapping between symbol names and symbols. */
14076 const struct {
14077 const char *name;
14078 lt_ptr_t address;
14080 lt_preloaded_symbols[] =
14083 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14084 cat <<\EOF >> conftest.$ac_ext
14085 {0, (lt_ptr_t) 0}
14088 #ifdef __cplusplus
14090 #endif
14092 # Now try linking the two files.
14093 mv conftest.$ac_objext conftstm.$ac_objext
14094 lt_save_LIBS="$LIBS"
14095 lt_save_CFLAGS="$CFLAGS"
14096 LIBS="conftstm.$ac_objext"
14097 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14103 pipe_works=yes
14105 LIBS="$lt_save_LIBS"
14106 CFLAGS="$lt_save_CFLAGS"
14107 else
14108 echo "cannot find nm_test_func in $nlist" >&5
14110 else
14111 echo "cannot find nm_test_var in $nlist" >&5
14113 else
14114 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14116 else
14117 echo "$progname: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14120 rm -f conftest* conftst*
14122 # Do not use the global_symbol_pipe unless it works.
14123 if test "$pipe_works" = yes; then
14124 break
14125 else
14126 lt_cv_sys_global_symbol_pipe=
14128 done
14132 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14133 lt_cv_sys_global_symbol_to_cdecl=
14135 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14136 { echo "$as_me:$LINENO: result: failed" >&5
14137 echo "${ECHO_T}failed" >&6; }
14138 else
14139 { echo "$as_me:$LINENO: result: ok" >&5
14140 echo "${ECHO_T}ok" >&6; }
14143 { echo "$as_me:$LINENO: checking for objdir" >&5
14144 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14145 if test "${lt_cv_objdir+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148 rm -f .libs 2>/dev/null
14149 mkdir .libs 2>/dev/null
14150 if test -d .libs; then
14151 lt_cv_objdir=.libs
14152 else
14153 # MS-DOS does not allow filenames that begin with a dot.
14154 lt_cv_objdir=_libs
14156 rmdir .libs 2>/dev/null
14158 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14159 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14160 objdir=$lt_cv_objdir
14166 case $host_os in
14167 aix3*)
14168 # AIX sometimes has problems with the GCC collect2 program. For some
14169 # reason, if we set the COLLECT_NAMES environment variable, the problems
14170 # vanish in a puff of smoke.
14171 if test "X${COLLECT_NAMES+set}" != Xset; then
14172 COLLECT_NAMES=
14173 export COLLECT_NAMES
14176 esac
14178 # Sed substitution that helps us do robust quoting. It backslashifies
14179 # metacharacters that are still active within double-quoted strings.
14180 Xsed='sed -e 1s/^X//'
14181 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14183 # Same as above, but do not quote variable references.
14184 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14186 # Sed substitution to delay expansion of an escaped shell variable in a
14187 # double_quote_subst'ed string.
14188 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14190 # Sed substitution to avoid accidental globbing in evaled expressions
14191 no_glob_subst='s/\*/\\\*/g'
14193 # Constants:
14194 rm="rm -f"
14196 # Global variables:
14197 default_ofile=mklib
14198 can_build_shared=yes
14200 # All known linkers require a `.a' archive for static linking (except MSVC,
14201 # which needs '.lib').
14202 libext=a
14203 ltmain="$ac_aux_dir/ltmain.sh"
14204 ofile="$default_ofile"
14205 with_gnu_ld="$lt_cv_prog_gnu_ld"
14207 if test -n "$ac_tool_prefix"; then
14208 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14209 set dummy ${ac_tool_prefix}ar; ac_word=$2
14210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14212 if test "${ac_cv_prog_AR+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215 if test -n "$AR"; then
14216 ac_cv_prog_AR="$AR" # Let the user override the test.
14217 else
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14225 ac_cv_prog_AR="${ac_tool_prefix}ar"
14226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 break 2
14229 done
14230 done
14231 IFS=$as_save_IFS
14235 AR=$ac_cv_prog_AR
14236 if test -n "$AR"; then
14237 { echo "$as_me:$LINENO: result: $AR" >&5
14238 echo "${ECHO_T}$AR" >&6; }
14239 else
14240 { echo "$as_me:$LINENO: result: no" >&5
14241 echo "${ECHO_T}no" >&6; }
14246 if test -z "$ac_cv_prog_AR"; then
14247 ac_ct_AR=$AR
14248 # Extract the first word of "ar", so it can be a program name with args.
14249 set dummy ar; ac_word=$2
14250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14252 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255 if test -n "$ac_ct_AR"; then
14256 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14257 else
14258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259 for as_dir in $PATH
14261 IFS=$as_save_IFS
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
14264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14265 ac_cv_prog_ac_ct_AR="ar"
14266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14267 break 2
14269 done
14270 done
14271 IFS=$as_save_IFS
14275 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14276 if test -n "$ac_ct_AR"; then
14277 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14278 echo "${ECHO_T}$ac_ct_AR" >&6; }
14279 else
14280 { echo "$as_me:$LINENO: result: no" >&5
14281 echo "${ECHO_T}no" >&6; }
14284 if test "x$ac_ct_AR" = x; then
14285 AR="false"
14286 else
14287 case $cross_compiling:$ac_tool_warned in
14288 yes:)
14289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14290 whose name does not start with the host triplet. If you think this
14291 configuration is useful to you, please write to autoconf@gnu.org." >&5
14292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14293 whose name does not start with the host triplet. If you think this
14294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14295 ac_tool_warned=yes ;;
14296 esac
14297 AR=$ac_ct_AR
14299 else
14300 AR="$ac_cv_prog_AR"
14303 if test -n "$ac_tool_prefix"; then
14304 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14305 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14308 if test "${ac_cv_prog_RANLIB+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311 if test -n "$RANLIB"; then
14312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14313 else
14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in $PATH
14317 IFS=$as_save_IFS
14318 test -z "$as_dir" && as_dir=.
14319 for ac_exec_ext in '' $ac_executable_extensions; do
14320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14321 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14323 break 2
14325 done
14326 done
14327 IFS=$as_save_IFS
14331 RANLIB=$ac_cv_prog_RANLIB
14332 if test -n "$RANLIB"; then
14333 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14334 echo "${ECHO_T}$RANLIB" >&6; }
14335 else
14336 { echo "$as_me:$LINENO: result: no" >&5
14337 echo "${ECHO_T}no" >&6; }
14342 if test -z "$ac_cv_prog_RANLIB"; then
14343 ac_ct_RANLIB=$RANLIB
14344 # Extract the first word of "ranlib", so it can be a program name with args.
14345 set dummy ranlib; ac_word=$2
14346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14348 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351 if test -n "$ac_ct_RANLIB"; then
14352 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14353 else
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14357 IFS=$as_save_IFS
14358 test -z "$as_dir" && as_dir=.
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14361 ac_cv_prog_ac_ct_RANLIB="ranlib"
14362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14363 break 2
14365 done
14366 done
14367 IFS=$as_save_IFS
14371 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14372 if test -n "$ac_ct_RANLIB"; then
14373 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14374 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14375 else
14376 { echo "$as_me:$LINENO: result: no" >&5
14377 echo "${ECHO_T}no" >&6; }
14380 if test "x$ac_ct_RANLIB" = x; then
14381 RANLIB=":"
14382 else
14383 case $cross_compiling:$ac_tool_warned in
14384 yes:)
14385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14386 whose name does not start with the host triplet. If you think this
14387 configuration is useful to you, please write to autoconf@gnu.org." >&5
14388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14389 whose name does not start with the host triplet. If you think this
14390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14391 ac_tool_warned=yes ;;
14392 esac
14393 RANLIB=$ac_ct_RANLIB
14395 else
14396 RANLIB="$ac_cv_prog_RANLIB"
14399 if test -n "$ac_tool_prefix"; then
14400 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14401 set dummy ${ac_tool_prefix}strip; ac_word=$2
14402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14404 if test "${ac_cv_prog_STRIP+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407 if test -n "$STRIP"; then
14408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14409 else
14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $PATH
14413 IFS=$as_save_IFS
14414 test -z "$as_dir" && as_dir=.
14415 for ac_exec_ext in '' $ac_executable_extensions; do
14416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14417 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14419 break 2
14421 done
14422 done
14423 IFS=$as_save_IFS
14427 STRIP=$ac_cv_prog_STRIP
14428 if test -n "$STRIP"; then
14429 { echo "$as_me:$LINENO: result: $STRIP" >&5
14430 echo "${ECHO_T}$STRIP" >&6; }
14431 else
14432 { echo "$as_me:$LINENO: result: no" >&5
14433 echo "${ECHO_T}no" >&6; }
14438 if test -z "$ac_cv_prog_STRIP"; then
14439 ac_ct_STRIP=$STRIP
14440 # Extract the first word of "strip", so it can be a program name with args.
14441 set dummy strip; ac_word=$2
14442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14444 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 if test -n "$ac_ct_STRIP"; then
14448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14449 else
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14453 IFS=$as_save_IFS
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14457 ac_cv_prog_ac_ct_STRIP="strip"
14458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14459 break 2
14461 done
14462 done
14463 IFS=$as_save_IFS
14467 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14468 if test -n "$ac_ct_STRIP"; then
14469 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14470 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14471 else
14472 { echo "$as_me:$LINENO: result: no" >&5
14473 echo "${ECHO_T}no" >&6; }
14476 if test "x$ac_ct_STRIP" = x; then
14477 STRIP=":"
14478 else
14479 case $cross_compiling:$ac_tool_warned in
14480 yes:)
14481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14482 whose name does not start with the host triplet. If you think this
14483 configuration is useful to you, please write to autoconf@gnu.org." >&5
14484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14485 whose name does not start with the host triplet. If you think this
14486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14487 ac_tool_warned=yes ;;
14488 esac
14489 STRIP=$ac_ct_STRIP
14491 else
14492 STRIP="$ac_cv_prog_STRIP"
14496 old_CC="$CC"
14497 old_CFLAGS="$CFLAGS"
14499 # Set sane defaults for various variables
14500 test -z "$AR" && AR=ar
14501 test -z "$AR_FLAGS" && AR_FLAGS=cru
14502 test -z "$AS" && AS=as
14503 test -z "$CC" && CC=cc
14504 test -z "$LTCC" && LTCC=$CC
14505 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14506 test -z "$DLLTOOL" && DLLTOOL=dlltool
14507 test -z "$LD" && LD=ld
14508 test -z "$LN_S" && LN_S="ln -s"
14509 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14510 test -z "$NM" && NM=nm
14511 test -z "$SED" && SED=sed
14512 test -z "$OBJDUMP" && OBJDUMP=objdump
14513 test -z "$RANLIB" && RANLIB=:
14514 test -z "$STRIP" && STRIP=:
14515 test -z "$ac_objext" && ac_objext=o
14517 # Determine commands to create old-style static archives.
14518 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14519 old_postinstall_cmds='chmod 644 $oldlib'
14520 old_postuninstall_cmds=
14522 if test -n "$RANLIB"; then
14523 case $host_os in
14524 openbsd*)
14525 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14530 esac
14531 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14534 for cc_temp in $compiler""; do
14535 case $cc_temp in
14536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14538 \-*) ;;
14539 *) break;;
14540 esac
14541 done
14542 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14545 # Only perform the check for file, if the check method requires it
14546 case $deplibs_check_method in
14547 file_magic*)
14548 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14549 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14550 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14551 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554 case $MAGIC_CMD in
14555 [\\/*] | ?:[\\/]*)
14556 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14559 lt_save_MAGIC_CMD="$MAGIC_CMD"
14560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14562 for ac_dir in $ac_dummy; do
14563 IFS="$lt_save_ifs"
14564 test -z "$ac_dir" && ac_dir=.
14565 if test -f $ac_dir/${ac_tool_prefix}file; then
14566 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14567 if test -n "$file_magic_test_file"; then
14568 case $deplibs_check_method in
14569 "file_magic "*)
14570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14573 $EGREP "$file_magic_regex" > /dev/null; then
14575 else
14576 cat <<EOF 1>&2
14578 *** Warning: the command libtool uses to detect shared libraries,
14579 *** $file_magic_cmd, produces output that libtool cannot recognize.
14580 *** The result is that libtool may fail to recognize shared libraries
14581 *** as such. This will affect the creation of libtool libraries that
14582 *** depend on shared libraries, but programs linked with such libtool
14583 *** libraries will work regardless of this problem. Nevertheless, you
14584 *** may want to report the problem to your system manager and/or to
14585 *** bug-libtool@gnu.org
14588 fi ;;
14589 esac
14591 break
14593 done
14594 IFS="$lt_save_ifs"
14595 MAGIC_CMD="$lt_save_MAGIC_CMD"
14597 esac
14600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14601 if test -n "$MAGIC_CMD"; then
14602 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14603 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14604 else
14605 { echo "$as_me:$LINENO: result: no" >&5
14606 echo "${ECHO_T}no" >&6; }
14609 if test -z "$lt_cv_path_MAGIC_CMD"; then
14610 if test -n "$ac_tool_prefix"; then
14611 { echo "$as_me:$LINENO: checking for file" >&5
14612 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14613 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616 case $MAGIC_CMD in
14617 [\\/*] | ?:[\\/]*)
14618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14621 lt_save_MAGIC_CMD="$MAGIC_CMD"
14622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14624 for ac_dir in $ac_dummy; do
14625 IFS="$lt_save_ifs"
14626 test -z "$ac_dir" && ac_dir=.
14627 if test -f $ac_dir/file; then
14628 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14629 if test -n "$file_magic_test_file"; then
14630 case $deplibs_check_method in
14631 "file_magic "*)
14632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14635 $EGREP "$file_magic_regex" > /dev/null; then
14637 else
14638 cat <<EOF 1>&2
14640 *** Warning: the command libtool uses to detect shared libraries,
14641 *** $file_magic_cmd, produces output that libtool cannot recognize.
14642 *** The result is that libtool may fail to recognize shared libraries
14643 *** as such. This will affect the creation of libtool libraries that
14644 *** depend on shared libraries, but programs linked with such libtool
14645 *** libraries will work regardless of this problem. Nevertheless, you
14646 *** may want to report the problem to your system manager and/or to
14647 *** bug-libtool@gnu.org
14650 fi ;;
14651 esac
14653 break
14655 done
14656 IFS="$lt_save_ifs"
14657 MAGIC_CMD="$lt_save_MAGIC_CMD"
14659 esac
14662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14663 if test -n "$MAGIC_CMD"; then
14664 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14665 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14666 else
14667 { echo "$as_me:$LINENO: result: no" >&5
14668 echo "${ECHO_T}no" >&6; }
14671 else
14672 MAGIC_CMD=:
14678 esac
14680 enable_dlopen=yes
14681 enable_win32_dll=no
14683 # Check whether --enable-libtool-lock was given.
14684 if test "${enable_libtool_lock+set}" = set; then
14685 enableval=$enable_libtool_lock;
14688 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14691 # Check whether --with-pic was given.
14692 if test "${with_pic+set}" = set; then
14693 withval=$with_pic; pic_mode="$withval"
14694 else
14695 pic_mode=default
14698 test -z "$pic_mode" && pic_mode=default
14700 # Use C for the default configuration in the libtool script
14701 tagname=
14702 lt_save_CC="$CC"
14703 ac_ext=c
14704 ac_cpp='$CPP $CPPFLAGS'
14705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14710 # Source file extension for C test sources.
14711 ac_ext=c
14713 # Object file extension for compiled C test sources.
14714 objext=o
14715 objext=$objext
14717 # Code to be used in simple compile tests
14718 lt_simple_compile_test_code="int some_variable = 0;\n"
14720 # Code to be used in simple link tests
14721 lt_simple_link_test_code='int main(){return(0);}\n'
14724 # If no C compiler was specified, use CC.
14725 LTCC=${LTCC-"$CC"}
14727 # If no C compiler flags were specified, use CFLAGS.
14728 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14730 # Allow CC to be a program name with arguments.
14731 compiler=$CC
14734 # save warnings/boilerplate of simple test code
14735 ac_outfile=conftest.$ac_objext
14736 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14737 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14738 _lt_compiler_boilerplate=`cat conftest.err`
14739 $rm conftest*
14741 ac_outfile=conftest.$ac_objext
14742 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14743 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14744 _lt_linker_boilerplate=`cat conftest.err`
14745 $rm conftest*
14749 lt_prog_compiler_no_builtin_flag=
14751 if test "$GCC" = yes; then
14752 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14755 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14756 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14757 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 else
14760 lt_cv_prog_compiler_rtti_exceptions=no
14761 ac_outfile=conftest.$ac_objext
14762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14763 lt_compiler_flag="-fno-rtti -fno-exceptions"
14764 # Insert the option either (1) after the last *FLAGS variable, or
14765 # (2) before a word containing "conftest.", or (3) at the end.
14766 # Note that $ac_compile itself does not contain backslashes and begins
14767 # with a dollar sign (not a hyphen), so the echo should work correctly.
14768 # The option is referenced via a variable to avoid confusing sed.
14769 lt_compile=`echo "$ac_compile" | $SED \
14770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14772 -e 's:$: $lt_compiler_flag:'`
14773 (eval echo "\"\$as_me:14778: $lt_compile\"" >&5)
14774 (eval "$lt_compile" 2>conftest.err)
14775 ac_status=$?
14776 cat conftest.err >&5
14777 echo "$as_me:14782: \$? = $ac_status" >&5
14778 if (exit $ac_status) && test -s "$ac_outfile"; then
14779 # The compiler can only warn and ignore the option if not recognized
14780 # So say no if there are warnings other than the usual output.
14781 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14784 lt_cv_prog_compiler_rtti_exceptions=yes
14787 $rm conftest*
14790 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14791 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14793 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14794 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14795 else
14801 lt_prog_compiler_wl=
14802 lt_prog_compiler_pic=
14803 lt_prog_compiler_static=
14805 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14806 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14808 if test "$GCC" = yes; then
14809 lt_prog_compiler_wl='-Wl,'
14810 lt_prog_compiler_static='-static'
14812 case $host_os in
14813 aix*)
14814 # All AIX code is PIC.
14815 if test "$host_cpu" = ia64; then
14816 # AIX 5 now supports IA64 processor
14817 lt_prog_compiler_static='-Bstatic'
14821 amigaos*)
14822 # FIXME: we need at least 68020 code to build shared libraries, but
14823 # adding the `-m68020' flag to GCC prevents building anything better,
14824 # like `-m68040'.
14825 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14828 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14829 # PIC is the default for these OSes.
14832 mingw* | pw32* | os2*)
14833 # This hack is so that the source file can tell whether it is being
14834 # built for inclusion in a dll (and should export symbols for example).
14835 lt_prog_compiler_pic='-DDLL_EXPORT'
14838 darwin* | rhapsody*)
14839 # PIC is the default on this platform
14840 # Common symbols not allowed in MH_DYLIB files
14841 lt_prog_compiler_pic='-fno-common'
14844 interix3*)
14845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14846 # Instead, we relocate shared libraries at runtime.
14849 msdosdjgpp*)
14850 # Just because we use GCC doesn't mean we suddenly get shared libraries
14851 # on systems that don't support them.
14852 lt_prog_compiler_can_build_shared=no
14853 enable_shared=no
14856 sysv4*MP*)
14857 if test -d /usr/nec; then
14858 lt_prog_compiler_pic=-Kconform_pic
14862 hpux*)
14863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14864 # not for PA HP-UX.
14865 case $host_cpu in
14866 hppa*64*|ia64*)
14867 # +Z the default
14870 lt_prog_compiler_pic='-fPIC'
14872 esac
14876 lt_prog_compiler_pic='-fPIC'
14878 esac
14879 else
14880 # PORTME Check for flag to pass linker flags through the system compiler.
14881 case $host_os in
14882 aix*)
14883 lt_prog_compiler_wl='-Wl,'
14884 if test "$host_cpu" = ia64; then
14885 # AIX 5 now supports IA64 processor
14886 lt_prog_compiler_static='-Bstatic'
14887 else
14888 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14891 darwin*)
14892 # PIC is the default on this platform
14893 # Common symbols not allowed in MH_DYLIB files
14894 case $cc_basename in
14895 xlc*)
14896 lt_prog_compiler_pic='-qnocommon'
14897 lt_prog_compiler_wl='-Wl,'
14899 esac
14902 mingw* | pw32* | os2*)
14903 # This hack is so that the source file can tell whether it is being
14904 # built for inclusion in a dll (and should export symbols for example).
14905 lt_prog_compiler_pic='-DDLL_EXPORT'
14908 hpux9* | hpux10* | hpux11*)
14909 lt_prog_compiler_wl='-Wl,'
14910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14911 # not for PA HP-UX.
14912 case $host_cpu in
14913 hppa*64*|ia64*)
14914 # +Z the default
14917 lt_prog_compiler_pic='+Z'
14919 esac
14920 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14921 lt_prog_compiler_static='${wl}-a ${wl}archive'
14924 irix5* | irix6* | nonstopux*)
14925 lt_prog_compiler_wl='-Wl,'
14926 # PIC (with -KPIC) is the default.
14927 lt_prog_compiler_static='-non_shared'
14930 newsos6)
14931 lt_prog_compiler_pic='-KPIC'
14932 lt_prog_compiler_static='-Bstatic'
14935 linux*)
14936 case $cc_basename in
14937 icc* | ecc*)
14938 lt_prog_compiler_wl='-Wl,'
14939 lt_prog_compiler_pic='-KPIC'
14940 lt_prog_compiler_static='-static'
14942 pgcc* | pgf77* | pgf90* | pgf95*)
14943 # Portland Group compilers (*not* the Pentium gcc compiler,
14944 # which looks to be a dead project)
14945 lt_prog_compiler_wl='-Wl,'
14946 lt_prog_compiler_pic='-fpic'
14947 lt_prog_compiler_static='-Bstatic'
14949 ccc*)
14950 lt_prog_compiler_wl='-Wl,'
14951 # All Alpha code is PIC.
14952 lt_prog_compiler_static='-non_shared'
14954 esac
14957 osf3* | osf4* | osf5*)
14958 lt_prog_compiler_wl='-Wl,'
14959 # All OSF/1 code is PIC.
14960 lt_prog_compiler_static='-non_shared'
14963 solaris*)
14964 lt_prog_compiler_pic='-KPIC'
14965 lt_prog_compiler_static='-Bstatic'
14966 case $cc_basename in
14967 f77* | f90* | f95*)
14968 lt_prog_compiler_wl='-Qoption ld ';;
14970 lt_prog_compiler_wl='-Wl,';;
14971 esac
14974 sunos4*)
14975 lt_prog_compiler_wl='-Qoption ld '
14976 lt_prog_compiler_pic='-PIC'
14977 lt_prog_compiler_static='-Bstatic'
14980 sysv4 | sysv4.2uw2* | sysv4.3*)
14981 lt_prog_compiler_wl='-Wl,'
14982 lt_prog_compiler_pic='-KPIC'
14983 lt_prog_compiler_static='-Bstatic'
14986 sysv4*MP*)
14987 if test -d /usr/nec ;then
14988 lt_prog_compiler_pic='-Kconform_pic'
14989 lt_prog_compiler_static='-Bstatic'
14993 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14994 lt_prog_compiler_wl='-Wl,'
14995 lt_prog_compiler_pic='-KPIC'
14996 lt_prog_compiler_static='-Bstatic'
14999 unicos*)
15000 lt_prog_compiler_wl='-Wl,'
15001 lt_prog_compiler_can_build_shared=no
15004 uts4*)
15005 lt_prog_compiler_pic='-pic'
15006 lt_prog_compiler_static='-Bstatic'
15010 lt_prog_compiler_can_build_shared=no
15012 esac
15015 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15016 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15019 # Check to make sure the PIC flag actually works.
15021 if test -n "$lt_prog_compiler_pic"; then
15023 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15024 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15025 if test "${lt_prog_compiler_pic_works+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028 lt_prog_compiler_pic_works=no
15029 ac_outfile=conftest.$ac_objext
15030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15031 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15032 # Insert the option either (1) after the last *FLAGS variable, or
15033 # (2) before a word containing "conftest.", or (3) at the end.
15034 # Note that $ac_compile itself does not contain backslashes and begins
15035 # with a dollar sign (not a hyphen), so the echo should work correctly.
15036 # The option is referenced via a variable to avoid confusing sed.
15037 lt_compile=`echo "$ac_compile" | $SED \
15038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15040 -e 's:$: $lt_compiler_flag:'`
15041 (eval echo "\"\$as_me:15046: $lt_compile\"" >&5)
15042 (eval "$lt_compile" 2>conftest.err)
15043 ac_status=$?
15044 cat conftest.err >&5
15045 echo "$as_me:15050: \$? = $ac_status" >&5
15046 if (exit $ac_status) && test -s "$ac_outfile"; then
15047 # The compiler can only warn and ignore the option if not recognized
15048 # So say no if there are warnings other than the usual output.
15049 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15051 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15052 lt_prog_compiler_pic_works=yes
15055 $rm conftest*
15058 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15059 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15061 if test x"$lt_prog_compiler_pic_works" = xyes; then
15062 case $lt_prog_compiler_pic in
15063 "" | " "*) ;;
15064 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15065 esac
15066 else
15067 lt_prog_compiler_pic=
15068 lt_prog_compiler_can_build_shared=no
15072 case $host_os in
15073 # For platforms which do not support PIC, -DPIC is meaningless:
15074 *djgpp*)
15075 lt_prog_compiler_pic=
15078 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15080 esac
15083 # Check to make sure the static flag actually works.
15085 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15086 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15087 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15088 if test "${lt_prog_compiler_static_works+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 lt_prog_compiler_static_works=no
15092 save_LDFLAGS="$LDFLAGS"
15093 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15094 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15096 # The linker can only warn and ignore the option if not recognized
15097 # So say no if there are warnings
15098 if test -s conftest.err; then
15099 # Append any errors to the config.log.
15100 cat conftest.err 1>&5
15101 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15103 if diff conftest.exp conftest.er2 >/dev/null; then
15104 lt_prog_compiler_static_works=yes
15106 else
15107 lt_prog_compiler_static_works=yes
15110 $rm conftest*
15111 LDFLAGS="$save_LDFLAGS"
15114 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15115 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15117 if test x"$lt_prog_compiler_static_works" = xyes; then
15119 else
15120 lt_prog_compiler_static=
15124 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15125 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15126 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 else
15129 lt_cv_prog_compiler_c_o=no
15130 $rm -r conftest 2>/dev/null
15131 mkdir conftest
15132 cd conftest
15133 mkdir out
15134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15136 lt_compiler_flag="-o out/conftest2.$ac_objext"
15137 # Insert the option either (1) after the last *FLAGS variable, or
15138 # (2) before a word containing "conftest.", or (3) at the end.
15139 # Note that $ac_compile itself does not contain backslashes and begins
15140 # with a dollar sign (not a hyphen), so the echo should work correctly.
15141 lt_compile=`echo "$ac_compile" | $SED \
15142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15144 -e 's:$: $lt_compiler_flag:'`
15145 (eval echo "\"\$as_me:15150: $lt_compile\"" >&5)
15146 (eval "$lt_compile" 2>out/conftest.err)
15147 ac_status=$?
15148 cat out/conftest.err >&5
15149 echo "$as_me:15154: \$? = $ac_status" >&5
15150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15151 then
15152 # The compiler can only warn and ignore the option if not recognized
15153 # So say no if there are warnings
15154 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15157 lt_cv_prog_compiler_c_o=yes
15160 chmod u+w . 2>&5
15161 $rm conftest*
15162 # SGI C++ compiler will create directory out/ii_files/ for
15163 # template instantiation
15164 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15165 $rm out/* && rmdir out
15166 cd ..
15167 rmdir conftest
15168 $rm conftest*
15171 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15172 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15175 hard_links="nottested"
15176 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15177 # do not overwrite the value of need_locks provided by the user
15178 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15179 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15180 hard_links=yes
15181 $rm conftest*
15182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15183 touch conftest.a
15184 ln conftest.a conftest.b 2>&5 || hard_links=no
15185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15186 { echo "$as_me:$LINENO: result: $hard_links" >&5
15187 echo "${ECHO_T}$hard_links" >&6; }
15188 if test "$hard_links" = no; then
15189 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15190 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15191 need_locks=warn
15193 else
15194 need_locks=no
15197 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15198 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15200 runpath_var=
15201 allow_undefined_flag=
15202 enable_shared_with_static_runtimes=no
15203 archive_cmds=
15204 archive_expsym_cmds=
15205 old_archive_From_new_cmds=
15206 old_archive_from_expsyms_cmds=
15207 export_dynamic_flag_spec=
15208 whole_archive_flag_spec=
15209 thread_safe_flag_spec=
15210 hardcode_libdir_flag_spec=
15211 hardcode_libdir_flag_spec_ld=
15212 hardcode_libdir_separator=
15213 hardcode_direct=no
15214 hardcode_minus_L=no
15215 hardcode_shlibpath_var=unsupported
15216 link_all_deplibs=unknown
15217 hardcode_automatic=no
15218 module_cmds=
15219 module_expsym_cmds=
15220 always_export_symbols=no
15221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15222 # include_expsyms should be a list of space-separated symbols to be *always*
15223 # included in the symbol list
15224 include_expsyms=
15225 # exclude_expsyms can be an extended regexp of symbols to exclude
15226 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15228 # as well as any symbol that contains `d'.
15229 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15231 # platforms (ab)use it in PIC code, but their linkers get confused if
15232 # the symbol is explicitly referenced. Since portable code cannot
15233 # rely on this symbol name, it's probably fine to never include it in
15234 # preloaded symbol tables.
15235 extract_expsyms_cmds=
15236 # Just being paranoid about ensuring that cc_basename is set.
15237 for cc_temp in $compiler""; do
15238 case $cc_temp in
15239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15241 \-*) ;;
15242 *) break;;
15243 esac
15244 done
15245 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15247 case $host_os in
15248 cygwin* | mingw* | pw32*)
15249 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15250 # When not using gcc, we currently assume that we are using
15251 # Microsoft Visual C++.
15252 if test "$GCC" != yes; then
15253 with_gnu_ld=no
15256 interix*)
15257 # we just hope/assume this is gcc and not c89 (= MSVC++)
15258 with_gnu_ld=yes
15260 openbsd*)
15261 with_gnu_ld=no
15263 esac
15265 ld_shlibs=yes
15266 if test "$with_gnu_ld" = yes; then
15267 # If archive_cmds runs LD, not CC, wlarc should be empty
15268 wlarc='${wl}'
15270 # Set some defaults for GNU ld with shared library support. These
15271 # are reset later if shared libraries are not supported. Putting them
15272 # here allows them to be overridden if necessary.
15273 runpath_var=LD_RUN_PATH
15274 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15275 export_dynamic_flag_spec='${wl}--export-dynamic'
15276 # ancient GNU ld didn't support --whole-archive et. al.
15277 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15278 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15279 else
15280 whole_archive_flag_spec=
15282 supports_anon_versioning=no
15283 case `$LD -v 2>/dev/null` in
15284 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15285 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15286 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15287 *\ 2.11.*) ;; # other 2.11 versions
15288 *) supports_anon_versioning=yes ;;
15289 esac
15291 # See if GNU ld supports shared libraries.
15292 case $host_os in
15293 aix3* | aix4* | aix5*)
15294 # On AIX/PPC, the GNU linker is very broken
15295 if test "$host_cpu" != ia64; then
15296 ld_shlibs=no
15297 cat <<EOF 1>&2
15299 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15300 *** to be unable to reliably create shared libraries on AIX.
15301 *** Therefore, libtool is disabling shared libraries support. If you
15302 *** really care for shared libraries, you may want to modify your PATH
15303 *** so that a non-GNU linker is found, and then restart.
15309 amigaos*)
15310 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)'
15311 hardcode_libdir_flag_spec='-L$libdir'
15312 hardcode_minus_L=yes
15314 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15315 # that the semantics of dynamic libraries on AmigaOS, at least up
15316 # to version 4, is to share data among multiple programs linked
15317 # with the same dynamic library. Since this doesn't match the
15318 # behavior of shared libraries on other platforms, we can't use
15319 # them.
15320 ld_shlibs=no
15323 beos*)
15324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15325 allow_undefined_flag=unsupported
15326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15327 # support --undefined. This deserves some investigation. FIXME
15328 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15329 else
15330 ld_shlibs=no
15334 cygwin* | mingw* | pw32*)
15335 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15336 # as there is no search path for DLLs.
15337 hardcode_libdir_flag_spec='-L$libdir'
15338 allow_undefined_flag=unsupported
15339 always_export_symbols=no
15340 enable_shared_with_static_runtimes=yes
15341 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15343 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15345 # If the export-symbols file already is a .def file (1st line
15346 # is EXPORTS), use it as is; otherwise, prepend...
15347 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15348 cp $export_symbols $output_objdir/$soname.def;
15349 else
15350 echo EXPORTS > $output_objdir/$soname.def;
15351 cat $export_symbols >> $output_objdir/$soname.def;
15353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15354 else
15355 ld_shlibs=no
15359 interix3*)
15360 hardcode_direct=no
15361 hardcode_shlibpath_var=no
15362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15363 export_dynamic_flag_spec='${wl}-E'
15364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15365 # Instead, shared libraries are loaded at an image base (0x10000000 by
15366 # default) and relocated if they conflict, which is a slow very memory
15367 # consuming and fragmenting process. To avoid this, we pick a random,
15368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15371 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'
15374 linux*)
15375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15376 tmp_addflag=
15377 case $cc_basename,$host_cpu in
15378 pgcc*) # Portland Group C compiler
15379 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'
15380 tmp_addflag=' $pic_flag'
15382 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15383 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'
15384 tmp_addflag=' $pic_flag -Mnomain' ;;
15385 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15386 tmp_addflag=' -i_dynamic' ;;
15387 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15388 tmp_addflag=' -i_dynamic -nofor_main' ;;
15389 ifc* | ifort*) # Intel Fortran compiler
15390 tmp_addflag=' -nofor_main' ;;
15391 esac
15392 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15394 if test $supports_anon_versioning = yes; then
15395 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15397 $echo "local: *; };" >> $output_objdir/$libname.ver~
15398 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15400 else
15401 ld_shlibs=no
15405 netbsd*)
15406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15407 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15408 wlarc=
15409 else
15410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15415 solaris*)
15416 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15417 ld_shlibs=no
15418 cat <<EOF 1>&2
15420 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15421 *** create shared libraries on Solaris systems. Therefore, libtool
15422 *** is disabling shared libraries support. We urge you to upgrade GNU
15423 *** binutils to release 2.9.1 or newer. Another option is to modify
15424 *** your PATH or compiler configuration so that the native linker is
15425 *** used, and then restart.
15428 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15431 else
15432 ld_shlibs=no
15436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15437 case `$LD -v 2>&1` in
15438 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15439 ld_shlibs=no
15440 cat <<_LT_EOF 1>&2
15442 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15443 *** reliably create shared libraries on SCO systems. Therefore, libtool
15444 *** is disabling shared libraries support. We urge you to upgrade GNU
15445 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15446 *** your PATH or compiler configuration so that the native linker is
15447 *** used, and then restart.
15449 _LT_EOF
15452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15453 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15455 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15456 else
15457 ld_shlibs=no
15460 esac
15463 sunos4*)
15464 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15465 wlarc=
15466 hardcode_direct=yes
15467 hardcode_shlibpath_var=no
15471 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15474 else
15475 ld_shlibs=no
15478 esac
15480 if test "$ld_shlibs" = no; then
15481 runpath_var=
15482 hardcode_libdir_flag_spec=
15483 export_dynamic_flag_spec=
15484 whole_archive_flag_spec=
15486 else
15487 # PORTME fill in a description of your system's linker (not GNU ld)
15488 case $host_os in
15489 aix3*)
15490 allow_undefined_flag=unsupported
15491 always_export_symbols=yes
15492 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'
15493 # Note: this linker hardcodes the directories in LIBPATH if there
15494 # are no directories specified by -L.
15495 hardcode_minus_L=yes
15496 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15497 # Neither direct hardcoding nor static linking is supported with a
15498 # broken collect2.
15499 hardcode_direct=unsupported
15503 aix4* | aix5*)
15504 if test "$host_cpu" = ia64; then
15505 # On IA64, the linker does run time linking by default, so we don't
15506 # have to do anything special.
15507 aix_use_runtimelinking=no
15508 exp_sym_flag='-Bexport'
15509 no_entry_flag=""
15510 else
15511 # If we're using GNU nm, then we don't want the "-C" option.
15512 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15513 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15514 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'
15515 else
15516 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'
15518 aix_use_runtimelinking=no
15520 # Test if we are trying to use run time linking or normal
15521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15522 # need to do runtime linking.
15523 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15524 for ld_flag in $LDFLAGS; do
15525 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15526 aix_use_runtimelinking=yes
15527 break
15529 done
15531 esac
15533 exp_sym_flag='-bexport'
15534 no_entry_flag='-bnoentry'
15537 # When large executables or shared objects are built, AIX ld can
15538 # have problems creating the table of contents. If linking a library
15539 # or program results in "error TOC overflow" add -mminimal-toc to
15540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15543 archive_cmds=''
15544 hardcode_direct=yes
15545 hardcode_libdir_separator=':'
15546 link_all_deplibs=yes
15548 if test "$GCC" = yes; then
15549 case $host_os in aix4.[012]|aix4.[012].*)
15550 # We only want to do this on AIX 4.2 and lower, the check
15551 # below for broken collect2 doesn't work under 4.3+
15552 collect2name=`${CC} -print-prog-name=collect2`
15553 if test -f "$collect2name" && \
15554 strings "$collect2name" | grep resolve_lib_name >/dev/null
15555 then
15556 # We have reworked collect2
15557 hardcode_direct=yes
15558 else
15559 # We have old collect2
15560 hardcode_direct=unsupported
15561 # It fails to find uninstalled libraries when the uninstalled
15562 # path is not listed in the libpath. Setting hardcode_minus_L
15563 # to unsupported forces relinking
15564 hardcode_minus_L=yes
15565 hardcode_libdir_flag_spec='-L$libdir'
15566 hardcode_libdir_separator=
15569 esac
15570 shared_flag='-shared'
15571 if test "$aix_use_runtimelinking" = yes; then
15572 shared_flag="$shared_flag "'${wl}-G'
15574 else
15575 # not using gcc
15576 if test "$host_cpu" = ia64; then
15577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15578 # chokes on -Wl,-G. The following line is correct:
15579 shared_flag='-G'
15580 else
15581 if test "$aix_use_runtimelinking" = yes; then
15582 shared_flag='${wl}-G'
15583 else
15584 shared_flag='${wl}-bM:SRE'
15589 # It seems that -bexpall does not export symbols beginning with
15590 # underscore (_), so it is better to generate a list of symbols to export.
15591 always_export_symbols=yes
15592 if test "$aix_use_runtimelinking" = yes; then
15593 # Warning - without using the other runtime loading flags (-brtl),
15594 # -berok will link without error, but may produce a broken library.
15595 allow_undefined_flag='-berok'
15596 # Determine the default libpath from the value encoded in an empty executable.
15597 cat >conftest.$ac_ext <<_ACEOF
15598 /* confdefs.h. */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15605 main ()
15609 return 0;
15611 _ACEOF
15612 rm -f conftest.$ac_objext conftest$ac_exeext
15613 if { (ac_try="$ac_link"
15614 case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15617 esac
15618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15619 (eval "$ac_link") 2>conftest.er1
15620 ac_status=$?
15621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
15626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15627 { (case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_try") 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try='test -s conftest$ac_exeext'
15637 { (case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15640 esac
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_try") 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15649 # Check for a 64-bit object if we didn't find anything.
15650 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; }
15651 }'`; fi
15652 else
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15659 rm -f core conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15664 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"
15665 else
15666 if test "$host_cpu" = ia64; then
15667 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15668 allow_undefined_flag="-z nodefs"
15669 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"
15670 else
15671 # Determine the default libpath from the value encoded in an empty executable.
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h. */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15680 main ()
15684 return 0;
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (ac_try="$ac_link"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_link") 2>conftest.er1
15695 ac_status=$?
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15702 { (case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15705 esac
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707 (eval "$ac_try") 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } &&
15711 { ac_try='test -s conftest$ac_exeext'
15712 { (case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15715 esac
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_try") 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15724 # Check for a 64-bit object if we didn't find anything.
15725 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; }
15726 }'`; fi
15727 else
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15734 rm -f core conftest.err conftest.$ac_objext \
15735 conftest$ac_exeext conftest.$ac_ext
15736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15739 # Warning - without using the other run time loading flags,
15740 # -berok will link without error, but may produce a broken library.
15741 no_undefined_flag=' ${wl}-bernotok'
15742 allow_undefined_flag=' ${wl}-berok'
15743 # Exported symbols can be pulled into shared objects from archives
15744 whole_archive_flag_spec='$convenience'
15745 archive_cmds_need_lc=yes
15746 # This is similar to how AIX traditionally builds its shared libraries.
15747 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'
15752 amigaos*)
15753 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)'
15754 hardcode_libdir_flag_spec='-L$libdir'
15755 hardcode_minus_L=yes
15756 # see comment about different semantics on the GNU ld section
15757 ld_shlibs=no
15760 bsdi[45]*)
15761 export_dynamic_flag_spec=-rdynamic
15764 cygwin* | mingw* | pw32*)
15765 # When not using gcc, we currently assume that we are using
15766 # Microsoft Visual C++.
15767 # hardcode_libdir_flag_spec is actually meaningless, as there is
15768 # no search path for DLLs.
15769 hardcode_libdir_flag_spec=' '
15770 allow_undefined_flag=unsupported
15771 # Tell ltmain to make .lib files, not .a files.
15772 libext=lib
15773 # Tell ltmain to make .dll files, not .so files.
15774 shrext_cmds=".dll"
15775 # FIXME: Setting linknames here is a bad hack.
15776 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15777 # The linker will automatically build a .lib file if we build a DLL.
15778 old_archive_From_new_cmds='true'
15779 # FIXME: Should let the user specify the lib program.
15780 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15781 fix_srcfile_path='`cygpath -w "$srcfile"`'
15782 enable_shared_with_static_runtimes=yes
15785 darwin* | rhapsody*)
15786 case $host_os in
15787 rhapsody* | darwin1.[012])
15788 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15790 *) # Darwin 1.3 on
15791 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15792 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15793 else
15794 case ${MACOSX_DEPLOYMENT_TARGET} in
15795 10.[012])
15796 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15798 10.*)
15799 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15801 esac
15804 esac
15805 archive_cmds_need_lc=no
15806 hardcode_direct=no
15807 hardcode_automatic=yes
15808 hardcode_shlibpath_var=unsupported
15809 whole_archive_flag_spec=''
15810 link_all_deplibs=yes
15811 if test "$GCC" = yes ; then
15812 output_verbose_link_cmd='echo'
15813 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15814 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15816 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}'
15817 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}'
15818 else
15819 case $cc_basename in
15820 xlc*)
15821 output_verbose_link_cmd='echo'
15822 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15823 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15824 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15825 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}'
15826 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}'
15829 ld_shlibs=no
15831 esac
15835 dgux*)
15836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_libdir_flag_spec='-L$libdir'
15838 hardcode_shlibpath_var=no
15841 freebsd1*)
15842 ld_shlibs=no
15845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15846 # support. Future versions do this automatically, but an explicit c++rt0.o
15847 # does not break anything, and helps significantly (at the cost of a little
15848 # extra space).
15849 freebsd2.2*)
15850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15851 hardcode_libdir_flag_spec='-R$libdir'
15852 hardcode_direct=yes
15853 hardcode_shlibpath_var=no
15856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15857 freebsd2*)
15858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_direct=yes
15860 hardcode_minus_L=yes
15861 hardcode_shlibpath_var=no
15864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15865 freebsd* | kfreebsd*-gnu | dragonfly*)
15866 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15867 hardcode_libdir_flag_spec='-R$libdir'
15868 hardcode_direct=yes
15869 hardcode_shlibpath_var=no
15872 hpux9*)
15873 if test "$GCC" = yes; then
15874 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'
15875 else
15876 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'
15878 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15879 hardcode_libdir_separator=:
15880 hardcode_direct=yes
15882 # hardcode_minus_L: Not really in the search PATH,
15883 # but as the default location of the library.
15884 hardcode_minus_L=yes
15885 export_dynamic_flag_spec='${wl}-E'
15888 hpux10*)
15889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15890 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15891 else
15892 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15894 if test "$with_gnu_ld" = no; then
15895 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15896 hardcode_libdir_separator=:
15898 hardcode_direct=yes
15899 export_dynamic_flag_spec='${wl}-E'
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L=yes
15907 hpux11*)
15908 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15909 case $host_cpu in
15910 hppa*64*)
15911 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15913 ia64*)
15914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15919 esac
15920 else
15921 case $host_cpu in
15922 hppa*64*)
15923 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 ia64*)
15926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15931 esac
15933 if test "$with_gnu_ld" = no; then
15934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15935 hardcode_libdir_separator=:
15937 case $host_cpu in
15938 hppa*64*|ia64*)
15939 hardcode_libdir_flag_spec_ld='+b $libdir'
15940 hardcode_direct=no
15941 hardcode_shlibpath_var=no
15944 hardcode_direct=yes
15945 export_dynamic_flag_spec='${wl}-E'
15947 # hardcode_minus_L: Not really in the search PATH,
15948 # but as the default location of the library.
15949 hardcode_minus_L=yes
15951 esac
15955 irix5* | irix6* | nonstopux*)
15956 if test "$GCC" = yes; then
15957 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'
15958 else
15959 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'
15960 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15963 hardcode_libdir_separator=:
15964 link_all_deplibs=yes
15967 netbsd*)
15968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15970 else
15971 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15973 hardcode_libdir_flag_spec='-R$libdir'
15974 hardcode_direct=yes
15975 hardcode_shlibpath_var=no
15978 newsos6)
15979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct=yes
15981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15982 hardcode_libdir_separator=:
15983 hardcode_shlibpath_var=no
15986 openbsd*)
15987 hardcode_direct=yes
15988 hardcode_shlibpath_var=no
15989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15991 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15993 export_dynamic_flag_spec='${wl}-E'
15994 else
15995 case $host_os in
15996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_libdir_flag_spec='-R$libdir'
16001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16004 esac
16008 os2*)
16009 hardcode_libdir_flag_spec='-L$libdir'
16010 hardcode_minus_L=yes
16011 allow_undefined_flag=unsupported
16012 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'
16013 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16016 osf3*)
16017 if test "$GCC" = yes; then
16018 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16019 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'
16020 else
16021 allow_undefined_flag=' -expect_unresolved \*'
16022 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'
16024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16025 hardcode_libdir_separator=:
16028 osf4* | osf5*) # as osf3* with the addition of -msym flag
16029 if test "$GCC" = yes; then
16030 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16031 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'
16032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16033 else
16034 allow_undefined_flag=' -expect_unresolved \*'
16035 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'
16036 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16037 $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'
16039 # Both c and cxx compiler support -rpath directly
16040 hardcode_libdir_flag_spec='-rpath $libdir'
16042 hardcode_libdir_separator=:
16045 solaris*)
16046 no_undefined_flag=' -z text'
16047 if test "$GCC" = yes; then
16048 wlarc='${wl}'
16049 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16050 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16051 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16052 else
16053 wlarc=''
16054 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16055 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16058 hardcode_libdir_flag_spec='-R$libdir'
16059 hardcode_shlibpath_var=no
16060 case $host_os in
16061 solaris2.[0-5] | solaris2.[0-5].*) ;;
16063 # The compiler driver will combine linker options so we
16064 # cannot just pass the convience library names through
16065 # without $wl, iff we do not link with $LD.
16066 # Luckily, gcc supports the same syntax we need for Sun Studio.
16067 # Supported since Solaris 2.6 (maybe 2.5.1?)
16068 case $wlarc in
16070 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16072 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' ;;
16073 esac ;;
16074 esac
16075 link_all_deplibs=yes
16078 sunos4*)
16079 if test "x$host_vendor" = xsequent; then
16080 # Use $CC to link under sequent, because it throws in some extra .o
16081 # files that make .init and .fini sections work.
16082 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16083 else
16084 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_libdir_flag_spec='-L$libdir'
16087 hardcode_direct=yes
16088 hardcode_minus_L=yes
16089 hardcode_shlibpath_var=no
16092 sysv4)
16093 case $host_vendor in
16094 sni)
16095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16096 hardcode_direct=yes # is this really true???
16098 siemens)
16099 ## LD is ld it makes a PLAMLIB
16100 ## CC just makes a GrossModule.
16101 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16102 reload_cmds='$CC -r -o $output$reload_objs'
16103 hardcode_direct=no
16105 motorola)
16106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16109 esac
16110 runpath_var='LD_RUN_PATH'
16111 hardcode_shlibpath_var=no
16114 sysv4.3*)
16115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116 hardcode_shlibpath_var=no
16117 export_dynamic_flag_spec='-Bexport'
16120 sysv4*MP*)
16121 if test -d /usr/nec; then
16122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_shlibpath_var=no
16124 runpath_var=LD_RUN_PATH
16125 hardcode_runpath_var=yes
16126 ld_shlibs=yes
16130 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16131 no_undefined_flag='${wl}-z,text'
16132 archive_cmds_need_lc=no
16133 hardcode_shlibpath_var=no
16134 runpath_var='LD_RUN_PATH'
16136 if test "$GCC" = yes; then
16137 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139 else
16140 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 sysv5* | sco3.2v5* | sco5v6*)
16146 # Note: We can NOT use -z defs as we might desire, because we do not
16147 # link with -lc, and that would cause any symbols used from libc to
16148 # always be unresolved, which means just about no library would
16149 # ever link correctly. If we're not using GNU ld we use -z text
16150 # though, which does catch some bad symbols but isn't as heavy-handed
16151 # as -z defs.
16152 no_undefined_flag='${wl}-z,text'
16153 allow_undefined_flag='${wl}-z,nodefs'
16154 archive_cmds_need_lc=no
16155 hardcode_shlibpath_var=no
16156 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16157 hardcode_libdir_separator=':'
16158 link_all_deplibs=yes
16159 export_dynamic_flag_spec='${wl}-Bexport'
16160 runpath_var='LD_RUN_PATH'
16162 if test "$GCC" = yes; then
16163 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 else
16166 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 uts4*)
16172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_libdir_flag_spec='-L$libdir'
16174 hardcode_shlibpath_var=no
16178 ld_shlibs=no
16180 esac
16183 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16184 echo "${ECHO_T}$ld_shlibs" >&6; }
16185 test "$ld_shlibs" = no && can_build_shared=no
16188 # Do we need to explicitly link libc?
16190 case "x$archive_cmds_need_lc" in
16191 x|xyes)
16192 # Assume -lc should be added
16193 archive_cmds_need_lc=yes
16195 if test "$enable_shared" = yes && test "$GCC" = yes; then
16196 case $archive_cmds in
16197 *'~'*)
16198 # FIXME: we may have to deal with multi-command sequences.
16200 '$CC '*)
16201 # Test whether the compiler implicitly links with -lc since on some
16202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16203 # to ld, don't add -lc before -lgcc.
16204 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16205 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16206 $rm conftest*
16207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } 2>conftest.err; then
16214 soname=conftest
16215 lib=conftest
16216 libobjs=conftest.$ac_objext
16217 deplibs=
16218 wl=$lt_prog_compiler_wl
16219 pic_flag=$lt_prog_compiler_pic
16220 compiler_flags=-v
16221 linker_flags=-v
16222 verstring=
16223 output_objdir=.
16224 libname=conftest
16225 lt_save_allow_undefined_flag=$allow_undefined_flag
16226 allow_undefined_flag=
16227 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16228 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }
16232 then
16233 archive_cmds_need_lc=no
16234 else
16235 archive_cmds_need_lc=yes
16237 allow_undefined_flag=$lt_save_allow_undefined_flag
16238 else
16239 cat conftest.err 1>&5
16241 $rm conftest*
16242 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16243 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16245 esac
16248 esac
16250 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16251 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16252 library_names_spec=
16253 libname_spec='lib$name'
16254 soname_spec=
16255 shrext_cmds=".so"
16256 postinstall_cmds=
16257 postuninstall_cmds=
16258 finish_cmds=
16259 finish_eval=
16260 shlibpath_var=
16261 shlibpath_overrides_runpath=unknown
16262 version_type=none
16263 dynamic_linker="$host_os ld.so"
16264 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16265 if test "$GCC" = yes; then
16266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16267 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16268 # if the path contains ";" then we assume it to be the separator
16269 # otherwise default to the standard path separator (i.e. ":") - it is
16270 # assumed that no part of a normal pathname contains ";" but that should
16271 # okay in the real world where ";" in dirpaths is itself problematic.
16272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16273 else
16274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16276 else
16277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16279 need_lib_prefix=unknown
16280 hardcode_into_libs=no
16282 # when you set need_version to no, make sure it does not cause -set_version
16283 # flags to be left without arguments
16284 need_version=unknown
16286 case $host_os in
16287 aix3*)
16288 version_type=linux
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16290 shlibpath_var=LIBPATH
16292 # AIX 3 has no versioning support, so we append a major version to the name.
16293 soname_spec='${libname}${release}${shared_ext}$major'
16296 aix4* | aix5*)
16297 version_type=linux
16298 need_lib_prefix=no
16299 need_version=no
16300 hardcode_into_libs=yes
16301 if test "$host_cpu" = ia64; then
16302 # AIX 5 supports IA64
16303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 else
16306 # With GCC up to 2.95.x, collect2 would create an import file
16307 # for dependence libraries. The import file would start with
16308 # the line `#! .'. This would cause the generated library to
16309 # depend on `.', always an invalid library. This was fixed in
16310 # development snapshots of GCC prior to 3.0.
16311 case $host_os in
16312 aix4 | aix4.[01] | aix4.[01].*)
16313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16314 echo ' yes '
16315 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16317 else
16318 can_build_shared=no
16321 esac
16322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16323 # soname into executable. Probably we can add versioning support to
16324 # collect2, so additional links can be useful in future.
16325 if test "$aix_use_runtimelinking" = yes; then
16326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16327 # instead of lib<name>.a to let people know that these are not
16328 # typical AIX shared libraries.
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 else
16331 # We preserve .a as extension for shared libraries through AIX4.2
16332 # and later when we are not doing run time linking.
16333 library_names_spec='${libname}${release}.a $libname.a'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LIBPATH
16340 amigaos*)
16341 library_names_spec='$libname.ixlibrary $libname.a'
16342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16343 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'
16346 beos*)
16347 library_names_spec='${libname}${shared_ext}'
16348 dynamic_linker="$host_os ld.so"
16349 shlibpath_var=LIBRARY_PATH
16352 bsdi[45]*)
16353 version_type=linux
16354 need_version=no
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16361 # the default ld.so.conf also contains /usr/contrib/lib and
16362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16363 # libtool to hard-code these into programs
16366 cygwin* | mingw* | pw32*)
16367 version_type=windows
16368 shrext_cmds=".dll"
16369 need_version=no
16370 need_lib_prefix=no
16372 case $GCC,$host_os in
16373 yes,cygwin* | yes,mingw* | yes,pw32*)
16374 library_names_spec='$libname.dll.a'
16375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16376 postinstall_cmds='base_file=`basename \${file}`~
16377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16378 dldir=$destdir/`dirname \$dlpath`~
16379 test -d \$dldir || mkdir -p \$dldir~
16380 $install_prog $dir/$dlname \$dldir/$dlname~
16381 chmod a+x \$dldir/$dlname'
16382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16383 dlpath=$dir/\$dldll~
16384 $rm \$dlpath'
16385 shlibpath_overrides_runpath=yes
16387 case $host_os in
16388 cygwin*)
16389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16390 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16391 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16393 mingw*)
16394 # MinGW DLLs use traditional 'lib' prefix
16395 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16397 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16398 # It is most probably a Windows format PATH printed by
16399 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16400 # path with ; separators, and with drive letters. We can handle the
16401 # drive letters (cygwin fileutils understands them), so leave them,
16402 # especially as we might pass files found there to a mingw objdump,
16403 # which wouldn't understand a cygwinified path. Ahh.
16404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16405 else
16406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16409 pw32*)
16410 # pw32 DLLs use 'pw' prefix rather than 'lib'
16411 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16413 esac
16417 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16419 esac
16420 dynamic_linker='Win32 ld.exe'
16421 # FIXME: first we should search . and the directory the executable is in
16422 shlibpath_var=PATH
16425 darwin* | rhapsody*)
16426 dynamic_linker="$host_os dyld"
16427 version_type=darwin
16428 need_lib_prefix=no
16429 need_version=no
16430 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16431 soname_spec='${libname}${release}${major}$shared_ext'
16432 shlibpath_overrides_runpath=yes
16433 shlibpath_var=DYLD_LIBRARY_PATH
16434 shrext_cmds='.dylib'
16435 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16436 if test "$GCC" = yes; then
16437 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"`
16438 else
16439 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16444 dgux*)
16445 version_type=linux
16446 need_lib_prefix=no
16447 need_version=no
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 shlibpath_var=LD_LIBRARY_PATH
16453 freebsd1*)
16454 dynamic_linker=no
16457 kfreebsd*-gnu)
16458 version_type=linux
16459 need_lib_prefix=no
16460 need_version=no
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 shlibpath_var=LD_LIBRARY_PATH
16464 shlibpath_overrides_runpath=no
16465 hardcode_into_libs=yes
16466 dynamic_linker='GNU ld.so'
16469 freebsd* | dragonfly*)
16470 # DragonFly does not have aout. When/if they implement a new
16471 # versioning mechanism, adjust this.
16472 if test -x /usr/bin/objformat; then
16473 objformat=`/usr/bin/objformat`
16474 else
16475 case $host_os in
16476 freebsd[123]*) objformat=aout ;;
16477 *) objformat=elf ;;
16478 esac
16480 version_type=freebsd-$objformat
16481 case $version_type in
16482 freebsd-elf*)
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16484 need_version=no
16485 need_lib_prefix=no
16487 freebsd-*)
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16489 need_version=yes
16491 esac
16492 shlibpath_var=LD_LIBRARY_PATH
16493 case $host_os in
16494 freebsd2*)
16495 shlibpath_overrides_runpath=yes
16497 freebsd3.[01]* | freebsdelf3.[01]*)
16498 shlibpath_overrides_runpath=yes
16499 hardcode_into_libs=yes
16501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16503 shlibpath_overrides_runpath=no
16504 hardcode_into_libs=yes
16506 freebsd*) # from 4.6 on
16507 shlibpath_overrides_runpath=yes
16508 hardcode_into_libs=yes
16510 esac
16513 gnu*)
16514 version_type=linux
16515 need_lib_prefix=no
16516 need_version=no
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 hardcode_into_libs=yes
16523 hpux9* | hpux10* | hpux11*)
16524 # Give a soname corresponding to the major version so that dld.sl refuses to
16525 # link against other versions.
16526 version_type=sunos
16527 need_lib_prefix=no
16528 need_version=no
16529 case $host_cpu in
16530 ia64*)
16531 shrext_cmds='.so'
16532 hardcode_into_libs=yes
16533 dynamic_linker="$host_os dld.so"
16534 shlibpath_var=LD_LIBRARY_PATH
16535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 if test "X$HPUX_IA64_MODE" = X32; then
16539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16540 else
16541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16545 hppa*64*)
16546 shrext_cmds='.sl'
16547 hardcode_into_libs=yes
16548 dynamic_linker="$host_os dld.sl"
16549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16557 shrext_cmds='.sl'
16558 dynamic_linker="$host_os dld.sl"
16559 shlibpath_var=SHLIB_PATH
16560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16564 esac
16565 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16566 postinstall_cmds='chmod 555 $lib'
16569 interix3*)
16570 version_type=linux
16571 need_lib_prefix=no
16572 need_version=no
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 shlibpath_overrides_runpath=no
16578 hardcode_into_libs=yes
16581 irix5* | irix6* | nonstopux*)
16582 case $host_os in
16583 nonstopux*) version_type=nonstopux ;;
16585 if test "$lt_cv_prog_gnu_ld" = yes; then
16586 version_type=linux
16587 else
16588 version_type=irix
16589 fi ;;
16590 esac
16591 need_lib_prefix=no
16592 need_version=no
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16595 case $host_os in
16596 irix5* | nonstopux*)
16597 libsuff= shlibsuff=
16600 case $LD in # libtool.m4 will add one of these switches to LD
16601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16602 libsuff= shlibsuff= libmagic=32-bit;;
16603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16604 libsuff=32 shlibsuff=N32 libmagic=N32;;
16605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16607 *) libsuff= shlibsuff= libmagic=never-match;;
16608 esac
16610 esac
16611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16612 shlibpath_overrides_runpath=no
16613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16615 hardcode_into_libs=yes
16618 # No shared lib support for Linux oldld, aout, or coff.
16619 linux*oldld* | linux*aout* | linux*coff*)
16620 dynamic_linker=no
16623 # This must be Linux ELF.
16624 linux*)
16625 version_type=linux
16626 need_lib_prefix=no
16627 need_version=no
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16631 shlibpath_var=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath=no
16633 # This implies no fast_install, which is unacceptable.
16634 # Some rework will be needed to allow for fast_install
16635 # before this can be enabled.
16636 hardcode_into_libs=yes
16638 # Append ld.so.conf contents to the search path
16639 if test -f /etc/ld.so.conf; then
16640 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' ' '`
16641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16644 # We used to test for /lib/ld.so.1 and disable shared libraries on
16645 # powerpc, because MkLinux only supported shared libraries with the
16646 # GNU dynamic linker. Since this was broken with cross compilers,
16647 # most powerpc-linux boxes support dynamic linking these days and
16648 # people can always --disable-shared, the test was removed, and we
16649 # assume the GNU/Linux dynamic linker is in use.
16650 dynamic_linker='GNU/Linux ld.so'
16653 knetbsd*-gnu)
16654 version_type=linux
16655 need_lib_prefix=no
16656 need_version=no
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16658 soname_spec='${libname}${release}${shared_ext}$major'
16659 shlibpath_var=LD_LIBRARY_PATH
16660 shlibpath_overrides_runpath=no
16661 hardcode_into_libs=yes
16662 dynamic_linker='GNU ld.so'
16665 netbsd*)
16666 version_type=sunos
16667 need_lib_prefix=no
16668 need_version=no
16669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16672 dynamic_linker='NetBSD (a.out) ld.so'
16673 else
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16675 soname_spec='${libname}${release}${shared_ext}$major'
16676 dynamic_linker='NetBSD ld.elf_so'
16678 shlibpath_var=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath=yes
16680 hardcode_into_libs=yes
16683 newsos6)
16684 version_type=linux
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686 shlibpath_var=LD_LIBRARY_PATH
16687 shlibpath_overrides_runpath=yes
16690 nto-qnx*)
16691 version_type=linux
16692 need_lib_prefix=no
16693 need_version=no
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath=yes
16700 openbsd*)
16701 version_type=sunos
16702 sys_lib_dlsearch_path_spec="/usr/lib"
16703 need_lib_prefix=no
16704 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16705 case $host_os in
16706 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16707 *) need_version=no ;;
16708 esac
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16711 shlibpath_var=LD_LIBRARY_PATH
16712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16713 case $host_os in
16714 openbsd2.[89] | openbsd2.[89].*)
16715 shlibpath_overrides_runpath=no
16718 shlibpath_overrides_runpath=yes
16720 esac
16721 else
16722 shlibpath_overrides_runpath=yes
16726 os2*)
16727 libname_spec='$name'
16728 shrext_cmds=".dll"
16729 need_lib_prefix=no
16730 library_names_spec='$libname${shared_ext} $libname.a'
16731 dynamic_linker='OS/2 ld.exe'
16732 shlibpath_var=LIBPATH
16735 osf3* | osf4* | osf5*)
16736 version_type=osf
16737 need_lib_prefix=no
16738 need_version=no
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 shlibpath_var=LD_LIBRARY_PATH
16742 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16743 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16746 solaris*)
16747 version_type=linux
16748 need_lib_prefix=no
16749 need_version=no
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 shlibpath_var=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath=yes
16754 hardcode_into_libs=yes
16755 # ldd complains unless libraries are executable
16756 postinstall_cmds='chmod +x $lib'
16759 sunos4*)
16760 version_type=sunos
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath=yes
16765 if test "$with_gnu_ld" = yes; then
16766 need_lib_prefix=no
16768 need_version=yes
16771 sysv4 | sysv4.3*)
16772 version_type=linux
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'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 case $host_vendor in
16777 sni)
16778 shlibpath_overrides_runpath=no
16779 need_lib_prefix=no
16780 export_dynamic_flag_spec='${wl}-Blargedynsym'
16781 runpath_var=LD_RUN_PATH
16783 siemens)
16784 need_lib_prefix=no
16786 motorola)
16787 need_lib_prefix=no
16788 need_version=no
16789 shlibpath_overrides_runpath=no
16790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16792 esac
16795 sysv4*MP*)
16796 if test -d /usr/nec ;then
16797 version_type=linux
16798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16799 soname_spec='$libname${shared_ext}.$major'
16800 shlibpath_var=LD_LIBRARY_PATH
16804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16805 version_type=freebsd-elf
16806 need_lib_prefix=no
16807 need_version=no
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16809 soname_spec='${libname}${release}${shared_ext}$major'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 hardcode_into_libs=yes
16812 if test "$with_gnu_ld" = yes; then
16813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16814 shlibpath_overrides_runpath=no
16815 else
16816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16817 shlibpath_overrides_runpath=yes
16818 case $host_os in
16819 sco3.2v5*)
16820 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16822 esac
16824 sys_lib_dlsearch_path_spec='/usr/lib'
16827 uts4*)
16828 version_type=linux
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 shlibpath_var=LD_LIBRARY_PATH
16835 dynamic_linker=no
16837 esac
16838 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16839 echo "${ECHO_T}$dynamic_linker" >&6; }
16840 test "$dynamic_linker" = no && can_build_shared=no
16842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16843 if test "$GCC" = yes; then
16844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16847 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16849 hardcode_action=
16850 if test -n "$hardcode_libdir_flag_spec" || \
16851 test -n "$runpath_var" || \
16852 test "X$hardcode_automatic" = "Xyes" ; then
16854 # We can hardcode non-existant directories.
16855 if test "$hardcode_direct" != no &&
16856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16857 # have to relink, otherwise we might link with an installed library
16858 # when we should be linking with a yet-to-be-installed one
16859 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16860 test "$hardcode_minus_L" != no; then
16861 # Linking always hardcodes the temporary library directory.
16862 hardcode_action=relink
16863 else
16864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16865 hardcode_action=immediate
16867 else
16868 # We cannot hardcode anything, or else we can only hardcode existing
16869 # directories.
16870 hardcode_action=unsupported
16872 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16873 echo "${ECHO_T}$hardcode_action" >&6; }
16875 if test "$hardcode_action" = relink; then
16876 # Fast installation is not supported
16877 enable_fast_install=no
16878 elif test "$shlibpath_overrides_runpath" = yes ||
16879 test "$enable_shared" = no; then
16880 # Fast installation is not necessary
16881 enable_fast_install=needless
16884 striplib=
16885 old_striplib=
16886 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16888 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16891 { echo "$as_me:$LINENO: result: yes" >&5
16892 echo "${ECHO_T}yes" >&6; }
16893 else
16894 # FIXME - insert some real tests, host_os isn't really good enough
16895 case $host_os in
16896 darwin*)
16897 if test -n "$STRIP" ; then
16898 striplib="$STRIP -x"
16899 { echo "$as_me:$LINENO: result: yes" >&5
16900 echo "${ECHO_T}yes" >&6; }
16901 else
16902 { echo "$as_me:$LINENO: result: no" >&5
16903 echo "${ECHO_T}no" >&6; }
16907 { echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6; }
16910 esac
16913 if test "x$enable_dlopen" != xyes; then
16914 enable_dlopen=unknown
16915 enable_dlopen_self=unknown
16916 enable_dlopen_self_static=unknown
16917 else
16918 lt_cv_dlopen=no
16919 lt_cv_dlopen_libs=
16921 case $host_os in
16922 beos*)
16923 lt_cv_dlopen="load_add_on"
16924 lt_cv_dlopen_libs=
16925 lt_cv_dlopen_self=yes
16928 mingw* | pw32*)
16929 lt_cv_dlopen="LoadLibrary"
16930 lt_cv_dlopen_libs=
16933 cygwin*)
16934 lt_cv_dlopen="dlopen"
16935 lt_cv_dlopen_libs=
16938 darwin*)
16939 # if libdl is installed we need to link against it
16940 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16944 else
16945 ac_check_lib_save_LIBS=$LIBS
16946 LIBS="-ldl $LIBS"
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16954 /* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
16957 #ifdef __cplusplus
16958 extern "C"
16959 #endif
16960 char dlopen ();
16962 main ()
16964 return dlopen ();
16966 return 0;
16968 _ACEOF
16969 rm -f conftest.$ac_objext conftest$ac_exeext
16970 if { (ac_try="$ac_link"
16971 case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_link") 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984 { (case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_try") 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest$ac_exeext'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997 esac
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_cv_lib_dl_dlopen=yes
17004 else
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ac_cv_lib_dl_dlopen=no
17011 rm -f core conftest.err conftest.$ac_objext \
17012 conftest$ac_exeext conftest.$ac_ext
17013 LIBS=$ac_check_lib_save_LIBS
17015 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17017 if test $ac_cv_lib_dl_dlopen = yes; then
17018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17019 else
17021 lt_cv_dlopen="dyld"
17022 lt_cv_dlopen_libs=
17023 lt_cv_dlopen_self=yes
17030 { echo "$as_me:$LINENO: checking for shl_load" >&5
17031 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17032 if test "${ac_cv_func_shl_load+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035 cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h. */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17043 #define shl_load innocuous_shl_load
17045 /* System header to define __stub macros and hopefully few prototypes,
17046 which can conflict with char shl_load (); below.
17047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17048 <limits.h> exists even on freestanding compilers. */
17050 #ifdef __STDC__
17051 # include <limits.h>
17052 #else
17053 # include <assert.h>
17054 #endif
17056 #undef shl_load
17058 /* Override any GCC internal prototype to avoid an error.
17059 Use char because int might match the return type of a GCC
17060 builtin and then its argument prototype would still apply. */
17061 #ifdef __cplusplus
17062 extern "C"
17063 #endif
17064 char shl_load ();
17065 /* The GNU C library defines this for functions which it implements
17066 to always fail with ENOSYS. Some functions are actually named
17067 something starting with __ and the normal name is an alias. */
17068 #if defined __stub_shl_load || defined __stub___shl_load
17069 choke me
17070 #endif
17073 main ()
17075 return shl_load ();
17077 return 0;
17079 _ACEOF
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (ac_try="$ac_link"
17082 case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_link") 2>conftest.er1
17088 ac_status=$?
17089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest$ac_exeext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_cv_func_shl_load=yes
17115 else
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ac_cv_func_shl_load=no
17122 rm -f core conftest.err conftest.$ac_objext \
17123 conftest$ac_exeext conftest.$ac_ext
17125 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17126 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17127 if test $ac_cv_func_shl_load = yes; then
17128 lt_cv_dlopen="shl_load"
17129 else
17130 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17131 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17132 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135 ac_check_lib_save_LIBS=$LIBS
17136 LIBS="-ldld $LIBS"
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17147 #ifdef __cplusplus
17148 extern "C"
17149 #endif
17150 char shl_load ();
17152 main ()
17154 return shl_load ();
17156 return 0;
17158 _ACEOF
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
17167 ac_status=$?
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17174 { (case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_try") 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } &&
17183 { ac_try='test -s conftest$ac_exeext'
17184 { (case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17187 esac
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_try") 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; }; then
17193 ac_cv_lib_dld_shl_load=yes
17194 else
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 ac_cv_lib_dld_shl_load=no
17201 rm -f core conftest.err conftest.$ac_objext \
17202 conftest$ac_exeext conftest.$ac_ext
17203 LIBS=$ac_check_lib_save_LIBS
17205 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17206 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17207 if test $ac_cv_lib_dld_shl_load = yes; then
17208 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17209 else
17210 { echo "$as_me:$LINENO: checking for dlopen" >&5
17211 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17212 if test "${ac_cv_func_dlopen+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17214 else
17215 cat >conftest.$ac_ext <<_ACEOF
17216 /* confdefs.h. */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17221 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17223 #define dlopen innocuous_dlopen
17225 /* System header to define __stub macros and hopefully few prototypes,
17226 which can conflict with char dlopen (); below.
17227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17228 <limits.h> exists even on freestanding compilers. */
17230 #ifdef __STDC__
17231 # include <limits.h>
17232 #else
17233 # include <assert.h>
17234 #endif
17236 #undef dlopen
17238 /* Override any GCC internal prototype to avoid an error.
17239 Use char because int might match the return type of a GCC
17240 builtin and then its argument prototype would still apply. */
17241 #ifdef __cplusplus
17242 extern "C"
17243 #endif
17244 char dlopen ();
17245 /* The GNU C library defines this for functions which it implements
17246 to always fail with ENOSYS. Some functions are actually named
17247 something starting with __ and the normal name is an alias. */
17248 #if defined __stub_dlopen || defined __stub___dlopen
17249 choke me
17250 #endif
17253 main ()
17255 return dlopen ();
17257 return 0;
17259 _ACEOF
17260 rm -f conftest.$ac_objext conftest$ac_exeext
17261 if { (ac_try="$ac_link"
17262 case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17265 esac
17266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_link") 2>conftest.er1
17268 ac_status=$?
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
17274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278 esac
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try='test -s conftest$ac_exeext'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 ac_cv_func_dlopen=yes
17295 else
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17299 ac_cv_func_dlopen=no
17302 rm -f core conftest.err conftest.$ac_objext \
17303 conftest$ac_exeext conftest.$ac_ext
17305 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17306 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17307 if test $ac_cv_func_dlopen = yes; then
17308 lt_cv_dlopen="dlopen"
17309 else
17310 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17311 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17312 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 else
17315 ac_check_lib_save_LIBS=$LIBS
17316 LIBS="-ldl $LIBS"
17317 cat >conftest.$ac_ext <<_ACEOF
17318 /* confdefs.h. */
17319 _ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17324 /* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17327 #ifdef __cplusplus
17328 extern "C"
17329 #endif
17330 char dlopen ();
17332 main ()
17334 return dlopen ();
17336 return 0;
17338 _ACEOF
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (ac_try="$ac_link"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
17347 ac_status=$?
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17354 { (case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_try") 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest$ac_exeext'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 ac_cv_lib_dl_dlopen=yes
17374 else
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 ac_cv_lib_dl_dlopen=no
17381 rm -f core conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17383 LIBS=$ac_check_lib_save_LIBS
17385 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17386 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17387 if test $ac_cv_lib_dl_dlopen = yes; then
17388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17389 else
17390 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17391 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17392 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17395 ac_check_lib_save_LIBS=$LIBS
17396 LIBS="-lsvld $LIBS"
17397 cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h. */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 /* Override any GCC internal prototype to avoid an error.
17405 Use char because int might match the return type of a GCC
17406 builtin and then its argument prototype would still apply. */
17407 #ifdef __cplusplus
17408 extern "C"
17409 #endif
17410 char dlopen ();
17412 main ()
17414 return dlopen ();
17416 return 0;
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17434 { (case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_try") 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest$ac_exeext'
17444 { (case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_try") 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_lib_svld_dlopen=yes
17454 else
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_cv_lib_svld_dlopen=no
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17463 LIBS=$ac_check_lib_save_LIBS
17465 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17466 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17467 if test $ac_cv_lib_svld_dlopen = yes; then
17468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17469 else
17470 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17471 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17472 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 ac_check_lib_save_LIBS=$LIBS
17476 LIBS="-ldld $LIBS"
17477 cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h. */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 /* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
17487 #ifdef __cplusplus
17488 extern "C"
17489 #endif
17490 char dld_link ();
17492 main ()
17494 return dld_link ();
17496 return 0;
17498 _ACEOF
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (ac_try="$ac_link"
17501 case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_link") 2>conftest.er1
17507 ac_status=$?
17508 grep -v '^ *+' conftest.er1 >conftest.err
17509 rm -f conftest.er1
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } &&
17513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17514 { (case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17517 esac
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_try") 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_try") 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_lib_dld_dld_link=yes
17534 else
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_cv_lib_dld_dld_link=no
17541 rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17543 LIBS=$ac_check_lib_save_LIBS
17545 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17546 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17547 if test $ac_cv_lib_dld_dld_link = yes; then
17548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17567 esac
17569 if test "x$lt_cv_dlopen" != xno; then
17570 enable_dlopen=yes
17571 else
17572 enable_dlopen=no
17575 case $lt_cv_dlopen in
17576 dlopen)
17577 save_CPPFLAGS="$CPPFLAGS"
17578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17580 save_LDFLAGS="$LDFLAGS"
17581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17583 save_LIBS="$LIBS"
17584 LIBS="$lt_cv_dlopen_libs $LIBS"
17586 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17587 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17588 if test "${lt_cv_dlopen_self+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591 if test "$cross_compiling" = yes; then :
17592 lt_cv_dlopen_self=cross
17593 else
17594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17595 lt_status=$lt_dlunknown
17596 cat > conftest.$ac_ext <<EOF
17597 #line 17602 "configure"
17598 #include "confdefs.h"
17600 #if HAVE_DLFCN_H
17601 #include <dlfcn.h>
17602 #endif
17604 #include <stdio.h>
17606 #ifdef RTLD_GLOBAL
17607 # define LT_DLGLOBAL RTLD_GLOBAL
17608 #else
17609 # ifdef DL_GLOBAL
17610 # define LT_DLGLOBAL DL_GLOBAL
17611 # else
17612 # define LT_DLGLOBAL 0
17613 # endif
17614 #endif
17616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17617 find out it does not work in some platform. */
17618 #ifndef LT_DLLAZY_OR_NOW
17619 # ifdef RTLD_LAZY
17620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17621 # else
17622 # ifdef DL_LAZY
17623 # define LT_DLLAZY_OR_NOW DL_LAZY
17624 # else
17625 # ifdef RTLD_NOW
17626 # define LT_DLLAZY_OR_NOW RTLD_NOW
17627 # else
17628 # ifdef DL_NOW
17629 # define LT_DLLAZY_OR_NOW DL_NOW
17630 # else
17631 # define LT_DLLAZY_OR_NOW 0
17632 # endif
17633 # endif
17634 # endif
17635 # endif
17636 #endif
17638 #ifdef __cplusplus
17639 extern "C" void exit (int);
17640 #endif
17642 void fnord() { int i=42;}
17643 int main ()
17645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17646 int status = $lt_dlunknown;
17648 if (self)
17650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17652 /* dlclose (self); */
17654 else
17655 puts (dlerror ());
17657 exit (status);
17660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17661 (eval $ac_link) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17665 (./conftest; exit; ) >&5 2>/dev/null
17666 lt_status=$?
17667 case x$lt_status in
17668 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17669 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17670 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17671 esac
17672 else :
17673 # compilation failed
17674 lt_cv_dlopen_self=no
17677 rm -fr conftest*
17681 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17682 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17684 if test "x$lt_cv_dlopen_self" = xyes; then
17685 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17686 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17687 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17688 if test "${lt_cv_dlopen_self_static+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691 if test "$cross_compiling" = yes; then :
17692 lt_cv_dlopen_self_static=cross
17693 else
17694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17695 lt_status=$lt_dlunknown
17696 cat > conftest.$ac_ext <<EOF
17697 #line 17702 "configure"
17698 #include "confdefs.h"
17700 #if HAVE_DLFCN_H
17701 #include <dlfcn.h>
17702 #endif
17704 #include <stdio.h>
17706 #ifdef RTLD_GLOBAL
17707 # define LT_DLGLOBAL RTLD_GLOBAL
17708 #else
17709 # ifdef DL_GLOBAL
17710 # define LT_DLGLOBAL DL_GLOBAL
17711 # else
17712 # define LT_DLGLOBAL 0
17713 # endif
17714 #endif
17716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17717 find out it does not work in some platform. */
17718 #ifndef LT_DLLAZY_OR_NOW
17719 # ifdef RTLD_LAZY
17720 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17721 # else
17722 # ifdef DL_LAZY
17723 # define LT_DLLAZY_OR_NOW DL_LAZY
17724 # else
17725 # ifdef RTLD_NOW
17726 # define LT_DLLAZY_OR_NOW RTLD_NOW
17727 # else
17728 # ifdef DL_NOW
17729 # define LT_DLLAZY_OR_NOW DL_NOW
17730 # else
17731 # define LT_DLLAZY_OR_NOW 0
17732 # endif
17733 # endif
17734 # endif
17735 # endif
17736 #endif
17738 #ifdef __cplusplus
17739 extern "C" void exit (int);
17740 #endif
17742 void fnord() { int i=42;}
17743 int main ()
17745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17746 int status = $lt_dlunknown;
17748 if (self)
17750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17751 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17752 /* dlclose (self); */
17754 else
17755 puts (dlerror ());
17757 exit (status);
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17765 (./conftest; exit; ) >&5 2>/dev/null
17766 lt_status=$?
17767 case x$lt_status in
17768 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17769 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17770 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17771 esac
17772 else :
17773 # compilation failed
17774 lt_cv_dlopen_self_static=no
17777 rm -fr conftest*
17781 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17782 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17785 CPPFLAGS="$save_CPPFLAGS"
17786 LDFLAGS="$save_LDFLAGS"
17787 LIBS="$save_LIBS"
17789 esac
17791 case $lt_cv_dlopen_self in
17792 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17793 *) enable_dlopen_self=unknown ;;
17794 esac
17796 case $lt_cv_dlopen_self_static in
17797 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17798 *) enable_dlopen_self_static=unknown ;;
17799 esac
17803 # Report which library types will actually be built
17804 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17805 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17806 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17807 echo "${ECHO_T}$can_build_shared" >&6; }
17809 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17810 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17811 test "$can_build_shared" = "no" && enable_shared=no
17813 # On AIX, shared libraries and static libraries use the same namespace, and
17814 # are all built from PIC.
17815 case $host_os in
17816 aix3*)
17817 test "$enable_shared" = yes && enable_static=no
17818 if test -n "$RANLIB"; then
17819 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17820 postinstall_cmds='$RANLIB $lib'
17824 aix4* | aix5*)
17825 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17826 test "$enable_shared" = yes && enable_static=no
17829 esac
17830 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17831 echo "${ECHO_T}$enable_shared" >&6; }
17833 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17835 # Make sure either enable_shared or enable_static is yes.
17836 test "$enable_shared" = yes || enable_static=yes
17837 { echo "$as_me:$LINENO: result: $enable_static" >&5
17838 echo "${ECHO_T}$enable_static" >&6; }
17840 # The else clause should only fire when bootstrapping the
17841 # libtool distribution, otherwise you forgot to ship ltmain.sh
17842 # with your package, and you will get complaints that there are
17843 # no rules to generate ltmain.sh.
17844 if test -f "$ltmain"; then
17845 # See if we are running on zsh, and set the options which allow our commands through
17846 # without removal of \ escapes.
17847 if test -n "${ZSH_VERSION+set}" ; then
17848 setopt NO_GLOB_SUBST
17850 # Now quote all the things that may contain metacharacters while being
17851 # careful not to overquote the AC_SUBSTed values. We take copies of the
17852 # variables and quote the copies for generation of the libtool script.
17853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17854 SED SHELL STRIP \
17855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17857 deplibs_check_method reload_flag reload_cmds need_locks \
17858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17859 lt_cv_sys_global_symbol_to_c_name_address \
17860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17861 old_postinstall_cmds old_postuninstall_cmds \
17862 compiler \
17863 CC \
17864 LD \
17865 lt_prog_compiler_wl \
17866 lt_prog_compiler_pic \
17867 lt_prog_compiler_static \
17868 lt_prog_compiler_no_builtin_flag \
17869 export_dynamic_flag_spec \
17870 thread_safe_flag_spec \
17871 whole_archive_flag_spec \
17872 enable_shared_with_static_runtimes \
17873 old_archive_cmds \
17874 old_archive_from_new_cmds \
17875 predep_objects \
17876 postdep_objects \
17877 predeps \
17878 postdeps \
17879 compiler_lib_search_path \
17880 archive_cmds \
17881 archive_expsym_cmds \
17882 postinstall_cmds \
17883 postuninstall_cmds \
17884 old_archive_from_expsyms_cmds \
17885 allow_undefined_flag \
17886 no_undefined_flag \
17887 export_symbols_cmds \
17888 hardcode_libdir_flag_spec \
17889 hardcode_libdir_flag_spec_ld \
17890 hardcode_libdir_separator \
17891 hardcode_automatic \
17892 module_cmds \
17893 module_expsym_cmds \
17894 lt_cv_prog_compiler_c_o \
17895 exclude_expsyms \
17896 include_expsyms; do
17898 case $var in
17899 old_archive_cmds | \
17900 old_archive_from_new_cmds | \
17901 archive_cmds | \
17902 archive_expsym_cmds | \
17903 module_cmds | \
17904 module_expsym_cmds | \
17905 old_archive_from_expsyms_cmds | \
17906 export_symbols_cmds | \
17907 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17908 postinstall_cmds | postuninstall_cmds | \
17909 old_postinstall_cmds | old_postuninstall_cmds | \
17910 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17911 # Double-quote double-evaled strings.
17912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17917 esac
17918 done
17920 case $lt_echo in
17921 *'\$0 --fallback-echo"')
17922 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17924 esac
17926 cfgfile="${ofile}T"
17927 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17928 $rm -f "$cfgfile"
17929 { echo "$as_me:$LINENO: creating $ofile" >&5
17930 echo "$as_me: creating $ofile" >&6;}
17932 cat <<__EOF__ >> "$cfgfile"
17933 #! $SHELL
17935 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17936 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17937 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17939 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17940 # Free Software Foundation, Inc.
17942 # This file is part of GNU Libtool:
17943 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17945 # This program is free software; you can redistribute it and/or modify
17946 # it under the terms of the GNU General Public License as published by
17947 # the Free Software Foundation; either version 2 of the License, or
17948 # (at your option) any later version.
17950 # This program is distributed in the hope that it will be useful, but
17951 # WITHOUT ANY WARRANTY; without even the implied warranty of
17952 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17953 # General Public License for more details.
17955 # You should have received a copy of the GNU General Public License
17956 # along with this program; if not, write to the Free Software
17957 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17959 # As a special exception to the GNU General Public License, if you
17960 # distribute this file as part of a program that contains a
17961 # configuration script generated by Autoconf, you may include it under
17962 # the same distribution terms that you use for the rest of that program.
17964 # A sed program that does not truncate output.
17965 SED=$lt_SED
17967 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17968 Xsed="$SED -e 1s/^X//"
17970 # The HP-UX ksh and POSIX shell print the target directory to stdout
17971 # if CDPATH is set.
17972 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17974 # The names of the tagged configurations supported by this script.
17975 available_tags=
17977 # ### BEGIN LIBTOOL CONFIG
17979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17981 # Shell to use when invoking shell scripts.
17982 SHELL=$lt_SHELL
17984 # Whether or not to build shared libraries.
17985 build_libtool_libs=$enable_shared
17987 # Whether or not to build static libraries.
17988 build_old_libs=$enable_static
17990 # Whether or not to add -lc for building shared libraries.
17991 build_libtool_need_lc=$archive_cmds_need_lc
17993 # Whether or not to disallow shared libs when runtime libs are static
17994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17996 # Whether or not to optimize for fast installation.
17997 fast_install=$enable_fast_install
17999 # The host system.
18000 host_alias=$host_alias
18001 host=$host
18002 host_os=$host_os
18004 # The build system.
18005 build_alias=$build_alias
18006 build=$build
18007 build_os=$build_os
18009 # An echo program that does not interpret backslashes.
18010 echo=$lt_echo
18012 # The archiver.
18013 AR=$lt_AR
18014 AR_FLAGS=$lt_AR_FLAGS
18016 # A C compiler.
18017 LTCC=$lt_LTCC
18019 # LTCC compiler flags.
18020 LTCFLAGS=$lt_LTCFLAGS
18022 # A language-specific compiler.
18023 CC=$lt_compiler
18025 # Is the compiler the GNU C compiler?
18026 with_gcc=$GCC
18028 # An ERE matcher.
18029 EGREP=$lt_EGREP
18031 # The linker used to build libraries.
18032 LD=$lt_LD
18034 # Whether we need hard or soft links.
18035 LN_S=$lt_LN_S
18037 # A BSD-compatible nm program.
18038 NM=$lt_NM
18040 # A symbol stripping program
18041 STRIP=$lt_STRIP
18043 # Used to examine libraries when file_magic_cmd begins "file"
18044 MAGIC_CMD=$MAGIC_CMD
18046 # Used on cygwin: DLL creation program.
18047 DLLTOOL="$DLLTOOL"
18049 # Used on cygwin: object dumper.
18050 OBJDUMP="$OBJDUMP"
18052 # Used on cygwin: assembler.
18053 AS="$AS"
18055 # The name of the directory that contains temporary libtool files.
18056 objdir=$objdir
18058 # How to create reloadable object files.
18059 reload_flag=$lt_reload_flag
18060 reload_cmds=$lt_reload_cmds
18062 # How to pass a linker flag through the compiler.
18063 wl=$lt_lt_prog_compiler_wl
18065 # Object file suffix (normally "o").
18066 objext="$ac_objext"
18068 # Old archive suffix (normally "a").
18069 libext="$libext"
18071 # Shared library suffix (normally ".so").
18072 shrext_cmds='$shrext_cmds'
18074 # Executable file suffix (normally "").
18075 exeext="$exeext"
18077 # Additional compiler flags for building library objects.
18078 pic_flag=$lt_lt_prog_compiler_pic
18079 pic_mode=$pic_mode
18081 # What is the maximum length of a command?
18082 max_cmd_len=$lt_cv_sys_max_cmd_len
18084 # Does compiler simultaneously support -c and -o options?
18085 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18087 # Must we lock files when doing compilation?
18088 need_locks=$lt_need_locks
18090 # Do we need the lib prefix for modules?
18091 need_lib_prefix=$need_lib_prefix
18093 # Do we need a version for libraries?
18094 need_version=$need_version
18096 # Whether dlopen is supported.
18097 dlopen_support=$enable_dlopen
18099 # Whether dlopen of programs is supported.
18100 dlopen_self=$enable_dlopen_self
18102 # Whether dlopen of statically linked programs is supported.
18103 dlopen_self_static=$enable_dlopen_self_static
18105 # Compiler flag to prevent dynamic linking.
18106 link_static_flag=$lt_lt_prog_compiler_static
18108 # Compiler flag to turn off builtin functions.
18109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18111 # Compiler flag to allow reflexive dlopens.
18112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18114 # Compiler flag to generate shared objects directly from archives.
18115 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18117 # Compiler flag to generate thread-safe objects.
18118 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18120 # Library versioning type.
18121 version_type=$version_type
18123 # Format of library name prefix.
18124 libname_spec=$lt_libname_spec
18126 # List of archive names. First name is the real one, the rest are links.
18127 # The last name is the one that the linker finds with -lNAME.
18128 library_names_spec=$lt_library_names_spec
18130 # The coded name of the library, if different from the real name.
18131 soname_spec=$lt_soname_spec
18133 # Commands used to build and install an old-style archive.
18134 RANLIB=$lt_RANLIB
18135 old_archive_cmds=$lt_old_archive_cmds
18136 old_postinstall_cmds=$lt_old_postinstall_cmds
18137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18139 # Create an old-style archive from a shared archive.
18140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18142 # Create a temporary old-style archive to link instead of a shared archive.
18143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18145 # Commands used to build and install a shared archive.
18146 archive_cmds=$lt_archive_cmds
18147 archive_expsym_cmds=$lt_archive_expsym_cmds
18148 postinstall_cmds=$lt_postinstall_cmds
18149 postuninstall_cmds=$lt_postuninstall_cmds
18151 # Commands used to build a loadable module (assumed same as above if empty)
18152 module_cmds=$lt_module_cmds
18153 module_expsym_cmds=$lt_module_expsym_cmds
18155 # Commands to strip libraries.
18156 old_striplib=$lt_old_striplib
18157 striplib=$lt_striplib
18159 # Dependencies to place before the objects being linked to create a
18160 # shared library.
18161 predep_objects=$lt_predep_objects
18163 # Dependencies to place after the objects being linked to create a
18164 # shared library.
18165 postdep_objects=$lt_postdep_objects
18167 # Dependencies to place before the objects being linked to create a
18168 # shared library.
18169 predeps=$lt_predeps
18171 # Dependencies to place after the objects being linked to create a
18172 # shared library.
18173 postdeps=$lt_postdeps
18175 # The library search path used internally by the compiler when linking
18176 # a shared library.
18177 compiler_lib_search_path=$lt_compiler_lib_search_path
18179 # Method to check whether dependent libraries are shared objects.
18180 deplibs_check_method=$lt_deplibs_check_method
18182 # Command to use when deplibs_check_method == file_magic.
18183 file_magic_cmd=$lt_file_magic_cmd
18185 # Flag that allows shared libraries with undefined symbols to be built.
18186 allow_undefined_flag=$lt_allow_undefined_flag
18188 # Flag that forces no undefined symbols.
18189 no_undefined_flag=$lt_no_undefined_flag
18191 # Commands used to finish a libtool library installation in a directory.
18192 finish_cmds=$lt_finish_cmds
18194 # Same as above, but a single script fragment to be evaled but not shown.
18195 finish_eval=$lt_finish_eval
18197 # Take the output of nm and produce a listing of raw symbols and C names.
18198 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18200 # Transform the output of nm in a proper C declaration
18201 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18203 # Transform the output of nm in a C name address pair
18204 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18206 # This is the shared library runtime path variable.
18207 runpath_var=$runpath_var
18209 # This is the shared library path variable.
18210 shlibpath_var=$shlibpath_var
18212 # Is shlibpath searched before the hard-coded library search path?
18213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18215 # How to hardcode a shared library path into an executable.
18216 hardcode_action=$hardcode_action
18218 # Whether we should hardcode library paths into libraries.
18219 hardcode_into_libs=$hardcode_into_libs
18221 # Flag to hardcode \$libdir into a binary during linking.
18222 # This must work even if \$libdir does not exist.
18223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18225 # If ld is used when linking, flag to hardcode \$libdir into
18226 # a binary during linking. This must work even if \$libdir does
18227 # not exist.
18228 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18230 # Whether we need a single -rpath flag with a separated argument.
18231 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18233 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18234 # resulting binary.
18235 hardcode_direct=$hardcode_direct
18237 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18238 # resulting binary.
18239 hardcode_minus_L=$hardcode_minus_L
18241 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18242 # the resulting binary.
18243 hardcode_shlibpath_var=$hardcode_shlibpath_var
18245 # Set to yes if building a shared library automatically hardcodes DIR into the library
18246 # and all subsequent libraries and executables linked against it.
18247 hardcode_automatic=$hardcode_automatic
18249 # Variables whose values should be saved in libtool wrapper scripts and
18250 # restored at relink time.
18251 variables_saved_for_relink="$variables_saved_for_relink"
18253 # Whether libtool must link a program against all its dependency libraries.
18254 link_all_deplibs=$link_all_deplibs
18256 # Compile-time system search path for libraries
18257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18259 # Run-time system search path for libraries
18260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18262 # Fix the shell variable \$srcfile for the compiler.
18263 fix_srcfile_path="$fix_srcfile_path"
18265 # Set to yes if exported symbols are required.
18266 always_export_symbols=$always_export_symbols
18268 # The commands to list exported symbols.
18269 export_symbols_cmds=$lt_export_symbols_cmds
18271 # The commands to extract the exported symbol list from a shared archive.
18272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18274 # Symbols that should not be listed in the preloaded symbols.
18275 exclude_expsyms=$lt_exclude_expsyms
18277 # Symbols that must always be exported.
18278 include_expsyms=$lt_include_expsyms
18280 # ### END LIBTOOL CONFIG
18282 __EOF__
18285 case $host_os in
18286 aix3*)
18287 cat <<\EOF >> "$cfgfile"
18289 # AIX sometimes has problems with the GCC collect2 program. For some
18290 # reason, if we set the COLLECT_NAMES environment variable, the problems
18291 # vanish in a puff of smoke.
18292 if test "X${COLLECT_NAMES+set}" != Xset; then
18293 COLLECT_NAMES=
18294 export COLLECT_NAMES
18298 esac
18300 # We use sed instead of cat because bash on DJGPP gets confused if
18301 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18302 # text mode, it properly converts lines to CR/LF. This bash problem
18303 # is reportedly fixed, but why not run on old versions too?
18304 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18306 mv -f "$cfgfile" "$ofile" || \
18307 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18308 chmod +x "$ofile"
18310 else
18311 # If there is no Makefile yet, we rely on a make rule to execute
18312 # `config.status --recheck' to rerun these tests and create the
18313 # libtool script then.
18314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18315 if test -f "$ltmain_in"; then
18316 test -f Makefile && make "$ltmain"
18321 ac_ext=c
18322 ac_cpp='$CPP $CPPFLAGS'
18323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18327 CC="$lt_save_CC"
18330 # Check whether --with-tags was given.
18331 if test "${with_tags+set}" = set; then
18332 withval=$with_tags; tagnames="$withval"
18336 if test -f "$ltmain" && test -n "$tagnames"; then
18337 if test ! -f "${ofile}"; then
18338 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18339 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18342 if test -z "$LTCC"; then
18343 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18344 if test -z "$LTCC"; then
18345 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18346 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18347 else
18348 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18349 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18352 if test -z "$LTCFLAGS"; then
18353 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18356 # Extract list of available tagged configurations in $ofile.
18357 # Note that this assumes the entire list is on one line.
18358 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18361 for tagname in $tagnames; do
18362 IFS="$lt_save_ifs"
18363 # Check whether tagname contains only valid characters
18364 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18365 "") ;;
18366 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18367 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18368 { (exit 1); exit 1; }; }
18370 esac
18372 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18373 then
18374 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18375 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18376 { (exit 1); exit 1; }; }
18379 # Update the list of available tags.
18380 if test -n "$tagname"; then
18381 echo appending configuration tag \"$tagname\" to $ofile
18383 case $tagname in
18384 CXX)
18385 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18386 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18387 (test "X$CXX" != "Xg++"))) ; then
18388 ac_ext=cpp
18389 ac_cpp='$CXXCPP $CPPFLAGS'
18390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18397 archive_cmds_need_lc_CXX=no
18398 allow_undefined_flag_CXX=
18399 always_export_symbols_CXX=no
18400 archive_expsym_cmds_CXX=
18401 export_dynamic_flag_spec_CXX=
18402 hardcode_direct_CXX=no
18403 hardcode_libdir_flag_spec_CXX=
18404 hardcode_libdir_flag_spec_ld_CXX=
18405 hardcode_libdir_separator_CXX=
18406 hardcode_minus_L_CXX=no
18407 hardcode_shlibpath_var_CXX=unsupported
18408 hardcode_automatic_CXX=no
18409 module_cmds_CXX=
18410 module_expsym_cmds_CXX=
18411 link_all_deplibs_CXX=unknown
18412 old_archive_cmds_CXX=$old_archive_cmds
18413 no_undefined_flag_CXX=
18414 whole_archive_flag_spec_CXX=
18415 enable_shared_with_static_runtimes_CXX=no
18417 # Dependencies to place before and after the object being linked:
18418 predep_objects_CXX=
18419 postdep_objects_CXX=
18420 predeps_CXX=
18421 postdeps_CXX=
18422 compiler_lib_search_path_CXX=
18424 # Source file extension for C++ test sources.
18425 ac_ext=cpp
18427 # Object file extension for compiled C++ test sources.
18428 objext=o
18429 objext_CXX=$objext
18431 # Code to be used in simple compile tests
18432 lt_simple_compile_test_code="int some_variable = 0;\n"
18434 # Code to be used in simple link tests
18435 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18439 # If no C compiler was specified, use CC.
18440 LTCC=${LTCC-"$CC"}
18442 # If no C compiler flags were specified, use CFLAGS.
18443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18445 # Allow CC to be a program name with arguments.
18446 compiler=$CC
18449 # save warnings/boilerplate of simple test code
18450 ac_outfile=conftest.$ac_objext
18451 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453 _lt_compiler_boilerplate=`cat conftest.err`
18454 $rm conftest*
18456 ac_outfile=conftest.$ac_objext
18457 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18459 _lt_linker_boilerplate=`cat conftest.err`
18460 $rm conftest*
18463 # Allow CC to be a program name with arguments.
18464 lt_save_CC=$CC
18465 lt_save_LD=$LD
18466 lt_save_GCC=$GCC
18467 GCC=$GXX
18468 lt_save_with_gnu_ld=$with_gnu_ld
18469 lt_save_path_LD=$lt_cv_path_LD
18470 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18471 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18472 else
18473 $as_unset lt_cv_prog_gnu_ld
18475 if test -n "${lt_cv_path_LDCXX+set}"; then
18476 lt_cv_path_LD=$lt_cv_path_LDCXX
18477 else
18478 $as_unset lt_cv_path_LD
18480 test -z "${LDCXX+set}" || LD=$LDCXX
18481 CC=${CXX-"c++"}
18482 compiler=$CC
18483 compiler_CXX=$CC
18484 for cc_temp in $compiler""; do
18485 case $cc_temp in
18486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18488 \-*) ;;
18489 *) break;;
18490 esac
18491 done
18492 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18495 # We don't want -fno-exception wen compiling C++ code, so set the
18496 # no_builtin_flag separately
18497 if test "$GXX" = yes; then
18498 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18499 else
18500 lt_prog_compiler_no_builtin_flag_CXX=
18503 if test "$GXX" = yes; then
18504 # Set up default GNU C++ configuration
18507 # Check whether --with-gnu-ld was given.
18508 if test "${with_gnu_ld+set}" = set; then
18509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18510 else
18511 with_gnu_ld=no
18514 ac_prog=ld
18515 if test "$GCC" = yes; then
18516 # Check if gcc -print-prog-name=ld gives a path.
18517 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18518 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18519 case $host in
18520 *-*-mingw*)
18521 # gcc leaves a trailing carriage return which upsets mingw
18522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18525 esac
18526 case $ac_prog in
18527 # Accept absolute paths.
18528 [\\/]* | ?:[\\/]*)
18529 re_direlt='/[^/][^/]*/\.\./'
18530 # Canonicalize the pathname of ld
18531 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18532 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18533 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18534 done
18535 test -z "$LD" && LD="$ac_prog"
18538 # If it fails, then pretend we aren't using GCC.
18539 ac_prog=ld
18542 # If it is relative, then search for the first ld in PATH.
18543 with_gnu_ld=unknown
18545 esac
18546 elif test "$with_gnu_ld" = yes; then
18547 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18548 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18549 else
18550 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18551 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18553 if test "${lt_cv_path_LD+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556 if test -z "$LD"; then
18557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18558 for ac_dir in $PATH; do
18559 IFS="$lt_save_ifs"
18560 test -z "$ac_dir" && ac_dir=.
18561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18562 lt_cv_path_LD="$ac_dir/$ac_prog"
18563 # Check to see if the program is GNU ld. I'd rather use --version,
18564 # but apparently some variants of GNU ld only accept -v.
18565 # Break only if it was the GNU/non-GNU ld that we prefer.
18566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18567 *GNU* | *'with BFD'*)
18568 test "$with_gnu_ld" != no && break
18571 test "$with_gnu_ld" != yes && break
18573 esac
18575 done
18576 IFS="$lt_save_ifs"
18577 else
18578 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18582 LD="$lt_cv_path_LD"
18583 if test -n "$LD"; then
18584 { echo "$as_me:$LINENO: result: $LD" >&5
18585 echo "${ECHO_T}$LD" >&6; }
18586 else
18587 { echo "$as_me:$LINENO: result: no" >&5
18588 echo "${ECHO_T}no" >&6; }
18590 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18591 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18592 { (exit 1); exit 1; }; }
18593 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18594 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18595 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 else
18598 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18599 case `$LD -v 2>&1 </dev/null` in
18600 *GNU* | *'with BFD'*)
18601 lt_cv_prog_gnu_ld=yes
18604 lt_cv_prog_gnu_ld=no
18606 esac
18608 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18609 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18610 with_gnu_ld=$lt_cv_prog_gnu_ld
18614 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18615 # archiving commands below assume that GNU ld is being used.
18616 if test "$with_gnu_ld" = yes; then
18617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 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'
18620 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18623 # If archive_cmds runs LD, not CC, wlarc should be empty
18624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18625 # investigate it a little bit more. (MM)
18626 wlarc='${wl}'
18628 # ancient GNU ld didn't support --whole-archive et. al.
18629 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18630 grep 'no-whole-archive' > /dev/null; then
18631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18632 else
18633 whole_archive_flag_spec_CXX=
18635 else
18636 with_gnu_ld=no
18637 wlarc=
18639 # A generic and very simple default shared library creation
18640 # command for GNU C++ for the case where it uses the native
18641 # linker, instead of GNU ld. If possible, this setting should
18642 # overridden to take advantage of the native linker features on
18643 # the platform it is being used on.
18644 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18647 # Commands to make compiler produce verbose output that lists
18648 # what "hidden" libraries, object files and flags are used when
18649 # linking a shared library.
18650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18652 else
18653 GXX=no
18654 with_gnu_ld=no
18655 wlarc=
18658 # PORTME: fill in a description of your system's C++ link characteristics
18659 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18661 ld_shlibs_CXX=yes
18662 case $host_os in
18663 aix3*)
18664 # FIXME: insert proper C++ library support
18665 ld_shlibs_CXX=no
18667 aix4* | aix5*)
18668 if test "$host_cpu" = ia64; then
18669 # On IA64, the linker does run time linking by default, so we don't
18670 # have to do anything special.
18671 aix_use_runtimelinking=no
18672 exp_sym_flag='-Bexport'
18673 no_entry_flag=""
18674 else
18675 aix_use_runtimelinking=no
18677 # Test if we are trying to use run time linking or normal
18678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18679 # need to do runtime linking.
18680 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18681 for ld_flag in $LDFLAGS; do
18682 case $ld_flag in
18683 *-brtl*)
18684 aix_use_runtimelinking=yes
18685 break
18687 esac
18688 done
18690 esac
18692 exp_sym_flag='-bexport'
18693 no_entry_flag='-bnoentry'
18696 # When large executables or shared objects are built, AIX ld can
18697 # have problems creating the table of contents. If linking a library
18698 # or program results in "error TOC overflow" add -mminimal-toc to
18699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18702 archive_cmds_CXX=''
18703 hardcode_direct_CXX=yes
18704 hardcode_libdir_separator_CXX=':'
18705 link_all_deplibs_CXX=yes
18707 if test "$GXX" = yes; then
18708 case $host_os in aix4.[012]|aix4.[012].*)
18709 # We only want to do this on AIX 4.2 and lower, the check
18710 # below for broken collect2 doesn't work under 4.3+
18711 collect2name=`${CC} -print-prog-name=collect2`
18712 if test -f "$collect2name" && \
18713 strings "$collect2name" | grep resolve_lib_name >/dev/null
18714 then
18715 # We have reworked collect2
18716 hardcode_direct_CXX=yes
18717 else
18718 # We have old collect2
18719 hardcode_direct_CXX=unsupported
18720 # It fails to find uninstalled libraries when the uninstalled
18721 # path is not listed in the libpath. Setting hardcode_minus_L
18722 # to unsupported forces relinking
18723 hardcode_minus_L_CXX=yes
18724 hardcode_libdir_flag_spec_CXX='-L$libdir'
18725 hardcode_libdir_separator_CXX=
18728 esac
18729 shared_flag='-shared'
18730 if test "$aix_use_runtimelinking" = yes; then
18731 shared_flag="$shared_flag "'${wl}-G'
18733 else
18734 # not using gcc
18735 if test "$host_cpu" = ia64; then
18736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18737 # chokes on -Wl,-G. The following line is correct:
18738 shared_flag='-G'
18739 else
18740 if test "$aix_use_runtimelinking" = yes; then
18741 shared_flag='${wl}-G'
18742 else
18743 shared_flag='${wl}-bM:SRE'
18748 # It seems that -bexpall does not export symbols beginning with
18749 # underscore (_), so it is better to generate a list of symbols to export.
18750 always_export_symbols_CXX=yes
18751 if test "$aix_use_runtimelinking" = yes; then
18752 # Warning - without using the other runtime loading flags (-brtl),
18753 # -berok will link without error, but may produce a broken library.
18754 allow_undefined_flag_CXX='-berok'
18755 # Determine the default libpath from the value encoded in an empty executable.
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h. */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18764 main ()
18768 return 0;
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18779 ac_status=$?
18780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18799 esac
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18808 # Check for a 64-bit object if we didn't find anything.
18809 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18810 }'`; fi
18811 else
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18818 rm -f core conftest.err conftest.$ac_objext \
18819 conftest$ac_exeext conftest.$ac_ext
18820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18824 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"
18825 else
18826 if test "$host_cpu" = ia64; then
18827 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18828 allow_undefined_flag_CXX="-z nodefs"
18829 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"
18830 else
18831 # Determine the default libpath from the value encoded in an empty executable.
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18840 main ()
18844 return 0;
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_link") 2>conftest.er1
18855 ac_status=$?
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18865 esac
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18884 # Check for a 64-bit object if we didn't find anything.
18885 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; }
18886 }'`; fi
18887 else
18888 echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18894 rm -f core conftest.err conftest.$ac_objext \
18895 conftest$ac_exeext conftest.$ac_ext
18896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18898 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18899 # Warning - without using the other run time loading flags,
18900 # -berok will link without error, but may produce a broken library.
18901 no_undefined_flag_CXX=' ${wl}-bernotok'
18902 allow_undefined_flag_CXX=' ${wl}-berok'
18903 # Exported symbols can be pulled into shared objects from archives
18904 whole_archive_flag_spec_CXX='$convenience'
18905 archive_cmds_need_lc_CXX=yes
18906 # This is similar to how AIX traditionally builds its shared libraries.
18907 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'
18912 beos*)
18913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18914 allow_undefined_flag_CXX=unsupported
18915 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18916 # support --undefined. This deserves some investigation. FIXME
18917 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18918 else
18919 ld_shlibs_CXX=no
18923 chorus*)
18924 case $cc_basename in
18926 # FIXME: insert proper C++ library support
18927 ld_shlibs_CXX=no
18929 esac
18932 cygwin* | mingw* | pw32*)
18933 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18934 # as there is no search path for DLLs.
18935 hardcode_libdir_flag_spec_CXX='-L$libdir'
18936 allow_undefined_flag_CXX=unsupported
18937 always_export_symbols_CXX=no
18938 enable_shared_with_static_runtimes_CXX=yes
18940 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18941 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'
18942 # If the export-symbols file already is a .def file (1st line
18943 # is EXPORTS), use it as is; otherwise, prepend...
18944 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18945 cp $export_symbols $output_objdir/$soname.def;
18946 else
18947 echo EXPORTS > $output_objdir/$soname.def;
18948 cat $export_symbols >> $output_objdir/$soname.def;
18950 $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'
18951 else
18952 ld_shlibs_CXX=no
18955 darwin* | rhapsody*)
18956 case $host_os in
18957 rhapsody* | darwin1.[012])
18958 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18960 *) # Darwin 1.3 on
18961 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18962 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18963 else
18964 case ${MACOSX_DEPLOYMENT_TARGET} in
18965 10.[012])
18966 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18968 10.*)
18969 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18971 esac
18974 esac
18975 archive_cmds_need_lc_CXX=no
18976 hardcode_direct_CXX=no
18977 hardcode_automatic_CXX=yes
18978 hardcode_shlibpath_var_CXX=unsupported
18979 whole_archive_flag_spec_CXX=''
18980 link_all_deplibs_CXX=yes
18982 if test "$GXX" = yes ; then
18983 lt_int_apple_cc_single_mod=no
18984 output_verbose_link_cmd='echo'
18985 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18986 lt_int_apple_cc_single_mod=yes
18988 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18989 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18990 else
18991 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'
18993 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18994 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18996 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}'
18997 else
18998 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}'
19000 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}'
19001 else
19002 case $cc_basename in
19003 xlc*)
19004 output_verbose_link_cmd='echo'
19005 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'
19006 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19007 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19008 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}'
19009 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}'
19012 ld_shlibs_CXX=no
19014 esac
19018 dgux*)
19019 case $cc_basename in
19020 ec++*)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19024 ghcx*)
19025 # Green Hills C++ Compiler
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19030 # FIXME: insert proper C++ library support
19031 ld_shlibs_CXX=no
19033 esac
19035 freebsd[12]*)
19036 # C++ shared libraries reported to be fairly broken before switch to ELF
19037 ld_shlibs_CXX=no
19039 freebsd-elf*)
19040 archive_cmds_need_lc_CXX=no
19042 freebsd* | kfreebsd*-gnu | dragonfly*)
19043 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19044 # conventions
19045 ld_shlibs_CXX=yes
19047 gnu*)
19049 hpux9*)
19050 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19051 hardcode_libdir_separator_CXX=:
19052 export_dynamic_flag_spec_CXX='${wl}-E'
19053 hardcode_direct_CXX=yes
19054 hardcode_minus_L_CXX=yes # Not in the search PATH,
19055 # but as the default
19056 # location of the library.
19058 case $cc_basename in
19059 CC*)
19060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19063 aCC*)
19064 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'
19065 # Commands to make compiler produce verbose output that lists
19066 # what "hidden" libraries, object files and flags are used when
19067 # linking a shared library.
19069 # There doesn't appear to be a way to prevent this compiler from
19070 # explicitly linking system object files so we need to strip them
19071 # from the output so that they don't get included in the library
19072 # dependencies.
19073 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'
19076 if test "$GXX" = yes; then
19077 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'
19078 else
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19083 esac
19085 hpux10*|hpux11*)
19086 if test $with_gnu_ld = no; then
19087 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19088 hardcode_libdir_separator_CXX=:
19090 case $host_cpu in
19091 hppa*64*|ia64*)
19092 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19095 export_dynamic_flag_spec_CXX='${wl}-E'
19097 esac
19099 case $host_cpu in
19100 hppa*64*|ia64*)
19101 hardcode_direct_CXX=no
19102 hardcode_shlibpath_var_CXX=no
19105 hardcode_direct_CXX=yes
19106 hardcode_minus_L_CXX=yes # Not in the search PATH,
19107 # but as the default
19108 # location of the library.
19110 esac
19112 case $cc_basename in
19113 CC*)
19114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19117 aCC*)
19118 case $host_cpu in
19119 hppa*64*)
19120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19122 ia64*)
19123 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19126 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19128 esac
19129 # Commands to make compiler produce verbose output that lists
19130 # what "hidden" libraries, object files and flags are used when
19131 # linking a shared library.
19133 # There doesn't appear to be a way to prevent this compiler from
19134 # explicitly linking system object files so we need to strip them
19135 # from the output so that they don't get included in the library
19136 # dependencies.
19137 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'
19140 if test "$GXX" = yes; then
19141 if test $with_gnu_ld = no; then
19142 case $host_cpu in
19143 hppa*64*)
19144 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19146 ia64*)
19147 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19150 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'
19152 esac
19154 else
19155 # FIXME: insert proper C++ library support
19156 ld_shlibs_CXX=no
19159 esac
19161 interix3*)
19162 hardcode_direct_CXX=no
19163 hardcode_shlibpath_var_CXX=no
19164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19165 export_dynamic_flag_spec_CXX='${wl}-E'
19166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19167 # Instead, shared libraries are loaded at an image base (0x10000000 by
19168 # default) and relocated if they conflict, which is a slow very memory
19169 # consuming and fragmenting process. To avoid this, we pick a random,
19170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19172 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'
19173 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'
19175 irix5* | irix6*)
19176 case $cc_basename in
19177 CC*)
19178 # SGI C++
19179 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'
19181 # Archives containing C++ object files must be created using
19182 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19183 # necessary to make sure instantiated templates are included
19184 # in the archive.
19185 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19188 if test "$GXX" = yes; then
19189 if test "$with_gnu_ld" = no; then
19190 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'
19191 else
19192 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'
19195 link_all_deplibs_CXX=yes
19197 esac
19198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19199 hardcode_libdir_separator_CXX=:
19201 linux*)
19202 case $cc_basename in
19203 KCC*)
19204 # Kuck and Associates, Inc. (KAI) C++ Compiler
19206 # KCC will only create a shared library if the output file
19207 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19208 # to its proper name (with version) after linking.
19209 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'
19210 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'
19211 # Commands to make compiler produce verbose output that lists
19212 # what "hidden" libraries, object files and flags are used when
19213 # linking a shared library.
19215 # There doesn't appear to be a way to prevent this compiler from
19216 # explicitly linking system object files so we need to strip them
19217 # from the output so that they don't get included in the library
19218 # dependencies.
19219 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'
19221 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19224 # Archives containing C++ object files must be created using
19225 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19226 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19228 icpc*)
19229 # Intel C++
19230 with_gnu_ld=yes
19231 # version 8.0 and above of icpc choke on multiply defined symbols
19232 # if we add $predep_objects and $postdep_objects, however 7.1 and
19233 # earlier do not add the objects themselves.
19234 case `$CC -V 2>&1` in
19235 *"Version 7."*)
19236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19237 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'
19239 *) # Version 8.0 or newer
19240 tmp_idyn=
19241 case $host_cpu in
19242 ia64*) tmp_idyn=' -i_dynamic';;
19243 esac
19244 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19245 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'
19247 esac
19248 archive_cmds_need_lc_CXX=no
19249 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19250 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19251 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19253 pgCC*)
19254 # Portland Group C++ compiler
19255 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19256 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'
19258 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19260 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'
19262 cxx*)
19263 # Compaq C++
19264 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19265 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'
19267 runpath_var=LD_RUN_PATH
19268 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19269 hardcode_libdir_separator_CXX=:
19271 # Commands to make compiler produce verbose output that lists
19272 # what "hidden" libraries, object files and flags are used when
19273 # linking a shared library.
19275 # There doesn't appear to be a way to prevent this compiler from
19276 # explicitly linking system object files so we need to strip them
19277 # from the output so that they don't get included in the library
19278 # dependencies.
19279 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'
19281 esac
19283 lynxos*)
19284 # FIXME: insert proper C++ library support
19285 ld_shlibs_CXX=no
19287 m88k*)
19288 # FIXME: insert proper C++ library support
19289 ld_shlibs_CXX=no
19291 mvs*)
19292 case $cc_basename in
19293 cxx*)
19294 # FIXME: insert proper C++ library support
19295 ld_shlibs_CXX=no
19298 # FIXME: insert proper C++ library support
19299 ld_shlibs_CXX=no
19301 esac
19303 netbsd*)
19304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19305 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19306 wlarc=
19307 hardcode_libdir_flag_spec_CXX='-R$libdir'
19308 hardcode_direct_CXX=yes
19309 hardcode_shlibpath_var_CXX=no
19311 # Workaround some broken pre-1.5 toolchains
19312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19314 openbsd2*)
19315 # C++ shared libraries are fairly broken
19316 ld_shlibs_CXX=no
19318 openbsd*)
19319 hardcode_direct_CXX=yes
19320 hardcode_shlibpath_var_CXX=no
19321 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19324 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19325 export_dynamic_flag_spec_CXX='${wl}-E'
19326 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19328 output_verbose_link_cmd='echo'
19330 osf3*)
19331 case $cc_basename in
19332 KCC*)
19333 # Kuck and Associates, Inc. (KAI) C++ Compiler
19335 # KCC will only create a shared library if the output file
19336 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19337 # to its proper name (with version) after linking.
19338 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'
19340 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19341 hardcode_libdir_separator_CXX=:
19343 # Archives containing C++ object files must be created using
19344 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19345 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19348 RCC*)
19349 # Rational C++ 2.4.1
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19353 cxx*)
19354 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19355 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'
19357 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19358 hardcode_libdir_separator_CXX=:
19360 # Commands to make compiler produce verbose output that lists
19361 # what "hidden" libraries, object files and flags are used when
19362 # linking a shared library.
19364 # There doesn't appear to be a way to prevent this compiler from
19365 # explicitly linking system object files so we need to strip them
19366 # from the output so that they don't get included in the library
19367 # dependencies.
19368 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'
19371 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19372 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19373 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'
19375 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19376 hardcode_libdir_separator_CXX=:
19378 # Commands to make compiler produce verbose output that lists
19379 # what "hidden" libraries, object files and flags are used when
19380 # linking a shared library.
19381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19383 else
19384 # FIXME: insert proper C++ library support
19385 ld_shlibs_CXX=no
19388 esac
19390 osf4* | osf5*)
19391 case $cc_basename in
19392 KCC*)
19393 # Kuck and Associates, Inc. (KAI) C++ Compiler
19395 # KCC will only create a shared library if the output file
19396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19397 # to its proper name (with version) after linking.
19398 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'
19400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19401 hardcode_libdir_separator_CXX=:
19403 # Archives containing C++ object files must be created using
19404 # the KAI C++ compiler.
19405 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19407 RCC*)
19408 # Rational C++ 2.4.1
19409 # FIXME: insert proper C++ library support
19410 ld_shlibs_CXX=no
19412 cxx*)
19413 allow_undefined_flag_CXX=' -expect_unresolved \*'
19414 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'
19415 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19416 echo "-hidden">> $lib.exp~
19417 $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~
19418 $rm $lib.exp'
19420 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19421 hardcode_libdir_separator_CXX=:
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 -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'
19434 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19435 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19436 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'
19438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19439 hardcode_libdir_separator_CXX=:
19441 # Commands to make compiler produce verbose output that lists
19442 # what "hidden" libraries, object files and flags are used when
19443 # linking a shared library.
19444 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19446 else
19447 # FIXME: insert proper C++ library support
19448 ld_shlibs_CXX=no
19451 esac
19453 psos*)
19454 # FIXME: insert proper C++ library support
19455 ld_shlibs_CXX=no
19457 sunos4*)
19458 case $cc_basename in
19459 CC*)
19460 # Sun C++ 4.x
19461 # FIXME: insert proper C++ library support
19462 ld_shlibs_CXX=no
19464 lcc*)
19465 # Lucid
19466 # FIXME: insert proper C++ library support
19467 ld_shlibs_CXX=no
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19473 esac
19475 solaris*)
19476 case $cc_basename in
19477 CC*)
19478 # Sun C++ 4.2, 5.x and Centerline C++
19479 archive_cmds_need_lc_CXX=yes
19480 no_undefined_flag_CXX=' -zdefs'
19481 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19482 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19483 $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'
19485 hardcode_libdir_flag_spec_CXX='-R$libdir'
19486 hardcode_shlibpath_var_CXX=no
19487 case $host_os in
19488 solaris2.[0-5] | solaris2.[0-5].*) ;;
19490 # The C++ compiler is used as linker so we must use $wl
19491 # flag to pass the commands to the underlying system
19492 # linker. We must also pass each convience library through
19493 # to the system linker between allextract/defaultextract.
19494 # The C++ compiler will combine linker options so we
19495 # cannot just pass the convience library names through
19496 # without $wl.
19497 # Supported since Solaris 2.6 (maybe 2.5.1?)
19498 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'
19500 esac
19501 link_all_deplibs_CXX=yes
19503 output_verbose_link_cmd='echo'
19505 # Archives containing C++ object files must be created using
19506 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19507 # necessary to make sure instantiated templates are included
19508 # in the archive.
19509 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19511 gcx*)
19512 # Green Hills C++ Compiler
19513 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19515 # The C++ compiler must be used to create the archive.
19516 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19519 # GNU C++ compiler with Solaris linker
19520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19521 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19522 if $CC --version | grep -v '^2\.7' > /dev/null; then
19523 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19524 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19525 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19527 # Commands to make compiler produce verbose output that lists
19528 # what "hidden" libraries, object files and flags are used when
19529 # linking a shared library.
19530 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19531 else
19532 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19533 # platform.
19534 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19535 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19536 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19538 # Commands to make compiler produce verbose output that lists
19539 # what "hidden" libraries, object files and flags are used when
19540 # linking a shared library.
19541 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19544 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19547 esac
19549 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19550 no_undefined_flag_CXX='${wl}-z,text'
19551 archive_cmds_need_lc_CXX=no
19552 hardcode_shlibpath_var_CXX=no
19553 runpath_var='LD_RUN_PATH'
19555 case $cc_basename in
19556 CC*)
19557 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19558 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564 esac
19566 sysv5* | sco3.2v5* | sco5v6*)
19567 # Note: We can NOT use -z defs as we might desire, because we do not
19568 # link with -lc, and that would cause any symbols used from libc to
19569 # always be unresolved, which means just about no library would
19570 # ever link correctly. If we're not using GNU ld we use -z text
19571 # though, which does catch some bad symbols but isn't as heavy-handed
19572 # as -z defs.
19573 # For security reasons, it is highly recommended that you always
19574 # use absolute paths for naming shared libraries, and exclude the
19575 # DT_RUNPATH tag from executables and libraries. But doing so
19576 # requires that you compile everything twice, which is a pain.
19577 # So that behaviour is only enabled if SCOABSPATH is set to a
19578 # non-empty value in the environment. Most likely only useful for
19579 # creating official distributions of packages.
19580 # This is a hack until libtool officially supports absolute path
19581 # names for shared libraries.
19582 no_undefined_flag_CXX='${wl}-z,text'
19583 allow_undefined_flag_CXX='${wl}-z,nodefs'
19584 archive_cmds_need_lc_CXX=no
19585 hardcode_shlibpath_var_CXX=no
19586 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19587 hardcode_libdir_separator_CXX=':'
19588 link_all_deplibs_CXX=yes
19589 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19590 runpath_var='LD_RUN_PATH'
19592 case $cc_basename in
19593 CC*)
19594 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19595 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19598 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19599 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19601 esac
19603 tandem*)
19604 case $cc_basename in
19605 NCC*)
19606 # NonStop-UX NCC 3.20
19607 # FIXME: insert proper C++ library support
19608 ld_shlibs_CXX=no
19611 # FIXME: insert proper C++ library support
19612 ld_shlibs_CXX=no
19614 esac
19616 vxworks*)
19617 # FIXME: insert proper C++ library support
19618 ld_shlibs_CXX=no
19621 # FIXME: insert proper C++ library support
19622 ld_shlibs_CXX=no
19624 esac
19625 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19626 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19627 test "$ld_shlibs_CXX" = no && can_build_shared=no
19629 GCC_CXX="$GXX"
19630 LD_CXX="$LD"
19633 cat > conftest.$ac_ext <<EOF
19634 class Foo
19636 public:
19637 Foo (void) { a = 0; }
19638 private:
19639 int a;
19643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644 (eval $ac_compile) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; then
19648 # Parse the compiler output and extract the necessary
19649 # objects, libraries and library flags.
19651 # Sentinel used to keep track of whether or not we are before
19652 # the conftest object file.
19653 pre_test_object_deps_done=no
19655 # The `*' in the case matches for architectures that use `case' in
19656 # $output_verbose_cmd can trigger glob expansion during the loop
19657 # eval without this substitution.
19658 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19660 for p in `eval $output_verbose_link_cmd`; do
19661 case $p in
19663 -L* | -R* | -l*)
19664 # Some compilers place space between "-{L,R}" and the path.
19665 # Remove the space.
19666 if test $p = "-L" \
19667 || test $p = "-R"; then
19668 prev=$p
19669 continue
19670 else
19671 prev=
19674 if test "$pre_test_object_deps_done" = no; then
19675 case $p in
19676 -L* | -R*)
19677 # Internal compiler library paths should come after those
19678 # provided the user. The postdeps already come after the
19679 # user supplied libs so there is no need to process them.
19680 if test -z "$compiler_lib_search_path_CXX"; then
19681 compiler_lib_search_path_CXX="${prev}${p}"
19682 else
19683 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19686 # The "-l" case would never come before the object being
19687 # linked, so don't bother handling this case.
19688 esac
19689 else
19690 if test -z "$postdeps_CXX"; then
19691 postdeps_CXX="${prev}${p}"
19692 else
19693 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19698 *.$objext)
19699 # This assumes that the test object file only shows up
19700 # once in the compiler output.
19701 if test "$p" = "conftest.$objext"; then
19702 pre_test_object_deps_done=yes
19703 continue
19706 if test "$pre_test_object_deps_done" = no; then
19707 if test -z "$predep_objects_CXX"; then
19708 predep_objects_CXX="$p"
19709 else
19710 predep_objects_CXX="$predep_objects_CXX $p"
19712 else
19713 if test -z "$postdep_objects_CXX"; then
19714 postdep_objects_CXX="$p"
19715 else
19716 postdep_objects_CXX="$postdep_objects_CXX $p"
19721 *) ;; # Ignore the rest.
19723 esac
19724 done
19726 # Clean up.
19727 rm -f a.out a.exe
19728 else
19729 echo "libtool.m4: error: problem compiling CXX test program"
19732 $rm -f confest.$objext
19734 # PORTME: override above test on systems where it is broken
19735 case $host_os in
19736 interix3*)
19737 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19738 # hack all around it, let's just trust "g++" to DTRT.
19739 predep_objects_CXX=
19740 postdep_objects_CXX=
19741 postdeps_CXX=
19744 solaris*)
19745 case $cc_basename in
19746 CC*)
19747 # Adding this requires a known-good setup of shared libraries for
19748 # Sun compiler versions before 5.6, else PIC objects from an old
19749 # archive will be linked into the output, leading to subtle bugs.
19750 postdeps_CXX='-lCstd -lCrun'
19752 esac
19754 esac
19757 case " $postdeps_CXX " in
19758 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19759 esac
19761 lt_prog_compiler_wl_CXX=
19762 lt_prog_compiler_pic_CXX=
19763 lt_prog_compiler_static_CXX=
19765 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19766 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19768 # C++ specific cases for pic, static, wl, etc.
19769 if test "$GXX" = yes; then
19770 lt_prog_compiler_wl_CXX='-Wl,'
19771 lt_prog_compiler_static_CXX='-static'
19773 case $host_os in
19774 aix*)
19775 # All AIX code is PIC.
19776 if test "$host_cpu" = ia64; then
19777 # AIX 5 now supports IA64 processor
19778 lt_prog_compiler_static_CXX='-Bstatic'
19781 amigaos*)
19782 # FIXME: we need at least 68020 code to build shared libraries, but
19783 # adding the `-m68020' flag to GCC prevents building anything better,
19784 # like `-m68040'.
19785 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19787 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19788 # PIC is the default for these OSes.
19790 mingw* | os2* | pw32*)
19791 # This hack is so that the source file can tell whether it is being
19792 # built for inclusion in a dll (and should export symbols for example).
19793 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19795 darwin* | rhapsody*)
19796 # PIC is the default on this platform
19797 # Common symbols not allowed in MH_DYLIB files
19798 lt_prog_compiler_pic_CXX='-fno-common'
19800 *djgpp*)
19801 # DJGPP does not support shared libraries at all
19802 lt_prog_compiler_pic_CXX=
19804 interix3*)
19805 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19806 # Instead, we relocate shared libraries at runtime.
19808 sysv4*MP*)
19809 if test -d /usr/nec; then
19810 lt_prog_compiler_pic_CXX=-Kconform_pic
19813 hpux*)
19814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19815 # not for PA HP-UX.
19816 case $host_cpu in
19817 hppa*64*|ia64*)
19820 lt_prog_compiler_pic_CXX='-fPIC'
19822 esac
19825 lt_prog_compiler_pic_CXX='-fPIC'
19827 esac
19828 else
19829 case $host_os in
19830 aix4* | aix5*)
19831 # All AIX code is PIC.
19832 if test "$host_cpu" = ia64; then
19833 # AIX 5 now supports IA64 processor
19834 lt_prog_compiler_static_CXX='-Bstatic'
19835 else
19836 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19839 chorus*)
19840 case $cc_basename in
19841 cxch68*)
19842 # Green Hills C++ Compiler
19843 # _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"
19845 esac
19847 darwin*)
19848 # PIC is the default on this platform
19849 # Common symbols not allowed in MH_DYLIB files
19850 case $cc_basename in
19851 xlc*)
19852 lt_prog_compiler_pic_CXX='-qnocommon'
19853 lt_prog_compiler_wl_CXX='-Wl,'
19855 esac
19857 dgux*)
19858 case $cc_basename in
19859 ec++*)
19860 lt_prog_compiler_pic_CXX='-KPIC'
19862 ghcx*)
19863 # Green Hills C++ Compiler
19864 lt_prog_compiler_pic_CXX='-pic'
19868 esac
19870 freebsd* | kfreebsd*-gnu | dragonfly*)
19871 # FreeBSD uses GNU C++
19873 hpux9* | hpux10* | hpux11*)
19874 case $cc_basename in
19875 CC*)
19876 lt_prog_compiler_wl_CXX='-Wl,'
19877 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19878 if test "$host_cpu" != ia64; then
19879 lt_prog_compiler_pic_CXX='+Z'
19882 aCC*)
19883 lt_prog_compiler_wl_CXX='-Wl,'
19884 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19885 case $host_cpu in
19886 hppa*64*|ia64*)
19887 # +Z the default
19890 lt_prog_compiler_pic_CXX='+Z'
19892 esac
19896 esac
19898 interix*)
19899 # This is c89, which is MS Visual C++ (no shared libs)
19900 # Anyone wants to do a port?
19902 irix5* | irix6* | nonstopux*)
19903 case $cc_basename in
19904 CC*)
19905 lt_prog_compiler_wl_CXX='-Wl,'
19906 lt_prog_compiler_static_CXX='-non_shared'
19907 # CC pic flag -KPIC is the default.
19911 esac
19913 linux*)
19914 case $cc_basename in
19915 KCC*)
19916 # KAI C++ Compiler
19917 lt_prog_compiler_wl_CXX='--backend -Wl,'
19918 lt_prog_compiler_pic_CXX='-fPIC'
19920 icpc* | ecpc*)
19921 # Intel C++
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 lt_prog_compiler_pic_CXX='-KPIC'
19924 lt_prog_compiler_static_CXX='-static'
19926 pgCC*)
19927 # Portland Group C++ compiler.
19928 lt_prog_compiler_wl_CXX='-Wl,'
19929 lt_prog_compiler_pic_CXX='-fpic'
19930 lt_prog_compiler_static_CXX='-Bstatic'
19932 cxx*)
19933 # Compaq C++
19934 # Make sure the PIC flag is empty. It appears that all Alpha
19935 # Linux and Compaq Tru64 Unix objects are PIC.
19936 lt_prog_compiler_pic_CXX=
19937 lt_prog_compiler_static_CXX='-non_shared'
19941 esac
19943 lynxos*)
19945 m88k*)
19947 mvs*)
19948 case $cc_basename in
19949 cxx*)
19950 lt_prog_compiler_pic_CXX='-W c,exportall'
19954 esac
19956 netbsd*)
19958 osf3* | osf4* | osf5*)
19959 case $cc_basename in
19960 KCC*)
19961 lt_prog_compiler_wl_CXX='--backend -Wl,'
19963 RCC*)
19964 # Rational C++ 2.4.1
19965 lt_prog_compiler_pic_CXX='-pic'
19967 cxx*)
19968 # Digital/Compaq C++
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 # Make sure the PIC flag is empty. It appears that all Alpha
19971 # Linux and Compaq Tru64 Unix objects are PIC.
19972 lt_prog_compiler_pic_CXX=
19973 lt_prog_compiler_static_CXX='-non_shared'
19977 esac
19979 psos*)
19981 solaris*)
19982 case $cc_basename in
19983 CC*)
19984 # Sun C++ 4.2, 5.x and Centerline C++
19985 lt_prog_compiler_pic_CXX='-KPIC'
19986 lt_prog_compiler_static_CXX='-Bstatic'
19987 lt_prog_compiler_wl_CXX='-Qoption ld '
19989 gcx*)
19990 # Green Hills C++ Compiler
19991 lt_prog_compiler_pic_CXX='-PIC'
19995 esac
19997 sunos4*)
19998 case $cc_basename in
19999 CC*)
20000 # Sun C++ 4.x
20001 lt_prog_compiler_pic_CXX='-pic'
20002 lt_prog_compiler_static_CXX='-Bstatic'
20004 lcc*)
20005 # Lucid
20006 lt_prog_compiler_pic_CXX='-pic'
20010 esac
20012 tandem*)
20013 case $cc_basename in
20014 NCC*)
20015 # NonStop-UX NCC 3.20
20016 lt_prog_compiler_pic_CXX='-KPIC'
20020 esac
20022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20023 case $cc_basename in
20024 CC*)
20025 lt_prog_compiler_wl_CXX='-Wl,'
20026 lt_prog_compiler_pic_CXX='-KPIC'
20027 lt_prog_compiler_static_CXX='-Bstatic'
20029 esac
20031 vxworks*)
20034 lt_prog_compiler_can_build_shared_CXX=no
20036 esac
20039 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20040 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20043 # Check to make sure the PIC flag actually works.
20045 if test -n "$lt_prog_compiler_pic_CXX"; then
20047 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20048 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20049 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052 lt_prog_compiler_pic_works_CXX=no
20053 ac_outfile=conftest.$ac_objext
20054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20055 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20056 # Insert the option either (1) after the last *FLAGS variable, or
20057 # (2) before a word containing "conftest.", or (3) at the end.
20058 # Note that $ac_compile itself does not contain backslashes and begins
20059 # with a dollar sign (not a hyphen), so the echo should work correctly.
20060 # The option is referenced via a variable to avoid confusing sed.
20061 lt_compile=`echo "$ac_compile" | $SED \
20062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20064 -e 's:$: $lt_compiler_flag:'`
20065 (eval echo "\"\$as_me:20070: $lt_compile\"" >&5)
20066 (eval "$lt_compile" 2>conftest.err)
20067 ac_status=$?
20068 cat conftest.err >&5
20069 echo "$as_me:20074: \$? = $ac_status" >&5
20070 if (exit $ac_status) && test -s "$ac_outfile"; then
20071 # The compiler can only warn and ignore the option if not recognized
20072 # So say no if there are warnings other than the usual output.
20073 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20076 lt_prog_compiler_pic_works_CXX=yes
20079 $rm conftest*
20082 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20083 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20085 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20086 case $lt_prog_compiler_pic_CXX in
20087 "" | " "*) ;;
20088 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20089 esac
20090 else
20091 lt_prog_compiler_pic_CXX=
20092 lt_prog_compiler_can_build_shared_CXX=no
20096 case $host_os in
20097 # For platforms which do not support PIC, -DPIC is meaningless:
20098 *djgpp*)
20099 lt_prog_compiler_pic_CXX=
20102 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20104 esac
20107 # Check to make sure the static flag actually works.
20109 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20110 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20111 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20112 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115 lt_prog_compiler_static_works_CXX=no
20116 save_LDFLAGS="$LDFLAGS"
20117 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20118 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20120 # The linker can only warn and ignore the option if not recognized
20121 # So say no if there are warnings
20122 if test -s conftest.err; then
20123 # Append any errors to the config.log.
20124 cat conftest.err 1>&5
20125 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20127 if diff conftest.exp conftest.er2 >/dev/null; then
20128 lt_prog_compiler_static_works_CXX=yes
20130 else
20131 lt_prog_compiler_static_works_CXX=yes
20134 $rm conftest*
20135 LDFLAGS="$save_LDFLAGS"
20138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20139 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20141 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20143 else
20144 lt_prog_compiler_static_CXX=
20148 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20150 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153 lt_cv_prog_compiler_c_o_CXX=no
20154 $rm -r conftest 2>/dev/null
20155 mkdir conftest
20156 cd conftest
20157 mkdir out
20158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20160 lt_compiler_flag="-o out/conftest2.$ac_objext"
20161 # Insert the option either (1) after the last *FLAGS variable, or
20162 # (2) before a word containing "conftest.", or (3) at the end.
20163 # Note that $ac_compile itself does not contain backslashes and begins
20164 # with a dollar sign (not a hyphen), so the echo should work correctly.
20165 lt_compile=`echo "$ac_compile" | $SED \
20166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20168 -e 's:$: $lt_compiler_flag:'`
20169 (eval echo "\"\$as_me:20174: $lt_compile\"" >&5)
20170 (eval "$lt_compile" 2>out/conftest.err)
20171 ac_status=$?
20172 cat out/conftest.err >&5
20173 echo "$as_me:20178: \$? = $ac_status" >&5
20174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20175 then
20176 # The compiler can only warn and ignore the option if not recognized
20177 # So say no if there are warnings
20178 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20181 lt_cv_prog_compiler_c_o_CXX=yes
20184 chmod u+w . 2>&5
20185 $rm conftest*
20186 # SGI C++ compiler will create directory out/ii_files/ for
20187 # template instantiation
20188 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20189 $rm out/* && rmdir out
20190 cd ..
20191 rmdir conftest
20192 $rm conftest*
20195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20196 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20199 hard_links="nottested"
20200 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20201 # do not overwrite the value of need_locks provided by the user
20202 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20203 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20204 hard_links=yes
20205 $rm conftest*
20206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20207 touch conftest.a
20208 ln conftest.a conftest.b 2>&5 || hard_links=no
20209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20210 { echo "$as_me:$LINENO: result: $hard_links" >&5
20211 echo "${ECHO_T}$hard_links" >&6; }
20212 if test "$hard_links" = no; then
20213 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20214 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20215 need_locks=warn
20217 else
20218 need_locks=no
20221 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20222 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20224 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20225 case $host_os in
20226 aix4* | aix5*)
20227 # If we're using GNU nm, then we don't want the "-C" option.
20228 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20229 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20230 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'
20231 else
20232 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'
20235 pw32*)
20236 export_symbols_cmds_CXX="$ltdll_cmds"
20238 cygwin* | mingw*)
20239 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'
20242 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20244 esac
20246 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20247 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20248 test "$ld_shlibs_CXX" = no && can_build_shared=no
20251 # Do we need to explicitly link libc?
20253 case "x$archive_cmds_need_lc_CXX" in
20254 x|xyes)
20255 # Assume -lc should be added
20256 archive_cmds_need_lc_CXX=yes
20258 if test "$enable_shared" = yes && test "$GCC" = yes; then
20259 case $archive_cmds_CXX in
20260 *'~'*)
20261 # FIXME: we may have to deal with multi-command sequences.
20263 '$CC '*)
20264 # Test whether the compiler implicitly links with -lc since on some
20265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20266 # to ld, don't add -lc before -lgcc.
20267 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20268 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20269 $rm conftest*
20270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } 2>conftest.err; then
20277 soname=conftest
20278 lib=conftest
20279 libobjs=conftest.$ac_objext
20280 deplibs=
20281 wl=$lt_prog_compiler_wl_CXX
20282 pic_flag=$lt_prog_compiler_pic_CXX
20283 compiler_flags=-v
20284 linker_flags=-v
20285 verstring=
20286 output_objdir=.
20287 libname=conftest
20288 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20289 allow_undefined_flag_CXX=
20290 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20291 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }
20295 then
20296 archive_cmds_need_lc_CXX=no
20297 else
20298 archive_cmds_need_lc_CXX=yes
20300 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20301 else
20302 cat conftest.err 1>&5
20304 $rm conftest*
20305 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20306 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20308 esac
20311 esac
20313 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20314 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20315 library_names_spec=
20316 libname_spec='lib$name'
20317 soname_spec=
20318 shrext_cmds=".so"
20319 postinstall_cmds=
20320 postuninstall_cmds=
20321 finish_cmds=
20322 finish_eval=
20323 shlibpath_var=
20324 shlibpath_overrides_runpath=unknown
20325 version_type=none
20326 dynamic_linker="$host_os ld.so"
20327 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20328 if test "$GCC" = yes; then
20329 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20330 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20331 # if the path contains ";" then we assume it to be the separator
20332 # otherwise default to the standard path separator (i.e. ":") - it is
20333 # assumed that no part of a normal pathname contains ";" but that should
20334 # okay in the real world where ";" in dirpaths is itself problematic.
20335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20336 else
20337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20339 else
20340 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20342 need_lib_prefix=unknown
20343 hardcode_into_libs=no
20345 # when you set need_version to no, make sure it does not cause -set_version
20346 # flags to be left without arguments
20347 need_version=unknown
20349 case $host_os in
20350 aix3*)
20351 version_type=linux
20352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20353 shlibpath_var=LIBPATH
20355 # AIX 3 has no versioning support, so we append a major version to the name.
20356 soname_spec='${libname}${release}${shared_ext}$major'
20359 aix4* | aix5*)
20360 version_type=linux
20361 need_lib_prefix=no
20362 need_version=no
20363 hardcode_into_libs=yes
20364 if test "$host_cpu" = ia64; then
20365 # AIX 5 supports IA64
20366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 else
20369 # With GCC up to 2.95.x, collect2 would create an import file
20370 # for dependence libraries. The import file would start with
20371 # the line `#! .'. This would cause the generated library to
20372 # depend on `.', always an invalid library. This was fixed in
20373 # development snapshots of GCC prior to 3.0.
20374 case $host_os in
20375 aix4 | aix4.[01] | aix4.[01].*)
20376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20377 echo ' yes '
20378 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20380 else
20381 can_build_shared=no
20384 esac
20385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20386 # soname into executable. Probably we can add versioning support to
20387 # collect2, so additional links can be useful in future.
20388 if test "$aix_use_runtimelinking" = yes; then
20389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20390 # instead of lib<name>.a to let people know that these are not
20391 # typical AIX shared libraries.
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 else
20394 # We preserve .a as extension for shared libraries through AIX4.2
20395 # and later when we are not doing run time linking.
20396 library_names_spec='${libname}${release}.a $libname.a'
20397 soname_spec='${libname}${release}${shared_ext}$major'
20399 shlibpath_var=LIBPATH
20403 amigaos*)
20404 library_names_spec='$libname.ixlibrary $libname.a'
20405 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20406 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'
20409 beos*)
20410 library_names_spec='${libname}${shared_ext}'
20411 dynamic_linker="$host_os ld.so"
20412 shlibpath_var=LIBRARY_PATH
20415 bsdi[45]*)
20416 version_type=linux
20417 need_version=no
20418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20423 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20424 # the default ld.so.conf also contains /usr/contrib/lib and
20425 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20426 # libtool to hard-code these into programs
20429 cygwin* | mingw* | pw32*)
20430 version_type=windows
20431 shrext_cmds=".dll"
20432 need_version=no
20433 need_lib_prefix=no
20435 case $GCC,$host_os in
20436 yes,cygwin* | yes,mingw* | yes,pw32*)
20437 library_names_spec='$libname.dll.a'
20438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20439 postinstall_cmds='base_file=`basename \${file}`~
20440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20441 dldir=$destdir/`dirname \$dlpath`~
20442 test -d \$dldir || mkdir -p \$dldir~
20443 $install_prog $dir/$dlname \$dldir/$dlname~
20444 chmod a+x \$dldir/$dlname'
20445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20446 dlpath=$dir/\$dldll~
20447 $rm \$dlpath'
20448 shlibpath_overrides_runpath=yes
20450 case $host_os in
20451 cygwin*)
20452 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20453 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20454 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20456 mingw*)
20457 # MinGW DLLs use traditional 'lib' prefix
20458 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20459 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20460 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20461 # It is most probably a Windows format PATH printed by
20462 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20463 # path with ; separators, and with drive letters. We can handle the
20464 # drive letters (cygwin fileutils understands them), so leave them,
20465 # especially as we might pass files found there to a mingw objdump,
20466 # which wouldn't understand a cygwinified path. Ahh.
20467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20468 else
20469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20472 pw32*)
20473 # pw32 DLLs use 'pw' prefix rather than 'lib'
20474 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20476 esac
20480 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20482 esac
20483 dynamic_linker='Win32 ld.exe'
20484 # FIXME: first we should search . and the directory the executable is in
20485 shlibpath_var=PATH
20488 darwin* | rhapsody*)
20489 dynamic_linker="$host_os dyld"
20490 version_type=darwin
20491 need_lib_prefix=no
20492 need_version=no
20493 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20494 soname_spec='${libname}${release}${major}$shared_ext'
20495 shlibpath_overrides_runpath=yes
20496 shlibpath_var=DYLD_LIBRARY_PATH
20497 shrext_cmds='.dylib'
20498 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20499 if test "$GCC" = yes; then
20500 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"`
20501 else
20502 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20504 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20507 dgux*)
20508 version_type=linux
20509 need_lib_prefix=no
20510 need_version=no
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20512 soname_spec='${libname}${release}${shared_ext}$major'
20513 shlibpath_var=LD_LIBRARY_PATH
20516 freebsd1*)
20517 dynamic_linker=no
20520 kfreebsd*-gnu)
20521 version_type=linux
20522 need_lib_prefix=no
20523 need_version=no
20524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20525 soname_spec='${libname}${release}${shared_ext}$major'
20526 shlibpath_var=LD_LIBRARY_PATH
20527 shlibpath_overrides_runpath=no
20528 hardcode_into_libs=yes
20529 dynamic_linker='GNU ld.so'
20532 freebsd* | dragonfly*)
20533 # DragonFly does not have aout. When/if they implement a new
20534 # versioning mechanism, adjust this.
20535 if test -x /usr/bin/objformat; then
20536 objformat=`/usr/bin/objformat`
20537 else
20538 case $host_os in
20539 freebsd[123]*) objformat=aout ;;
20540 *) objformat=elf ;;
20541 esac
20543 version_type=freebsd-$objformat
20544 case $version_type in
20545 freebsd-elf*)
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20547 need_version=no
20548 need_lib_prefix=no
20550 freebsd-*)
20551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20552 need_version=yes
20554 esac
20555 shlibpath_var=LD_LIBRARY_PATH
20556 case $host_os in
20557 freebsd2*)
20558 shlibpath_overrides_runpath=yes
20560 freebsd3.[01]* | freebsdelf3.[01]*)
20561 shlibpath_overrides_runpath=yes
20562 hardcode_into_libs=yes
20564 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20565 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20566 shlibpath_overrides_runpath=no
20567 hardcode_into_libs=yes
20569 freebsd*) # from 4.6 on
20570 shlibpath_overrides_runpath=yes
20571 hardcode_into_libs=yes
20573 esac
20576 gnu*)
20577 version_type=linux
20578 need_lib_prefix=no
20579 need_version=no
20580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20581 soname_spec='${libname}${release}${shared_ext}$major'
20582 shlibpath_var=LD_LIBRARY_PATH
20583 hardcode_into_libs=yes
20586 hpux9* | hpux10* | hpux11*)
20587 # Give a soname corresponding to the major version so that dld.sl refuses to
20588 # link against other versions.
20589 version_type=sunos
20590 need_lib_prefix=no
20591 need_version=no
20592 case $host_cpu in
20593 ia64*)
20594 shrext_cmds='.so'
20595 hardcode_into_libs=yes
20596 dynamic_linker="$host_os dld.so"
20597 shlibpath_var=LD_LIBRARY_PATH
20598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600 soname_spec='${libname}${release}${shared_ext}$major'
20601 if test "X$HPUX_IA64_MODE" = X32; then
20602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20603 else
20604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20608 hppa*64*)
20609 shrext_cmds='.sl'
20610 hardcode_into_libs=yes
20611 dynamic_linker="$host_os dld.sl"
20612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615 soname_spec='${libname}${release}${shared_ext}$major'
20616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20620 shrext_cmds='.sl'
20621 dynamic_linker="$host_os dld.sl"
20622 shlibpath_var=SHLIB_PATH
20623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625 soname_spec='${libname}${release}${shared_ext}$major'
20627 esac
20628 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20629 postinstall_cmds='chmod 555 $lib'
20632 interix3*)
20633 version_type=linux
20634 need_lib_prefix=no
20635 need_version=no
20636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20637 soname_spec='${libname}${release}${shared_ext}$major'
20638 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20639 shlibpath_var=LD_LIBRARY_PATH
20640 shlibpath_overrides_runpath=no
20641 hardcode_into_libs=yes
20644 irix5* | irix6* | nonstopux*)
20645 case $host_os in
20646 nonstopux*) version_type=nonstopux ;;
20648 if test "$lt_cv_prog_gnu_ld" = yes; then
20649 version_type=linux
20650 else
20651 version_type=irix
20652 fi ;;
20653 esac
20654 need_lib_prefix=no
20655 need_version=no
20656 soname_spec='${libname}${release}${shared_ext}$major'
20657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20658 case $host_os in
20659 irix5* | nonstopux*)
20660 libsuff= shlibsuff=
20663 case $LD in # libtool.m4 will add one of these switches to LD
20664 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20665 libsuff= shlibsuff= libmagic=32-bit;;
20666 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20667 libsuff=32 shlibsuff=N32 libmagic=N32;;
20668 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20669 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20670 *) libsuff= shlibsuff= libmagic=never-match;;
20671 esac
20673 esac
20674 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20675 shlibpath_overrides_runpath=no
20676 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20677 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20678 hardcode_into_libs=yes
20681 # No shared lib support for Linux oldld, aout, or coff.
20682 linux*oldld* | linux*aout* | linux*coff*)
20683 dynamic_linker=no
20686 # This must be Linux ELF.
20687 linux*)
20688 version_type=linux
20689 need_lib_prefix=no
20690 need_version=no
20691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20692 soname_spec='${libname}${release}${shared_ext}$major'
20693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20694 shlibpath_var=LD_LIBRARY_PATH
20695 shlibpath_overrides_runpath=no
20696 # This implies no fast_install, which is unacceptable.
20697 # Some rework will be needed to allow for fast_install
20698 # before this can be enabled.
20699 hardcode_into_libs=yes
20701 # Append ld.so.conf contents to the search path
20702 if test -f /etc/ld.so.conf; then
20703 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' ' '`
20704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20707 # We used to test for /lib/ld.so.1 and disable shared libraries on
20708 # powerpc, because MkLinux only supported shared libraries with the
20709 # GNU dynamic linker. Since this was broken with cross compilers,
20710 # most powerpc-linux boxes support dynamic linking these days and
20711 # people can always --disable-shared, the test was removed, and we
20712 # assume the GNU/Linux dynamic linker is in use.
20713 dynamic_linker='GNU/Linux ld.so'
20716 knetbsd*-gnu)
20717 version_type=linux
20718 need_lib_prefix=no
20719 need_version=no
20720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20721 soname_spec='${libname}${release}${shared_ext}$major'
20722 shlibpath_var=LD_LIBRARY_PATH
20723 shlibpath_overrides_runpath=no
20724 hardcode_into_libs=yes
20725 dynamic_linker='GNU ld.so'
20728 netbsd*)
20729 version_type=sunos
20730 need_lib_prefix=no
20731 need_version=no
20732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20735 dynamic_linker='NetBSD (a.out) ld.so'
20736 else
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20738 soname_spec='${libname}${release}${shared_ext}$major'
20739 dynamic_linker='NetBSD ld.elf_so'
20741 shlibpath_var=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath=yes
20743 hardcode_into_libs=yes
20746 newsos6)
20747 version_type=linux
20748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20749 shlibpath_var=LD_LIBRARY_PATH
20750 shlibpath_overrides_runpath=yes
20753 nto-qnx*)
20754 version_type=linux
20755 need_lib_prefix=no
20756 need_version=no
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20758 soname_spec='${libname}${release}${shared_ext}$major'
20759 shlibpath_var=LD_LIBRARY_PATH
20760 shlibpath_overrides_runpath=yes
20763 openbsd*)
20764 version_type=sunos
20765 sys_lib_dlsearch_path_spec="/usr/lib"
20766 need_lib_prefix=no
20767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20768 case $host_os in
20769 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20770 *) need_version=no ;;
20771 esac
20772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20774 shlibpath_var=LD_LIBRARY_PATH
20775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20776 case $host_os in
20777 openbsd2.[89] | openbsd2.[89].*)
20778 shlibpath_overrides_runpath=no
20781 shlibpath_overrides_runpath=yes
20783 esac
20784 else
20785 shlibpath_overrides_runpath=yes
20789 os2*)
20790 libname_spec='$name'
20791 shrext_cmds=".dll"
20792 need_lib_prefix=no
20793 library_names_spec='$libname${shared_ext} $libname.a'
20794 dynamic_linker='OS/2 ld.exe'
20795 shlibpath_var=LIBPATH
20798 osf3* | osf4* | osf5*)
20799 version_type=osf
20800 need_lib_prefix=no
20801 need_version=no
20802 soname_spec='${libname}${release}${shared_ext}$major'
20803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 shlibpath_var=LD_LIBRARY_PATH
20805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20809 solaris*)
20810 version_type=linux
20811 need_lib_prefix=no
20812 need_version=no
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20814 soname_spec='${libname}${release}${shared_ext}$major'
20815 shlibpath_var=LD_LIBRARY_PATH
20816 shlibpath_overrides_runpath=yes
20817 hardcode_into_libs=yes
20818 # ldd complains unless libraries are executable
20819 postinstall_cmds='chmod +x $lib'
20822 sunos4*)
20823 version_type=sunos
20824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20825 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20826 shlibpath_var=LD_LIBRARY_PATH
20827 shlibpath_overrides_runpath=yes
20828 if test "$with_gnu_ld" = yes; then
20829 need_lib_prefix=no
20831 need_version=yes
20834 sysv4 | sysv4.3*)
20835 version_type=linux
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'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 case $host_vendor in
20840 sni)
20841 shlibpath_overrides_runpath=no
20842 need_lib_prefix=no
20843 export_dynamic_flag_spec='${wl}-Blargedynsym'
20844 runpath_var=LD_RUN_PATH
20846 siemens)
20847 need_lib_prefix=no
20849 motorola)
20850 need_lib_prefix=no
20851 need_version=no
20852 shlibpath_overrides_runpath=no
20853 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20855 esac
20858 sysv4*MP*)
20859 if test -d /usr/nec ;then
20860 version_type=linux
20861 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20862 soname_spec='$libname${shared_ext}.$major'
20863 shlibpath_var=LD_LIBRARY_PATH
20867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20868 version_type=freebsd-elf
20869 need_lib_prefix=no
20870 need_version=no
20871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20872 soname_spec='${libname}${release}${shared_ext}$major'
20873 shlibpath_var=LD_LIBRARY_PATH
20874 hardcode_into_libs=yes
20875 if test "$with_gnu_ld" = yes; then
20876 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20877 shlibpath_overrides_runpath=no
20878 else
20879 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20880 shlibpath_overrides_runpath=yes
20881 case $host_os in
20882 sco3.2v5*)
20883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20885 esac
20887 sys_lib_dlsearch_path_spec='/usr/lib'
20890 uts4*)
20891 version_type=linux
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893 soname_spec='${libname}${release}${shared_ext}$major'
20894 shlibpath_var=LD_LIBRARY_PATH
20898 dynamic_linker=no
20900 esac
20901 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20902 echo "${ECHO_T}$dynamic_linker" >&6; }
20903 test "$dynamic_linker" = no && can_build_shared=no
20905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20906 if test "$GCC" = yes; then
20907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20910 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20911 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20912 hardcode_action_CXX=
20913 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20914 test -n "$runpath_var_CXX" || \
20915 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20917 # We can hardcode non-existant directories.
20918 if test "$hardcode_direct_CXX" != no &&
20919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20920 # have to relink, otherwise we might link with an installed library
20921 # when we should be linking with a yet-to-be-installed one
20922 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20923 test "$hardcode_minus_L_CXX" != no; then
20924 # Linking always hardcodes the temporary library directory.
20925 hardcode_action_CXX=relink
20926 else
20927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20928 hardcode_action_CXX=immediate
20930 else
20931 # We cannot hardcode anything, or else we can only hardcode existing
20932 # directories.
20933 hardcode_action_CXX=unsupported
20935 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20936 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20938 if test "$hardcode_action_CXX" = relink; then
20939 # Fast installation is not supported
20940 enable_fast_install=no
20941 elif test "$shlibpath_overrides_runpath" = yes ||
20942 test "$enable_shared" = no; then
20943 # Fast installation is not necessary
20944 enable_fast_install=needless
20948 # The else clause should only fire when bootstrapping the
20949 # libtool distribution, otherwise you forgot to ship ltmain.sh
20950 # with your package, and you will get complaints that there are
20951 # no rules to generate ltmain.sh.
20952 if test -f "$ltmain"; then
20953 # See if we are running on zsh, and set the options which allow our commands through
20954 # without removal of \ escapes.
20955 if test -n "${ZSH_VERSION+set}" ; then
20956 setopt NO_GLOB_SUBST
20958 # Now quote all the things that may contain metacharacters while being
20959 # careful not to overquote the AC_SUBSTed values. We take copies of the
20960 # variables and quote the copies for generation of the libtool script.
20961 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20962 SED SHELL STRIP \
20963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20965 deplibs_check_method reload_flag reload_cmds need_locks \
20966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20967 lt_cv_sys_global_symbol_to_c_name_address \
20968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20969 old_postinstall_cmds old_postuninstall_cmds \
20970 compiler_CXX \
20971 CC_CXX \
20972 LD_CXX \
20973 lt_prog_compiler_wl_CXX \
20974 lt_prog_compiler_pic_CXX \
20975 lt_prog_compiler_static_CXX \
20976 lt_prog_compiler_no_builtin_flag_CXX \
20977 export_dynamic_flag_spec_CXX \
20978 thread_safe_flag_spec_CXX \
20979 whole_archive_flag_spec_CXX \
20980 enable_shared_with_static_runtimes_CXX \
20981 old_archive_cmds_CXX \
20982 old_archive_from_new_cmds_CXX \
20983 predep_objects_CXX \
20984 postdep_objects_CXX \
20985 predeps_CXX \
20986 postdeps_CXX \
20987 compiler_lib_search_path_CXX \
20988 archive_cmds_CXX \
20989 archive_expsym_cmds_CXX \
20990 postinstall_cmds_CXX \
20991 postuninstall_cmds_CXX \
20992 old_archive_from_expsyms_cmds_CXX \
20993 allow_undefined_flag_CXX \
20994 no_undefined_flag_CXX \
20995 export_symbols_cmds_CXX \
20996 hardcode_libdir_flag_spec_CXX \
20997 hardcode_libdir_flag_spec_ld_CXX \
20998 hardcode_libdir_separator_CXX \
20999 hardcode_automatic_CXX \
21000 module_cmds_CXX \
21001 module_expsym_cmds_CXX \
21002 lt_cv_prog_compiler_c_o_CXX \
21003 exclude_expsyms_CXX \
21004 include_expsyms_CXX; do
21006 case $var in
21007 old_archive_cmds_CXX | \
21008 old_archive_from_new_cmds_CXX | \
21009 archive_cmds_CXX | \
21010 archive_expsym_cmds_CXX | \
21011 module_cmds_CXX | \
21012 module_expsym_cmds_CXX | \
21013 old_archive_from_expsyms_cmds_CXX | \
21014 export_symbols_cmds_CXX | \
21015 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21016 postinstall_cmds | postuninstall_cmds | \
21017 old_postinstall_cmds | old_postuninstall_cmds | \
21018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21019 # Double-quote double-evaled strings.
21020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21025 esac
21026 done
21028 case $lt_echo in
21029 *'\$0 --fallback-echo"')
21030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21032 esac
21034 cfgfile="$ofile"
21036 cat <<__EOF__ >> "$cfgfile"
21037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21041 # Shell to use when invoking shell scripts.
21042 SHELL=$lt_SHELL
21044 # Whether or not to build shared libraries.
21045 build_libtool_libs=$enable_shared
21047 # Whether or not to build static libraries.
21048 build_old_libs=$enable_static
21050 # Whether or not to add -lc for building shared libraries.
21051 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21053 # Whether or not to disallow shared libs when runtime libs are static
21054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21056 # Whether or not to optimize for fast installation.
21057 fast_install=$enable_fast_install
21059 # The host system.
21060 host_alias=$host_alias
21061 host=$host
21062 host_os=$host_os
21064 # The build system.
21065 build_alias=$build_alias
21066 build=$build
21067 build_os=$build_os
21069 # An echo program that does not interpret backslashes.
21070 echo=$lt_echo
21072 # The archiver.
21073 AR=$lt_AR
21074 AR_FLAGS=$lt_AR_FLAGS
21076 # A C compiler.
21077 LTCC=$lt_LTCC
21079 # LTCC compiler flags.
21080 LTCFLAGS=$lt_LTCFLAGS
21082 # A language-specific compiler.
21083 CC=$lt_compiler_CXX
21085 # Is the compiler the GNU C compiler?
21086 with_gcc=$GCC_CXX
21088 # An ERE matcher.
21089 EGREP=$lt_EGREP
21091 # The linker used to build libraries.
21092 LD=$lt_LD_CXX
21094 # Whether we need hard or soft links.
21095 LN_S=$lt_LN_S
21097 # A BSD-compatible nm program.
21098 NM=$lt_NM
21100 # A symbol stripping program
21101 STRIP=$lt_STRIP
21103 # Used to examine libraries when file_magic_cmd begins "file"
21104 MAGIC_CMD=$MAGIC_CMD
21106 # Used on cygwin: DLL creation program.
21107 DLLTOOL="$DLLTOOL"
21109 # Used on cygwin: object dumper.
21110 OBJDUMP="$OBJDUMP"
21112 # Used on cygwin: assembler.
21113 AS="$AS"
21115 # The name of the directory that contains temporary libtool files.
21116 objdir=$objdir
21118 # How to create reloadable object files.
21119 reload_flag=$lt_reload_flag
21120 reload_cmds=$lt_reload_cmds
21122 # How to pass a linker flag through the compiler.
21123 wl=$lt_lt_prog_compiler_wl_CXX
21125 # Object file suffix (normally "o").
21126 objext="$ac_objext"
21128 # Old archive suffix (normally "a").
21129 libext="$libext"
21131 # Shared library suffix (normally ".so").
21132 shrext_cmds='$shrext_cmds'
21134 # Executable file suffix (normally "").
21135 exeext="$exeext"
21137 # Additional compiler flags for building library objects.
21138 pic_flag=$lt_lt_prog_compiler_pic_CXX
21139 pic_mode=$pic_mode
21141 # What is the maximum length of a command?
21142 max_cmd_len=$lt_cv_sys_max_cmd_len
21144 # Does compiler simultaneously support -c and -o options?
21145 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21147 # Must we lock files when doing compilation?
21148 need_locks=$lt_need_locks
21150 # Do we need the lib prefix for modules?
21151 need_lib_prefix=$need_lib_prefix
21153 # Do we need a version for libraries?
21154 need_version=$need_version
21156 # Whether dlopen is supported.
21157 dlopen_support=$enable_dlopen
21159 # Whether dlopen of programs is supported.
21160 dlopen_self=$enable_dlopen_self
21162 # Whether dlopen of statically linked programs is supported.
21163 dlopen_self_static=$enable_dlopen_self_static
21165 # Compiler flag to prevent dynamic linking.
21166 link_static_flag=$lt_lt_prog_compiler_static_CXX
21168 # Compiler flag to turn off builtin functions.
21169 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21171 # Compiler flag to allow reflexive dlopens.
21172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21174 # Compiler flag to generate shared objects directly from archives.
21175 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21177 # Compiler flag to generate thread-safe objects.
21178 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21180 # Library versioning type.
21181 version_type=$version_type
21183 # Format of library name prefix.
21184 libname_spec=$lt_libname_spec
21186 # List of archive names. First name is the real one, the rest are links.
21187 # The last name is the one that the linker finds with -lNAME.
21188 library_names_spec=$lt_library_names_spec
21190 # The coded name of the library, if different from the real name.
21191 soname_spec=$lt_soname_spec
21193 # Commands used to build and install an old-style archive.
21194 RANLIB=$lt_RANLIB
21195 old_archive_cmds=$lt_old_archive_cmds_CXX
21196 old_postinstall_cmds=$lt_old_postinstall_cmds
21197 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21199 # Create an old-style archive from a shared archive.
21200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21202 # Create a temporary old-style archive to link instead of a shared archive.
21203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21205 # Commands used to build and install a shared archive.
21206 archive_cmds=$lt_archive_cmds_CXX
21207 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21208 postinstall_cmds=$lt_postinstall_cmds
21209 postuninstall_cmds=$lt_postuninstall_cmds
21211 # Commands used to build a loadable module (assumed same as above if empty)
21212 module_cmds=$lt_module_cmds_CXX
21213 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21215 # Commands to strip libraries.
21216 old_striplib=$lt_old_striplib
21217 striplib=$lt_striplib
21219 # Dependencies to place before the objects being linked to create a
21220 # shared library.
21221 predep_objects=$lt_predep_objects_CXX
21223 # Dependencies to place after the objects being linked to create a
21224 # shared library.
21225 postdep_objects=$lt_postdep_objects_CXX
21227 # Dependencies to place before the objects being linked to create a
21228 # shared library.
21229 predeps=$lt_predeps_CXX
21231 # Dependencies to place after the objects being linked to create a
21232 # shared library.
21233 postdeps=$lt_postdeps_CXX
21235 # The library search path used internally by the compiler when linking
21236 # a shared library.
21237 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21239 # Method to check whether dependent libraries are shared objects.
21240 deplibs_check_method=$lt_deplibs_check_method
21242 # Command to use when deplibs_check_method == file_magic.
21243 file_magic_cmd=$lt_file_magic_cmd
21245 # Flag that allows shared libraries with undefined symbols to be built.
21246 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21248 # Flag that forces no undefined symbols.
21249 no_undefined_flag=$lt_no_undefined_flag_CXX
21251 # Commands used to finish a libtool library installation in a directory.
21252 finish_cmds=$lt_finish_cmds
21254 # Same as above, but a single script fragment to be evaled but not shown.
21255 finish_eval=$lt_finish_eval
21257 # Take the output of nm and produce a listing of raw symbols and C names.
21258 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21260 # Transform the output of nm in a proper C declaration
21261 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21263 # Transform the output of nm in a C name address pair
21264 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21266 # This is the shared library runtime path variable.
21267 runpath_var=$runpath_var
21269 # This is the shared library path variable.
21270 shlibpath_var=$shlibpath_var
21272 # Is shlibpath searched before the hard-coded library search path?
21273 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21275 # How to hardcode a shared library path into an executable.
21276 hardcode_action=$hardcode_action_CXX
21278 # Whether we should hardcode library paths into libraries.
21279 hardcode_into_libs=$hardcode_into_libs
21281 # Flag to hardcode \$libdir into a binary during linking.
21282 # This must work even if \$libdir does not exist.
21283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21285 # If ld is used when linking, flag to hardcode \$libdir into
21286 # a binary during linking. This must work even if \$libdir does
21287 # not exist.
21288 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21290 # Whether we need a single -rpath flag with a separated argument.
21291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21293 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21294 # resulting binary.
21295 hardcode_direct=$hardcode_direct_CXX
21297 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21298 # resulting binary.
21299 hardcode_minus_L=$hardcode_minus_L_CXX
21301 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21302 # the resulting binary.
21303 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21305 # Set to yes if building a shared library automatically hardcodes DIR into the library
21306 # and all subsequent libraries and executables linked against it.
21307 hardcode_automatic=$hardcode_automatic_CXX
21309 # Variables whose values should be saved in libtool wrapper scripts and
21310 # restored at relink time.
21311 variables_saved_for_relink="$variables_saved_for_relink"
21313 # Whether libtool must link a program against all its dependency libraries.
21314 link_all_deplibs=$link_all_deplibs_CXX
21316 # Compile-time system search path for libraries
21317 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21319 # Run-time system search path for libraries
21320 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21322 # Fix the shell variable \$srcfile for the compiler.
21323 fix_srcfile_path="$fix_srcfile_path_CXX"
21325 # Set to yes if exported symbols are required.
21326 always_export_symbols=$always_export_symbols_CXX
21328 # The commands to list exported symbols.
21329 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21331 # The commands to extract the exported symbol list from a shared archive.
21332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21334 # Symbols that should not be listed in the preloaded symbols.
21335 exclude_expsyms=$lt_exclude_expsyms_CXX
21337 # Symbols that must always be exported.
21338 include_expsyms=$lt_include_expsyms_CXX
21340 # ### END LIBTOOL TAG CONFIG: $tagname
21342 __EOF__
21345 else
21346 # If there is no Makefile yet, we rely on a make rule to execute
21347 # `config.status --recheck' to rerun these tests and create the
21348 # libtool script then.
21349 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21350 if test -f "$ltmain_in"; then
21351 test -f Makefile && make "$ltmain"
21356 ac_ext=c
21357 ac_cpp='$CPP $CPPFLAGS'
21358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21362 CC=$lt_save_CC
21363 LDCXX=$LD
21364 LD=$lt_save_LD
21365 GCC=$lt_save_GCC
21366 with_gnu_ldcxx=$with_gnu_ld
21367 with_gnu_ld=$lt_save_with_gnu_ld
21368 lt_cv_path_LDCXX=$lt_cv_path_LD
21369 lt_cv_path_LD=$lt_save_path_LD
21370 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21371 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21373 else
21374 tagname=""
21378 F77)
21379 if test -n "$F77" && test "X$F77" != "Xno"; then
21381 ac_ext=f
21382 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21383 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21384 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21387 archive_cmds_need_lc_F77=no
21388 allow_undefined_flag_F77=
21389 always_export_symbols_F77=no
21390 archive_expsym_cmds_F77=
21391 export_dynamic_flag_spec_F77=
21392 hardcode_direct_F77=no
21393 hardcode_libdir_flag_spec_F77=
21394 hardcode_libdir_flag_spec_ld_F77=
21395 hardcode_libdir_separator_F77=
21396 hardcode_minus_L_F77=no
21397 hardcode_automatic_F77=no
21398 module_cmds_F77=
21399 module_expsym_cmds_F77=
21400 link_all_deplibs_F77=unknown
21401 old_archive_cmds_F77=$old_archive_cmds
21402 no_undefined_flag_F77=
21403 whole_archive_flag_spec_F77=
21404 enable_shared_with_static_runtimes_F77=no
21406 # Source file extension for f77 test sources.
21407 ac_ext=f
21409 # Object file extension for compiled f77 test sources.
21410 objext=o
21411 objext_F77=$objext
21413 # Code to be used in simple compile tests
21414 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21416 # Code to be used in simple link tests
21417 lt_simple_link_test_code=" program t\n end\n"
21419 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21421 # If no C compiler was specified, use CC.
21422 LTCC=${LTCC-"$CC"}
21424 # If no C compiler flags were specified, use CFLAGS.
21425 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21427 # Allow CC to be a program name with arguments.
21428 compiler=$CC
21431 # save warnings/boilerplate of simple test code
21432 ac_outfile=conftest.$ac_objext
21433 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21434 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21435 _lt_compiler_boilerplate=`cat conftest.err`
21436 $rm conftest*
21438 ac_outfile=conftest.$ac_objext
21439 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21440 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21441 _lt_linker_boilerplate=`cat conftest.err`
21442 $rm conftest*
21445 # Allow CC to be a program name with arguments.
21446 lt_save_CC="$CC"
21447 CC=${F77-"f77"}
21448 compiler=$CC
21449 compiler_F77=$CC
21450 for cc_temp in $compiler""; do
21451 case $cc_temp in
21452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21454 \-*) ;;
21455 *) break;;
21456 esac
21457 done
21458 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21461 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21462 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21463 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21464 echo "${ECHO_T}$can_build_shared" >&6; }
21466 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21467 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21468 test "$can_build_shared" = "no" && enable_shared=no
21470 # On AIX, shared libraries and static libraries use the same namespace, and
21471 # are all built from PIC.
21472 case $host_os in
21473 aix3*)
21474 test "$enable_shared" = yes && enable_static=no
21475 if test -n "$RANLIB"; then
21476 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21477 postinstall_cmds='$RANLIB $lib'
21480 aix4* | aix5*)
21481 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21482 test "$enable_shared" = yes && enable_static=no
21485 esac
21486 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21487 echo "${ECHO_T}$enable_shared" >&6; }
21489 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21490 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21491 # Make sure either enable_shared or enable_static is yes.
21492 test "$enable_shared" = yes || enable_static=yes
21493 { echo "$as_me:$LINENO: result: $enable_static" >&5
21494 echo "${ECHO_T}$enable_static" >&6; }
21496 GCC_F77="$G77"
21497 LD_F77="$LD"
21499 lt_prog_compiler_wl_F77=
21500 lt_prog_compiler_pic_F77=
21501 lt_prog_compiler_static_F77=
21503 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21504 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21506 if test "$GCC" = yes; then
21507 lt_prog_compiler_wl_F77='-Wl,'
21508 lt_prog_compiler_static_F77='-static'
21510 case $host_os in
21511 aix*)
21512 # All AIX code is PIC.
21513 if test "$host_cpu" = ia64; then
21514 # AIX 5 now supports IA64 processor
21515 lt_prog_compiler_static_F77='-Bstatic'
21519 amigaos*)
21520 # FIXME: we need at least 68020 code to build shared libraries, but
21521 # adding the `-m68020' flag to GCC prevents building anything better,
21522 # like `-m68040'.
21523 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21526 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21527 # PIC is the default for these OSes.
21530 mingw* | pw32* | os2*)
21531 # This hack is so that the source file can tell whether it is being
21532 # built for inclusion in a dll (and should export symbols for example).
21533 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21536 darwin* | rhapsody*)
21537 # PIC is the default on this platform
21538 # Common symbols not allowed in MH_DYLIB files
21539 lt_prog_compiler_pic_F77='-fno-common'
21542 interix3*)
21543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21544 # Instead, we relocate shared libraries at runtime.
21547 msdosdjgpp*)
21548 # Just because we use GCC doesn't mean we suddenly get shared libraries
21549 # on systems that don't support them.
21550 lt_prog_compiler_can_build_shared_F77=no
21551 enable_shared=no
21554 sysv4*MP*)
21555 if test -d /usr/nec; then
21556 lt_prog_compiler_pic_F77=-Kconform_pic
21560 hpux*)
21561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21562 # not for PA HP-UX.
21563 case $host_cpu in
21564 hppa*64*|ia64*)
21565 # +Z the default
21568 lt_prog_compiler_pic_F77='-fPIC'
21570 esac
21574 lt_prog_compiler_pic_F77='-fPIC'
21576 esac
21577 else
21578 # PORTME Check for flag to pass linker flags through the system compiler.
21579 case $host_os in
21580 aix*)
21581 lt_prog_compiler_wl_F77='-Wl,'
21582 if test "$host_cpu" = ia64; then
21583 # AIX 5 now supports IA64 processor
21584 lt_prog_compiler_static_F77='-Bstatic'
21585 else
21586 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21589 darwin*)
21590 # PIC is the default on this platform
21591 # Common symbols not allowed in MH_DYLIB files
21592 case $cc_basename in
21593 xlc*)
21594 lt_prog_compiler_pic_F77='-qnocommon'
21595 lt_prog_compiler_wl_F77='-Wl,'
21597 esac
21600 mingw* | pw32* | os2*)
21601 # This hack is so that the source file can tell whether it is being
21602 # built for inclusion in a dll (and should export symbols for example).
21603 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21606 hpux9* | hpux10* | hpux11*)
21607 lt_prog_compiler_wl_F77='-Wl,'
21608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21609 # not for PA HP-UX.
21610 case $host_cpu in
21611 hppa*64*|ia64*)
21612 # +Z the default
21615 lt_prog_compiler_pic_F77='+Z'
21617 esac
21618 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21619 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21622 irix5* | irix6* | nonstopux*)
21623 lt_prog_compiler_wl_F77='-Wl,'
21624 # PIC (with -KPIC) is the default.
21625 lt_prog_compiler_static_F77='-non_shared'
21628 newsos6)
21629 lt_prog_compiler_pic_F77='-KPIC'
21630 lt_prog_compiler_static_F77='-Bstatic'
21633 linux*)
21634 case $cc_basename in
21635 icc* | ecc*)
21636 lt_prog_compiler_wl_F77='-Wl,'
21637 lt_prog_compiler_pic_F77='-KPIC'
21638 lt_prog_compiler_static_F77='-static'
21640 pgcc* | pgf77* | pgf90* | pgf95*)
21641 # Portland Group compilers (*not* the Pentium gcc compiler,
21642 # which looks to be a dead project)
21643 lt_prog_compiler_wl_F77='-Wl,'
21644 lt_prog_compiler_pic_F77='-fpic'
21645 lt_prog_compiler_static_F77='-Bstatic'
21647 ccc*)
21648 lt_prog_compiler_wl_F77='-Wl,'
21649 # All Alpha code is PIC.
21650 lt_prog_compiler_static_F77='-non_shared'
21652 esac
21655 osf3* | osf4* | osf5*)
21656 lt_prog_compiler_wl_F77='-Wl,'
21657 # All OSF/1 code is PIC.
21658 lt_prog_compiler_static_F77='-non_shared'
21661 solaris*)
21662 lt_prog_compiler_pic_F77='-KPIC'
21663 lt_prog_compiler_static_F77='-Bstatic'
21664 case $cc_basename in
21665 f77* | f90* | f95*)
21666 lt_prog_compiler_wl_F77='-Qoption ld ';;
21668 lt_prog_compiler_wl_F77='-Wl,';;
21669 esac
21672 sunos4*)
21673 lt_prog_compiler_wl_F77='-Qoption ld '
21674 lt_prog_compiler_pic_F77='-PIC'
21675 lt_prog_compiler_static_F77='-Bstatic'
21678 sysv4 | sysv4.2uw2* | sysv4.3*)
21679 lt_prog_compiler_wl_F77='-Wl,'
21680 lt_prog_compiler_pic_F77='-KPIC'
21681 lt_prog_compiler_static_F77='-Bstatic'
21684 sysv4*MP*)
21685 if test -d /usr/nec ;then
21686 lt_prog_compiler_pic_F77='-Kconform_pic'
21687 lt_prog_compiler_static_F77='-Bstatic'
21691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21692 lt_prog_compiler_wl_F77='-Wl,'
21693 lt_prog_compiler_pic_F77='-KPIC'
21694 lt_prog_compiler_static_F77='-Bstatic'
21697 unicos*)
21698 lt_prog_compiler_wl_F77='-Wl,'
21699 lt_prog_compiler_can_build_shared_F77=no
21702 uts4*)
21703 lt_prog_compiler_pic_F77='-pic'
21704 lt_prog_compiler_static_F77='-Bstatic'
21708 lt_prog_compiler_can_build_shared_F77=no
21710 esac
21713 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21714 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21717 # Check to make sure the PIC flag actually works.
21719 if test -n "$lt_prog_compiler_pic_F77"; then
21721 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21723 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21726 lt_prog_compiler_pic_works_F77=no
21727 ac_outfile=conftest.$ac_objext
21728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21729 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21730 # Insert the option either (1) after the last *FLAGS variable, or
21731 # (2) before a word containing "conftest.", or (3) at the end.
21732 # Note that $ac_compile itself does not contain backslashes and begins
21733 # with a dollar sign (not a hyphen), so the echo should work correctly.
21734 # The option is referenced via a variable to avoid confusing sed.
21735 lt_compile=`echo "$ac_compile" | $SED \
21736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21738 -e 's:$: $lt_compiler_flag:'`
21739 (eval echo "\"\$as_me:21744: $lt_compile\"" >&5)
21740 (eval "$lt_compile" 2>conftest.err)
21741 ac_status=$?
21742 cat conftest.err >&5
21743 echo "$as_me:21748: \$? = $ac_status" >&5
21744 if (exit $ac_status) && test -s "$ac_outfile"; then
21745 # The compiler can only warn and ignore the option if not recognized
21746 # So say no if there are warnings other than the usual output.
21747 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21750 lt_prog_compiler_pic_works_F77=yes
21753 $rm conftest*
21756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21757 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21759 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21760 case $lt_prog_compiler_pic_F77 in
21761 "" | " "*) ;;
21762 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21763 esac
21764 else
21765 lt_prog_compiler_pic_F77=
21766 lt_prog_compiler_can_build_shared_F77=no
21770 case $host_os in
21771 # For platforms which do not support PIC, -DPIC is meaningless:
21772 *djgpp*)
21773 lt_prog_compiler_pic_F77=
21776 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21778 esac
21781 # Check to make sure the static flag actually works.
21783 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21784 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21785 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21786 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789 lt_prog_compiler_static_works_F77=no
21790 save_LDFLAGS="$LDFLAGS"
21791 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21792 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21794 # The linker can only warn and ignore the option if not recognized
21795 # So say no if there are warnings
21796 if test -s conftest.err; then
21797 # Append any errors to the config.log.
21798 cat conftest.err 1>&5
21799 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21801 if diff conftest.exp conftest.er2 >/dev/null; then
21802 lt_prog_compiler_static_works_F77=yes
21804 else
21805 lt_prog_compiler_static_works_F77=yes
21808 $rm conftest*
21809 LDFLAGS="$save_LDFLAGS"
21812 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21813 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21815 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21817 else
21818 lt_prog_compiler_static_F77=
21822 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21823 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21824 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21825 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 else
21827 lt_cv_prog_compiler_c_o_F77=no
21828 $rm -r conftest 2>/dev/null
21829 mkdir conftest
21830 cd conftest
21831 mkdir out
21832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21834 lt_compiler_flag="-o out/conftest2.$ac_objext"
21835 # Insert the option either (1) after the last *FLAGS variable, or
21836 # (2) before a word containing "conftest.", or (3) at the end.
21837 # Note that $ac_compile itself does not contain backslashes and begins
21838 # with a dollar sign (not a hyphen), so the echo should work correctly.
21839 lt_compile=`echo "$ac_compile" | $SED \
21840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21842 -e 's:$: $lt_compiler_flag:'`
21843 (eval echo "\"\$as_me:21848: $lt_compile\"" >&5)
21844 (eval "$lt_compile" 2>out/conftest.err)
21845 ac_status=$?
21846 cat out/conftest.err >&5
21847 echo "$as_me:21852: \$? = $ac_status" >&5
21848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21849 then
21850 # The compiler can only warn and ignore the option if not recognized
21851 # So say no if there are warnings
21852 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21855 lt_cv_prog_compiler_c_o_F77=yes
21858 chmod u+w . 2>&5
21859 $rm conftest*
21860 # SGI C++ compiler will create directory out/ii_files/ for
21861 # template instantiation
21862 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21863 $rm out/* && rmdir out
21864 cd ..
21865 rmdir conftest
21866 $rm conftest*
21869 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21870 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21873 hard_links="nottested"
21874 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21875 # do not overwrite the value of need_locks provided by the user
21876 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21877 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21878 hard_links=yes
21879 $rm conftest*
21880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21881 touch conftest.a
21882 ln conftest.a conftest.b 2>&5 || hard_links=no
21883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21884 { echo "$as_me:$LINENO: result: $hard_links" >&5
21885 echo "${ECHO_T}$hard_links" >&6; }
21886 if test "$hard_links" = no; then
21887 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21888 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21889 need_locks=warn
21891 else
21892 need_locks=no
21895 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21896 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21898 runpath_var=
21899 allow_undefined_flag_F77=
21900 enable_shared_with_static_runtimes_F77=no
21901 archive_cmds_F77=
21902 archive_expsym_cmds_F77=
21903 old_archive_From_new_cmds_F77=
21904 old_archive_from_expsyms_cmds_F77=
21905 export_dynamic_flag_spec_F77=
21906 whole_archive_flag_spec_F77=
21907 thread_safe_flag_spec_F77=
21908 hardcode_libdir_flag_spec_F77=
21909 hardcode_libdir_flag_spec_ld_F77=
21910 hardcode_libdir_separator_F77=
21911 hardcode_direct_F77=no
21912 hardcode_minus_L_F77=no
21913 hardcode_shlibpath_var_F77=unsupported
21914 link_all_deplibs_F77=unknown
21915 hardcode_automatic_F77=no
21916 module_cmds_F77=
21917 module_expsym_cmds_F77=
21918 always_export_symbols_F77=no
21919 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21920 # include_expsyms should be a list of space-separated symbols to be *always*
21921 # included in the symbol list
21922 include_expsyms_F77=
21923 # exclude_expsyms can be an extended regexp of symbols to exclude
21924 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21925 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21926 # as well as any symbol that contains `d'.
21927 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21928 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21929 # platforms (ab)use it in PIC code, but their linkers get confused if
21930 # the symbol is explicitly referenced. Since portable code cannot
21931 # rely on this symbol name, it's probably fine to never include it in
21932 # preloaded symbol tables.
21933 extract_expsyms_cmds=
21934 # Just being paranoid about ensuring that cc_basename is set.
21935 for cc_temp in $compiler""; do
21936 case $cc_temp in
21937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21939 \-*) ;;
21940 *) break;;
21941 esac
21942 done
21943 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21945 case $host_os in
21946 cygwin* | mingw* | pw32*)
21947 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21948 # When not using gcc, we currently assume that we are using
21949 # Microsoft Visual C++.
21950 if test "$GCC" != yes; then
21951 with_gnu_ld=no
21954 interix*)
21955 # we just hope/assume this is gcc and not c89 (= MSVC++)
21956 with_gnu_ld=yes
21958 openbsd*)
21959 with_gnu_ld=no
21961 esac
21963 ld_shlibs_F77=yes
21964 if test "$with_gnu_ld" = yes; then
21965 # If archive_cmds runs LD, not CC, wlarc should be empty
21966 wlarc='${wl}'
21968 # Set some defaults for GNU ld with shared library support. These
21969 # are reset later if shared libraries are not supported. Putting them
21970 # here allows them to be overridden if necessary.
21971 runpath_var=LD_RUN_PATH
21972 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21973 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21974 # ancient GNU ld didn't support --whole-archive et. al.
21975 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21976 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21977 else
21978 whole_archive_flag_spec_F77=
21980 supports_anon_versioning=no
21981 case `$LD -v 2>/dev/null` in
21982 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21983 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21984 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21985 *\ 2.11.*) ;; # other 2.11 versions
21986 *) supports_anon_versioning=yes ;;
21987 esac
21989 # See if GNU ld supports shared libraries.
21990 case $host_os in
21991 aix3* | aix4* | aix5*)
21992 # On AIX/PPC, the GNU linker is very broken
21993 if test "$host_cpu" != ia64; then
21994 ld_shlibs_F77=no
21995 cat <<EOF 1>&2
21997 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21998 *** to be unable to reliably create shared libraries on AIX.
21999 *** Therefore, libtool is disabling shared libraries support. If you
22000 *** really care for shared libraries, you may want to modify your PATH
22001 *** so that a non-GNU linker is found, and then restart.
22007 amigaos*)
22008 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)'
22009 hardcode_libdir_flag_spec_F77='-L$libdir'
22010 hardcode_minus_L_F77=yes
22012 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22013 # that the semantics of dynamic libraries on AmigaOS, at least up
22014 # to version 4, is to share data among multiple programs linked
22015 # with the same dynamic library. Since this doesn't match the
22016 # behavior of shared libraries on other platforms, we can't use
22017 # them.
22018 ld_shlibs_F77=no
22021 beos*)
22022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22023 allow_undefined_flag_F77=unsupported
22024 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22025 # support --undefined. This deserves some investigation. FIXME
22026 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22027 else
22028 ld_shlibs_F77=no
22032 cygwin* | mingw* | pw32*)
22033 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22034 # as there is no search path for DLLs.
22035 hardcode_libdir_flag_spec_F77='-L$libdir'
22036 allow_undefined_flag_F77=unsupported
22037 always_export_symbols_F77=no
22038 enable_shared_with_static_runtimes_F77=yes
22039 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22041 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22042 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22043 # If the export-symbols file already is a .def file (1st line
22044 # is EXPORTS), use it as is; otherwise, prepend...
22045 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22046 cp $export_symbols $output_objdir/$soname.def;
22047 else
22048 echo EXPORTS > $output_objdir/$soname.def;
22049 cat $export_symbols >> $output_objdir/$soname.def;
22051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22052 else
22053 ld_shlibs_F77=no
22057 interix3*)
22058 hardcode_direct_F77=no
22059 hardcode_shlibpath_var_F77=no
22060 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22061 export_dynamic_flag_spec_F77='${wl}-E'
22062 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22063 # Instead, shared libraries are loaded at an image base (0x10000000 by
22064 # default) and relocated if they conflict, which is a slow very memory
22065 # consuming and fragmenting process. To avoid this, we pick a random,
22066 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22067 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22068 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'
22069 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'
22072 linux*)
22073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22074 tmp_addflag=
22075 case $cc_basename,$host_cpu in
22076 pgcc*) # Portland Group C compiler
22077 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'
22078 tmp_addflag=' $pic_flag'
22080 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22081 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'
22082 tmp_addflag=' $pic_flag -Mnomain' ;;
22083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22084 tmp_addflag=' -i_dynamic' ;;
22085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22086 tmp_addflag=' -i_dynamic -nofor_main' ;;
22087 ifc* | ifort*) # Intel Fortran compiler
22088 tmp_addflag=' -nofor_main' ;;
22089 esac
22090 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22092 if test $supports_anon_versioning = yes; then
22093 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22095 $echo "local: *; };" >> $output_objdir/$libname.ver~
22096 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22098 else
22099 ld_shlibs_F77=no
22103 netbsd*)
22104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22105 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22106 wlarc=
22107 else
22108 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22109 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22113 solaris*)
22114 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22115 ld_shlibs_F77=no
22116 cat <<EOF 1>&2
22118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22119 *** create shared libraries on Solaris systems. Therefore, libtool
22120 *** is disabling shared libraries support. We urge you to upgrade GNU
22121 *** binutils to release 2.9.1 or newer. Another option is to modify
22122 *** your PATH or compiler configuration so that the native linker is
22123 *** used, and then restart.
22126 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22127 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22128 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22129 else
22130 ld_shlibs_F77=no
22134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22135 case `$LD -v 2>&1` in
22136 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22137 ld_shlibs_F77=no
22138 cat <<_LT_EOF 1>&2
22140 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22141 *** reliably create shared libraries on SCO systems. Therefore, libtool
22142 *** is disabling shared libraries support. We urge you to upgrade GNU
22143 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22144 *** your PATH or compiler configuration so that the native linker is
22145 *** used, and then restart.
22147 _LT_EOF
22150 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22151 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22153 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22154 else
22155 ld_shlibs_F77=no
22158 esac
22161 sunos4*)
22162 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22163 wlarc=
22164 hardcode_direct_F77=yes
22165 hardcode_shlibpath_var_F77=no
22169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22170 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22171 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22172 else
22173 ld_shlibs_F77=no
22176 esac
22178 if test "$ld_shlibs_F77" = no; then
22179 runpath_var=
22180 hardcode_libdir_flag_spec_F77=
22181 export_dynamic_flag_spec_F77=
22182 whole_archive_flag_spec_F77=
22184 else
22185 # PORTME fill in a description of your system's linker (not GNU ld)
22186 case $host_os in
22187 aix3*)
22188 allow_undefined_flag_F77=unsupported
22189 always_export_symbols_F77=yes
22190 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'
22191 # Note: this linker hardcodes the directories in LIBPATH if there
22192 # are no directories specified by -L.
22193 hardcode_minus_L_F77=yes
22194 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22195 # Neither direct hardcoding nor static linking is supported with a
22196 # broken collect2.
22197 hardcode_direct_F77=unsupported
22201 aix4* | aix5*)
22202 if test "$host_cpu" = ia64; then
22203 # On IA64, the linker does run time linking by default, so we don't
22204 # have to do anything special.
22205 aix_use_runtimelinking=no
22206 exp_sym_flag='-Bexport'
22207 no_entry_flag=""
22208 else
22209 # If we're using GNU nm, then we don't want the "-C" option.
22210 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22211 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22212 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'
22213 else
22214 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'
22216 aix_use_runtimelinking=no
22218 # Test if we are trying to use run time linking or normal
22219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22220 # need to do runtime linking.
22221 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22222 for ld_flag in $LDFLAGS; do
22223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22224 aix_use_runtimelinking=yes
22225 break
22227 done
22229 esac
22231 exp_sym_flag='-bexport'
22232 no_entry_flag='-bnoentry'
22235 # When large executables or shared objects are built, AIX ld can
22236 # have problems creating the table of contents. If linking a library
22237 # or program results in "error TOC overflow" add -mminimal-toc to
22238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22241 archive_cmds_F77=''
22242 hardcode_direct_F77=yes
22243 hardcode_libdir_separator_F77=':'
22244 link_all_deplibs_F77=yes
22246 if test "$GCC" = yes; then
22247 case $host_os in aix4.[012]|aix4.[012].*)
22248 # We only want to do this on AIX 4.2 and lower, the check
22249 # below for broken collect2 doesn't work under 4.3+
22250 collect2name=`${CC} -print-prog-name=collect2`
22251 if test -f "$collect2name" && \
22252 strings "$collect2name" | grep resolve_lib_name >/dev/null
22253 then
22254 # We have reworked collect2
22255 hardcode_direct_F77=yes
22256 else
22257 # We have old collect2
22258 hardcode_direct_F77=unsupported
22259 # It fails to find uninstalled libraries when the uninstalled
22260 # path is not listed in the libpath. Setting hardcode_minus_L
22261 # to unsupported forces relinking
22262 hardcode_minus_L_F77=yes
22263 hardcode_libdir_flag_spec_F77='-L$libdir'
22264 hardcode_libdir_separator_F77=
22267 esac
22268 shared_flag='-shared'
22269 if test "$aix_use_runtimelinking" = yes; then
22270 shared_flag="$shared_flag "'${wl}-G'
22272 else
22273 # not using gcc
22274 if test "$host_cpu" = ia64; then
22275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22276 # chokes on -Wl,-G. The following line is correct:
22277 shared_flag='-G'
22278 else
22279 if test "$aix_use_runtimelinking" = yes; then
22280 shared_flag='${wl}-G'
22281 else
22282 shared_flag='${wl}-bM:SRE'
22287 # It seems that -bexpall does not export symbols beginning with
22288 # underscore (_), so it is better to generate a list of symbols to export.
22289 always_export_symbols_F77=yes
22290 if test "$aix_use_runtimelinking" = yes; then
22291 # Warning - without using the other runtime loading flags (-brtl),
22292 # -berok will link without error, but may produce a broken library.
22293 allow_undefined_flag_F77='-berok'
22294 # Determine the default libpath from the value encoded in an empty executable.
22295 cat >conftest.$ac_ext <<_ACEOF
22296 program main
22299 _ACEOF
22300 rm -f conftest.$ac_objext conftest$ac_exeext
22301 if { (ac_try="$ac_link"
22302 case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22305 esac
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_link") 2>conftest.er1
22308 ac_status=$?
22309 grep -v '^ *+' conftest.er1 >conftest.err
22310 rm -f conftest.er1
22311 cat conftest.err >&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } &&
22314 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22315 { (case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22318 esac
22319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_try") 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; } &&
22324 { ac_try='test -s conftest$ac_exeext'
22325 { (case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328 esac
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_try") 2>&5
22331 ac_status=$?
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; }; then
22335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22337 # Check for a 64-bit object if we didn't find anything.
22338 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; }
22339 }'`; fi
22340 else
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22347 rm -f core conftest.err conftest.$ac_objext \
22348 conftest$ac_exeext conftest.$ac_ext
22349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22351 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22352 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"
22353 else
22354 if test "$host_cpu" = ia64; then
22355 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22356 allow_undefined_flag_F77="-z nodefs"
22357 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"
22358 else
22359 # Determine the default libpath from the value encoded in an empty executable.
22360 cat >conftest.$ac_ext <<_ACEOF
22361 program main
22364 _ACEOF
22365 rm -f conftest.$ac_objext conftest$ac_exeext
22366 if { (ac_try="$ac_link"
22367 case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_link") 2>conftest.er1
22373 ac_status=$?
22374 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1
22376 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } &&
22379 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22380 { (case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_try") 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; } &&
22389 { ac_try='test -s conftest$ac_exeext'
22390 { (case "(($ac_try" in
22391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392 *) ac_try_echo=$ac_try;;
22393 esac
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_try") 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22402 # Check for a 64-bit object if we didn't find anything.
22403 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; }
22404 }'`; fi
22405 else
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22412 rm -f core conftest.err conftest.$ac_objext \
22413 conftest$ac_exeext conftest.$ac_ext
22414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22416 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22417 # Warning - without using the other run time loading flags,
22418 # -berok will link without error, but may produce a broken library.
22419 no_undefined_flag_F77=' ${wl}-bernotok'
22420 allow_undefined_flag_F77=' ${wl}-berok'
22421 # Exported symbols can be pulled into shared objects from archives
22422 whole_archive_flag_spec_F77='$convenience'
22423 archive_cmds_need_lc_F77=yes
22424 # This is similar to how AIX traditionally builds its shared libraries.
22425 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'
22430 amigaos*)
22431 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)'
22432 hardcode_libdir_flag_spec_F77='-L$libdir'
22433 hardcode_minus_L_F77=yes
22434 # see comment about different semantics on the GNU ld section
22435 ld_shlibs_F77=no
22438 bsdi[45]*)
22439 export_dynamic_flag_spec_F77=-rdynamic
22442 cygwin* | mingw* | pw32*)
22443 # When not using gcc, we currently assume that we are using
22444 # Microsoft Visual C++.
22445 # hardcode_libdir_flag_spec is actually meaningless, as there is
22446 # no search path for DLLs.
22447 hardcode_libdir_flag_spec_F77=' '
22448 allow_undefined_flag_F77=unsupported
22449 # Tell ltmain to make .lib files, not .a files.
22450 libext=lib
22451 # Tell ltmain to make .dll files, not .so files.
22452 shrext_cmds=".dll"
22453 # FIXME: Setting linknames here is a bad hack.
22454 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22455 # The linker will automatically build a .lib file if we build a DLL.
22456 old_archive_From_new_cmds_F77='true'
22457 # FIXME: Should let the user specify the lib program.
22458 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22459 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22460 enable_shared_with_static_runtimes_F77=yes
22463 darwin* | rhapsody*)
22464 case $host_os in
22465 rhapsody* | darwin1.[012])
22466 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22468 *) # Darwin 1.3 on
22469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22470 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22471 else
22472 case ${MACOSX_DEPLOYMENT_TARGET} in
22473 10.[012])
22474 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22476 10.*)
22477 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22479 esac
22482 esac
22483 archive_cmds_need_lc_F77=no
22484 hardcode_direct_F77=no
22485 hardcode_automatic_F77=yes
22486 hardcode_shlibpath_var_F77=unsupported
22487 whole_archive_flag_spec_F77=''
22488 link_all_deplibs_F77=yes
22489 if test "$GCC" = yes ; then
22490 output_verbose_link_cmd='echo'
22491 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22492 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22494 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}'
22495 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}'
22496 else
22497 case $cc_basename in
22498 xlc*)
22499 output_verbose_link_cmd='echo'
22500 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22501 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22503 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}'
22504 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}'
22507 ld_shlibs_F77=no
22509 esac
22513 dgux*)
22514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22515 hardcode_libdir_flag_spec_F77='-L$libdir'
22516 hardcode_shlibpath_var_F77=no
22519 freebsd1*)
22520 ld_shlibs_F77=no
22523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22524 # support. Future versions do this automatically, but an explicit c++rt0.o
22525 # does not break anything, and helps significantly (at the cost of a little
22526 # extra space).
22527 freebsd2.2*)
22528 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22529 hardcode_libdir_flag_spec_F77='-R$libdir'
22530 hardcode_direct_F77=yes
22531 hardcode_shlibpath_var_F77=no
22534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22535 freebsd2*)
22536 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22537 hardcode_direct_F77=yes
22538 hardcode_minus_L_F77=yes
22539 hardcode_shlibpath_var_F77=no
22542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22543 freebsd* | kfreebsd*-gnu | dragonfly*)
22544 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22545 hardcode_libdir_flag_spec_F77='-R$libdir'
22546 hardcode_direct_F77=yes
22547 hardcode_shlibpath_var_F77=no
22550 hpux9*)
22551 if test "$GCC" = yes; then
22552 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'
22553 else
22554 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'
22556 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22557 hardcode_libdir_separator_F77=:
22558 hardcode_direct_F77=yes
22560 # hardcode_minus_L: Not really in the search PATH,
22561 # but as the default location of the library.
22562 hardcode_minus_L_F77=yes
22563 export_dynamic_flag_spec_F77='${wl}-E'
22566 hpux10*)
22567 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22568 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22569 else
22570 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22572 if test "$with_gnu_ld" = no; then
22573 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22574 hardcode_libdir_separator_F77=:
22576 hardcode_direct_F77=yes
22577 export_dynamic_flag_spec_F77='${wl}-E'
22579 # hardcode_minus_L: Not really in the search PATH,
22580 # but as the default location of the library.
22581 hardcode_minus_L_F77=yes
22585 hpux11*)
22586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22587 case $host_cpu in
22588 hppa*64*)
22589 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22591 ia64*)
22592 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22595 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22597 esac
22598 else
22599 case $host_cpu in
22600 hppa*64*)
22601 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22603 ia64*)
22604 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22607 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22609 esac
22611 if test "$with_gnu_ld" = no; then
22612 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22613 hardcode_libdir_separator_F77=:
22615 case $host_cpu in
22616 hppa*64*|ia64*)
22617 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22618 hardcode_direct_F77=no
22619 hardcode_shlibpath_var_F77=no
22622 hardcode_direct_F77=yes
22623 export_dynamic_flag_spec_F77='${wl}-E'
22625 # hardcode_minus_L: Not really in the search PATH,
22626 # but as the default location of the library.
22627 hardcode_minus_L_F77=yes
22629 esac
22633 irix5* | irix6* | nonstopux*)
22634 if test "$GCC" = yes; then
22635 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'
22636 else
22637 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'
22638 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22640 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22641 hardcode_libdir_separator_F77=:
22642 link_all_deplibs_F77=yes
22645 netbsd*)
22646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22647 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22648 else
22649 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22651 hardcode_libdir_flag_spec_F77='-R$libdir'
22652 hardcode_direct_F77=yes
22653 hardcode_shlibpath_var_F77=no
22656 newsos6)
22657 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22658 hardcode_direct_F77=yes
22659 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22660 hardcode_libdir_separator_F77=:
22661 hardcode_shlibpath_var_F77=no
22664 openbsd*)
22665 hardcode_direct_F77=yes
22666 hardcode_shlibpath_var_F77=no
22667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22668 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22669 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22670 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22671 export_dynamic_flag_spec_F77='${wl}-E'
22672 else
22673 case $host_os in
22674 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22675 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22676 hardcode_libdir_flag_spec_F77='-R$libdir'
22679 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22680 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22682 esac
22686 os2*)
22687 hardcode_libdir_flag_spec_F77='-L$libdir'
22688 hardcode_minus_L_F77=yes
22689 allow_undefined_flag_F77=unsupported
22690 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'
22691 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22694 osf3*)
22695 if test "$GCC" = yes; then
22696 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22697 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'
22698 else
22699 allow_undefined_flag_F77=' -expect_unresolved \*'
22700 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'
22702 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22703 hardcode_libdir_separator_F77=:
22706 osf4* | osf5*) # as osf3* with the addition of -msym flag
22707 if test "$GCC" = yes; then
22708 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22709 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'
22710 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22711 else
22712 allow_undefined_flag_F77=' -expect_unresolved \*'
22713 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'
22714 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~
22715 $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'
22717 # Both c and cxx compiler support -rpath directly
22718 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22720 hardcode_libdir_separator_F77=:
22723 solaris*)
22724 no_undefined_flag_F77=' -z text'
22725 if test "$GCC" = yes; then
22726 wlarc='${wl}'
22727 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22728 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22729 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22730 else
22731 wlarc=''
22732 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22733 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22736 hardcode_libdir_flag_spec_F77='-R$libdir'
22737 hardcode_shlibpath_var_F77=no
22738 case $host_os in
22739 solaris2.[0-5] | solaris2.[0-5].*) ;;
22741 # The compiler driver will combine linker options so we
22742 # cannot just pass the convience library names through
22743 # without $wl, iff we do not link with $LD.
22744 # Luckily, gcc supports the same syntax we need for Sun Studio.
22745 # Supported since Solaris 2.6 (maybe 2.5.1?)
22746 case $wlarc in
22748 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22750 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' ;;
22751 esac ;;
22752 esac
22753 link_all_deplibs_F77=yes
22756 sunos4*)
22757 if test "x$host_vendor" = xsequent; then
22758 # Use $CC to link under sequent, because it throws in some extra .o
22759 # files that make .init and .fini sections work.
22760 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22761 else
22762 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22764 hardcode_libdir_flag_spec_F77='-L$libdir'
22765 hardcode_direct_F77=yes
22766 hardcode_minus_L_F77=yes
22767 hardcode_shlibpath_var_F77=no
22770 sysv4)
22771 case $host_vendor in
22772 sni)
22773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22774 hardcode_direct_F77=yes # is this really true???
22776 siemens)
22777 ## LD is ld it makes a PLAMLIB
22778 ## CC just makes a GrossModule.
22779 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22780 reload_cmds_F77='$CC -r -o $output$reload_objs'
22781 hardcode_direct_F77=no
22783 motorola)
22784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22785 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22787 esac
22788 runpath_var='LD_RUN_PATH'
22789 hardcode_shlibpath_var_F77=no
22792 sysv4.3*)
22793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22794 hardcode_shlibpath_var_F77=no
22795 export_dynamic_flag_spec_F77='-Bexport'
22798 sysv4*MP*)
22799 if test -d /usr/nec; then
22800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22801 hardcode_shlibpath_var_F77=no
22802 runpath_var=LD_RUN_PATH
22803 hardcode_runpath_var=yes
22804 ld_shlibs_F77=yes
22808 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22809 no_undefined_flag_F77='${wl}-z,text'
22810 archive_cmds_need_lc_F77=no
22811 hardcode_shlibpath_var_F77=no
22812 runpath_var='LD_RUN_PATH'
22814 if test "$GCC" = yes; then
22815 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22816 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22817 else
22818 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22819 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22823 sysv5* | sco3.2v5* | sco5v6*)
22824 # Note: We can NOT use -z defs as we might desire, because we do not
22825 # link with -lc, and that would cause any symbols used from libc to
22826 # always be unresolved, which means just about no library would
22827 # ever link correctly. If we're not using GNU ld we use -z text
22828 # though, which does catch some bad symbols but isn't as heavy-handed
22829 # as -z defs.
22830 no_undefined_flag_F77='${wl}-z,text'
22831 allow_undefined_flag_F77='${wl}-z,nodefs'
22832 archive_cmds_need_lc_F77=no
22833 hardcode_shlibpath_var_F77=no
22834 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22835 hardcode_libdir_separator_F77=':'
22836 link_all_deplibs_F77=yes
22837 export_dynamic_flag_spec_F77='${wl}-Bexport'
22838 runpath_var='LD_RUN_PATH'
22840 if test "$GCC" = yes; then
22841 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22842 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22843 else
22844 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22845 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22849 uts4*)
22850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22851 hardcode_libdir_flag_spec_F77='-L$libdir'
22852 hardcode_shlibpath_var_F77=no
22856 ld_shlibs_F77=no
22858 esac
22861 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22862 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22863 test "$ld_shlibs_F77" = no && can_build_shared=no
22866 # Do we need to explicitly link libc?
22868 case "x$archive_cmds_need_lc_F77" in
22869 x|xyes)
22870 # Assume -lc should be added
22871 archive_cmds_need_lc_F77=yes
22873 if test "$enable_shared" = yes && test "$GCC" = yes; then
22874 case $archive_cmds_F77 in
22875 *'~'*)
22876 # FIXME: we may have to deal with multi-command sequences.
22878 '$CC '*)
22879 # Test whether the compiler implicitly links with -lc since on some
22880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22881 # to ld, don't add -lc before -lgcc.
22882 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22883 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22884 $rm conftest*
22885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22888 (eval $ac_compile) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } 2>conftest.err; then
22892 soname=conftest
22893 lib=conftest
22894 libobjs=conftest.$ac_objext
22895 deplibs=
22896 wl=$lt_prog_compiler_wl_F77
22897 pic_flag=$lt_prog_compiler_pic_F77
22898 compiler_flags=-v
22899 linker_flags=-v
22900 verstring=
22901 output_objdir=.
22902 libname=conftest
22903 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22904 allow_undefined_flag_F77=
22905 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22906 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }
22910 then
22911 archive_cmds_need_lc_F77=no
22912 else
22913 archive_cmds_need_lc_F77=yes
22915 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22916 else
22917 cat conftest.err 1>&5
22919 $rm conftest*
22920 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22921 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22923 esac
22926 esac
22928 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22929 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22930 library_names_spec=
22931 libname_spec='lib$name'
22932 soname_spec=
22933 shrext_cmds=".so"
22934 postinstall_cmds=
22935 postuninstall_cmds=
22936 finish_cmds=
22937 finish_eval=
22938 shlibpath_var=
22939 shlibpath_overrides_runpath=unknown
22940 version_type=none
22941 dynamic_linker="$host_os ld.so"
22942 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22943 if test "$GCC" = yes; then
22944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22945 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22946 # if the path contains ";" then we assume it to be the separator
22947 # otherwise default to the standard path separator (i.e. ":") - it is
22948 # assumed that no part of a normal pathname contains ";" but that should
22949 # okay in the real world where ";" in dirpaths is itself problematic.
22950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22951 else
22952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22954 else
22955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22957 need_lib_prefix=unknown
22958 hardcode_into_libs=no
22960 # when you set need_version to no, make sure it does not cause -set_version
22961 # flags to be left without arguments
22962 need_version=unknown
22964 case $host_os in
22965 aix3*)
22966 version_type=linux
22967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22968 shlibpath_var=LIBPATH
22970 # AIX 3 has no versioning support, so we append a major version to the name.
22971 soname_spec='${libname}${release}${shared_ext}$major'
22974 aix4* | aix5*)
22975 version_type=linux
22976 need_lib_prefix=no
22977 need_version=no
22978 hardcode_into_libs=yes
22979 if test "$host_cpu" = ia64; then
22980 # AIX 5 supports IA64
22981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22982 shlibpath_var=LD_LIBRARY_PATH
22983 else
22984 # With GCC up to 2.95.x, collect2 would create an import file
22985 # for dependence libraries. The import file would start with
22986 # the line `#! .'. This would cause the generated library to
22987 # depend on `.', always an invalid library. This was fixed in
22988 # development snapshots of GCC prior to 3.0.
22989 case $host_os in
22990 aix4 | aix4.[01] | aix4.[01].*)
22991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22992 echo ' yes '
22993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22995 else
22996 can_build_shared=no
22999 esac
23000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23001 # soname into executable. Probably we can add versioning support to
23002 # collect2, so additional links can be useful in future.
23003 if test "$aix_use_runtimelinking" = yes; then
23004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23005 # instead of lib<name>.a to let people know that these are not
23006 # typical AIX shared libraries.
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23008 else
23009 # We preserve .a as extension for shared libraries through AIX4.2
23010 # and later when we are not doing run time linking.
23011 library_names_spec='${libname}${release}.a $libname.a'
23012 soname_spec='${libname}${release}${shared_ext}$major'
23014 shlibpath_var=LIBPATH
23018 amigaos*)
23019 library_names_spec='$libname.ixlibrary $libname.a'
23020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23021 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'
23024 beos*)
23025 library_names_spec='${libname}${shared_ext}'
23026 dynamic_linker="$host_os ld.so"
23027 shlibpath_var=LIBRARY_PATH
23030 bsdi[45]*)
23031 version_type=linux
23032 need_version=no
23033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23034 soname_spec='${libname}${release}${shared_ext}$major'
23035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23036 shlibpath_var=LD_LIBRARY_PATH
23037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23039 # the default ld.so.conf also contains /usr/contrib/lib and
23040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23041 # libtool to hard-code these into programs
23044 cygwin* | mingw* | pw32*)
23045 version_type=windows
23046 shrext_cmds=".dll"
23047 need_version=no
23048 need_lib_prefix=no
23050 case $GCC,$host_os in
23051 yes,cygwin* | yes,mingw* | yes,pw32*)
23052 library_names_spec='$libname.dll.a'
23053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23054 postinstall_cmds='base_file=`basename \${file}`~
23055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23056 dldir=$destdir/`dirname \$dlpath`~
23057 test -d \$dldir || mkdir -p \$dldir~
23058 $install_prog $dir/$dlname \$dldir/$dlname~
23059 chmod a+x \$dldir/$dlname'
23060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23061 dlpath=$dir/\$dldll~
23062 $rm \$dlpath'
23063 shlibpath_overrides_runpath=yes
23065 case $host_os in
23066 cygwin*)
23067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23069 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23071 mingw*)
23072 # MinGW DLLs use traditional 'lib' prefix
23073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23075 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23076 # It is most probably a Windows format PATH printed by
23077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23078 # path with ; separators, and with drive letters. We can handle the
23079 # drive letters (cygwin fileutils understands them), so leave them,
23080 # especially as we might pass files found there to a mingw objdump,
23081 # which wouldn't understand a cygwinified path. Ahh.
23082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23083 else
23084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23087 pw32*)
23088 # pw32 DLLs use 'pw' prefix rather than 'lib'
23089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23091 esac
23095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23097 esac
23098 dynamic_linker='Win32 ld.exe'
23099 # FIXME: first we should search . and the directory the executable is in
23100 shlibpath_var=PATH
23103 darwin* | rhapsody*)
23104 dynamic_linker="$host_os dyld"
23105 version_type=darwin
23106 need_lib_prefix=no
23107 need_version=no
23108 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23109 soname_spec='${libname}${release}${major}$shared_ext'
23110 shlibpath_overrides_runpath=yes
23111 shlibpath_var=DYLD_LIBRARY_PATH
23112 shrext_cmds='.dylib'
23113 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23114 if test "$GCC" = yes; then
23115 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"`
23116 else
23117 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23122 dgux*)
23123 version_type=linux
23124 need_lib_prefix=no
23125 need_version=no
23126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23127 soname_spec='${libname}${release}${shared_ext}$major'
23128 shlibpath_var=LD_LIBRARY_PATH
23131 freebsd1*)
23132 dynamic_linker=no
23135 kfreebsd*-gnu)
23136 version_type=linux
23137 need_lib_prefix=no
23138 need_version=no
23139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23140 soname_spec='${libname}${release}${shared_ext}$major'
23141 shlibpath_var=LD_LIBRARY_PATH
23142 shlibpath_overrides_runpath=no
23143 hardcode_into_libs=yes
23144 dynamic_linker='GNU ld.so'
23147 freebsd* | dragonfly*)
23148 # DragonFly does not have aout. When/if they implement a new
23149 # versioning mechanism, adjust this.
23150 if test -x /usr/bin/objformat; then
23151 objformat=`/usr/bin/objformat`
23152 else
23153 case $host_os in
23154 freebsd[123]*) objformat=aout ;;
23155 *) objformat=elf ;;
23156 esac
23158 version_type=freebsd-$objformat
23159 case $version_type in
23160 freebsd-elf*)
23161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23162 need_version=no
23163 need_lib_prefix=no
23165 freebsd-*)
23166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23167 need_version=yes
23169 esac
23170 shlibpath_var=LD_LIBRARY_PATH
23171 case $host_os in
23172 freebsd2*)
23173 shlibpath_overrides_runpath=yes
23175 freebsd3.[01]* | freebsdelf3.[01]*)
23176 shlibpath_overrides_runpath=yes
23177 hardcode_into_libs=yes
23179 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23180 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23181 shlibpath_overrides_runpath=no
23182 hardcode_into_libs=yes
23184 freebsd*) # from 4.6 on
23185 shlibpath_overrides_runpath=yes
23186 hardcode_into_libs=yes
23188 esac
23191 gnu*)
23192 version_type=linux
23193 need_lib_prefix=no
23194 need_version=no
23195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23196 soname_spec='${libname}${release}${shared_ext}$major'
23197 shlibpath_var=LD_LIBRARY_PATH
23198 hardcode_into_libs=yes
23201 hpux9* | hpux10* | hpux11*)
23202 # Give a soname corresponding to the major version so that dld.sl refuses to
23203 # link against other versions.
23204 version_type=sunos
23205 need_lib_prefix=no
23206 need_version=no
23207 case $host_cpu in
23208 ia64*)
23209 shrext_cmds='.so'
23210 hardcode_into_libs=yes
23211 dynamic_linker="$host_os dld.so"
23212 shlibpath_var=LD_LIBRARY_PATH
23213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23215 soname_spec='${libname}${release}${shared_ext}$major'
23216 if test "X$HPUX_IA64_MODE" = X32; then
23217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23218 else
23219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23223 hppa*64*)
23224 shrext_cmds='.sl'
23225 hardcode_into_libs=yes
23226 dynamic_linker="$host_os dld.sl"
23227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23230 soname_spec='${libname}${release}${shared_ext}$major'
23231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23235 shrext_cmds='.sl'
23236 dynamic_linker="$host_os dld.sl"
23237 shlibpath_var=SHLIB_PATH
23238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23240 soname_spec='${libname}${release}${shared_ext}$major'
23242 esac
23243 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23244 postinstall_cmds='chmod 555 $lib'
23247 interix3*)
23248 version_type=linux
23249 need_lib_prefix=no
23250 need_version=no
23251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23252 soname_spec='${libname}${release}${shared_ext}$major'
23253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23254 shlibpath_var=LD_LIBRARY_PATH
23255 shlibpath_overrides_runpath=no
23256 hardcode_into_libs=yes
23259 irix5* | irix6* | nonstopux*)
23260 case $host_os in
23261 nonstopux*) version_type=nonstopux ;;
23263 if test "$lt_cv_prog_gnu_ld" = yes; then
23264 version_type=linux
23265 else
23266 version_type=irix
23267 fi ;;
23268 esac
23269 need_lib_prefix=no
23270 need_version=no
23271 soname_spec='${libname}${release}${shared_ext}$major'
23272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23273 case $host_os in
23274 irix5* | nonstopux*)
23275 libsuff= shlibsuff=
23278 case $LD in # libtool.m4 will add one of these switches to LD
23279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23280 libsuff= shlibsuff= libmagic=32-bit;;
23281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23282 libsuff=32 shlibsuff=N32 libmagic=N32;;
23283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23285 *) libsuff= shlibsuff= libmagic=never-match;;
23286 esac
23288 esac
23289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23290 shlibpath_overrides_runpath=no
23291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23293 hardcode_into_libs=yes
23296 # No shared lib support for Linux oldld, aout, or coff.
23297 linux*oldld* | linux*aout* | linux*coff*)
23298 dynamic_linker=no
23301 # This must be Linux ELF.
23302 linux*)
23303 version_type=linux
23304 need_lib_prefix=no
23305 need_version=no
23306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23307 soname_spec='${libname}${release}${shared_ext}$major'
23308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23309 shlibpath_var=LD_LIBRARY_PATH
23310 shlibpath_overrides_runpath=no
23311 # This implies no fast_install, which is unacceptable.
23312 # Some rework will be needed to allow for fast_install
23313 # before this can be enabled.
23314 hardcode_into_libs=yes
23316 # Append ld.so.conf contents to the search path
23317 if test -f /etc/ld.so.conf; then
23318 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' ' '`
23319 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23322 # We used to test for /lib/ld.so.1 and disable shared libraries on
23323 # powerpc, because MkLinux only supported shared libraries with the
23324 # GNU dynamic linker. Since this was broken with cross compilers,
23325 # most powerpc-linux boxes support dynamic linking these days and
23326 # people can always --disable-shared, the test was removed, and we
23327 # assume the GNU/Linux dynamic linker is in use.
23328 dynamic_linker='GNU/Linux ld.so'
23331 knetbsd*-gnu)
23332 version_type=linux
23333 need_lib_prefix=no
23334 need_version=no
23335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23336 soname_spec='${libname}${release}${shared_ext}$major'
23337 shlibpath_var=LD_LIBRARY_PATH
23338 shlibpath_overrides_runpath=no
23339 hardcode_into_libs=yes
23340 dynamic_linker='GNU ld.so'
23343 netbsd*)
23344 version_type=sunos
23345 need_lib_prefix=no
23346 need_version=no
23347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23350 dynamic_linker='NetBSD (a.out) ld.so'
23351 else
23352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23353 soname_spec='${libname}${release}${shared_ext}$major'
23354 dynamic_linker='NetBSD ld.elf_so'
23356 shlibpath_var=LD_LIBRARY_PATH
23357 shlibpath_overrides_runpath=yes
23358 hardcode_into_libs=yes
23361 newsos6)
23362 version_type=linux
23363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23364 shlibpath_var=LD_LIBRARY_PATH
23365 shlibpath_overrides_runpath=yes
23368 nto-qnx*)
23369 version_type=linux
23370 need_lib_prefix=no
23371 need_version=no
23372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23373 soname_spec='${libname}${release}${shared_ext}$major'
23374 shlibpath_var=LD_LIBRARY_PATH
23375 shlibpath_overrides_runpath=yes
23378 openbsd*)
23379 version_type=sunos
23380 sys_lib_dlsearch_path_spec="/usr/lib"
23381 need_lib_prefix=no
23382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23383 case $host_os in
23384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23385 *) need_version=no ;;
23386 esac
23387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23389 shlibpath_var=LD_LIBRARY_PATH
23390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23391 case $host_os in
23392 openbsd2.[89] | openbsd2.[89].*)
23393 shlibpath_overrides_runpath=no
23396 shlibpath_overrides_runpath=yes
23398 esac
23399 else
23400 shlibpath_overrides_runpath=yes
23404 os2*)
23405 libname_spec='$name'
23406 shrext_cmds=".dll"
23407 need_lib_prefix=no
23408 library_names_spec='$libname${shared_ext} $libname.a'
23409 dynamic_linker='OS/2 ld.exe'
23410 shlibpath_var=LIBPATH
23413 osf3* | osf4* | osf5*)
23414 version_type=osf
23415 need_lib_prefix=no
23416 need_version=no
23417 soname_spec='${libname}${release}${shared_ext}$major'
23418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23419 shlibpath_var=LD_LIBRARY_PATH
23420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23424 solaris*)
23425 version_type=linux
23426 need_lib_prefix=no
23427 need_version=no
23428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23429 soname_spec='${libname}${release}${shared_ext}$major'
23430 shlibpath_var=LD_LIBRARY_PATH
23431 shlibpath_overrides_runpath=yes
23432 hardcode_into_libs=yes
23433 # ldd complains unless libraries are executable
23434 postinstall_cmds='chmod +x $lib'
23437 sunos4*)
23438 version_type=sunos
23439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23441 shlibpath_var=LD_LIBRARY_PATH
23442 shlibpath_overrides_runpath=yes
23443 if test "$with_gnu_ld" = yes; then
23444 need_lib_prefix=no
23446 need_version=yes
23449 sysv4 | sysv4.3*)
23450 version_type=linux
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'
23453 shlibpath_var=LD_LIBRARY_PATH
23454 case $host_vendor in
23455 sni)
23456 shlibpath_overrides_runpath=no
23457 need_lib_prefix=no
23458 export_dynamic_flag_spec='${wl}-Blargedynsym'
23459 runpath_var=LD_RUN_PATH
23461 siemens)
23462 need_lib_prefix=no
23464 motorola)
23465 need_lib_prefix=no
23466 need_version=no
23467 shlibpath_overrides_runpath=no
23468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23470 esac
23473 sysv4*MP*)
23474 if test -d /usr/nec ;then
23475 version_type=linux
23476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23477 soname_spec='$libname${shared_ext}.$major'
23478 shlibpath_var=LD_LIBRARY_PATH
23482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23483 version_type=freebsd-elf
23484 need_lib_prefix=no
23485 need_version=no
23486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23487 soname_spec='${libname}${release}${shared_ext}$major'
23488 shlibpath_var=LD_LIBRARY_PATH
23489 hardcode_into_libs=yes
23490 if test "$with_gnu_ld" = yes; then
23491 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23492 shlibpath_overrides_runpath=no
23493 else
23494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23495 shlibpath_overrides_runpath=yes
23496 case $host_os in
23497 sco3.2v5*)
23498 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23500 esac
23502 sys_lib_dlsearch_path_spec='/usr/lib'
23505 uts4*)
23506 version_type=linux
23507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23508 soname_spec='${libname}${release}${shared_ext}$major'
23509 shlibpath_var=LD_LIBRARY_PATH
23513 dynamic_linker=no
23515 esac
23516 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23517 echo "${ECHO_T}$dynamic_linker" >&6; }
23518 test "$dynamic_linker" = no && can_build_shared=no
23520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23521 if test "$GCC" = yes; then
23522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23525 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23527 hardcode_action_F77=
23528 if test -n "$hardcode_libdir_flag_spec_F77" || \
23529 test -n "$runpath_var_F77" || \
23530 test "X$hardcode_automatic_F77" = "Xyes" ; then
23532 # We can hardcode non-existant directories.
23533 if test "$hardcode_direct_F77" != no &&
23534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23535 # have to relink, otherwise we might link with an installed library
23536 # when we should be linking with a yet-to-be-installed one
23537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23538 test "$hardcode_minus_L_F77" != no; then
23539 # Linking always hardcodes the temporary library directory.
23540 hardcode_action_F77=relink
23541 else
23542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23543 hardcode_action_F77=immediate
23545 else
23546 # We cannot hardcode anything, or else we can only hardcode existing
23547 # directories.
23548 hardcode_action_F77=unsupported
23550 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23551 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23553 if test "$hardcode_action_F77" = relink; then
23554 # Fast installation is not supported
23555 enable_fast_install=no
23556 elif test "$shlibpath_overrides_runpath" = yes ||
23557 test "$enable_shared" = no; then
23558 # Fast installation is not necessary
23559 enable_fast_install=needless
23563 # The else clause should only fire when bootstrapping the
23564 # libtool distribution, otherwise you forgot to ship ltmain.sh
23565 # with your package, and you will get complaints that there are
23566 # no rules to generate ltmain.sh.
23567 if test -f "$ltmain"; then
23568 # See if we are running on zsh, and set the options which allow our commands through
23569 # without removal of \ escapes.
23570 if test -n "${ZSH_VERSION+set}" ; then
23571 setopt NO_GLOB_SUBST
23573 # Now quote all the things that may contain metacharacters while being
23574 # careful not to overquote the AC_SUBSTed values. We take copies of the
23575 # variables and quote the copies for generation of the libtool script.
23576 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23577 SED SHELL STRIP \
23578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23580 deplibs_check_method reload_flag reload_cmds need_locks \
23581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23582 lt_cv_sys_global_symbol_to_c_name_address \
23583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23584 old_postinstall_cmds old_postuninstall_cmds \
23585 compiler_F77 \
23586 CC_F77 \
23587 LD_F77 \
23588 lt_prog_compiler_wl_F77 \
23589 lt_prog_compiler_pic_F77 \
23590 lt_prog_compiler_static_F77 \
23591 lt_prog_compiler_no_builtin_flag_F77 \
23592 export_dynamic_flag_spec_F77 \
23593 thread_safe_flag_spec_F77 \
23594 whole_archive_flag_spec_F77 \
23595 enable_shared_with_static_runtimes_F77 \
23596 old_archive_cmds_F77 \
23597 old_archive_from_new_cmds_F77 \
23598 predep_objects_F77 \
23599 postdep_objects_F77 \
23600 predeps_F77 \
23601 postdeps_F77 \
23602 compiler_lib_search_path_F77 \
23603 archive_cmds_F77 \
23604 archive_expsym_cmds_F77 \
23605 postinstall_cmds_F77 \
23606 postuninstall_cmds_F77 \
23607 old_archive_from_expsyms_cmds_F77 \
23608 allow_undefined_flag_F77 \
23609 no_undefined_flag_F77 \
23610 export_symbols_cmds_F77 \
23611 hardcode_libdir_flag_spec_F77 \
23612 hardcode_libdir_flag_spec_ld_F77 \
23613 hardcode_libdir_separator_F77 \
23614 hardcode_automatic_F77 \
23615 module_cmds_F77 \
23616 module_expsym_cmds_F77 \
23617 lt_cv_prog_compiler_c_o_F77 \
23618 exclude_expsyms_F77 \
23619 include_expsyms_F77; do
23621 case $var in
23622 old_archive_cmds_F77 | \
23623 old_archive_from_new_cmds_F77 | \
23624 archive_cmds_F77 | \
23625 archive_expsym_cmds_F77 | \
23626 module_cmds_F77 | \
23627 module_expsym_cmds_F77 | \
23628 old_archive_from_expsyms_cmds_F77 | \
23629 export_symbols_cmds_F77 | \
23630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23631 postinstall_cmds | postuninstall_cmds | \
23632 old_postinstall_cmds | old_postuninstall_cmds | \
23633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23634 # Double-quote double-evaled strings.
23635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23640 esac
23641 done
23643 case $lt_echo in
23644 *'\$0 --fallback-echo"')
23645 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23647 esac
23649 cfgfile="$ofile"
23651 cat <<__EOF__ >> "$cfgfile"
23652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23656 # Shell to use when invoking shell scripts.
23657 SHELL=$lt_SHELL
23659 # Whether or not to build shared libraries.
23660 build_libtool_libs=$enable_shared
23662 # Whether or not to build static libraries.
23663 build_old_libs=$enable_static
23665 # Whether or not to add -lc for building shared libraries.
23666 build_libtool_need_lc=$archive_cmds_need_lc_F77
23668 # Whether or not to disallow shared libs when runtime libs are static
23669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23671 # Whether or not to optimize for fast installation.
23672 fast_install=$enable_fast_install
23674 # The host system.
23675 host_alias=$host_alias
23676 host=$host
23677 host_os=$host_os
23679 # The build system.
23680 build_alias=$build_alias
23681 build=$build
23682 build_os=$build_os
23684 # An echo program that does not interpret backslashes.
23685 echo=$lt_echo
23687 # The archiver.
23688 AR=$lt_AR
23689 AR_FLAGS=$lt_AR_FLAGS
23691 # A C compiler.
23692 LTCC=$lt_LTCC
23694 # LTCC compiler flags.
23695 LTCFLAGS=$lt_LTCFLAGS
23697 # A language-specific compiler.
23698 CC=$lt_compiler_F77
23700 # Is the compiler the GNU C compiler?
23701 with_gcc=$GCC_F77
23703 # An ERE matcher.
23704 EGREP=$lt_EGREP
23706 # The linker used to build libraries.
23707 LD=$lt_LD_F77
23709 # Whether we need hard or soft links.
23710 LN_S=$lt_LN_S
23712 # A BSD-compatible nm program.
23713 NM=$lt_NM
23715 # A symbol stripping program
23716 STRIP=$lt_STRIP
23718 # Used to examine libraries when file_magic_cmd begins "file"
23719 MAGIC_CMD=$MAGIC_CMD
23721 # Used on cygwin: DLL creation program.
23722 DLLTOOL="$DLLTOOL"
23724 # Used on cygwin: object dumper.
23725 OBJDUMP="$OBJDUMP"
23727 # Used on cygwin: assembler.
23728 AS="$AS"
23730 # The name of the directory that contains temporary libtool files.
23731 objdir=$objdir
23733 # How to create reloadable object files.
23734 reload_flag=$lt_reload_flag
23735 reload_cmds=$lt_reload_cmds
23737 # How to pass a linker flag through the compiler.
23738 wl=$lt_lt_prog_compiler_wl_F77
23740 # Object file suffix (normally "o").
23741 objext="$ac_objext"
23743 # Old archive suffix (normally "a").
23744 libext="$libext"
23746 # Shared library suffix (normally ".so").
23747 shrext_cmds='$shrext_cmds'
23749 # Executable file suffix (normally "").
23750 exeext="$exeext"
23752 # Additional compiler flags for building library objects.
23753 pic_flag=$lt_lt_prog_compiler_pic_F77
23754 pic_mode=$pic_mode
23756 # What is the maximum length of a command?
23757 max_cmd_len=$lt_cv_sys_max_cmd_len
23759 # Does compiler simultaneously support -c and -o options?
23760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23762 # Must we lock files when doing compilation?
23763 need_locks=$lt_need_locks
23765 # Do we need the lib prefix for modules?
23766 need_lib_prefix=$need_lib_prefix
23768 # Do we need a version for libraries?
23769 need_version=$need_version
23771 # Whether dlopen is supported.
23772 dlopen_support=$enable_dlopen
23774 # Whether dlopen of programs is supported.
23775 dlopen_self=$enable_dlopen_self
23777 # Whether dlopen of statically linked programs is supported.
23778 dlopen_self_static=$enable_dlopen_self_static
23780 # Compiler flag to prevent dynamic linking.
23781 link_static_flag=$lt_lt_prog_compiler_static_F77
23783 # Compiler flag to turn off builtin functions.
23784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23786 # Compiler flag to allow reflexive dlopens.
23787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23789 # Compiler flag to generate shared objects directly from archives.
23790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23792 # Compiler flag to generate thread-safe objects.
23793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23795 # Library versioning type.
23796 version_type=$version_type
23798 # Format of library name prefix.
23799 libname_spec=$lt_libname_spec
23801 # List of archive names. First name is the real one, the rest are links.
23802 # The last name is the one that the linker finds with -lNAME.
23803 library_names_spec=$lt_library_names_spec
23805 # The coded name of the library, if different from the real name.
23806 soname_spec=$lt_soname_spec
23808 # Commands used to build and install an old-style archive.
23809 RANLIB=$lt_RANLIB
23810 old_archive_cmds=$lt_old_archive_cmds_F77
23811 old_postinstall_cmds=$lt_old_postinstall_cmds
23812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23814 # Create an old-style archive from a shared archive.
23815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23817 # Create a temporary old-style archive to link instead of a shared archive.
23818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23820 # Commands used to build and install a shared archive.
23821 archive_cmds=$lt_archive_cmds_F77
23822 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23823 postinstall_cmds=$lt_postinstall_cmds
23824 postuninstall_cmds=$lt_postuninstall_cmds
23826 # Commands used to build a loadable module (assumed same as above if empty)
23827 module_cmds=$lt_module_cmds_F77
23828 module_expsym_cmds=$lt_module_expsym_cmds_F77
23830 # Commands to strip libraries.
23831 old_striplib=$lt_old_striplib
23832 striplib=$lt_striplib
23834 # Dependencies to place before the objects being linked to create a
23835 # shared library.
23836 predep_objects=$lt_predep_objects_F77
23838 # Dependencies to place after the objects being linked to create a
23839 # shared library.
23840 postdep_objects=$lt_postdep_objects_F77
23842 # Dependencies to place before the objects being linked to create a
23843 # shared library.
23844 predeps=$lt_predeps_F77
23846 # Dependencies to place after the objects being linked to create a
23847 # shared library.
23848 postdeps=$lt_postdeps_F77
23850 # The library search path used internally by the compiler when linking
23851 # a shared library.
23852 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23854 # Method to check whether dependent libraries are shared objects.
23855 deplibs_check_method=$lt_deplibs_check_method
23857 # Command to use when deplibs_check_method == file_magic.
23858 file_magic_cmd=$lt_file_magic_cmd
23860 # Flag that allows shared libraries with undefined symbols to be built.
23861 allow_undefined_flag=$lt_allow_undefined_flag_F77
23863 # Flag that forces no undefined symbols.
23864 no_undefined_flag=$lt_no_undefined_flag_F77
23866 # Commands used to finish a libtool library installation in a directory.
23867 finish_cmds=$lt_finish_cmds
23869 # Same as above, but a single script fragment to be evaled but not shown.
23870 finish_eval=$lt_finish_eval
23872 # Take the output of nm and produce a listing of raw symbols and C names.
23873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23875 # Transform the output of nm in a proper C declaration
23876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23878 # Transform the output of nm in a C name address pair
23879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23881 # This is the shared library runtime path variable.
23882 runpath_var=$runpath_var
23884 # This is the shared library path variable.
23885 shlibpath_var=$shlibpath_var
23887 # Is shlibpath searched before the hard-coded library search path?
23888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23890 # How to hardcode a shared library path into an executable.
23891 hardcode_action=$hardcode_action_F77
23893 # Whether we should hardcode library paths into libraries.
23894 hardcode_into_libs=$hardcode_into_libs
23896 # Flag to hardcode \$libdir into a binary during linking.
23897 # This must work even if \$libdir does not exist.
23898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23900 # If ld is used when linking, flag to hardcode \$libdir into
23901 # a binary during linking. This must work even if \$libdir does
23902 # not exist.
23903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23905 # Whether we need a single -rpath flag with a separated argument.
23906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23909 # resulting binary.
23910 hardcode_direct=$hardcode_direct_F77
23912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23913 # resulting binary.
23914 hardcode_minus_L=$hardcode_minus_L_F77
23916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23917 # the resulting binary.
23918 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23920 # Set to yes if building a shared library automatically hardcodes DIR into the library
23921 # and all subsequent libraries and executables linked against it.
23922 hardcode_automatic=$hardcode_automatic_F77
23924 # Variables whose values should be saved in libtool wrapper scripts and
23925 # restored at relink time.
23926 variables_saved_for_relink="$variables_saved_for_relink"
23928 # Whether libtool must link a program against all its dependency libraries.
23929 link_all_deplibs=$link_all_deplibs_F77
23931 # Compile-time system search path for libraries
23932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23934 # Run-time system search path for libraries
23935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23937 # Fix the shell variable \$srcfile for the compiler.
23938 fix_srcfile_path="$fix_srcfile_path_F77"
23940 # Set to yes if exported symbols are required.
23941 always_export_symbols=$always_export_symbols_F77
23943 # The commands to list exported symbols.
23944 export_symbols_cmds=$lt_export_symbols_cmds_F77
23946 # The commands to extract the exported symbol list from a shared archive.
23947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23949 # Symbols that should not be listed in the preloaded symbols.
23950 exclude_expsyms=$lt_exclude_expsyms_F77
23952 # Symbols that must always be exported.
23953 include_expsyms=$lt_include_expsyms_F77
23955 # ### END LIBTOOL TAG CONFIG: $tagname
23957 __EOF__
23960 else
23961 # If there is no Makefile yet, we rely on a make rule to execute
23962 # `config.status --recheck' to rerun these tests and create the
23963 # libtool script then.
23964 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23965 if test -f "$ltmain_in"; then
23966 test -f Makefile && make "$ltmain"
23971 ac_ext=c
23972 ac_cpp='$CPP $CPPFLAGS'
23973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23977 CC="$lt_save_CC"
23979 else
23980 tagname=""
23984 GCJ)
23985 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23986 ac_ext=c
23987 ac_cpp='$CPP $CPPFLAGS'
23988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23993 # Source file extension for Java test sources.
23994 ac_ext=java
23996 # Object file extension for compiled Java test sources.
23997 objext=o
23998 objext_GCJ=$objext
24000 # Code to be used in simple compile tests
24001 lt_simple_compile_test_code="class foo {}\n"
24003 # Code to be used in simple link tests
24004 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24008 # If no C compiler was specified, use CC.
24009 LTCC=${LTCC-"$CC"}
24011 # If no C compiler flags were specified, use CFLAGS.
24012 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24014 # Allow CC to be a program name with arguments.
24015 compiler=$CC
24018 # save warnings/boilerplate of simple test code
24019 ac_outfile=conftest.$ac_objext
24020 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24022 _lt_compiler_boilerplate=`cat conftest.err`
24023 $rm conftest*
24025 ac_outfile=conftest.$ac_objext
24026 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24028 _lt_linker_boilerplate=`cat conftest.err`
24029 $rm conftest*
24032 # Allow CC to be a program name with arguments.
24033 lt_save_CC="$CC"
24034 CC=${GCJ-"gcj"}
24035 compiler=$CC
24036 compiler_GCJ=$CC
24037 for cc_temp in $compiler""; do
24038 case $cc_temp in
24039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24041 \-*) ;;
24042 *) break;;
24043 esac
24044 done
24045 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24048 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24049 archive_cmds_need_lc_GCJ=no
24051 old_archive_cmds_GCJ=$old_archive_cmds
24054 lt_prog_compiler_no_builtin_flag_GCJ=
24056 if test "$GCC" = yes; then
24057 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24060 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24061 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24062 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 else
24065 lt_cv_prog_compiler_rtti_exceptions=no
24066 ac_outfile=conftest.$ac_objext
24067 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24068 lt_compiler_flag="-fno-rtti -fno-exceptions"
24069 # Insert the option either (1) after the last *FLAGS variable, or
24070 # (2) before a word containing "conftest.", or (3) at the end.
24071 # Note that $ac_compile itself does not contain backslashes and begins
24072 # with a dollar sign (not a hyphen), so the echo should work correctly.
24073 # The option is referenced via a variable to avoid confusing sed.
24074 lt_compile=`echo "$ac_compile" | $SED \
24075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24077 -e 's:$: $lt_compiler_flag:'`
24078 (eval echo "\"\$as_me:24083: $lt_compile\"" >&5)
24079 (eval "$lt_compile" 2>conftest.err)
24080 ac_status=$?
24081 cat conftest.err >&5
24082 echo "$as_me:24087: \$? = $ac_status" >&5
24083 if (exit $ac_status) && test -s "$ac_outfile"; then
24084 # The compiler can only warn and ignore the option if not recognized
24085 # So say no if there are warnings other than the usual output.
24086 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24089 lt_cv_prog_compiler_rtti_exceptions=yes
24092 $rm conftest*
24095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24096 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24098 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24099 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24100 else
24106 lt_prog_compiler_wl_GCJ=
24107 lt_prog_compiler_pic_GCJ=
24108 lt_prog_compiler_static_GCJ=
24110 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24111 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24113 if test "$GCC" = yes; then
24114 lt_prog_compiler_wl_GCJ='-Wl,'
24115 lt_prog_compiler_static_GCJ='-static'
24117 case $host_os in
24118 aix*)
24119 # All AIX code is PIC.
24120 if test "$host_cpu" = ia64; then
24121 # AIX 5 now supports IA64 processor
24122 lt_prog_compiler_static_GCJ='-Bstatic'
24126 amigaos*)
24127 # FIXME: we need at least 68020 code to build shared libraries, but
24128 # adding the `-m68020' flag to GCC prevents building anything better,
24129 # like `-m68040'.
24130 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24133 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24134 # PIC is the default for these OSes.
24137 mingw* | pw32* | os2*)
24138 # This hack is so that the source file can tell whether it is being
24139 # built for inclusion in a dll (and should export symbols for example).
24140 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24143 darwin* | rhapsody*)
24144 # PIC is the default on this platform
24145 # Common symbols not allowed in MH_DYLIB files
24146 lt_prog_compiler_pic_GCJ='-fno-common'
24149 interix3*)
24150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24151 # Instead, we relocate shared libraries at runtime.
24154 msdosdjgpp*)
24155 # Just because we use GCC doesn't mean we suddenly get shared libraries
24156 # on systems that don't support them.
24157 lt_prog_compiler_can_build_shared_GCJ=no
24158 enable_shared=no
24161 sysv4*MP*)
24162 if test -d /usr/nec; then
24163 lt_prog_compiler_pic_GCJ=-Kconform_pic
24167 hpux*)
24168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24169 # not for PA HP-UX.
24170 case $host_cpu in
24171 hppa*64*|ia64*)
24172 # +Z the default
24175 lt_prog_compiler_pic_GCJ='-fPIC'
24177 esac
24181 lt_prog_compiler_pic_GCJ='-fPIC'
24183 esac
24184 else
24185 # PORTME Check for flag to pass linker flags through the system compiler.
24186 case $host_os in
24187 aix*)
24188 lt_prog_compiler_wl_GCJ='-Wl,'
24189 if test "$host_cpu" = ia64; then
24190 # AIX 5 now supports IA64 processor
24191 lt_prog_compiler_static_GCJ='-Bstatic'
24192 else
24193 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24196 darwin*)
24197 # PIC is the default on this platform
24198 # Common symbols not allowed in MH_DYLIB files
24199 case $cc_basename in
24200 xlc*)
24201 lt_prog_compiler_pic_GCJ='-qnocommon'
24202 lt_prog_compiler_wl_GCJ='-Wl,'
24204 esac
24207 mingw* | pw32* | os2*)
24208 # This hack is so that the source file can tell whether it is being
24209 # built for inclusion in a dll (and should export symbols for example).
24210 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24213 hpux9* | hpux10* | hpux11*)
24214 lt_prog_compiler_wl_GCJ='-Wl,'
24215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24216 # not for PA HP-UX.
24217 case $host_cpu in
24218 hppa*64*|ia64*)
24219 # +Z the default
24222 lt_prog_compiler_pic_GCJ='+Z'
24224 esac
24225 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24226 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24229 irix5* | irix6* | nonstopux*)
24230 lt_prog_compiler_wl_GCJ='-Wl,'
24231 # PIC (with -KPIC) is the default.
24232 lt_prog_compiler_static_GCJ='-non_shared'
24235 newsos6)
24236 lt_prog_compiler_pic_GCJ='-KPIC'
24237 lt_prog_compiler_static_GCJ='-Bstatic'
24240 linux*)
24241 case $cc_basename in
24242 icc* | ecc*)
24243 lt_prog_compiler_wl_GCJ='-Wl,'
24244 lt_prog_compiler_pic_GCJ='-KPIC'
24245 lt_prog_compiler_static_GCJ='-static'
24247 pgcc* | pgf77* | pgf90* | pgf95*)
24248 # Portland Group compilers (*not* the Pentium gcc compiler,
24249 # which looks to be a dead project)
24250 lt_prog_compiler_wl_GCJ='-Wl,'
24251 lt_prog_compiler_pic_GCJ='-fpic'
24252 lt_prog_compiler_static_GCJ='-Bstatic'
24254 ccc*)
24255 lt_prog_compiler_wl_GCJ='-Wl,'
24256 # All Alpha code is PIC.
24257 lt_prog_compiler_static_GCJ='-non_shared'
24259 esac
24262 osf3* | osf4* | osf5*)
24263 lt_prog_compiler_wl_GCJ='-Wl,'
24264 # All OSF/1 code is PIC.
24265 lt_prog_compiler_static_GCJ='-non_shared'
24268 solaris*)
24269 lt_prog_compiler_pic_GCJ='-KPIC'
24270 lt_prog_compiler_static_GCJ='-Bstatic'
24271 case $cc_basename in
24272 f77* | f90* | f95*)
24273 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24275 lt_prog_compiler_wl_GCJ='-Wl,';;
24276 esac
24279 sunos4*)
24280 lt_prog_compiler_wl_GCJ='-Qoption ld '
24281 lt_prog_compiler_pic_GCJ='-PIC'
24282 lt_prog_compiler_static_GCJ='-Bstatic'
24285 sysv4 | sysv4.2uw2* | sysv4.3*)
24286 lt_prog_compiler_wl_GCJ='-Wl,'
24287 lt_prog_compiler_pic_GCJ='-KPIC'
24288 lt_prog_compiler_static_GCJ='-Bstatic'
24291 sysv4*MP*)
24292 if test -d /usr/nec ;then
24293 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24294 lt_prog_compiler_static_GCJ='-Bstatic'
24298 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24299 lt_prog_compiler_wl_GCJ='-Wl,'
24300 lt_prog_compiler_pic_GCJ='-KPIC'
24301 lt_prog_compiler_static_GCJ='-Bstatic'
24304 unicos*)
24305 lt_prog_compiler_wl_GCJ='-Wl,'
24306 lt_prog_compiler_can_build_shared_GCJ=no
24309 uts4*)
24310 lt_prog_compiler_pic_GCJ='-pic'
24311 lt_prog_compiler_static_GCJ='-Bstatic'
24315 lt_prog_compiler_can_build_shared_GCJ=no
24317 esac
24320 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24321 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24324 # Check to make sure the PIC flag actually works.
24326 if test -n "$lt_prog_compiler_pic_GCJ"; then
24328 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24329 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24330 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24332 else
24333 lt_prog_compiler_pic_works_GCJ=no
24334 ac_outfile=conftest.$ac_objext
24335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24336 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24337 # Insert the option either (1) after the last *FLAGS variable, or
24338 # (2) before a word containing "conftest.", or (3) at the end.
24339 # Note that $ac_compile itself does not contain backslashes and begins
24340 # with a dollar sign (not a hyphen), so the echo should work correctly.
24341 # The option is referenced via a variable to avoid confusing sed.
24342 lt_compile=`echo "$ac_compile" | $SED \
24343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24345 -e 's:$: $lt_compiler_flag:'`
24346 (eval echo "\"\$as_me:24351: $lt_compile\"" >&5)
24347 (eval "$lt_compile" 2>conftest.err)
24348 ac_status=$?
24349 cat conftest.err >&5
24350 echo "$as_me:24355: \$? = $ac_status" >&5
24351 if (exit $ac_status) && test -s "$ac_outfile"; then
24352 # The compiler can only warn and ignore the option if not recognized
24353 # So say no if there are warnings other than the usual output.
24354 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24357 lt_prog_compiler_pic_works_GCJ=yes
24360 $rm conftest*
24363 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24364 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24366 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24367 case $lt_prog_compiler_pic_GCJ in
24368 "" | " "*) ;;
24369 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24370 esac
24371 else
24372 lt_prog_compiler_pic_GCJ=
24373 lt_prog_compiler_can_build_shared_GCJ=no
24377 case $host_os in
24378 # For platforms which do not support PIC, -DPIC is meaningless:
24379 *djgpp*)
24380 lt_prog_compiler_pic_GCJ=
24383 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24385 esac
24388 # Check to make sure the static flag actually works.
24390 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24391 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24392 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24393 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24394 echo $ECHO_N "(cached) $ECHO_C" >&6
24395 else
24396 lt_prog_compiler_static_works_GCJ=no
24397 save_LDFLAGS="$LDFLAGS"
24398 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24399 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24401 # The linker can only warn and ignore the option if not recognized
24402 # So say no if there are warnings
24403 if test -s conftest.err; then
24404 # Append any errors to the config.log.
24405 cat conftest.err 1>&5
24406 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24408 if diff conftest.exp conftest.er2 >/dev/null; then
24409 lt_prog_compiler_static_works_GCJ=yes
24411 else
24412 lt_prog_compiler_static_works_GCJ=yes
24415 $rm conftest*
24416 LDFLAGS="$save_LDFLAGS"
24419 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24420 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24422 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24424 else
24425 lt_prog_compiler_static_GCJ=
24429 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24430 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24431 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24433 else
24434 lt_cv_prog_compiler_c_o_GCJ=no
24435 $rm -r conftest 2>/dev/null
24436 mkdir conftest
24437 cd conftest
24438 mkdir out
24439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24441 lt_compiler_flag="-o out/conftest2.$ac_objext"
24442 # Insert the option either (1) after the last *FLAGS variable, or
24443 # (2) before a word containing "conftest.", or (3) at the end.
24444 # Note that $ac_compile itself does not contain backslashes and begins
24445 # with a dollar sign (not a hyphen), so the echo should work correctly.
24446 lt_compile=`echo "$ac_compile" | $SED \
24447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24449 -e 's:$: $lt_compiler_flag:'`
24450 (eval echo "\"\$as_me:24455: $lt_compile\"" >&5)
24451 (eval "$lt_compile" 2>out/conftest.err)
24452 ac_status=$?
24453 cat out/conftest.err >&5
24454 echo "$as_me:24459: \$? = $ac_status" >&5
24455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24456 then
24457 # The compiler can only warn and ignore the option if not recognized
24458 # So say no if there are warnings
24459 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24462 lt_cv_prog_compiler_c_o_GCJ=yes
24465 chmod u+w . 2>&5
24466 $rm conftest*
24467 # SGI C++ compiler will create directory out/ii_files/ for
24468 # template instantiation
24469 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24470 $rm out/* && rmdir out
24471 cd ..
24472 rmdir conftest
24473 $rm conftest*
24476 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24477 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24480 hard_links="nottested"
24481 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24482 # do not overwrite the value of need_locks provided by the user
24483 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24484 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24485 hard_links=yes
24486 $rm conftest*
24487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24488 touch conftest.a
24489 ln conftest.a conftest.b 2>&5 || hard_links=no
24490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24491 { echo "$as_me:$LINENO: result: $hard_links" >&5
24492 echo "${ECHO_T}$hard_links" >&6; }
24493 if test "$hard_links" = no; then
24494 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24495 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24496 need_locks=warn
24498 else
24499 need_locks=no
24502 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24505 runpath_var=
24506 allow_undefined_flag_GCJ=
24507 enable_shared_with_static_runtimes_GCJ=no
24508 archive_cmds_GCJ=
24509 archive_expsym_cmds_GCJ=
24510 old_archive_From_new_cmds_GCJ=
24511 old_archive_from_expsyms_cmds_GCJ=
24512 export_dynamic_flag_spec_GCJ=
24513 whole_archive_flag_spec_GCJ=
24514 thread_safe_flag_spec_GCJ=
24515 hardcode_libdir_flag_spec_GCJ=
24516 hardcode_libdir_flag_spec_ld_GCJ=
24517 hardcode_libdir_separator_GCJ=
24518 hardcode_direct_GCJ=no
24519 hardcode_minus_L_GCJ=no
24520 hardcode_shlibpath_var_GCJ=unsupported
24521 link_all_deplibs_GCJ=unknown
24522 hardcode_automatic_GCJ=no
24523 module_cmds_GCJ=
24524 module_expsym_cmds_GCJ=
24525 always_export_symbols_GCJ=no
24526 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24527 # include_expsyms should be a list of space-separated symbols to be *always*
24528 # included in the symbol list
24529 include_expsyms_GCJ=
24530 # exclude_expsyms can be an extended regexp of symbols to exclude
24531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24533 # as well as any symbol that contains `d'.
24534 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24536 # platforms (ab)use it in PIC code, but their linkers get confused if
24537 # the symbol is explicitly referenced. Since portable code cannot
24538 # rely on this symbol name, it's probably fine to never include it in
24539 # preloaded symbol tables.
24540 extract_expsyms_cmds=
24541 # Just being paranoid about ensuring that cc_basename is set.
24542 for cc_temp in $compiler""; do
24543 case $cc_temp in
24544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24546 \-*) ;;
24547 *) break;;
24548 esac
24549 done
24550 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24552 case $host_os in
24553 cygwin* | mingw* | pw32*)
24554 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24555 # When not using gcc, we currently assume that we are using
24556 # Microsoft Visual C++.
24557 if test "$GCC" != yes; then
24558 with_gnu_ld=no
24561 interix*)
24562 # we just hope/assume this is gcc and not c89 (= MSVC++)
24563 with_gnu_ld=yes
24565 openbsd*)
24566 with_gnu_ld=no
24568 esac
24570 ld_shlibs_GCJ=yes
24571 if test "$with_gnu_ld" = yes; then
24572 # If archive_cmds runs LD, not CC, wlarc should be empty
24573 wlarc='${wl}'
24575 # Set some defaults for GNU ld with shared library support. These
24576 # are reset later if shared libraries are not supported. Putting them
24577 # here allows them to be overridden if necessary.
24578 runpath_var=LD_RUN_PATH
24579 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24580 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24581 # ancient GNU ld didn't support --whole-archive et. al.
24582 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24583 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24584 else
24585 whole_archive_flag_spec_GCJ=
24587 supports_anon_versioning=no
24588 case `$LD -v 2>/dev/null` in
24589 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24590 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24591 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24592 *\ 2.11.*) ;; # other 2.11 versions
24593 *) supports_anon_versioning=yes ;;
24594 esac
24596 # See if GNU ld supports shared libraries.
24597 case $host_os in
24598 aix3* | aix4* | aix5*)
24599 # On AIX/PPC, the GNU linker is very broken
24600 if test "$host_cpu" != ia64; then
24601 ld_shlibs_GCJ=no
24602 cat <<EOF 1>&2
24604 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24605 *** to be unable to reliably create shared libraries on AIX.
24606 *** Therefore, libtool is disabling shared libraries support. If you
24607 *** really care for shared libraries, you may want to modify your PATH
24608 *** so that a non-GNU linker is found, and then restart.
24614 amigaos*)
24615 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)'
24616 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24617 hardcode_minus_L_GCJ=yes
24619 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24620 # that the semantics of dynamic libraries on AmigaOS, at least up
24621 # to version 4, is to share data among multiple programs linked
24622 # with the same dynamic library. Since this doesn't match the
24623 # behavior of shared libraries on other platforms, we can't use
24624 # them.
24625 ld_shlibs_GCJ=no
24628 beos*)
24629 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24630 allow_undefined_flag_GCJ=unsupported
24631 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24632 # support --undefined. This deserves some investigation. FIXME
24633 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24634 else
24635 ld_shlibs_GCJ=no
24639 cygwin* | mingw* | pw32*)
24640 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24641 # as there is no search path for DLLs.
24642 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24643 allow_undefined_flag_GCJ=unsupported
24644 always_export_symbols_GCJ=no
24645 enable_shared_with_static_runtimes_GCJ=yes
24646 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24648 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24649 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24650 # If the export-symbols file already is a .def file (1st line
24651 # is EXPORTS), use it as is; otherwise, prepend...
24652 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24653 cp $export_symbols $output_objdir/$soname.def;
24654 else
24655 echo EXPORTS > $output_objdir/$soname.def;
24656 cat $export_symbols >> $output_objdir/$soname.def;
24658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24659 else
24660 ld_shlibs_GCJ=no
24664 interix3*)
24665 hardcode_direct_GCJ=no
24666 hardcode_shlibpath_var_GCJ=no
24667 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24668 export_dynamic_flag_spec_GCJ='${wl}-E'
24669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24670 # Instead, shared libraries are loaded at an image base (0x10000000 by
24671 # default) and relocated if they conflict, which is a slow very memory
24672 # consuming and fragmenting process. To avoid this, we pick a random,
24673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24674 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24675 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'
24676 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'
24679 linux*)
24680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24681 tmp_addflag=
24682 case $cc_basename,$host_cpu in
24683 pgcc*) # Portland Group C compiler
24684 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'
24685 tmp_addflag=' $pic_flag'
24687 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24688 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'
24689 tmp_addflag=' $pic_flag -Mnomain' ;;
24690 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24691 tmp_addflag=' -i_dynamic' ;;
24692 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24693 tmp_addflag=' -i_dynamic -nofor_main' ;;
24694 ifc* | ifort*) # Intel Fortran compiler
24695 tmp_addflag=' -nofor_main' ;;
24696 esac
24697 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24699 if test $supports_anon_versioning = yes; then
24700 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24702 $echo "local: *; };" >> $output_objdir/$libname.ver~
24703 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24705 else
24706 ld_shlibs_GCJ=no
24710 netbsd*)
24711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24712 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24713 wlarc=
24714 else
24715 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24716 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24720 solaris*)
24721 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24722 ld_shlibs_GCJ=no
24723 cat <<EOF 1>&2
24725 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24726 *** create shared libraries on Solaris systems. Therefore, libtool
24727 *** is disabling shared libraries support. We urge you to upgrade GNU
24728 *** binutils to release 2.9.1 or newer. Another option is to modify
24729 *** your PATH or compiler configuration so that the native linker is
24730 *** used, and then restart.
24733 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24734 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24735 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24736 else
24737 ld_shlibs_GCJ=no
24741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24742 case `$LD -v 2>&1` in
24743 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24744 ld_shlibs_GCJ=no
24745 cat <<_LT_EOF 1>&2
24747 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24748 *** reliably create shared libraries on SCO systems. Therefore, libtool
24749 *** is disabling shared libraries support. We urge you to upgrade GNU
24750 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24751 *** your PATH or compiler configuration so that the native linker is
24752 *** used, and then restart.
24754 _LT_EOF
24757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24758 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24759 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24760 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24761 else
24762 ld_shlibs_GCJ=no
24765 esac
24768 sunos4*)
24769 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24770 wlarc=
24771 hardcode_direct_GCJ=yes
24772 hardcode_shlibpath_var_GCJ=no
24776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24777 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24778 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24779 else
24780 ld_shlibs_GCJ=no
24783 esac
24785 if test "$ld_shlibs_GCJ" = no; then
24786 runpath_var=
24787 hardcode_libdir_flag_spec_GCJ=
24788 export_dynamic_flag_spec_GCJ=
24789 whole_archive_flag_spec_GCJ=
24791 else
24792 # PORTME fill in a description of your system's linker (not GNU ld)
24793 case $host_os in
24794 aix3*)
24795 allow_undefined_flag_GCJ=unsupported
24796 always_export_symbols_GCJ=yes
24797 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'
24798 # Note: this linker hardcodes the directories in LIBPATH if there
24799 # are no directories specified by -L.
24800 hardcode_minus_L_GCJ=yes
24801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24802 # Neither direct hardcoding nor static linking is supported with a
24803 # broken collect2.
24804 hardcode_direct_GCJ=unsupported
24808 aix4* | aix5*)
24809 if test "$host_cpu" = ia64; then
24810 # On IA64, the linker does run time linking by default, so we don't
24811 # have to do anything special.
24812 aix_use_runtimelinking=no
24813 exp_sym_flag='-Bexport'
24814 no_entry_flag=""
24815 else
24816 # If we're using GNU nm, then we don't want the "-C" option.
24817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24818 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24819 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'
24820 else
24821 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'
24823 aix_use_runtimelinking=no
24825 # Test if we are trying to use run time linking or normal
24826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24827 # need to do runtime linking.
24828 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24829 for ld_flag in $LDFLAGS; do
24830 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24831 aix_use_runtimelinking=yes
24832 break
24834 done
24836 esac
24838 exp_sym_flag='-bexport'
24839 no_entry_flag='-bnoentry'
24842 # When large executables or shared objects are built, AIX ld can
24843 # have problems creating the table of contents. If linking a library
24844 # or program results in "error TOC overflow" add -mminimal-toc to
24845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24848 archive_cmds_GCJ=''
24849 hardcode_direct_GCJ=yes
24850 hardcode_libdir_separator_GCJ=':'
24851 link_all_deplibs_GCJ=yes
24853 if test "$GCC" = yes; then
24854 case $host_os in aix4.[012]|aix4.[012].*)
24855 # We only want to do this on AIX 4.2 and lower, the check
24856 # below for broken collect2 doesn't work under 4.3+
24857 collect2name=`${CC} -print-prog-name=collect2`
24858 if test -f "$collect2name" && \
24859 strings "$collect2name" | grep resolve_lib_name >/dev/null
24860 then
24861 # We have reworked collect2
24862 hardcode_direct_GCJ=yes
24863 else
24864 # We have old collect2
24865 hardcode_direct_GCJ=unsupported
24866 # It fails to find uninstalled libraries when the uninstalled
24867 # path is not listed in the libpath. Setting hardcode_minus_L
24868 # to unsupported forces relinking
24869 hardcode_minus_L_GCJ=yes
24870 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24871 hardcode_libdir_separator_GCJ=
24874 esac
24875 shared_flag='-shared'
24876 if test "$aix_use_runtimelinking" = yes; then
24877 shared_flag="$shared_flag "'${wl}-G'
24879 else
24880 # not using gcc
24881 if test "$host_cpu" = ia64; then
24882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24883 # chokes on -Wl,-G. The following line is correct:
24884 shared_flag='-G'
24885 else
24886 if test "$aix_use_runtimelinking" = yes; then
24887 shared_flag='${wl}-G'
24888 else
24889 shared_flag='${wl}-bM:SRE'
24894 # It seems that -bexpall does not export symbols beginning with
24895 # underscore (_), so it is better to generate a list of symbols to export.
24896 always_export_symbols_GCJ=yes
24897 if test "$aix_use_runtimelinking" = yes; then
24898 # Warning - without using the other runtime loading flags (-brtl),
24899 # -berok will link without error, but may produce a broken library.
24900 allow_undefined_flag_GCJ='-berok'
24901 # Determine the default libpath from the value encoded in an empty executable.
24902 cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h. */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24910 main ()
24914 return 0;
24916 _ACEOF
24917 rm -f conftest.$ac_objext conftest$ac_exeext
24918 if { (ac_try="$ac_link"
24919 case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24922 esac
24923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_link") 2>conftest.er1
24925 ac_status=$?
24926 grep -v '^ *+' conftest.er1 >conftest.err
24927 rm -f conftest.er1
24928 cat conftest.err >&5
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); } &&
24931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24932 { (case "(($ac_try" in
24933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24934 *) ac_try_echo=$ac_try;;
24935 esac
24936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24937 (eval "$ac_try") 2>&5
24938 ac_status=$?
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; } &&
24941 { ac_try='test -s conftest$ac_exeext'
24942 { (case "(($ac_try" in
24943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944 *) ac_try_echo=$ac_try;;
24945 esac
24946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24947 (eval "$ac_try") 2>&5
24948 ac_status=$?
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; }; then
24952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24954 # Check for a 64-bit object if we didn't find anything.
24955 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; }
24956 }'`; fi
24957 else
24958 echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24964 rm -f core conftest.err conftest.$ac_objext \
24965 conftest$ac_exeext conftest.$ac_ext
24966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24968 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24969 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"
24970 else
24971 if test "$host_cpu" = ia64; then
24972 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24973 allow_undefined_flag_GCJ="-z nodefs"
24974 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"
24975 else
24976 # Determine the default libpath from the value encoded in an empty executable.
24977 cat >conftest.$ac_ext <<_ACEOF
24978 /* confdefs.h. */
24979 _ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24985 main ()
24989 return 0;
24991 _ACEOF
24992 rm -f conftest.$ac_objext conftest$ac_exeext
24993 if { (ac_try="$ac_link"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_link") 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } &&
25006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25007 { (case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25010 esac
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012 (eval "$ac_try") 2>&5
25013 ac_status=$?
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; } &&
25016 { ac_try='test -s conftest$ac_exeext'
25017 { (case "(($ac_try" in
25018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25019 *) ac_try_echo=$ac_try;;
25020 esac
25021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25022 (eval "$ac_try") 2>&5
25023 ac_status=$?
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; }; then
25027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25029 # Check for a 64-bit object if we didn't find anything.
25030 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; }
25031 }'`; fi
25032 else
25033 echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25039 rm -f core conftest.err conftest.$ac_objext \
25040 conftest$ac_exeext conftest.$ac_ext
25041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25043 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25044 # Warning - without using the other run time loading flags,
25045 # -berok will link without error, but may produce a broken library.
25046 no_undefined_flag_GCJ=' ${wl}-bernotok'
25047 allow_undefined_flag_GCJ=' ${wl}-berok'
25048 # Exported symbols can be pulled into shared objects from archives
25049 whole_archive_flag_spec_GCJ='$convenience'
25050 archive_cmds_need_lc_GCJ=yes
25051 # This is similar to how AIX traditionally builds its shared libraries.
25052 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'
25057 amigaos*)
25058 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)'
25059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25060 hardcode_minus_L_GCJ=yes
25061 # see comment about different semantics on the GNU ld section
25062 ld_shlibs_GCJ=no
25065 bsdi[45]*)
25066 export_dynamic_flag_spec_GCJ=-rdynamic
25069 cygwin* | mingw* | pw32*)
25070 # When not using gcc, we currently assume that we are using
25071 # Microsoft Visual C++.
25072 # hardcode_libdir_flag_spec is actually meaningless, as there is
25073 # no search path for DLLs.
25074 hardcode_libdir_flag_spec_GCJ=' '
25075 allow_undefined_flag_GCJ=unsupported
25076 # Tell ltmain to make .lib files, not .a files.
25077 libext=lib
25078 # Tell ltmain to make .dll files, not .so files.
25079 shrext_cmds=".dll"
25080 # FIXME: Setting linknames here is a bad hack.
25081 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25082 # The linker will automatically build a .lib file if we build a DLL.
25083 old_archive_From_new_cmds_GCJ='true'
25084 # FIXME: Should let the user specify the lib program.
25085 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25086 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25087 enable_shared_with_static_runtimes_GCJ=yes
25090 darwin* | rhapsody*)
25091 case $host_os in
25092 rhapsody* | darwin1.[012])
25093 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25095 *) # Darwin 1.3 on
25096 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25097 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25098 else
25099 case ${MACOSX_DEPLOYMENT_TARGET} in
25100 10.[012])
25101 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25103 10.*)
25104 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25106 esac
25109 esac
25110 archive_cmds_need_lc_GCJ=no
25111 hardcode_direct_GCJ=no
25112 hardcode_automatic_GCJ=yes
25113 hardcode_shlibpath_var_GCJ=unsupported
25114 whole_archive_flag_spec_GCJ=''
25115 link_all_deplibs_GCJ=yes
25116 if test "$GCC" = yes ; then
25117 output_verbose_link_cmd='echo'
25118 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25119 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25121 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}'
25122 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}'
25123 else
25124 case $cc_basename in
25125 xlc*)
25126 output_verbose_link_cmd='echo'
25127 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25128 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25130 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}'
25131 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}'
25134 ld_shlibs_GCJ=no
25136 esac
25140 dgux*)
25141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25142 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25143 hardcode_shlibpath_var_GCJ=no
25146 freebsd1*)
25147 ld_shlibs_GCJ=no
25150 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25151 # support. Future versions do this automatically, but an explicit c++rt0.o
25152 # does not break anything, and helps significantly (at the cost of a little
25153 # extra space).
25154 freebsd2.2*)
25155 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25156 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25157 hardcode_direct_GCJ=yes
25158 hardcode_shlibpath_var_GCJ=no
25161 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25162 freebsd2*)
25163 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25164 hardcode_direct_GCJ=yes
25165 hardcode_minus_L_GCJ=yes
25166 hardcode_shlibpath_var_GCJ=no
25169 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25170 freebsd* | kfreebsd*-gnu | dragonfly*)
25171 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25172 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25173 hardcode_direct_GCJ=yes
25174 hardcode_shlibpath_var_GCJ=no
25177 hpux9*)
25178 if test "$GCC" = yes; then
25179 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'
25180 else
25181 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'
25183 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25184 hardcode_libdir_separator_GCJ=:
25185 hardcode_direct_GCJ=yes
25187 # hardcode_minus_L: Not really in the search PATH,
25188 # but as the default location of the library.
25189 hardcode_minus_L_GCJ=yes
25190 export_dynamic_flag_spec_GCJ='${wl}-E'
25193 hpux10*)
25194 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25195 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25196 else
25197 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25199 if test "$with_gnu_ld" = no; then
25200 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25201 hardcode_libdir_separator_GCJ=:
25203 hardcode_direct_GCJ=yes
25204 export_dynamic_flag_spec_GCJ='${wl}-E'
25206 # hardcode_minus_L: Not really in the search PATH,
25207 # but as the default location of the library.
25208 hardcode_minus_L_GCJ=yes
25212 hpux11*)
25213 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25214 case $host_cpu in
25215 hppa*64*)
25216 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25218 ia64*)
25219 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25222 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25224 esac
25225 else
25226 case $host_cpu in
25227 hppa*64*)
25228 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25230 ia64*)
25231 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25234 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25236 esac
25238 if test "$with_gnu_ld" = no; then
25239 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25240 hardcode_libdir_separator_GCJ=:
25242 case $host_cpu in
25243 hppa*64*|ia64*)
25244 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25245 hardcode_direct_GCJ=no
25246 hardcode_shlibpath_var_GCJ=no
25249 hardcode_direct_GCJ=yes
25250 export_dynamic_flag_spec_GCJ='${wl}-E'
25252 # hardcode_minus_L: Not really in the search PATH,
25253 # but as the default location of the library.
25254 hardcode_minus_L_GCJ=yes
25256 esac
25260 irix5* | irix6* | nonstopux*)
25261 if test "$GCC" = yes; then
25262 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'
25263 else
25264 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'
25265 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25267 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25268 hardcode_libdir_separator_GCJ=:
25269 link_all_deplibs_GCJ=yes
25272 netbsd*)
25273 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25274 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25275 else
25276 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25278 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25279 hardcode_direct_GCJ=yes
25280 hardcode_shlibpath_var_GCJ=no
25283 newsos6)
25284 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25285 hardcode_direct_GCJ=yes
25286 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25287 hardcode_libdir_separator_GCJ=:
25288 hardcode_shlibpath_var_GCJ=no
25291 openbsd*)
25292 hardcode_direct_GCJ=yes
25293 hardcode_shlibpath_var_GCJ=no
25294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25295 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25296 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25297 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25298 export_dynamic_flag_spec_GCJ='${wl}-E'
25299 else
25300 case $host_os in
25301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25302 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25303 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25306 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25307 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25309 esac
25313 os2*)
25314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25315 hardcode_minus_L_GCJ=yes
25316 allow_undefined_flag_GCJ=unsupported
25317 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'
25318 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25321 osf3*)
25322 if test "$GCC" = yes; then
25323 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25324 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'
25325 else
25326 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25327 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'
25329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25330 hardcode_libdir_separator_GCJ=:
25333 osf4* | osf5*) # as osf3* with the addition of -msym flag
25334 if test "$GCC" = yes; then
25335 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25336 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'
25337 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25338 else
25339 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25340 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'
25341 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~
25342 $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'
25344 # Both c and cxx compiler support -rpath directly
25345 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25347 hardcode_libdir_separator_GCJ=:
25350 solaris*)
25351 no_undefined_flag_GCJ=' -z text'
25352 if test "$GCC" = yes; then
25353 wlarc='${wl}'
25354 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25355 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25356 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25357 else
25358 wlarc=''
25359 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25360 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25363 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25364 hardcode_shlibpath_var_GCJ=no
25365 case $host_os in
25366 solaris2.[0-5] | solaris2.[0-5].*) ;;
25368 # The compiler driver will combine linker options so we
25369 # cannot just pass the convience library names through
25370 # without $wl, iff we do not link with $LD.
25371 # Luckily, gcc supports the same syntax we need for Sun Studio.
25372 # Supported since Solaris 2.6 (maybe 2.5.1?)
25373 case $wlarc in
25375 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25377 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' ;;
25378 esac ;;
25379 esac
25380 link_all_deplibs_GCJ=yes
25383 sunos4*)
25384 if test "x$host_vendor" = xsequent; then
25385 # Use $CC to link under sequent, because it throws in some extra .o
25386 # files that make .init and .fini sections work.
25387 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25388 else
25389 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25392 hardcode_direct_GCJ=yes
25393 hardcode_minus_L_GCJ=yes
25394 hardcode_shlibpath_var_GCJ=no
25397 sysv4)
25398 case $host_vendor in
25399 sni)
25400 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25401 hardcode_direct_GCJ=yes # is this really true???
25403 siemens)
25404 ## LD is ld it makes a PLAMLIB
25405 ## CC just makes a GrossModule.
25406 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25407 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25408 hardcode_direct_GCJ=no
25410 motorola)
25411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25412 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25414 esac
25415 runpath_var='LD_RUN_PATH'
25416 hardcode_shlibpath_var_GCJ=no
25419 sysv4.3*)
25420 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25421 hardcode_shlibpath_var_GCJ=no
25422 export_dynamic_flag_spec_GCJ='-Bexport'
25425 sysv4*MP*)
25426 if test -d /usr/nec; then
25427 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25428 hardcode_shlibpath_var_GCJ=no
25429 runpath_var=LD_RUN_PATH
25430 hardcode_runpath_var=yes
25431 ld_shlibs_GCJ=yes
25435 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25436 no_undefined_flag_GCJ='${wl}-z,text'
25437 archive_cmds_need_lc_GCJ=no
25438 hardcode_shlibpath_var_GCJ=no
25439 runpath_var='LD_RUN_PATH'
25441 if test "$GCC" = yes; then
25442 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25443 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25444 else
25445 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25446 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25450 sysv5* | sco3.2v5* | sco5v6*)
25451 # Note: We can NOT use -z defs as we might desire, because we do not
25452 # link with -lc, and that would cause any symbols used from libc to
25453 # always be unresolved, which means just about no library would
25454 # ever link correctly. If we're not using GNU ld we use -z text
25455 # though, which does catch some bad symbols but isn't as heavy-handed
25456 # as -z defs.
25457 no_undefined_flag_GCJ='${wl}-z,text'
25458 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25459 archive_cmds_need_lc_GCJ=no
25460 hardcode_shlibpath_var_GCJ=no
25461 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25462 hardcode_libdir_separator_GCJ=':'
25463 link_all_deplibs_GCJ=yes
25464 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25465 runpath_var='LD_RUN_PATH'
25467 if test "$GCC" = yes; then
25468 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25469 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25470 else
25471 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25472 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25476 uts4*)
25477 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25479 hardcode_shlibpath_var_GCJ=no
25483 ld_shlibs_GCJ=no
25485 esac
25488 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25489 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25490 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25493 # Do we need to explicitly link libc?
25495 case "x$archive_cmds_need_lc_GCJ" in
25496 x|xyes)
25497 # Assume -lc should be added
25498 archive_cmds_need_lc_GCJ=yes
25500 if test "$enable_shared" = yes && test "$GCC" = yes; then
25501 case $archive_cmds_GCJ in
25502 *'~'*)
25503 # FIXME: we may have to deal with multi-command sequences.
25505 '$CC '*)
25506 # Test whether the compiler implicitly links with -lc since on some
25507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25508 # to ld, don't add -lc before -lgcc.
25509 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25510 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25511 $rm conftest*
25512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25515 (eval $ac_compile) 2>&5
25516 ac_status=$?
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } 2>conftest.err; then
25519 soname=conftest
25520 lib=conftest
25521 libobjs=conftest.$ac_objext
25522 deplibs=
25523 wl=$lt_prog_compiler_wl_GCJ
25524 pic_flag=$lt_prog_compiler_pic_GCJ
25525 compiler_flags=-v
25526 linker_flags=-v
25527 verstring=
25528 output_objdir=.
25529 libname=conftest
25530 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25531 allow_undefined_flag_GCJ=
25532 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25533 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }
25537 then
25538 archive_cmds_need_lc_GCJ=no
25539 else
25540 archive_cmds_need_lc_GCJ=yes
25542 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25543 else
25544 cat conftest.err 1>&5
25546 $rm conftest*
25547 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25548 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25550 esac
25553 esac
25555 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25556 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25557 library_names_spec=
25558 libname_spec='lib$name'
25559 soname_spec=
25560 shrext_cmds=".so"
25561 postinstall_cmds=
25562 postuninstall_cmds=
25563 finish_cmds=
25564 finish_eval=
25565 shlibpath_var=
25566 shlibpath_overrides_runpath=unknown
25567 version_type=none
25568 dynamic_linker="$host_os ld.so"
25569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25570 if test "$GCC" = yes; then
25571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25572 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25573 # if the path contains ";" then we assume it to be the separator
25574 # otherwise default to the standard path separator (i.e. ":") - it is
25575 # assumed that no part of a normal pathname contains ";" but that should
25576 # okay in the real world where ";" in dirpaths is itself problematic.
25577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25578 else
25579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25581 else
25582 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25584 need_lib_prefix=unknown
25585 hardcode_into_libs=no
25587 # when you set need_version to no, make sure it does not cause -set_version
25588 # flags to be left without arguments
25589 need_version=unknown
25591 case $host_os in
25592 aix3*)
25593 version_type=linux
25594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25595 shlibpath_var=LIBPATH
25597 # AIX 3 has no versioning support, so we append a major version to the name.
25598 soname_spec='${libname}${release}${shared_ext}$major'
25601 aix4* | aix5*)
25602 version_type=linux
25603 need_lib_prefix=no
25604 need_version=no
25605 hardcode_into_libs=yes
25606 if test "$host_cpu" = ia64; then
25607 # AIX 5 supports IA64
25608 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25609 shlibpath_var=LD_LIBRARY_PATH
25610 else
25611 # With GCC up to 2.95.x, collect2 would create an import file
25612 # for dependence libraries. The import file would start with
25613 # the line `#! .'. This would cause the generated library to
25614 # depend on `.', always an invalid library. This was fixed in
25615 # development snapshots of GCC prior to 3.0.
25616 case $host_os in
25617 aix4 | aix4.[01] | aix4.[01].*)
25618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25619 echo ' yes '
25620 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25622 else
25623 can_build_shared=no
25626 esac
25627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25628 # soname into executable. Probably we can add versioning support to
25629 # collect2, so additional links can be useful in future.
25630 if test "$aix_use_runtimelinking" = yes; then
25631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25632 # instead of lib<name>.a to let people know that these are not
25633 # typical AIX shared libraries.
25634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635 else
25636 # We preserve .a as extension for shared libraries through AIX4.2
25637 # and later when we are not doing run time linking.
25638 library_names_spec='${libname}${release}.a $libname.a'
25639 soname_spec='${libname}${release}${shared_ext}$major'
25641 shlibpath_var=LIBPATH
25645 amigaos*)
25646 library_names_spec='$libname.ixlibrary $libname.a'
25647 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25648 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'
25651 beos*)
25652 library_names_spec='${libname}${shared_ext}'
25653 dynamic_linker="$host_os ld.so"
25654 shlibpath_var=LIBRARY_PATH
25657 bsdi[45]*)
25658 version_type=linux
25659 need_version=no
25660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25661 soname_spec='${libname}${release}${shared_ext}$major'
25662 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25663 shlibpath_var=LD_LIBRARY_PATH
25664 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25665 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25666 # the default ld.so.conf also contains /usr/contrib/lib and
25667 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25668 # libtool to hard-code these into programs
25671 cygwin* | mingw* | pw32*)
25672 version_type=windows
25673 shrext_cmds=".dll"
25674 need_version=no
25675 need_lib_prefix=no
25677 case $GCC,$host_os in
25678 yes,cygwin* | yes,mingw* | yes,pw32*)
25679 library_names_spec='$libname.dll.a'
25680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25681 postinstall_cmds='base_file=`basename \${file}`~
25682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25683 dldir=$destdir/`dirname \$dlpath`~
25684 test -d \$dldir || mkdir -p \$dldir~
25685 $install_prog $dir/$dlname \$dldir/$dlname~
25686 chmod a+x \$dldir/$dlname'
25687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25688 dlpath=$dir/\$dldll~
25689 $rm \$dlpath'
25690 shlibpath_overrides_runpath=yes
25692 case $host_os in
25693 cygwin*)
25694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25696 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25698 mingw*)
25699 # MinGW DLLs use traditional 'lib' prefix
25700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25702 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25703 # It is most probably a Windows format PATH printed by
25704 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25705 # path with ; separators, and with drive letters. We can handle the
25706 # drive letters (cygwin fileutils understands them), so leave them,
25707 # especially as we might pass files found there to a mingw objdump,
25708 # which wouldn't understand a cygwinified path. Ahh.
25709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25710 else
25711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25714 pw32*)
25715 # pw32 DLLs use 'pw' prefix rather than 'lib'
25716 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25718 esac
25722 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25724 esac
25725 dynamic_linker='Win32 ld.exe'
25726 # FIXME: first we should search . and the directory the executable is in
25727 shlibpath_var=PATH
25730 darwin* | rhapsody*)
25731 dynamic_linker="$host_os dyld"
25732 version_type=darwin
25733 need_lib_prefix=no
25734 need_version=no
25735 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25736 soname_spec='${libname}${release}${major}$shared_ext'
25737 shlibpath_overrides_runpath=yes
25738 shlibpath_var=DYLD_LIBRARY_PATH
25739 shrext_cmds='.dylib'
25740 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25741 if test "$GCC" = yes; then
25742 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"`
25743 else
25744 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25746 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25749 dgux*)
25750 version_type=linux
25751 need_lib_prefix=no
25752 need_version=no
25753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25754 soname_spec='${libname}${release}${shared_ext}$major'
25755 shlibpath_var=LD_LIBRARY_PATH
25758 freebsd1*)
25759 dynamic_linker=no
25762 kfreebsd*-gnu)
25763 version_type=linux
25764 need_lib_prefix=no
25765 need_version=no
25766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25767 soname_spec='${libname}${release}${shared_ext}$major'
25768 shlibpath_var=LD_LIBRARY_PATH
25769 shlibpath_overrides_runpath=no
25770 hardcode_into_libs=yes
25771 dynamic_linker='GNU ld.so'
25774 freebsd* | dragonfly*)
25775 # DragonFly does not have aout. When/if they implement a new
25776 # versioning mechanism, adjust this.
25777 if test -x /usr/bin/objformat; then
25778 objformat=`/usr/bin/objformat`
25779 else
25780 case $host_os in
25781 freebsd[123]*) objformat=aout ;;
25782 *) objformat=elf ;;
25783 esac
25785 version_type=freebsd-$objformat
25786 case $version_type in
25787 freebsd-elf*)
25788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25789 need_version=no
25790 need_lib_prefix=no
25792 freebsd-*)
25793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25794 need_version=yes
25796 esac
25797 shlibpath_var=LD_LIBRARY_PATH
25798 case $host_os in
25799 freebsd2*)
25800 shlibpath_overrides_runpath=yes
25802 freebsd3.[01]* | freebsdelf3.[01]*)
25803 shlibpath_overrides_runpath=yes
25804 hardcode_into_libs=yes
25806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25808 shlibpath_overrides_runpath=no
25809 hardcode_into_libs=yes
25811 freebsd*) # from 4.6 on
25812 shlibpath_overrides_runpath=yes
25813 hardcode_into_libs=yes
25815 esac
25818 gnu*)
25819 version_type=linux
25820 need_lib_prefix=no
25821 need_version=no
25822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25823 soname_spec='${libname}${release}${shared_ext}$major'
25824 shlibpath_var=LD_LIBRARY_PATH
25825 hardcode_into_libs=yes
25828 hpux9* | hpux10* | hpux11*)
25829 # Give a soname corresponding to the major version so that dld.sl refuses to
25830 # link against other versions.
25831 version_type=sunos
25832 need_lib_prefix=no
25833 need_version=no
25834 case $host_cpu in
25835 ia64*)
25836 shrext_cmds='.so'
25837 hardcode_into_libs=yes
25838 dynamic_linker="$host_os dld.so"
25839 shlibpath_var=LD_LIBRARY_PATH
25840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25842 soname_spec='${libname}${release}${shared_ext}$major'
25843 if test "X$HPUX_IA64_MODE" = X32; then
25844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25845 else
25846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25850 hppa*64*)
25851 shrext_cmds='.sl'
25852 hardcode_into_libs=yes
25853 dynamic_linker="$host_os dld.sl"
25854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25857 soname_spec='${libname}${release}${shared_ext}$major'
25858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25862 shrext_cmds='.sl'
25863 dynamic_linker="$host_os dld.sl"
25864 shlibpath_var=SHLIB_PATH
25865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25867 soname_spec='${libname}${release}${shared_ext}$major'
25869 esac
25870 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25871 postinstall_cmds='chmod 555 $lib'
25874 interix3*)
25875 version_type=linux
25876 need_lib_prefix=no
25877 need_version=no
25878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25879 soname_spec='${libname}${release}${shared_ext}$major'
25880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25881 shlibpath_var=LD_LIBRARY_PATH
25882 shlibpath_overrides_runpath=no
25883 hardcode_into_libs=yes
25886 irix5* | irix6* | nonstopux*)
25887 case $host_os in
25888 nonstopux*) version_type=nonstopux ;;
25890 if test "$lt_cv_prog_gnu_ld" = yes; then
25891 version_type=linux
25892 else
25893 version_type=irix
25894 fi ;;
25895 esac
25896 need_lib_prefix=no
25897 need_version=no
25898 soname_spec='${libname}${release}${shared_ext}$major'
25899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25900 case $host_os in
25901 irix5* | nonstopux*)
25902 libsuff= shlibsuff=
25905 case $LD in # libtool.m4 will add one of these switches to LD
25906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25907 libsuff= shlibsuff= libmagic=32-bit;;
25908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25909 libsuff=32 shlibsuff=N32 libmagic=N32;;
25910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25911 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25912 *) libsuff= shlibsuff= libmagic=never-match;;
25913 esac
25915 esac
25916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25917 shlibpath_overrides_runpath=no
25918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25920 hardcode_into_libs=yes
25923 # No shared lib support for Linux oldld, aout, or coff.
25924 linux*oldld* | linux*aout* | linux*coff*)
25925 dynamic_linker=no
25928 # This must be Linux ELF.
25929 linux*)
25930 version_type=linux
25931 need_lib_prefix=no
25932 need_version=no
25933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25934 soname_spec='${libname}${release}${shared_ext}$major'
25935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25936 shlibpath_var=LD_LIBRARY_PATH
25937 shlibpath_overrides_runpath=no
25938 # This implies no fast_install, which is unacceptable.
25939 # Some rework will be needed to allow for fast_install
25940 # before this can be enabled.
25941 hardcode_into_libs=yes
25943 # Append ld.so.conf contents to the search path
25944 if test -f /etc/ld.so.conf; then
25945 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' ' '`
25946 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25949 # We used to test for /lib/ld.so.1 and disable shared libraries on
25950 # powerpc, because MkLinux only supported shared libraries with the
25951 # GNU dynamic linker. Since this was broken with cross compilers,
25952 # most powerpc-linux boxes support dynamic linking these days and
25953 # people can always --disable-shared, the test was removed, and we
25954 # assume the GNU/Linux dynamic linker is in use.
25955 dynamic_linker='GNU/Linux ld.so'
25958 knetbsd*-gnu)
25959 version_type=linux
25960 need_lib_prefix=no
25961 need_version=no
25962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25963 soname_spec='${libname}${release}${shared_ext}$major'
25964 shlibpath_var=LD_LIBRARY_PATH
25965 shlibpath_overrides_runpath=no
25966 hardcode_into_libs=yes
25967 dynamic_linker='GNU ld.so'
25970 netbsd*)
25971 version_type=sunos
25972 need_lib_prefix=no
25973 need_version=no
25974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25977 dynamic_linker='NetBSD (a.out) ld.so'
25978 else
25979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25980 soname_spec='${libname}${release}${shared_ext}$major'
25981 dynamic_linker='NetBSD ld.elf_so'
25983 shlibpath_var=LD_LIBRARY_PATH
25984 shlibpath_overrides_runpath=yes
25985 hardcode_into_libs=yes
25988 newsos6)
25989 version_type=linux
25990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25991 shlibpath_var=LD_LIBRARY_PATH
25992 shlibpath_overrides_runpath=yes
25995 nto-qnx*)
25996 version_type=linux
25997 need_lib_prefix=no
25998 need_version=no
25999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26000 soname_spec='${libname}${release}${shared_ext}$major'
26001 shlibpath_var=LD_LIBRARY_PATH
26002 shlibpath_overrides_runpath=yes
26005 openbsd*)
26006 version_type=sunos
26007 sys_lib_dlsearch_path_spec="/usr/lib"
26008 need_lib_prefix=no
26009 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26010 case $host_os in
26011 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26012 *) need_version=no ;;
26013 esac
26014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26016 shlibpath_var=LD_LIBRARY_PATH
26017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26018 case $host_os in
26019 openbsd2.[89] | openbsd2.[89].*)
26020 shlibpath_overrides_runpath=no
26023 shlibpath_overrides_runpath=yes
26025 esac
26026 else
26027 shlibpath_overrides_runpath=yes
26031 os2*)
26032 libname_spec='$name'
26033 shrext_cmds=".dll"
26034 need_lib_prefix=no
26035 library_names_spec='$libname${shared_ext} $libname.a'
26036 dynamic_linker='OS/2 ld.exe'
26037 shlibpath_var=LIBPATH
26040 osf3* | osf4* | osf5*)
26041 version_type=osf
26042 need_lib_prefix=no
26043 need_version=no
26044 soname_spec='${libname}${release}${shared_ext}$major'
26045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26046 shlibpath_var=LD_LIBRARY_PATH
26047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26051 solaris*)
26052 version_type=linux
26053 need_lib_prefix=no
26054 need_version=no
26055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26056 soname_spec='${libname}${release}${shared_ext}$major'
26057 shlibpath_var=LD_LIBRARY_PATH
26058 shlibpath_overrides_runpath=yes
26059 hardcode_into_libs=yes
26060 # ldd complains unless libraries are executable
26061 postinstall_cmds='chmod +x $lib'
26064 sunos4*)
26065 version_type=sunos
26066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26068 shlibpath_var=LD_LIBRARY_PATH
26069 shlibpath_overrides_runpath=yes
26070 if test "$with_gnu_ld" = yes; then
26071 need_lib_prefix=no
26073 need_version=yes
26076 sysv4 | sysv4.3*)
26077 version_type=linux
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'
26080 shlibpath_var=LD_LIBRARY_PATH
26081 case $host_vendor in
26082 sni)
26083 shlibpath_overrides_runpath=no
26084 need_lib_prefix=no
26085 export_dynamic_flag_spec='${wl}-Blargedynsym'
26086 runpath_var=LD_RUN_PATH
26088 siemens)
26089 need_lib_prefix=no
26091 motorola)
26092 need_lib_prefix=no
26093 need_version=no
26094 shlibpath_overrides_runpath=no
26095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26097 esac
26100 sysv4*MP*)
26101 if test -d /usr/nec ;then
26102 version_type=linux
26103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26104 soname_spec='$libname${shared_ext}.$major'
26105 shlibpath_var=LD_LIBRARY_PATH
26109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26110 version_type=freebsd-elf
26111 need_lib_prefix=no
26112 need_version=no
26113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26114 soname_spec='${libname}${release}${shared_ext}$major'
26115 shlibpath_var=LD_LIBRARY_PATH
26116 hardcode_into_libs=yes
26117 if test "$with_gnu_ld" = yes; then
26118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26119 shlibpath_overrides_runpath=no
26120 else
26121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26122 shlibpath_overrides_runpath=yes
26123 case $host_os in
26124 sco3.2v5*)
26125 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26127 esac
26129 sys_lib_dlsearch_path_spec='/usr/lib'
26132 uts4*)
26133 version_type=linux
26134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26135 soname_spec='${libname}${release}${shared_ext}$major'
26136 shlibpath_var=LD_LIBRARY_PATH
26140 dynamic_linker=no
26142 esac
26143 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26144 echo "${ECHO_T}$dynamic_linker" >&6; }
26145 test "$dynamic_linker" = no && can_build_shared=no
26147 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26148 if test "$GCC" = yes; then
26149 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26152 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26153 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26154 hardcode_action_GCJ=
26155 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26156 test -n "$runpath_var_GCJ" || \
26157 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26159 # We can hardcode non-existant directories.
26160 if test "$hardcode_direct_GCJ" != no &&
26161 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26162 # have to relink, otherwise we might link with an installed library
26163 # when we should be linking with a yet-to-be-installed one
26164 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26165 test "$hardcode_minus_L_GCJ" != no; then
26166 # Linking always hardcodes the temporary library directory.
26167 hardcode_action_GCJ=relink
26168 else
26169 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26170 hardcode_action_GCJ=immediate
26172 else
26173 # We cannot hardcode anything, or else we can only hardcode existing
26174 # directories.
26175 hardcode_action_GCJ=unsupported
26177 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26178 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26180 if test "$hardcode_action_GCJ" = relink; then
26181 # Fast installation is not supported
26182 enable_fast_install=no
26183 elif test "$shlibpath_overrides_runpath" = yes ||
26184 test "$enable_shared" = no; then
26185 # Fast installation is not necessary
26186 enable_fast_install=needless
26190 # The else clause should only fire when bootstrapping the
26191 # libtool distribution, otherwise you forgot to ship ltmain.sh
26192 # with your package, and you will get complaints that there are
26193 # no rules to generate ltmain.sh.
26194 if test -f "$ltmain"; then
26195 # See if we are running on zsh, and set the options which allow our commands through
26196 # without removal of \ escapes.
26197 if test -n "${ZSH_VERSION+set}" ; then
26198 setopt NO_GLOB_SUBST
26200 # Now quote all the things that may contain metacharacters while being
26201 # careful not to overquote the AC_SUBSTed values. We take copies of the
26202 # variables and quote the copies for generation of the libtool script.
26203 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26204 SED SHELL STRIP \
26205 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26206 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26207 deplibs_check_method reload_flag reload_cmds need_locks \
26208 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26209 lt_cv_sys_global_symbol_to_c_name_address \
26210 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26211 old_postinstall_cmds old_postuninstall_cmds \
26212 compiler_GCJ \
26213 CC_GCJ \
26214 LD_GCJ \
26215 lt_prog_compiler_wl_GCJ \
26216 lt_prog_compiler_pic_GCJ \
26217 lt_prog_compiler_static_GCJ \
26218 lt_prog_compiler_no_builtin_flag_GCJ \
26219 export_dynamic_flag_spec_GCJ \
26220 thread_safe_flag_spec_GCJ \
26221 whole_archive_flag_spec_GCJ \
26222 enable_shared_with_static_runtimes_GCJ \
26223 old_archive_cmds_GCJ \
26224 old_archive_from_new_cmds_GCJ \
26225 predep_objects_GCJ \
26226 postdep_objects_GCJ \
26227 predeps_GCJ \
26228 postdeps_GCJ \
26229 compiler_lib_search_path_GCJ \
26230 archive_cmds_GCJ \
26231 archive_expsym_cmds_GCJ \
26232 postinstall_cmds_GCJ \
26233 postuninstall_cmds_GCJ \
26234 old_archive_from_expsyms_cmds_GCJ \
26235 allow_undefined_flag_GCJ \
26236 no_undefined_flag_GCJ \
26237 export_symbols_cmds_GCJ \
26238 hardcode_libdir_flag_spec_GCJ \
26239 hardcode_libdir_flag_spec_ld_GCJ \
26240 hardcode_libdir_separator_GCJ \
26241 hardcode_automatic_GCJ \
26242 module_cmds_GCJ \
26243 module_expsym_cmds_GCJ \
26244 lt_cv_prog_compiler_c_o_GCJ \
26245 exclude_expsyms_GCJ \
26246 include_expsyms_GCJ; do
26248 case $var in
26249 old_archive_cmds_GCJ | \
26250 old_archive_from_new_cmds_GCJ | \
26251 archive_cmds_GCJ | \
26252 archive_expsym_cmds_GCJ | \
26253 module_cmds_GCJ | \
26254 module_expsym_cmds_GCJ | \
26255 old_archive_from_expsyms_cmds_GCJ | \
26256 export_symbols_cmds_GCJ | \
26257 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26258 postinstall_cmds | postuninstall_cmds | \
26259 old_postinstall_cmds | old_postuninstall_cmds | \
26260 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26261 # Double-quote double-evaled strings.
26262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26267 esac
26268 done
26270 case $lt_echo in
26271 *'\$0 --fallback-echo"')
26272 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26274 esac
26276 cfgfile="$ofile"
26278 cat <<__EOF__ >> "$cfgfile"
26279 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26281 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26283 # Shell to use when invoking shell scripts.
26284 SHELL=$lt_SHELL
26286 # Whether or not to build shared libraries.
26287 build_libtool_libs=$enable_shared
26289 # Whether or not to build static libraries.
26290 build_old_libs=$enable_static
26292 # Whether or not to add -lc for building shared libraries.
26293 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26295 # Whether or not to disallow shared libs when runtime libs are static
26296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26298 # Whether or not to optimize for fast installation.
26299 fast_install=$enable_fast_install
26301 # The host system.
26302 host_alias=$host_alias
26303 host=$host
26304 host_os=$host_os
26306 # The build system.
26307 build_alias=$build_alias
26308 build=$build
26309 build_os=$build_os
26311 # An echo program that does not interpret backslashes.
26312 echo=$lt_echo
26314 # The archiver.
26315 AR=$lt_AR
26316 AR_FLAGS=$lt_AR_FLAGS
26318 # A C compiler.
26319 LTCC=$lt_LTCC
26321 # LTCC compiler flags.
26322 LTCFLAGS=$lt_LTCFLAGS
26324 # A language-specific compiler.
26325 CC=$lt_compiler_GCJ
26327 # Is the compiler the GNU C compiler?
26328 with_gcc=$GCC_GCJ
26330 # An ERE matcher.
26331 EGREP=$lt_EGREP
26333 # The linker used to build libraries.
26334 LD=$lt_LD_GCJ
26336 # Whether we need hard or soft links.
26337 LN_S=$lt_LN_S
26339 # A BSD-compatible nm program.
26340 NM=$lt_NM
26342 # A symbol stripping program
26343 STRIP=$lt_STRIP
26345 # Used to examine libraries when file_magic_cmd begins "file"
26346 MAGIC_CMD=$MAGIC_CMD
26348 # Used on cygwin: DLL creation program.
26349 DLLTOOL="$DLLTOOL"
26351 # Used on cygwin: object dumper.
26352 OBJDUMP="$OBJDUMP"
26354 # Used on cygwin: assembler.
26355 AS="$AS"
26357 # The name of the directory that contains temporary libtool files.
26358 objdir=$objdir
26360 # How to create reloadable object files.
26361 reload_flag=$lt_reload_flag
26362 reload_cmds=$lt_reload_cmds
26364 # How to pass a linker flag through the compiler.
26365 wl=$lt_lt_prog_compiler_wl_GCJ
26367 # Object file suffix (normally "o").
26368 objext="$ac_objext"
26370 # Old archive suffix (normally "a").
26371 libext="$libext"
26373 # Shared library suffix (normally ".so").
26374 shrext_cmds='$shrext_cmds'
26376 # Executable file suffix (normally "").
26377 exeext="$exeext"
26379 # Additional compiler flags for building library objects.
26380 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26381 pic_mode=$pic_mode
26383 # What is the maximum length of a command?
26384 max_cmd_len=$lt_cv_sys_max_cmd_len
26386 # Does compiler simultaneously support -c and -o options?
26387 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26389 # Must we lock files when doing compilation?
26390 need_locks=$lt_need_locks
26392 # Do we need the lib prefix for modules?
26393 need_lib_prefix=$need_lib_prefix
26395 # Do we need a version for libraries?
26396 need_version=$need_version
26398 # Whether dlopen is supported.
26399 dlopen_support=$enable_dlopen
26401 # Whether dlopen of programs is supported.
26402 dlopen_self=$enable_dlopen_self
26404 # Whether dlopen of statically linked programs is supported.
26405 dlopen_self_static=$enable_dlopen_self_static
26407 # Compiler flag to prevent dynamic linking.
26408 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26410 # Compiler flag to turn off builtin functions.
26411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26413 # Compiler flag to allow reflexive dlopens.
26414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26416 # Compiler flag to generate shared objects directly from archives.
26417 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26419 # Compiler flag to generate thread-safe objects.
26420 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26422 # Library versioning type.
26423 version_type=$version_type
26425 # Format of library name prefix.
26426 libname_spec=$lt_libname_spec
26428 # List of archive names. First name is the real one, the rest are links.
26429 # The last name is the one that the linker finds with -lNAME.
26430 library_names_spec=$lt_library_names_spec
26432 # The coded name of the library, if different from the real name.
26433 soname_spec=$lt_soname_spec
26435 # Commands used to build and install an old-style archive.
26436 RANLIB=$lt_RANLIB
26437 old_archive_cmds=$lt_old_archive_cmds_GCJ
26438 old_postinstall_cmds=$lt_old_postinstall_cmds
26439 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26441 # Create an old-style archive from a shared archive.
26442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26444 # Create a temporary old-style archive to link instead of a shared archive.
26445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26447 # Commands used to build and install a shared archive.
26448 archive_cmds=$lt_archive_cmds_GCJ
26449 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26450 postinstall_cmds=$lt_postinstall_cmds
26451 postuninstall_cmds=$lt_postuninstall_cmds
26453 # Commands used to build a loadable module (assumed same as above if empty)
26454 module_cmds=$lt_module_cmds_GCJ
26455 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26457 # Commands to strip libraries.
26458 old_striplib=$lt_old_striplib
26459 striplib=$lt_striplib
26461 # Dependencies to place before the objects being linked to create a
26462 # shared library.
26463 predep_objects=$lt_predep_objects_GCJ
26465 # Dependencies to place after the objects being linked to create a
26466 # shared library.
26467 postdep_objects=$lt_postdep_objects_GCJ
26469 # Dependencies to place before the objects being linked to create a
26470 # shared library.
26471 predeps=$lt_predeps_GCJ
26473 # Dependencies to place after the objects being linked to create a
26474 # shared library.
26475 postdeps=$lt_postdeps_GCJ
26477 # The library search path used internally by the compiler when linking
26478 # a shared library.
26479 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26481 # Method to check whether dependent libraries are shared objects.
26482 deplibs_check_method=$lt_deplibs_check_method
26484 # Command to use when deplibs_check_method == file_magic.
26485 file_magic_cmd=$lt_file_magic_cmd
26487 # Flag that allows shared libraries with undefined symbols to be built.
26488 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26490 # Flag that forces no undefined symbols.
26491 no_undefined_flag=$lt_no_undefined_flag_GCJ
26493 # Commands used to finish a libtool library installation in a directory.
26494 finish_cmds=$lt_finish_cmds
26496 # Same as above, but a single script fragment to be evaled but not shown.
26497 finish_eval=$lt_finish_eval
26499 # Take the output of nm and produce a listing of raw symbols and C names.
26500 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26502 # Transform the output of nm in a proper C declaration
26503 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26505 # Transform the output of nm in a C name address pair
26506 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26508 # This is the shared library runtime path variable.
26509 runpath_var=$runpath_var
26511 # This is the shared library path variable.
26512 shlibpath_var=$shlibpath_var
26514 # Is shlibpath searched before the hard-coded library search path?
26515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26517 # How to hardcode a shared library path into an executable.
26518 hardcode_action=$hardcode_action_GCJ
26520 # Whether we should hardcode library paths into libraries.
26521 hardcode_into_libs=$hardcode_into_libs
26523 # Flag to hardcode \$libdir into a binary during linking.
26524 # This must work even if \$libdir does not exist.
26525 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26527 # If ld is used when linking, flag to hardcode \$libdir into
26528 # a binary during linking. This must work even if \$libdir does
26529 # not exist.
26530 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26532 # Whether we need a single -rpath flag with a separated argument.
26533 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26535 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26536 # resulting binary.
26537 hardcode_direct=$hardcode_direct_GCJ
26539 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26540 # resulting binary.
26541 hardcode_minus_L=$hardcode_minus_L_GCJ
26543 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26544 # the resulting binary.
26545 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26547 # Set to yes if building a shared library automatically hardcodes DIR into the library
26548 # and all subsequent libraries and executables linked against it.
26549 hardcode_automatic=$hardcode_automatic_GCJ
26551 # Variables whose values should be saved in libtool wrapper scripts and
26552 # restored at relink time.
26553 variables_saved_for_relink="$variables_saved_for_relink"
26555 # Whether libtool must link a program against all its dependency libraries.
26556 link_all_deplibs=$link_all_deplibs_GCJ
26558 # Compile-time system search path for libraries
26559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26561 # Run-time system search path for libraries
26562 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26564 # Fix the shell variable \$srcfile for the compiler.
26565 fix_srcfile_path="$fix_srcfile_path_GCJ"
26567 # Set to yes if exported symbols are required.
26568 always_export_symbols=$always_export_symbols_GCJ
26570 # The commands to list exported symbols.
26571 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26573 # The commands to extract the exported symbol list from a shared archive.
26574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26576 # Symbols that should not be listed in the preloaded symbols.
26577 exclude_expsyms=$lt_exclude_expsyms_GCJ
26579 # Symbols that must always be exported.
26580 include_expsyms=$lt_include_expsyms_GCJ
26582 # ### END LIBTOOL TAG CONFIG: $tagname
26584 __EOF__
26587 else
26588 # If there is no Makefile yet, we rely on a make rule to execute
26589 # `config.status --recheck' to rerun these tests and create the
26590 # libtool script then.
26591 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26592 if test -f "$ltmain_in"; then
26593 test -f Makefile && make "$ltmain"
26598 ac_ext=c
26599 ac_cpp='$CPP $CPPFLAGS'
26600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26604 CC="$lt_save_CC"
26606 else
26607 tagname=""
26612 ac_ext=c
26613 ac_cpp='$CPP $CPPFLAGS'
26614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26619 # Source file extension for RC test sources.
26620 ac_ext=rc
26622 # Object file extension for compiled RC test sources.
26623 objext=o
26624 objext_RC=$objext
26626 # Code to be used in simple compile tests
26627 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26629 # Code to be used in simple link tests
26630 lt_simple_link_test_code="$lt_simple_compile_test_code"
26632 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26634 # If no C compiler was specified, use CC.
26635 LTCC=${LTCC-"$CC"}
26637 # If no C compiler flags were specified, use CFLAGS.
26638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26640 # Allow CC to be a program name with arguments.
26641 compiler=$CC
26644 # save warnings/boilerplate of simple test code
26645 ac_outfile=conftest.$ac_objext
26646 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26647 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26648 _lt_compiler_boilerplate=`cat conftest.err`
26649 $rm conftest*
26651 ac_outfile=conftest.$ac_objext
26652 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26653 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26654 _lt_linker_boilerplate=`cat conftest.err`
26655 $rm conftest*
26658 # Allow CC to be a program name with arguments.
26659 lt_save_CC="$CC"
26660 CC=${RC-"windres"}
26661 compiler=$CC
26662 compiler_RC=$CC
26663 for cc_temp in $compiler""; do
26664 case $cc_temp in
26665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26667 \-*) ;;
26668 *) break;;
26669 esac
26670 done
26671 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26673 lt_cv_prog_compiler_c_o_RC=yes
26675 # The else clause should only fire when bootstrapping the
26676 # libtool distribution, otherwise you forgot to ship ltmain.sh
26677 # with your package, and you will get complaints that there are
26678 # no rules to generate ltmain.sh.
26679 if test -f "$ltmain"; then
26680 # See if we are running on zsh, and set the options which allow our commands through
26681 # without removal of \ escapes.
26682 if test -n "${ZSH_VERSION+set}" ; then
26683 setopt NO_GLOB_SUBST
26685 # Now quote all the things that may contain metacharacters while being
26686 # careful not to overquote the AC_SUBSTed values. We take copies of the
26687 # variables and quote the copies for generation of the libtool script.
26688 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26689 SED SHELL STRIP \
26690 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26691 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26692 deplibs_check_method reload_flag reload_cmds need_locks \
26693 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26694 lt_cv_sys_global_symbol_to_c_name_address \
26695 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26696 old_postinstall_cmds old_postuninstall_cmds \
26697 compiler_RC \
26698 CC_RC \
26699 LD_RC \
26700 lt_prog_compiler_wl_RC \
26701 lt_prog_compiler_pic_RC \
26702 lt_prog_compiler_static_RC \
26703 lt_prog_compiler_no_builtin_flag_RC \
26704 export_dynamic_flag_spec_RC \
26705 thread_safe_flag_spec_RC \
26706 whole_archive_flag_spec_RC \
26707 enable_shared_with_static_runtimes_RC \
26708 old_archive_cmds_RC \
26709 old_archive_from_new_cmds_RC \
26710 predep_objects_RC \
26711 postdep_objects_RC \
26712 predeps_RC \
26713 postdeps_RC \
26714 compiler_lib_search_path_RC \
26715 archive_cmds_RC \
26716 archive_expsym_cmds_RC \
26717 postinstall_cmds_RC \
26718 postuninstall_cmds_RC \
26719 old_archive_from_expsyms_cmds_RC \
26720 allow_undefined_flag_RC \
26721 no_undefined_flag_RC \
26722 export_symbols_cmds_RC \
26723 hardcode_libdir_flag_spec_RC \
26724 hardcode_libdir_flag_spec_ld_RC \
26725 hardcode_libdir_separator_RC \
26726 hardcode_automatic_RC \
26727 module_cmds_RC \
26728 module_expsym_cmds_RC \
26729 lt_cv_prog_compiler_c_o_RC \
26730 exclude_expsyms_RC \
26731 include_expsyms_RC; do
26733 case $var in
26734 old_archive_cmds_RC | \
26735 old_archive_from_new_cmds_RC | \
26736 archive_cmds_RC | \
26737 archive_expsym_cmds_RC | \
26738 module_cmds_RC | \
26739 module_expsym_cmds_RC | \
26740 old_archive_from_expsyms_cmds_RC | \
26741 export_symbols_cmds_RC | \
26742 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26743 postinstall_cmds | postuninstall_cmds | \
26744 old_postinstall_cmds | old_postuninstall_cmds | \
26745 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26746 # Double-quote double-evaled strings.
26747 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26750 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26752 esac
26753 done
26755 case $lt_echo in
26756 *'\$0 --fallback-echo"')
26757 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26759 esac
26761 cfgfile="$ofile"
26763 cat <<__EOF__ >> "$cfgfile"
26764 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26766 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26768 # Shell to use when invoking shell scripts.
26769 SHELL=$lt_SHELL
26771 # Whether or not to build shared libraries.
26772 build_libtool_libs=$enable_shared
26774 # Whether or not to build static libraries.
26775 build_old_libs=$enable_static
26777 # Whether or not to add -lc for building shared libraries.
26778 build_libtool_need_lc=$archive_cmds_need_lc_RC
26780 # Whether or not to disallow shared libs when runtime libs are static
26781 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26783 # Whether or not to optimize for fast installation.
26784 fast_install=$enable_fast_install
26786 # The host system.
26787 host_alias=$host_alias
26788 host=$host
26789 host_os=$host_os
26791 # The build system.
26792 build_alias=$build_alias
26793 build=$build
26794 build_os=$build_os
26796 # An echo program that does not interpret backslashes.
26797 echo=$lt_echo
26799 # The archiver.
26800 AR=$lt_AR
26801 AR_FLAGS=$lt_AR_FLAGS
26803 # A C compiler.
26804 LTCC=$lt_LTCC
26806 # LTCC compiler flags.
26807 LTCFLAGS=$lt_LTCFLAGS
26809 # A language-specific compiler.
26810 CC=$lt_compiler_RC
26812 # Is the compiler the GNU C compiler?
26813 with_gcc=$GCC_RC
26815 # An ERE matcher.
26816 EGREP=$lt_EGREP
26818 # The linker used to build libraries.
26819 LD=$lt_LD_RC
26821 # Whether we need hard or soft links.
26822 LN_S=$lt_LN_S
26824 # A BSD-compatible nm program.
26825 NM=$lt_NM
26827 # A symbol stripping program
26828 STRIP=$lt_STRIP
26830 # Used to examine libraries when file_magic_cmd begins "file"
26831 MAGIC_CMD=$MAGIC_CMD
26833 # Used on cygwin: DLL creation program.
26834 DLLTOOL="$DLLTOOL"
26836 # Used on cygwin: object dumper.
26837 OBJDUMP="$OBJDUMP"
26839 # Used on cygwin: assembler.
26840 AS="$AS"
26842 # The name of the directory that contains temporary libtool files.
26843 objdir=$objdir
26845 # How to create reloadable object files.
26846 reload_flag=$lt_reload_flag
26847 reload_cmds=$lt_reload_cmds
26849 # How to pass a linker flag through the compiler.
26850 wl=$lt_lt_prog_compiler_wl_RC
26852 # Object file suffix (normally "o").
26853 objext="$ac_objext"
26855 # Old archive suffix (normally "a").
26856 libext="$libext"
26858 # Shared library suffix (normally ".so").
26859 shrext_cmds='$shrext_cmds'
26861 # Executable file suffix (normally "").
26862 exeext="$exeext"
26864 # Additional compiler flags for building library objects.
26865 pic_flag=$lt_lt_prog_compiler_pic_RC
26866 pic_mode=$pic_mode
26868 # What is the maximum length of a command?
26869 max_cmd_len=$lt_cv_sys_max_cmd_len
26871 # Does compiler simultaneously support -c and -o options?
26872 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26874 # Must we lock files when doing compilation?
26875 need_locks=$lt_need_locks
26877 # Do we need the lib prefix for modules?
26878 need_lib_prefix=$need_lib_prefix
26880 # Do we need a version for libraries?
26881 need_version=$need_version
26883 # Whether dlopen is supported.
26884 dlopen_support=$enable_dlopen
26886 # Whether dlopen of programs is supported.
26887 dlopen_self=$enable_dlopen_self
26889 # Whether dlopen of statically linked programs is supported.
26890 dlopen_self_static=$enable_dlopen_self_static
26892 # Compiler flag to prevent dynamic linking.
26893 link_static_flag=$lt_lt_prog_compiler_static_RC
26895 # Compiler flag to turn off builtin functions.
26896 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26898 # Compiler flag to allow reflexive dlopens.
26899 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26901 # Compiler flag to generate shared objects directly from archives.
26902 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26904 # Compiler flag to generate thread-safe objects.
26905 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26907 # Library versioning type.
26908 version_type=$version_type
26910 # Format of library name prefix.
26911 libname_spec=$lt_libname_spec
26913 # List of archive names. First name is the real one, the rest are links.
26914 # The last name is the one that the linker finds with -lNAME.
26915 library_names_spec=$lt_library_names_spec
26917 # The coded name of the library, if different from the real name.
26918 soname_spec=$lt_soname_spec
26920 # Commands used to build and install an old-style archive.
26921 RANLIB=$lt_RANLIB
26922 old_archive_cmds=$lt_old_archive_cmds_RC
26923 old_postinstall_cmds=$lt_old_postinstall_cmds
26924 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26926 # Create an old-style archive from a shared archive.
26927 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26929 # Create a temporary old-style archive to link instead of a shared archive.
26930 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26932 # Commands used to build and install a shared archive.
26933 archive_cmds=$lt_archive_cmds_RC
26934 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26935 postinstall_cmds=$lt_postinstall_cmds
26936 postuninstall_cmds=$lt_postuninstall_cmds
26938 # Commands used to build a loadable module (assumed same as above if empty)
26939 module_cmds=$lt_module_cmds_RC
26940 module_expsym_cmds=$lt_module_expsym_cmds_RC
26942 # Commands to strip libraries.
26943 old_striplib=$lt_old_striplib
26944 striplib=$lt_striplib
26946 # Dependencies to place before the objects being linked to create a
26947 # shared library.
26948 predep_objects=$lt_predep_objects_RC
26950 # Dependencies to place after the objects being linked to create a
26951 # shared library.
26952 postdep_objects=$lt_postdep_objects_RC
26954 # Dependencies to place before the objects being linked to create a
26955 # shared library.
26956 predeps=$lt_predeps_RC
26958 # Dependencies to place after the objects being linked to create a
26959 # shared library.
26960 postdeps=$lt_postdeps_RC
26962 # The library search path used internally by the compiler when linking
26963 # a shared library.
26964 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26966 # Method to check whether dependent libraries are shared objects.
26967 deplibs_check_method=$lt_deplibs_check_method
26969 # Command to use when deplibs_check_method == file_magic.
26970 file_magic_cmd=$lt_file_magic_cmd
26972 # Flag that allows shared libraries with undefined symbols to be built.
26973 allow_undefined_flag=$lt_allow_undefined_flag_RC
26975 # Flag that forces no undefined symbols.
26976 no_undefined_flag=$lt_no_undefined_flag_RC
26978 # Commands used to finish a libtool library installation in a directory.
26979 finish_cmds=$lt_finish_cmds
26981 # Same as above, but a single script fragment to be evaled but not shown.
26982 finish_eval=$lt_finish_eval
26984 # Take the output of nm and produce a listing of raw symbols and C names.
26985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26987 # Transform the output of nm in a proper C declaration
26988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26990 # Transform the output of nm in a C name address pair
26991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26993 # This is the shared library runtime path variable.
26994 runpath_var=$runpath_var
26996 # This is the shared library path variable.
26997 shlibpath_var=$shlibpath_var
26999 # Is shlibpath searched before the hard-coded library search path?
27000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27002 # How to hardcode a shared library path into an executable.
27003 hardcode_action=$hardcode_action_RC
27005 # Whether we should hardcode library paths into libraries.
27006 hardcode_into_libs=$hardcode_into_libs
27008 # Flag to hardcode \$libdir into a binary during linking.
27009 # This must work even if \$libdir does not exist.
27010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27012 # If ld is used when linking, flag to hardcode \$libdir into
27013 # a binary during linking. This must work even if \$libdir does
27014 # not exist.
27015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27017 # Whether we need a single -rpath flag with a separated argument.
27018 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27020 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27021 # resulting binary.
27022 hardcode_direct=$hardcode_direct_RC
27024 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27025 # resulting binary.
27026 hardcode_minus_L=$hardcode_minus_L_RC
27028 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27029 # the resulting binary.
27030 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27032 # Set to yes if building a shared library automatically hardcodes DIR into the library
27033 # and all subsequent libraries and executables linked against it.
27034 hardcode_automatic=$hardcode_automatic_RC
27036 # Variables whose values should be saved in libtool wrapper scripts and
27037 # restored at relink time.
27038 variables_saved_for_relink="$variables_saved_for_relink"
27040 # Whether libtool must link a program against all its dependency libraries.
27041 link_all_deplibs=$link_all_deplibs_RC
27043 # Compile-time system search path for libraries
27044 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27046 # Run-time system search path for libraries
27047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27049 # Fix the shell variable \$srcfile for the compiler.
27050 fix_srcfile_path="$fix_srcfile_path_RC"
27052 # Set to yes if exported symbols are required.
27053 always_export_symbols=$always_export_symbols_RC
27055 # The commands to list exported symbols.
27056 export_symbols_cmds=$lt_export_symbols_cmds_RC
27058 # The commands to extract the exported symbol list from a shared archive.
27059 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27061 # Symbols that should not be listed in the preloaded symbols.
27062 exclude_expsyms=$lt_exclude_expsyms_RC
27064 # Symbols that must always be exported.
27065 include_expsyms=$lt_include_expsyms_RC
27067 # ### END LIBTOOL TAG CONFIG: $tagname
27069 __EOF__
27072 else
27073 # If there is no Makefile yet, we rely on a make rule to execute
27074 # `config.status --recheck' to rerun these tests and create the
27075 # libtool script then.
27076 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27077 if test -f "$ltmain_in"; then
27078 test -f Makefile && make "$ltmain"
27083 ac_ext=c
27084 ac_cpp='$CPP $CPPFLAGS'
27085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27089 CC="$lt_save_CC"
27094 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27095 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27096 { (exit 1); exit 1; }; }
27098 esac
27100 # Append the new tag name to the list of available tags.
27101 if test -n "$tagname" ; then
27102 available_tags="$available_tags $tagname"
27105 done
27106 IFS="$lt_save_ifs"
27108 # Now substitute the updated list of available tags.
27109 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27110 mv "${ofile}T" "$ofile"
27111 chmod +x "$ofile"
27112 else
27113 rm -f "${ofile}T"
27114 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27115 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27116 { (exit 1); exit 1; }; }
27122 # This can be used to rebuild libtool when needed
27123 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27125 # Always use our own libtool.
27126 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27128 # Prevent multiple expansion
27150 if test "$lt_cv_dlopen_self" = "yes" ; then
27152 cat >>confdefs.h <<\_ACEOF
27153 #define CAN_DLOPEN_SELF 1
27154 _ACEOF
27159 if test "$WITH_LLVMGCCDIR" = "default" ; then
27160 LLVMGCC="llvm-gcc${EXEEXT}"
27161 LLVMGXX="llvm-g++${EXEEXT}"
27162 LLVMGCCCOMMAND="$LLVMGCC"
27163 LLVMGXXCOMMAND="$LLVMGXX"
27164 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27166 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27168 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27169 set dummy $LLVMGCC; ac_word=$2
27170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27172 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27174 else
27175 case $LLVMGCC in
27176 [\\/]* | ?:[\\/]*)
27177 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27181 for as_dir in $PATH
27183 IFS=$as_save_IFS
27184 test -z "$as_dir" && as_dir=.
27185 for ac_exec_ext in '' $ac_executable_extensions; do
27186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27187 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27189 break 2
27191 done
27192 done
27193 IFS=$as_save_IFS
27196 esac
27198 LLVMGCC=$ac_cv_path_LLVMGCC
27199 if test -n "$LLVMGCC"; then
27200 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27201 echo "${ECHO_T}$LLVMGCC" >&6; }
27202 else
27203 { echo "$as_me:$LINENO: result: no" >&5
27204 echo "${ECHO_T}no" >&6; }
27208 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27209 set dummy $LLVMGXX; ac_word=$2
27210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27212 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27213 echo $ECHO_N "(cached) $ECHO_C" >&6
27214 else
27215 case $LLVMGXX in
27216 [\\/]* | ?:[\\/]*)
27217 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27221 for as_dir in $PATH
27223 IFS=$as_save_IFS
27224 test -z "$as_dir" && as_dir=.
27225 for ac_exec_ext in '' $ac_executable_extensions; do
27226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27227 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27229 break 2
27231 done
27232 done
27233 IFS=$as_save_IFS
27236 esac
27238 LLVMGXX=$ac_cv_path_LLVMGXX
27239 if test -n "$LLVMGXX"; then
27240 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27241 echo "${ECHO_T}$LLVMGXX" >&6; }
27242 else
27243 { echo "$as_me:$LINENO: result: no" >&5
27244 echo "${ECHO_T}no" >&6; }
27248 else
27249 if test -z "$LLVMGCC"; then
27250 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27251 LLVMGCCCOMMAND="$LLVMGCC"
27253 if test -z "$LLVMGXX"; then
27254 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27255 LLVMGXXCOMMAND="$LLVMGXX"
27258 LLVMGCC=$LLVMGCC
27260 LLVMGXX=$LLVMGXX
27262 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27264 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27269 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27270 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27272 ICC=no
27273 IXX=no
27274 case $CC in
27275 icc*|icpc*)
27276 ICC=yes
27277 IXX=yes
27281 esac
27283 if test "$GCC" != "yes" && test "$ICC" != "yes"
27284 then
27285 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27286 echo "$as_me: error: gcc|icc required but not found" >&2;}
27287 { (exit 1); exit 1; }; }
27290 if test "$GXX" != "yes" && test "$IXX" != "yes"
27291 then
27292 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27293 echo "$as_me: error: g++|icc required but not found" >&2;}
27294 { (exit 1); exit 1; }; }
27297 if test "$GCC" = "yes"
27298 then
27299 cat >conftest.$ac_ext <<_ACEOF
27300 #if !defined(__GNUC__) || __GNUC__ < 3
27301 #error Unsupported GCC version
27302 #endif
27304 _ACEOF
27305 rm -f conftest.$ac_objext
27306 if { (ac_try="$ac_compile"
27307 case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27310 esac
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_compile") 2>conftest.er1
27313 ac_status=$?
27314 grep -v '^ *+' conftest.er1 >conftest.err
27315 rm -f conftest.er1
27316 cat conftest.err >&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); } &&
27319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27320 { (case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27323 esac
27324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325 (eval "$ac_try") 2>&5
27326 ac_status=$?
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try='test -s conftest.$ac_objext'
27330 { (case "(($ac_try" in
27331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27332 *) ac_try_echo=$ac_try;;
27333 esac
27334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27335 (eval "$ac_try") 2>&5
27336 ac_status=$?
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27340 else
27341 echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27344 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27345 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27346 { (exit 1); exit 1; }; }
27349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27352 if test -z "$llvm_cv_gnu_make_command"
27353 then
27354 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27355 echo "$as_me: error: GNU Make required but not found" >&2;}
27356 { (exit 1); exit 1; }; }
27359 { echo "$as_me:$LINENO: result: ok" >&5
27360 echo "${ECHO_T}ok" >&6; }
27364 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27365 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27366 if test "${ac_cv_lib_m_sin+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27368 else
27369 ac_check_lib_save_LIBS=$LIBS
27370 LIBS="-lm $LIBS"
27371 cat >conftest.$ac_ext <<_ACEOF
27372 /* confdefs.h. */
27373 _ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h. */
27378 /* Override any GCC internal prototype to avoid an error.
27379 Use char because int might match the return type of a GCC
27380 builtin and then its argument prototype would still apply. */
27381 #ifdef __cplusplus
27382 extern "C"
27383 #endif
27384 char sin ();
27386 main ()
27388 return sin ();
27390 return 0;
27392 _ACEOF
27393 rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (ac_try="$ac_link"
27395 case "(($ac_try" in
27396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27397 *) ac_try_echo=$ac_try;;
27398 esac
27399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27400 (eval "$ac_link") 2>conftest.er1
27401 ac_status=$?
27402 grep -v '^ *+' conftest.er1 >conftest.err
27403 rm -f conftest.er1
27404 cat conftest.err >&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
27407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27408 { (case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27411 esac
27412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413 (eval "$ac_try") 2>&5
27414 ac_status=$?
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); }; } &&
27417 { ac_try='test -s conftest$ac_exeext'
27418 { (case "(($ac_try" in
27419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27420 *) ac_try_echo=$ac_try;;
27421 esac
27422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27423 (eval "$ac_try") 2>&5
27424 ac_status=$?
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); }; }; then
27427 ac_cv_lib_m_sin=yes
27428 else
27429 echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27432 ac_cv_lib_m_sin=no
27435 rm -f core conftest.err conftest.$ac_objext \
27436 conftest$ac_exeext conftest.$ac_ext
27437 LIBS=$ac_check_lib_save_LIBS
27439 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27440 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27441 if test $ac_cv_lib_m_sin = yes; then
27442 cat >>confdefs.h <<_ACEOF
27443 #define HAVE_LIBM 1
27444 _ACEOF
27446 LIBS="-lm $LIBS"
27450 if test "$llvm_cv_os_type" = "MingW" ; then
27452 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27453 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27454 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27455 echo $ECHO_N "(cached) $ECHO_C" >&6
27456 else
27457 ac_check_lib_save_LIBS=$LIBS
27458 LIBS="-limagehlp $LIBS"
27459 cat >conftest.$ac_ext <<_ACEOF
27460 /* confdefs.h. */
27461 _ACEOF
27462 cat confdefs.h >>conftest.$ac_ext
27463 cat >>conftest.$ac_ext <<_ACEOF
27464 /* end confdefs.h. */
27468 main ()
27470 return main ();
27472 return 0;
27474 _ACEOF
27475 rm -f conftest.$ac_objext conftest$ac_exeext
27476 if { (ac_try="$ac_link"
27477 case "(($ac_try" in
27478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27479 *) ac_try_echo=$ac_try;;
27480 esac
27481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27482 (eval "$ac_link") 2>conftest.er1
27483 ac_status=$?
27484 grep -v '^ *+' conftest.er1 >conftest.err
27485 rm -f conftest.er1
27486 cat conftest.err >&5
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); } &&
27489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27490 { (case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27493 esac
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_try") 2>&5
27496 ac_status=$?
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; } &&
27499 { ac_try='test -s conftest$ac_exeext'
27500 { (case "(($ac_try" in
27501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27502 *) ac_try_echo=$ac_try;;
27503 esac
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505 (eval "$ac_try") 2>&5
27506 ac_status=$?
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); }; }; then
27509 ac_cv_lib_imagehlp_main=yes
27510 else
27511 echo "$as_me: failed program was:" >&5
27512 sed 's/^/| /' conftest.$ac_ext >&5
27514 ac_cv_lib_imagehlp_main=no
27517 rm -f core conftest.err conftest.$ac_objext \
27518 conftest$ac_exeext conftest.$ac_ext
27519 LIBS=$ac_check_lib_save_LIBS
27521 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27522 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27523 if test $ac_cv_lib_imagehlp_main = yes; then
27524 cat >>confdefs.h <<_ACEOF
27525 #define HAVE_LIBIMAGEHLP 1
27526 _ACEOF
27528 LIBS="-limagehlp $LIBS"
27533 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27534 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27535 if test "${ac_cv_lib_psapi_main+set}" = set; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27537 else
27538 ac_check_lib_save_LIBS=$LIBS
27539 LIBS="-lpsapi $LIBS"
27540 cat >conftest.$ac_ext <<_ACEOF
27541 /* confdefs.h. */
27542 _ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27549 main ()
27551 return main ();
27553 return 0;
27555 _ACEOF
27556 rm -f conftest.$ac_objext conftest$ac_exeext
27557 if { (ac_try="$ac_link"
27558 case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27561 esac
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_link") 2>conftest.er1
27564 ac_status=$?
27565 grep -v '^ *+' conftest.er1 >conftest.err
27566 rm -f conftest.er1
27567 cat conftest.err >&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } &&
27570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27574 esac
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27584 esac
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
27590 ac_cv_lib_psapi_main=yes
27591 else
27592 echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27595 ac_cv_lib_psapi_main=no
27598 rm -f core conftest.err conftest.$ac_objext \
27599 conftest$ac_exeext conftest.$ac_ext
27600 LIBS=$ac_check_lib_save_LIBS
27602 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27603 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27604 if test $ac_cv_lib_psapi_main = yes; then
27605 cat >>confdefs.h <<_ACEOF
27606 #define HAVE_LIBPSAPI 1
27607 _ACEOF
27609 LIBS="-lpsapi $LIBS"
27615 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27616 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27617 if test "${ac_cv_search_dlopen+set}" = set; then
27618 echo $ECHO_N "(cached) $ECHO_C" >&6
27619 else
27620 ac_func_search_save_LIBS=$LIBS
27621 cat >conftest.$ac_ext <<_ACEOF
27622 /* confdefs.h. */
27623 _ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27628 /* Override any GCC internal prototype to avoid an error.
27629 Use char because int might match the return type of a GCC
27630 builtin and then its argument prototype would still apply. */
27631 #ifdef __cplusplus
27632 extern "C"
27633 #endif
27634 char dlopen ();
27636 main ()
27638 return dlopen ();
27640 return 0;
27642 _ACEOF
27643 for ac_lib in '' dl; do
27644 if test -z "$ac_lib"; then
27645 ac_res="none required"
27646 else
27647 ac_res=-l$ac_lib
27648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27650 rm -f conftest.$ac_objext conftest$ac_exeext
27651 if { (ac_try="$ac_link"
27652 case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27655 esac
27656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_link") 2>conftest.er1
27658 ac_status=$?
27659 grep -v '^ *+' conftest.er1 >conftest.err
27660 rm -f conftest.er1
27661 cat conftest.err >&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); } &&
27664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27665 { (case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27668 esac
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_try") 2>&5
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try='test -s conftest$ac_exeext'
27675 { (case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27678 esac
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_try") 2>&5
27681 ac_status=$?
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
27684 ac_cv_search_dlopen=$ac_res
27685 else
27686 echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27692 rm -f core conftest.err conftest.$ac_objext \
27693 conftest$ac_exeext
27694 if test "${ac_cv_search_dlopen+set}" = set; then
27695 break
27697 done
27698 if test "${ac_cv_search_dlopen+set}" = set; then
27700 else
27701 ac_cv_search_dlopen=no
27703 rm conftest.$ac_ext
27704 LIBS=$ac_func_search_save_LIBS
27706 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27707 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27708 ac_res=$ac_cv_search_dlopen
27709 if test "$ac_res" != no; then
27710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27712 cat >>confdefs.h <<\_ACEOF
27713 #define HAVE_DLOPEN 1
27714 _ACEOF
27716 else
27717 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27718 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27722 if test "$llvm_cv_enable_libffi" = "yes" ; then
27723 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27724 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27725 if test "${ac_cv_search_ffi_call+set}" = set; then
27726 echo $ECHO_N "(cached) $ECHO_C" >&6
27727 else
27728 ac_func_search_save_LIBS=$LIBS
27729 cat >conftest.$ac_ext <<_ACEOF
27730 /* confdefs.h. */
27731 _ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h. */
27736 /* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27739 #ifdef __cplusplus
27740 extern "C"
27741 #endif
27742 char ffi_call ();
27744 main ()
27746 return ffi_call ();
27748 return 0;
27750 _ACEOF
27751 for ac_lib in '' ffi; do
27752 if test -z "$ac_lib"; then
27753 ac_res="none required"
27754 else
27755 ac_res=-l$ac_lib
27756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27758 rm -f conftest.$ac_objext conftest$ac_exeext
27759 if { (ac_try="$ac_link"
27760 case "(($ac_try" in
27761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27762 *) ac_try_echo=$ac_try;;
27763 esac
27764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27765 (eval "$ac_link") 2>conftest.er1
27766 ac_status=$?
27767 grep -v '^ *+' conftest.er1 >conftest.err
27768 rm -f conftest.er1
27769 cat conftest.err >&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } &&
27772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27773 { (case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27776 esac
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_try") 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; } &&
27782 { ac_try='test -s conftest$ac_exeext'
27783 { (case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27786 esac
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_try") 2>&5
27789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
27792 ac_cv_search_ffi_call=$ac_res
27793 else
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27800 rm -f core conftest.err conftest.$ac_objext \
27801 conftest$ac_exeext
27802 if test "${ac_cv_search_ffi_call+set}" = set; then
27803 break
27805 done
27806 if test "${ac_cv_search_ffi_call+set}" = set; then
27808 else
27809 ac_cv_search_ffi_call=no
27811 rm conftest.$ac_ext
27812 LIBS=$ac_func_search_save_LIBS
27814 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27815 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27816 ac_res=$ac_cv_search_ffi_call
27817 if test "$ac_res" != no; then
27818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27820 cat >>confdefs.h <<\_ACEOF
27821 #define HAVE_FFI_CALL 1
27822 _ACEOF
27824 else
27825 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27826 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27831 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27832 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27833 if test "${ac_cv_search_mallinfo+set}" = set; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
27835 else
27836 ac_func_search_save_LIBS=$LIBS
27837 cat >conftest.$ac_ext <<_ACEOF
27838 /* confdefs.h. */
27839 _ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h. */
27844 /* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27847 #ifdef __cplusplus
27848 extern "C"
27849 #endif
27850 char mallinfo ();
27852 main ()
27854 return mallinfo ();
27856 return 0;
27858 _ACEOF
27859 for ac_lib in '' malloc; do
27860 if test -z "$ac_lib"; then
27861 ac_res="none required"
27862 else
27863 ac_res=-l$ac_lib
27864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27866 rm -f conftest.$ac_objext conftest$ac_exeext
27867 if { (ac_try="$ac_link"
27868 case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_link") 2>conftest.er1
27874 ac_status=$?
27875 grep -v '^ *+' conftest.er1 >conftest.err
27876 rm -f conftest.er1
27877 cat conftest.err >&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } &&
27880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27881 { (case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27884 esac
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_try") 2>&5
27887 ac_status=$?
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; } &&
27890 { ac_try='test -s conftest$ac_exeext'
27891 { (case "(($ac_try" in
27892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893 *) ac_try_echo=$ac_try;;
27894 esac
27895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896 (eval "$ac_try") 2>&5
27897 ac_status=$?
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; }; then
27900 ac_cv_search_mallinfo=$ac_res
27901 else
27902 echo "$as_me: failed program was:" >&5
27903 sed 's/^/| /' conftest.$ac_ext >&5
27908 rm -f core conftest.err conftest.$ac_objext \
27909 conftest$ac_exeext
27910 if test "${ac_cv_search_mallinfo+set}" = set; then
27911 break
27913 done
27914 if test "${ac_cv_search_mallinfo+set}" = set; then
27916 else
27917 ac_cv_search_mallinfo=no
27919 rm conftest.$ac_ext
27920 LIBS=$ac_func_search_save_LIBS
27922 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27923 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27924 ac_res=$ac_cv_search_mallinfo
27925 if test "$ac_res" != no; then
27926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27928 cat >>confdefs.h <<\_ACEOF
27929 #define HAVE_MALLINFO 1
27930 _ACEOF
27935 if test "$ENABLE_THREADS" -eq 1 ; then
27937 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27938 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27939 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27940 echo $ECHO_N "(cached) $ECHO_C" >&6
27941 else
27942 ac_check_lib_save_LIBS=$LIBS
27943 LIBS="-lpthread $LIBS"
27944 cat >conftest.$ac_ext <<_ACEOF
27945 /* confdefs.h. */
27946 _ACEOF
27947 cat confdefs.h >>conftest.$ac_ext
27948 cat >>conftest.$ac_ext <<_ACEOF
27949 /* end confdefs.h. */
27951 /* Override any GCC internal prototype to avoid an error.
27952 Use char because int might match the return type of a GCC
27953 builtin and then its argument prototype would still apply. */
27954 #ifdef __cplusplus
27955 extern "C"
27956 #endif
27957 char pthread_mutex_init ();
27959 main ()
27961 return pthread_mutex_init ();
27963 return 0;
27965 _ACEOF
27966 rm -f conftest.$ac_objext conftest$ac_exeext
27967 if { (ac_try="$ac_link"
27968 case "(($ac_try" in
27969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970 *) ac_try_echo=$ac_try;;
27971 esac
27972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973 (eval "$ac_link") 2>conftest.er1
27974 ac_status=$?
27975 grep -v '^ *+' conftest.er1 >conftest.err
27976 rm -f conftest.er1
27977 cat conftest.err >&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
27980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
27987 ac_status=$?
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest$ac_exeext'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27994 esac
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27997 ac_status=$?
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28000 ac_cv_lib_pthread_pthread_mutex_init=yes
28001 else
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28005 ac_cv_lib_pthread_pthread_mutex_init=no
28008 rm -f core conftest.err conftest.$ac_objext \
28009 conftest$ac_exeext conftest.$ac_ext
28010 LIBS=$ac_check_lib_save_LIBS
28012 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28013 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28014 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28015 cat >>confdefs.h <<_ACEOF
28016 #define HAVE_LIBPTHREAD 1
28017 _ACEOF
28019 LIBS="-lpthread $LIBS"
28023 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28024 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28025 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28027 else
28028 ac_func_search_save_LIBS=$LIBS
28029 cat >conftest.$ac_ext <<_ACEOF
28030 /* confdefs.h. */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28036 /* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
28039 #ifdef __cplusplus
28040 extern "C"
28041 #endif
28042 char pthread_mutex_lock ();
28044 main ()
28046 return pthread_mutex_lock ();
28048 return 0;
28050 _ACEOF
28051 for ac_lib in '' pthread; do
28052 if test -z "$ac_lib"; then
28053 ac_res="none required"
28054 else
28055 ac_res=-l$ac_lib
28056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059 if { (ac_try="$ac_link"
28060 case "(($ac_try" in
28061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28063 esac
28064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065 (eval "$ac_link") 2>conftest.er1
28066 ac_status=$?
28067 grep -v '^ *+' conftest.er1 >conftest.err
28068 rm -f conftest.er1
28069 cat conftest.err >&5
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); } &&
28072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28073 { (case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28076 esac
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_try") 2>&5
28079 ac_status=$?
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try='test -s conftest$ac_exeext'
28083 { (case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28086 esac
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_try") 2>&5
28089 ac_status=$?
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
28092 ac_cv_search_pthread_mutex_lock=$ac_res
28093 else
28094 echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28100 rm -f core conftest.err conftest.$ac_objext \
28101 conftest$ac_exeext
28102 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28103 break
28105 done
28106 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28108 else
28109 ac_cv_search_pthread_mutex_lock=no
28111 rm conftest.$ac_ext
28112 LIBS=$ac_func_search_save_LIBS
28114 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28115 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28116 ac_res=$ac_cv_search_pthread_mutex_lock
28117 if test "$ac_res" != no; then
28118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28120 cat >>confdefs.h <<\_ACEOF
28121 #define HAVE_PTHREAD_MUTEX_LOCK 1
28122 _ACEOF
28126 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28127 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28128 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28129 echo $ECHO_N "(cached) $ECHO_C" >&6
28130 else
28131 ac_func_search_save_LIBS=$LIBS
28132 cat >conftest.$ac_ext <<_ACEOF
28133 /* confdefs.h. */
28134 _ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h. */
28139 /* Override any GCC internal prototype to avoid an error.
28140 Use char because int might match the return type of a GCC
28141 builtin and then its argument prototype would still apply. */
28142 #ifdef __cplusplus
28143 extern "C"
28144 #endif
28145 char pthread_rwlock_init ();
28147 main ()
28149 return pthread_rwlock_init ();
28151 return 0;
28153 _ACEOF
28154 for ac_lib in '' pthread; do
28155 if test -z "$ac_lib"; then
28156 ac_res="none required"
28157 else
28158 ac_res=-l$ac_lib
28159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28161 rm -f conftest.$ac_objext conftest$ac_exeext
28162 if { (ac_try="$ac_link"
28163 case "(($ac_try" in
28164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28166 esac
28167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_link") 2>conftest.er1
28169 ac_status=$?
28170 grep -v '^ *+' conftest.er1 >conftest.err
28171 rm -f conftest.er1
28172 cat conftest.err >&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } &&
28175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28179 esac
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest$ac_exeext'
28186 { (case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28189 esac
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_try") 2>&5
28192 ac_status=$?
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; }; then
28195 ac_cv_search_pthread_rwlock_init=$ac_res
28196 else
28197 echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28203 rm -f core conftest.err conftest.$ac_objext \
28204 conftest$ac_exeext
28205 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28206 break
28208 done
28209 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28211 else
28212 ac_cv_search_pthread_rwlock_init=no
28214 rm conftest.$ac_ext
28215 LIBS=$ac_func_search_save_LIBS
28217 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28218 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28219 ac_res=$ac_cv_search_pthread_rwlock_init
28220 if test "$ac_res" != no; then
28221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28223 cat >>confdefs.h <<\_ACEOF
28224 #define HAVE_PTHREAD_RWLOCK_INIT 1
28225 _ACEOF
28229 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28230 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28231 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28232 echo $ECHO_N "(cached) $ECHO_C" >&6
28233 else
28234 ac_func_search_save_LIBS=$LIBS
28235 cat >conftest.$ac_ext <<_ACEOF
28236 /* confdefs.h. */
28237 _ACEOF
28238 cat confdefs.h >>conftest.$ac_ext
28239 cat >>conftest.$ac_ext <<_ACEOF
28240 /* end confdefs.h. */
28242 /* Override any GCC internal prototype to avoid an error.
28243 Use char because int might match the return type of a GCC
28244 builtin and then its argument prototype would still apply. */
28245 #ifdef __cplusplus
28246 extern "C"
28247 #endif
28248 char pthread_getspecific ();
28250 main ()
28252 return pthread_getspecific ();
28254 return 0;
28256 _ACEOF
28257 for ac_lib in '' pthread; do
28258 if test -z "$ac_lib"; then
28259 ac_res="none required"
28260 else
28261 ac_res=-l$ac_lib
28262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28264 rm -f conftest.$ac_objext conftest$ac_exeext
28265 if { (ac_try="$ac_link"
28266 case "(($ac_try" in
28267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268 *) ac_try_echo=$ac_try;;
28269 esac
28270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271 (eval "$ac_link") 2>conftest.er1
28272 ac_status=$?
28273 grep -v '^ *+' conftest.er1 >conftest.err
28274 rm -f conftest.er1
28275 cat conftest.err >&5
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } &&
28278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28279 { (case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28282 esac
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_try") 2>&5
28285 ac_status=$?
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; } &&
28288 { ac_try='test -s conftest$ac_exeext'
28289 { (case "(($ac_try" in
28290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291 *) ac_try_echo=$ac_try;;
28292 esac
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294 (eval "$ac_try") 2>&5
28295 ac_status=$?
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); }; }; then
28298 ac_cv_search_pthread_getspecific=$ac_res
28299 else
28300 echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28306 rm -f core conftest.err conftest.$ac_objext \
28307 conftest$ac_exeext
28308 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28309 break
28311 done
28312 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28314 else
28315 ac_cv_search_pthread_getspecific=no
28317 rm conftest.$ac_ext
28318 LIBS=$ac_func_search_save_LIBS
28320 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28321 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28322 ac_res=$ac_cv_search_pthread_getspecific
28323 if test "$ac_res" != no; then
28324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28326 cat >>confdefs.h <<\_ACEOF
28327 #define HAVE_PTHREAD_GETSPECIFIC 1
28328 _ACEOF
28335 # Check whether --with-udis86 was given.
28336 if test "${with_udis86+set}" = set; then
28337 withval=$with_udis86;
28338 USE_UDIS86=1
28340 case "$withval" in
28341 /usr/lib|yes) ;;
28342 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28343 esac
28345 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28346 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28347 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28348 echo $ECHO_N "(cached) $ECHO_C" >&6
28349 else
28350 ac_check_lib_save_LIBS=$LIBS
28351 LIBS="-ludis86 $LIBS"
28352 cat >conftest.$ac_ext <<_ACEOF
28353 /* confdefs.h. */
28354 _ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h. */
28359 /* Override any GCC internal prototype to avoid an error.
28360 Use char because int might match the return type of a GCC
28361 builtin and then its argument prototype would still apply. */
28362 #ifdef __cplusplus
28363 extern "C"
28364 #endif
28365 char ud_init ();
28367 main ()
28369 return ud_init ();
28371 return 0;
28373 _ACEOF
28374 rm -f conftest.$ac_objext conftest$ac_exeext
28375 if { (ac_try="$ac_link"
28376 case "(($ac_try" in
28377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28378 *) ac_try_echo=$ac_try;;
28379 esac
28380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28381 (eval "$ac_link") 2>conftest.er1
28382 ac_status=$?
28383 grep -v '^ *+' conftest.er1 >conftest.err
28384 rm -f conftest.er1
28385 cat conftest.err >&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
28388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28389 { (case "(($ac_try" in
28390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28391 *) ac_try_echo=$ac_try;;
28392 esac
28393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394 (eval "$ac_try") 2>&5
28395 ac_status=$?
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); }; } &&
28398 { ac_try='test -s conftest$ac_exeext'
28399 { (case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28402 esac
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_try") 2>&5
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
28408 ac_cv_lib_udis86_ud_init=yes
28409 else
28410 echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28413 ac_cv_lib_udis86_ud_init=no
28416 rm -f core conftest.err conftest.$ac_objext \
28417 conftest$ac_exeext conftest.$ac_ext
28418 LIBS=$ac_check_lib_save_LIBS
28420 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28421 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28422 if test $ac_cv_lib_udis86_ud_init = yes; then
28423 cat >>confdefs.h <<_ACEOF
28424 #define HAVE_LIBUDIS86 1
28425 _ACEOF
28427 LIBS="-ludis86 $LIBS"
28429 else
28431 echo "Error! You need to have libudis86 around."
28432 exit -1
28437 else
28438 USE_UDIS86=0
28443 cat >>confdefs.h <<_ACEOF
28444 #define USE_UDIS86 $USE_UDIS86
28445 _ACEOF
28449 # Check whether --with-oprofile was given.
28450 if test "${with_oprofile+set}" = set; then
28451 withval=$with_oprofile;
28452 USE_OPROFILE=1
28454 case "$withval" in
28455 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28456 *) llvm_cv_oppath="${withval}/lib/oprofile"
28457 CPPFLAGS="-I${withval}/include";;
28458 esac
28459 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28460 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28461 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28462 if test "${ac_cv_search_op_open_agent+set}" = set; then
28463 echo $ECHO_N "(cached) $ECHO_C" >&6
28464 else
28465 ac_func_search_save_LIBS=$LIBS
28466 cat >conftest.$ac_ext <<_ACEOF
28467 /* confdefs.h. */
28468 _ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h. */
28473 /* Override any GCC internal prototype to avoid an error.
28474 Use char because int might match the return type of a GCC
28475 builtin and then its argument prototype would still apply. */
28476 #ifdef __cplusplus
28477 extern "C"
28478 #endif
28479 char op_open_agent ();
28481 main ()
28483 return op_open_agent ();
28485 return 0;
28487 _ACEOF
28488 for ac_lib in '' opagent; do
28489 if test -z "$ac_lib"; then
28490 ac_res="none required"
28491 else
28492 ac_res=-l$ac_lib
28493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28495 rm -f conftest.$ac_objext conftest$ac_exeext
28496 if { (ac_try="$ac_link"
28497 case "(($ac_try" in
28498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499 *) ac_try_echo=$ac_try;;
28500 esac
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502 (eval "$ac_link") 2>conftest.er1
28503 ac_status=$?
28504 grep -v '^ *+' conftest.er1 >conftest.err
28505 rm -f conftest.er1
28506 cat conftest.err >&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } &&
28509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28519 { ac_try='test -s conftest$ac_exeext'
28520 { (case "(($ac_try" in
28521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28522 *) ac_try_echo=$ac_try;;
28523 esac
28524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28525 (eval "$ac_try") 2>&5
28526 ac_status=$?
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); }; }; then
28529 ac_cv_search_op_open_agent=$ac_res
28530 else
28531 echo "$as_me: failed program was:" >&5
28532 sed 's/^/| /' conftest.$ac_ext >&5
28537 rm -f core conftest.err conftest.$ac_objext \
28538 conftest$ac_exeext
28539 if test "${ac_cv_search_op_open_agent+set}" = set; then
28540 break
28542 done
28543 if test "${ac_cv_search_op_open_agent+set}" = set; then
28545 else
28546 ac_cv_search_op_open_agent=no
28548 rm conftest.$ac_ext
28549 LIBS=$ac_func_search_save_LIBS
28551 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28552 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28553 ac_res=$ac_cv_search_op_open_agent
28554 if test "$ac_res" != no; then
28555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28557 else
28559 echo "Error! You need to have libopagent around."
28560 exit -1
28564 if test "${ac_cv_header_opagent_h+set}" = set; then
28565 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28566 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28567 if test "${ac_cv_header_opagent_h+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28570 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28571 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28572 else
28573 # Is the header compilable?
28574 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28575 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28576 cat >conftest.$ac_ext <<_ACEOF
28577 /* confdefs.h. */
28578 _ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h. */
28582 $ac_includes_default
28583 #include <opagent.h>
28584 _ACEOF
28585 rm -f conftest.$ac_objext
28586 if { (ac_try="$ac_compile"
28587 case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590 esac
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_compile") 2>conftest.er1
28593 ac_status=$?
28594 grep -v '^ *+' conftest.er1 >conftest.err
28595 rm -f conftest.er1
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } &&
28599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603 esac
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
28609 { ac_try='test -s conftest.$ac_objext'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613 esac
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 ac_header_compiler=yes
28620 else
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28624 ac_header_compiler=no
28627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28629 echo "${ECHO_T}$ac_header_compiler" >&6; }
28631 # Is the header present?
28632 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28633 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28634 cat >conftest.$ac_ext <<_ACEOF
28635 /* confdefs.h. */
28636 _ACEOF
28637 cat confdefs.h >>conftest.$ac_ext
28638 cat >>conftest.$ac_ext <<_ACEOF
28639 /* end confdefs.h. */
28640 #include <opagent.h>
28641 _ACEOF
28642 if { (ac_try="$ac_cpp conftest.$ac_ext"
28643 case "(($ac_try" in
28644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28645 *) ac_try_echo=$ac_try;;
28646 esac
28647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28649 ac_status=$?
28650 grep -v '^ *+' conftest.er1 >conftest.err
28651 rm -f conftest.er1
28652 cat conftest.err >&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } >/dev/null; then
28655 if test -s conftest.err; then
28656 ac_cpp_err=$ac_c_preproc_warn_flag
28657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28658 else
28659 ac_cpp_err=
28661 else
28662 ac_cpp_err=yes
28664 if test -z "$ac_cpp_err"; then
28665 ac_header_preproc=yes
28666 else
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28670 ac_header_preproc=no
28673 rm -f conftest.err conftest.$ac_ext
28674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28675 echo "${ECHO_T}$ac_header_preproc" >&6; }
28677 # So? What about this header?
28678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28679 yes:no: )
28680 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28681 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28682 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28683 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28684 ac_header_preproc=yes
28686 no:yes:* )
28687 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28688 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28689 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28690 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28691 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28692 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28693 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28694 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28695 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28696 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28697 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28698 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28699 ( cat <<\_ASBOX
28700 ## ----------------------------------- ##
28701 ## Report this to llvmbugs@cs.uiuc.edu ##
28702 ## ----------------------------------- ##
28703 _ASBOX
28704 ) | sed "s/^/$as_me: WARNING: /" >&2
28706 esac
28707 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28708 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28709 if test "${ac_cv_header_opagent_h+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28711 else
28712 ac_cv_header_opagent_h=$ac_header_preproc
28714 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28715 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28718 if test $ac_cv_header_opagent_h = yes; then
28720 else
28722 echo "Error! You need to have opagent.h around."
28723 exit -1
28729 else
28731 llvm_cv_old_LIBS="$LIBS"
28732 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28733 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28734 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28735 if test "${ac_cv_search_op_open_agent+set}" = set; then
28736 echo $ECHO_N "(cached) $ECHO_C" >&6
28737 else
28738 ac_func_search_save_LIBS=$LIBS
28739 cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h. */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h. */
28746 /* Override any GCC internal prototype to avoid an error.
28747 Use char because int might match the return type of a GCC
28748 builtin and then its argument prototype would still apply. */
28749 #ifdef __cplusplus
28750 extern "C"
28751 #endif
28752 char op_open_agent ();
28754 main ()
28756 return op_open_agent ();
28758 return 0;
28760 _ACEOF
28761 for ac_lib in '' opagent; do
28762 if test -z "$ac_lib"; then
28763 ac_res="none required"
28764 else
28765 ac_res=-l$ac_lib
28766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28768 rm -f conftest.$ac_objext conftest$ac_exeext
28769 if { (ac_try="$ac_link"
28770 case "(($ac_try" in
28771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28772 *) ac_try_echo=$ac_try;;
28773 esac
28774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28775 (eval "$ac_link") 2>conftest.er1
28776 ac_status=$?
28777 grep -v '^ *+' conftest.er1 >conftest.err
28778 rm -f conftest.er1
28779 cat conftest.err >&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } &&
28782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28783 { (case "(($ac_try" in
28784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28786 esac
28787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788 (eval "$ac_try") 2>&5
28789 ac_status=$?
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); }; } &&
28792 { ac_try='test -s conftest$ac_exeext'
28793 { (case "(($ac_try" in
28794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795 *) ac_try_echo=$ac_try;;
28796 esac
28797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28798 (eval "$ac_try") 2>&5
28799 ac_status=$?
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
28802 ac_cv_search_op_open_agent=$ac_res
28803 else
28804 echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28810 rm -f core conftest.err conftest.$ac_objext \
28811 conftest$ac_exeext
28812 if test "${ac_cv_search_op_open_agent+set}" = set; then
28813 break
28815 done
28816 if test "${ac_cv_search_op_open_agent+set}" = set; then
28818 else
28819 ac_cv_search_op_open_agent=no
28821 rm conftest.$ac_ext
28822 LIBS=$ac_func_search_save_LIBS
28824 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28825 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28826 ac_res=$ac_cv_search_op_open_agent
28827 if test "$ac_res" != no; then
28828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28829 USE_OPROFILE=1
28831 else
28832 LIBS="$llvm_cv_old_LIBS"
28833 USE_OPROFILE=0
28837 if test "${ac_cv_header_opagent_h+set}" = set; then
28838 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28839 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28840 if test "${ac_cv_header_opagent_h+set}" = set; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28843 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28844 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28845 else
28846 # Is the header compilable?
28847 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28848 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28849 cat >conftest.$ac_ext <<_ACEOF
28850 /* confdefs.h. */
28851 _ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h. */
28855 $ac_includes_default
28856 #include <opagent.h>
28857 _ACEOF
28858 rm -f conftest.$ac_objext
28859 if { (ac_try="$ac_compile"
28860 case "(($ac_try" in
28861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28862 *) ac_try_echo=$ac_try;;
28863 esac
28864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865 (eval "$ac_compile") 2>conftest.er1
28866 ac_status=$?
28867 grep -v '^ *+' conftest.er1 >conftest.err
28868 rm -f conftest.er1
28869 cat conftest.err >&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
28872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28873 { (case "(($ac_try" in
28874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28875 *) ac_try_echo=$ac_try;;
28876 esac
28877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878 (eval "$ac_try") 2>&5
28879 ac_status=$?
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; } &&
28882 { ac_try='test -s conftest.$ac_objext'
28883 { (case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28886 esac
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_try") 2>&5
28889 ac_status=$?
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; }; then
28892 ac_header_compiler=yes
28893 else
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28897 ac_header_compiler=no
28900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28902 echo "${ECHO_T}$ac_header_compiler" >&6; }
28904 # Is the header present?
28905 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28906 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28907 cat >conftest.$ac_ext <<_ACEOF
28908 /* confdefs.h. */
28909 _ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h. */
28913 #include <opagent.h>
28914 _ACEOF
28915 if { (ac_try="$ac_cpp conftest.$ac_ext"
28916 case "(($ac_try" in
28917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28918 *) ac_try_echo=$ac_try;;
28919 esac
28920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28922 ac_status=$?
28923 grep -v '^ *+' conftest.er1 >conftest.err
28924 rm -f conftest.er1
28925 cat conftest.err >&5
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); } >/dev/null; then
28928 if test -s conftest.err; then
28929 ac_cpp_err=$ac_c_preproc_warn_flag
28930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28931 else
28932 ac_cpp_err=
28934 else
28935 ac_cpp_err=yes
28937 if test -z "$ac_cpp_err"; then
28938 ac_header_preproc=yes
28939 else
28940 echo "$as_me: failed program was:" >&5
28941 sed 's/^/| /' conftest.$ac_ext >&5
28943 ac_header_preproc=no
28946 rm -f conftest.err conftest.$ac_ext
28947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28948 echo "${ECHO_T}$ac_header_preproc" >&6; }
28950 # So? What about this header?
28951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28952 yes:no: )
28953 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28954 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28955 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28956 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28957 ac_header_preproc=yes
28959 no:yes:* )
28960 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28961 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28962 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28963 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28964 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28965 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28966 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28967 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28968 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28969 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28970 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28971 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28972 ( cat <<\_ASBOX
28973 ## ----------------------------------- ##
28974 ## Report this to llvmbugs@cs.uiuc.edu ##
28975 ## ----------------------------------- ##
28976 _ASBOX
28977 ) | sed "s/^/$as_me: WARNING: /" >&2
28979 esac
28980 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28981 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28982 if test "${ac_cv_header_opagent_h+set}" = set; then
28983 echo $ECHO_N "(cached) $ECHO_C" >&6
28984 else
28985 ac_cv_header_opagent_h=$ac_header_preproc
28987 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28988 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28991 if test $ac_cv_header_opagent_h = yes; then
28993 else
28995 LIBS="$llvm_cv_old_LIBS"
28996 USE_OPROFILE=0
29006 cat >>confdefs.h <<_ACEOF
29007 #define USE_OPROFILE $USE_OPROFILE
29008 _ACEOF
29017 ac_header_dirent=no
29018 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29019 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29020 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29021 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29023 echo $ECHO_N "(cached) $ECHO_C" >&6
29024 else
29025 cat >conftest.$ac_ext <<_ACEOF
29026 /* confdefs.h. */
29027 _ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h. */
29031 #include <sys/types.h>
29032 #include <$ac_hdr>
29035 main ()
29037 if ((DIR *) 0)
29038 return 0;
29040 return 0;
29042 _ACEOF
29043 rm -f conftest.$ac_objext
29044 if { (ac_try="$ac_compile"
29045 case "(($ac_try" in
29046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29048 esac
29049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050 (eval "$ac_compile") 2>conftest.er1
29051 ac_status=$?
29052 grep -v '^ *+' conftest.er1 >conftest.err
29053 rm -f conftest.er1
29054 cat conftest.err >&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); } &&
29057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29058 { (case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29061 esac
29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
29064 ac_status=$?
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; } &&
29067 { ac_try='test -s conftest.$ac_objext'
29068 { (case "(($ac_try" in
29069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070 *) ac_try_echo=$ac_try;;
29071 esac
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073 (eval "$ac_try") 2>&5
29074 ac_status=$?
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; }; then
29077 eval "$as_ac_Header=yes"
29078 else
29079 echo "$as_me: failed program was:" >&5
29080 sed 's/^/| /' conftest.$ac_ext >&5
29082 eval "$as_ac_Header=no"
29085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29087 ac_res=`eval echo '${'$as_ac_Header'}'`
29088 { echo "$as_me:$LINENO: result: $ac_res" >&5
29089 echo "${ECHO_T}$ac_res" >&6; }
29090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29091 cat >>confdefs.h <<_ACEOF
29092 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29093 _ACEOF
29095 ac_header_dirent=$ac_hdr; break
29098 done
29099 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29100 if test $ac_header_dirent = dirent.h; then
29101 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29102 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29103 if test "${ac_cv_search_opendir+set}" = set; then
29104 echo $ECHO_N "(cached) $ECHO_C" >&6
29105 else
29106 ac_func_search_save_LIBS=$LIBS
29107 cat >conftest.$ac_ext <<_ACEOF
29108 /* confdefs.h. */
29109 _ACEOF
29110 cat confdefs.h >>conftest.$ac_ext
29111 cat >>conftest.$ac_ext <<_ACEOF
29112 /* end confdefs.h. */
29114 /* Override any GCC internal prototype to avoid an error.
29115 Use char because int might match the return type of a GCC
29116 builtin and then its argument prototype would still apply. */
29117 #ifdef __cplusplus
29118 extern "C"
29119 #endif
29120 char opendir ();
29122 main ()
29124 return opendir ();
29126 return 0;
29128 _ACEOF
29129 for ac_lib in '' dir; do
29130 if test -z "$ac_lib"; then
29131 ac_res="none required"
29132 else
29133 ac_res=-l$ac_lib
29134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29136 rm -f conftest.$ac_objext conftest$ac_exeext
29137 if { (ac_try="$ac_link"
29138 case "(($ac_try" in
29139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140 *) ac_try_echo=$ac_try;;
29141 esac
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_link") 2>conftest.er1
29144 ac_status=$?
29145 grep -v '^ *+' conftest.er1 >conftest.err
29146 rm -f conftest.er1
29147 cat conftest.err >&5
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); } &&
29150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29151 { (case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29154 esac
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_try") 2>&5
29157 ac_status=$?
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); }; } &&
29160 { ac_try='test -s conftest$ac_exeext'
29161 { (case "(($ac_try" in
29162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163 *) ac_try_echo=$ac_try;;
29164 esac
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166 (eval "$ac_try") 2>&5
29167 ac_status=$?
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; }; then
29170 ac_cv_search_opendir=$ac_res
29171 else
29172 echo "$as_me: failed program was:" >&5
29173 sed 's/^/| /' conftest.$ac_ext >&5
29178 rm -f core conftest.err conftest.$ac_objext \
29179 conftest$ac_exeext
29180 if test "${ac_cv_search_opendir+set}" = set; then
29181 break
29183 done
29184 if test "${ac_cv_search_opendir+set}" = set; then
29186 else
29187 ac_cv_search_opendir=no
29189 rm conftest.$ac_ext
29190 LIBS=$ac_func_search_save_LIBS
29192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29194 ac_res=$ac_cv_search_opendir
29195 if test "$ac_res" != no; then
29196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29200 else
29201 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29203 if test "${ac_cv_search_opendir+set}" = set; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29205 else
29206 ac_func_search_save_LIBS=$LIBS
29207 cat >conftest.$ac_ext <<_ACEOF
29208 /* confdefs.h. */
29209 _ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h. */
29214 /* Override any GCC internal prototype to avoid an error.
29215 Use char because int might match the return type of a GCC
29216 builtin and then its argument prototype would still apply. */
29217 #ifdef __cplusplus
29218 extern "C"
29219 #endif
29220 char opendir ();
29222 main ()
29224 return opendir ();
29226 return 0;
29228 _ACEOF
29229 for ac_lib in '' x; do
29230 if test -z "$ac_lib"; then
29231 ac_res="none required"
29232 else
29233 ac_res=-l$ac_lib
29234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29236 rm -f conftest.$ac_objext conftest$ac_exeext
29237 if { (ac_try="$ac_link"
29238 case "(($ac_try" in
29239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29241 esac
29242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243 (eval "$ac_link") 2>conftest.er1
29244 ac_status=$?
29245 grep -v '^ *+' conftest.er1 >conftest.err
29246 rm -f conftest.er1
29247 cat conftest.err >&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } &&
29250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29251 { (case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29254 esac
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_try") 2>&5
29257 ac_status=$?
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; } &&
29260 { ac_try='test -s conftest$ac_exeext'
29261 { (case "(($ac_try" in
29262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263 *) ac_try_echo=$ac_try;;
29264 esac
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266 (eval "$ac_try") 2>&5
29267 ac_status=$?
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); }; }; then
29270 ac_cv_search_opendir=$ac_res
29271 else
29272 echo "$as_me: failed program was:" >&5
29273 sed 's/^/| /' conftest.$ac_ext >&5
29278 rm -f core conftest.err conftest.$ac_objext \
29279 conftest$ac_exeext
29280 if test "${ac_cv_search_opendir+set}" = set; then
29281 break
29283 done
29284 if test "${ac_cv_search_opendir+set}" = set; then
29286 else
29287 ac_cv_search_opendir=no
29289 rm conftest.$ac_ext
29290 LIBS=$ac_func_search_save_LIBS
29292 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29293 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29294 ac_res=$ac_cv_search_opendir
29295 if test "$ac_res" != no; then
29296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29302 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29303 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29304 if test "${ac_cv_header_mmap_anon+set}" = set; then
29305 echo $ECHO_N "(cached) $ECHO_C" >&6
29306 else
29307 ac_ext=c
29308 ac_cpp='$CPP $CPPFLAGS'
29309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29313 cat >conftest.$ac_ext <<_ACEOF
29314 /* confdefs.h. */
29315 _ACEOF
29316 cat confdefs.h >>conftest.$ac_ext
29317 cat >>conftest.$ac_ext <<_ACEOF
29318 /* end confdefs.h. */
29319 #include <sys/mman.h>
29320 #include <unistd.h>
29321 #include <fcntl.h>
29323 main ()
29325 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29327 return 0;
29329 _ACEOF
29330 rm -f conftest.$ac_objext
29331 if { (ac_try="$ac_compile"
29332 case "(($ac_try" in
29333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334 *) ac_try_echo=$ac_try;;
29335 esac
29336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337 (eval "$ac_compile") 2>conftest.er1
29338 ac_status=$?
29339 grep -v '^ *+' conftest.er1 >conftest.err
29340 rm -f conftest.er1
29341 cat conftest.err >&5
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); } &&
29344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29345 { (case "(($ac_try" in
29346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29347 *) ac_try_echo=$ac_try;;
29348 esac
29349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29350 (eval "$ac_try") 2>&5
29351 ac_status=$?
29352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353 (exit $ac_status); }; } &&
29354 { ac_try='test -s conftest.$ac_objext'
29355 { (case "(($ac_try" in
29356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357 *) ac_try_echo=$ac_try;;
29358 esac
29359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29360 (eval "$ac_try") 2>&5
29361 ac_status=$?
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); }; }; then
29364 ac_cv_header_mmap_anon=yes
29365 else
29366 echo "$as_me: failed program was:" >&5
29367 sed 's/^/| /' conftest.$ac_ext >&5
29369 ac_cv_header_mmap_anon=no
29372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29373 ac_ext=c
29374 ac_cpp='$CPP $CPPFLAGS'
29375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29381 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29382 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29383 if test "$ac_cv_header_mmap_anon" = yes; then
29385 cat >>confdefs.h <<\_ACEOF
29386 #define HAVE_MMAP_ANONYMOUS 1
29387 _ACEOF
29391 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29392 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29393 if test "${ac_cv_header_stat_broken+set}" = set; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29395 else
29396 cat >conftest.$ac_ext <<_ACEOF
29397 /* confdefs.h. */
29398 _ACEOF
29399 cat confdefs.h >>conftest.$ac_ext
29400 cat >>conftest.$ac_ext <<_ACEOF
29401 /* end confdefs.h. */
29402 #include <sys/types.h>
29403 #include <sys/stat.h>
29405 #if defined S_ISBLK && defined S_IFDIR
29406 # if S_ISBLK (S_IFDIR)
29407 You lose.
29408 # endif
29409 #endif
29411 #if defined S_ISBLK && defined S_IFCHR
29412 # if S_ISBLK (S_IFCHR)
29413 You lose.
29414 # endif
29415 #endif
29417 #if defined S_ISLNK && defined S_IFREG
29418 # if S_ISLNK (S_IFREG)
29419 You lose.
29420 # endif
29421 #endif
29423 #if defined S_ISSOCK && defined S_IFREG
29424 # if S_ISSOCK (S_IFREG)
29425 You lose.
29426 # endif
29427 #endif
29429 _ACEOF
29430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29431 $EGREP "You lose" >/dev/null 2>&1; then
29432 ac_cv_header_stat_broken=yes
29433 else
29434 ac_cv_header_stat_broken=no
29436 rm -f conftest*
29439 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29440 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29441 if test $ac_cv_header_stat_broken = yes; then
29443 cat >>confdefs.h <<\_ACEOF
29444 #define STAT_MACROS_BROKEN 1
29445 _ACEOF
29449 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29450 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29451 if test "${ac_cv_header_stdc+set}" = set; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
29453 else
29454 cat >conftest.$ac_ext <<_ACEOF
29455 /* confdefs.h. */
29456 _ACEOF
29457 cat confdefs.h >>conftest.$ac_ext
29458 cat >>conftest.$ac_ext <<_ACEOF
29459 /* end confdefs.h. */
29460 #include <stdlib.h>
29461 #include <stdarg.h>
29462 #include <string.h>
29463 #include <float.h>
29466 main ()
29470 return 0;
29472 _ACEOF
29473 rm -f conftest.$ac_objext
29474 if { (ac_try="$ac_compile"
29475 case "(($ac_try" in
29476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29478 esac
29479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480 (eval "$ac_compile") 2>conftest.er1
29481 ac_status=$?
29482 grep -v '^ *+' conftest.er1 >conftest.err
29483 rm -f conftest.er1
29484 cat conftest.err >&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } &&
29487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29488 { (case "(($ac_try" in
29489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490 *) ac_try_echo=$ac_try;;
29491 esac
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_try") 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest.$ac_objext'
29498 { (case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29501 esac
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503 (eval "$ac_try") 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
29507 ac_cv_header_stdc=yes
29508 else
29509 echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29512 ac_cv_header_stdc=no
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29517 if test $ac_cv_header_stdc = yes; then
29518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29519 cat >conftest.$ac_ext <<_ACEOF
29520 /* confdefs.h. */
29521 _ACEOF
29522 cat confdefs.h >>conftest.$ac_ext
29523 cat >>conftest.$ac_ext <<_ACEOF
29524 /* end confdefs.h. */
29525 #include <string.h>
29527 _ACEOF
29528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29529 $EGREP "memchr" >/dev/null 2>&1; then
29531 else
29532 ac_cv_header_stdc=no
29534 rm -f conftest*
29538 if test $ac_cv_header_stdc = yes; then
29539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29540 cat >conftest.$ac_ext <<_ACEOF
29541 /* confdefs.h. */
29542 _ACEOF
29543 cat confdefs.h >>conftest.$ac_ext
29544 cat >>conftest.$ac_ext <<_ACEOF
29545 /* end confdefs.h. */
29546 #include <stdlib.h>
29548 _ACEOF
29549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29550 $EGREP "free" >/dev/null 2>&1; then
29552 else
29553 ac_cv_header_stdc=no
29555 rm -f conftest*
29559 if test $ac_cv_header_stdc = yes; then
29560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29561 if test "$cross_compiling" = yes; then
29563 else
29564 cat >conftest.$ac_ext <<_ACEOF
29565 /* confdefs.h. */
29566 _ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29570 #include <ctype.h>
29571 #include <stdlib.h>
29572 #if ((' ' & 0x0FF) == 0x020)
29573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29575 #else
29576 # define ISLOWER(c) \
29577 (('a' <= (c) && (c) <= 'i') \
29578 || ('j' <= (c) && (c) <= 'r') \
29579 || ('s' <= (c) && (c) <= 'z'))
29580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29581 #endif
29583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29585 main ()
29587 int i;
29588 for (i = 0; i < 256; i++)
29589 if (XOR (islower (i), ISLOWER (i))
29590 || toupper (i) != TOUPPER (i))
29591 return 2;
29592 return 0;
29594 _ACEOF
29595 rm -f conftest$ac_exeext
29596 if { (ac_try="$ac_link"
29597 case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29600 esac
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_link") 2>&5
29603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29606 { (case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29609 esac
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_try") 2>&5
29612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; }; then
29616 else
29617 echo "$as_me: program exited with status $ac_status" >&5
29618 echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29621 ( exit $ac_status )
29622 ac_cv_header_stdc=no
29624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29630 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29631 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29632 if test $ac_cv_header_stdc = yes; then
29634 cat >>confdefs.h <<\_ACEOF
29635 #define STDC_HEADERS 1
29636 _ACEOF
29640 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29641 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29642 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29644 else
29645 cat >conftest.$ac_ext <<_ACEOF
29646 /* confdefs.h. */
29647 _ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h. */
29651 #include <sys/types.h>
29652 #include <sys/wait.h>
29653 #ifndef WEXITSTATUS
29654 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29655 #endif
29656 #ifndef WIFEXITED
29657 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29658 #endif
29661 main ()
29663 int s;
29664 wait (&s);
29665 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29667 return 0;
29669 _ACEOF
29670 rm -f conftest.$ac_objext
29671 if { (ac_try="$ac_compile"
29672 case "(($ac_try" in
29673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674 *) ac_try_echo=$ac_try;;
29675 esac
29676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_compile") 2>conftest.er1
29678 ac_status=$?
29679 grep -v '^ *+' conftest.er1 >conftest.err
29680 rm -f conftest.er1
29681 cat conftest.err >&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); } &&
29684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29685 { (case "(($ac_try" in
29686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687 *) ac_try_echo=$ac_try;;
29688 esac
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690 (eval "$ac_try") 2>&5
29691 ac_status=$?
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest.$ac_objext'
29695 { (case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29698 esac
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_try") 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
29704 ac_cv_header_sys_wait_h=yes
29705 else
29706 echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29709 ac_cv_header_sys_wait_h=no
29712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29714 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29715 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29716 if test $ac_cv_header_sys_wait_h = yes; then
29718 cat >>confdefs.h <<\_ACEOF
29719 #define HAVE_SYS_WAIT_H 1
29720 _ACEOF
29724 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29725 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29726 if test "${ac_cv_header_time+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29728 else
29729 cat >conftest.$ac_ext <<_ACEOF
29730 /* confdefs.h. */
29731 _ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29735 #include <sys/types.h>
29736 #include <sys/time.h>
29737 #include <time.h>
29740 main ()
29742 if ((struct tm *) 0)
29743 return 0;
29745 return 0;
29747 _ACEOF
29748 rm -f conftest.$ac_objext
29749 if { (ac_try="$ac_compile"
29750 case "(($ac_try" in
29751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29753 esac
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_compile") 2>conftest.er1
29756 ac_status=$?
29757 grep -v '^ *+' conftest.er1 >conftest.err
29758 rm -f conftest.er1
29759 cat conftest.err >&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } &&
29762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29763 { (case "(($ac_try" in
29764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765 *) ac_try_echo=$ac_try;;
29766 esac
29767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768 (eval "$ac_try") 2>&5
29769 ac_status=$?
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); }; } &&
29772 { ac_try='test -s conftest.$ac_objext'
29773 { (case "(($ac_try" in
29774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29775 *) ac_try_echo=$ac_try;;
29776 esac
29777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29778 (eval "$ac_try") 2>&5
29779 ac_status=$?
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); }; }; then
29782 ac_cv_header_time=yes
29783 else
29784 echo "$as_me: failed program was:" >&5
29785 sed 's/^/| /' conftest.$ac_ext >&5
29787 ac_cv_header_time=no
29790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29793 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29794 if test $ac_cv_header_time = yes; then
29796 cat >>confdefs.h <<\_ACEOF
29797 #define TIME_WITH_SYS_TIME 1
29798 _ACEOF
29809 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29818 ac_res=`eval echo '${'$as_ac_Header'}'`
29819 { echo "$as_me:$LINENO: result: $ac_res" >&5
29820 echo "${ECHO_T}$ac_res" >&6; }
29821 else
29822 # Is the header compilable?
29823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29825 cat >conftest.$ac_ext <<_ACEOF
29826 /* confdefs.h. */
29827 _ACEOF
29828 cat confdefs.h >>conftest.$ac_ext
29829 cat >>conftest.$ac_ext <<_ACEOF
29830 /* end confdefs.h. */
29831 $ac_includes_default
29832 #include <$ac_header>
29833 _ACEOF
29834 rm -f conftest.$ac_objext
29835 if { (ac_try="$ac_compile"
29836 case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29839 esac
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_compile") 2>conftest.er1
29842 ac_status=$?
29843 grep -v '^ *+' conftest.er1 >conftest.err
29844 rm -f conftest.er1
29845 cat conftest.err >&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); } &&
29848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29849 { (case "(($ac_try" in
29850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29851 *) ac_try_echo=$ac_try;;
29852 esac
29853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_try") 2>&5
29855 ac_status=$?
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; } &&
29858 { ac_try='test -s conftest.$ac_objext'
29859 { (case "(($ac_try" in
29860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29861 *) ac_try_echo=$ac_try;;
29862 esac
29863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29864 (eval "$ac_try") 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; }; then
29868 ac_header_compiler=yes
29869 else
29870 echo "$as_me: failed program was:" >&5
29871 sed 's/^/| /' conftest.$ac_ext >&5
29873 ac_header_compiler=no
29876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29878 echo "${ECHO_T}$ac_header_compiler" >&6; }
29880 # Is the header present?
29881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29883 cat >conftest.$ac_ext <<_ACEOF
29884 /* confdefs.h. */
29885 _ACEOF
29886 cat confdefs.h >>conftest.$ac_ext
29887 cat >>conftest.$ac_ext <<_ACEOF
29888 /* end confdefs.h. */
29889 #include <$ac_header>
29890 _ACEOF
29891 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
29904 if test -s conftest.err; then
29905 ac_cpp_err=$ac_c_preproc_warn_flag
29906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29907 else
29908 ac_cpp_err=
29910 else
29911 ac_cpp_err=yes
29913 if test -z "$ac_cpp_err"; then
29914 ac_header_preproc=yes
29915 else
29916 echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29919 ac_header_preproc=no
29922 rm -f conftest.err conftest.$ac_ext
29923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29924 echo "${ECHO_T}$ac_header_preproc" >&6; }
29926 # So? What about this header?
29927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29928 yes:no: )
29929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29933 ac_header_preproc=yes
29935 no:yes:* )
29936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29948 ( cat <<\_ASBOX
29949 ## ----------------------------------- ##
29950 ## Report this to llvmbugs@cs.uiuc.edu ##
29951 ## ----------------------------------- ##
29952 _ASBOX
29953 ) | sed "s/^/$as_me: WARNING: /" >&2
29955 esac
29956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29959 echo $ECHO_N "(cached) $ECHO_C" >&6
29960 else
29961 eval "$as_ac_Header=\$ac_header_preproc"
29963 ac_res=`eval echo '${'$as_ac_Header'}'`
29964 { echo "$as_me:$LINENO: result: $ac_res" >&5
29965 echo "${ECHO_T}$ac_res" >&6; }
29968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29969 cat >>confdefs.h <<_ACEOF
29970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29971 _ACEOF
29975 done
29983 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29990 echo $ECHO_N "(cached) $ECHO_C" >&6
29992 ac_res=`eval echo '${'$as_ac_Header'}'`
29993 { echo "$as_me:$LINENO: result: $ac_res" >&5
29994 echo "${ECHO_T}$ac_res" >&6; }
29995 else
29996 # Is the header compilable?
29997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29999 cat >conftest.$ac_ext <<_ACEOF
30000 /* confdefs.h. */
30001 _ACEOF
30002 cat confdefs.h >>conftest.$ac_ext
30003 cat >>conftest.$ac_ext <<_ACEOF
30004 /* end confdefs.h. */
30005 $ac_includes_default
30006 #include <$ac_header>
30007 _ACEOF
30008 rm -f conftest.$ac_objext
30009 if { (ac_try="$ac_compile"
30010 case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_compile") 2>conftest.er1
30016 ac_status=$?
30017 grep -v '^ *+' conftest.er1 >conftest.err
30018 rm -f conftest.er1
30019 cat conftest.err >&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); } &&
30022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30023 { (case "(($ac_try" in
30024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30025 *) ac_try_echo=$ac_try;;
30026 esac
30027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028 (eval "$ac_try") 2>&5
30029 ac_status=$?
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; } &&
30032 { ac_try='test -s conftest.$ac_objext'
30033 { (case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30036 esac
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_try") 2>&5
30039 ac_status=$?
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; }; then
30042 ac_header_compiler=yes
30043 else
30044 echo "$as_me: failed program was:" >&5
30045 sed 's/^/| /' conftest.$ac_ext >&5
30047 ac_header_compiler=no
30050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30052 echo "${ECHO_T}$ac_header_compiler" >&6; }
30054 # Is the header present?
30055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30057 cat >conftest.$ac_ext <<_ACEOF
30058 /* confdefs.h. */
30059 _ACEOF
30060 cat confdefs.h >>conftest.$ac_ext
30061 cat >>conftest.$ac_ext <<_ACEOF
30062 /* end confdefs.h. */
30063 #include <$ac_header>
30064 _ACEOF
30065 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
30078 if test -s conftest.err; then
30079 ac_cpp_err=$ac_c_preproc_warn_flag
30080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30081 else
30082 ac_cpp_err=
30084 else
30085 ac_cpp_err=yes
30087 if test -z "$ac_cpp_err"; then
30088 ac_header_preproc=yes
30089 else
30090 echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30093 ac_header_preproc=no
30096 rm -f conftest.err conftest.$ac_ext
30097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30098 echo "${ECHO_T}$ac_header_preproc" >&6; }
30100 # So? What about this header?
30101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30102 yes:no: )
30103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30107 ac_header_preproc=yes
30109 no:yes:* )
30110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30122 ( cat <<\_ASBOX
30123 ## ----------------------------------- ##
30124 ## Report this to llvmbugs@cs.uiuc.edu ##
30125 ## ----------------------------------- ##
30126 _ASBOX
30127 ) | sed "s/^/$as_me: WARNING: /" >&2
30129 esac
30130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30133 echo $ECHO_N "(cached) $ECHO_C" >&6
30134 else
30135 eval "$as_ac_Header=\$ac_header_preproc"
30137 ac_res=`eval echo '${'$as_ac_Header'}'`
30138 { echo "$as_me:$LINENO: result: $ac_res" >&5
30139 echo "${ECHO_T}$ac_res" >&6; }
30142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30143 cat >>confdefs.h <<_ACEOF
30144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30145 _ACEOF
30149 done
30153 for ac_header in utime.h windows.h
30155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30160 echo $ECHO_N "(cached) $ECHO_C" >&6
30162 ac_res=`eval echo '${'$as_ac_Header'}'`
30163 { echo "$as_me:$LINENO: result: $ac_res" >&5
30164 echo "${ECHO_T}$ac_res" >&6; }
30165 else
30166 # Is the header compilable?
30167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30169 cat >conftest.$ac_ext <<_ACEOF
30170 /* confdefs.h. */
30171 _ACEOF
30172 cat confdefs.h >>conftest.$ac_ext
30173 cat >>conftest.$ac_ext <<_ACEOF
30174 /* end confdefs.h. */
30175 $ac_includes_default
30176 #include <$ac_header>
30177 _ACEOF
30178 rm -f conftest.$ac_objext
30179 if { (ac_try="$ac_compile"
30180 case "(($ac_try" in
30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30183 esac
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_compile") 2>conftest.er1
30186 ac_status=$?
30187 grep -v '^ *+' conftest.er1 >conftest.err
30188 rm -f conftest.er1
30189 cat conftest.err >&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); } &&
30192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30193 { (case "(($ac_try" in
30194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30195 *) ac_try_echo=$ac_try;;
30196 esac
30197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198 (eval "$ac_try") 2>&5
30199 ac_status=$?
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); }; } &&
30202 { ac_try='test -s conftest.$ac_objext'
30203 { (case "(($ac_try" in
30204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30206 esac
30207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208 (eval "$ac_try") 2>&5
30209 ac_status=$?
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; }; then
30212 ac_header_compiler=yes
30213 else
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30217 ac_header_compiler=no
30220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30222 echo "${ECHO_T}$ac_header_compiler" >&6; }
30224 # Is the header present?
30225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30227 cat >conftest.$ac_ext <<_ACEOF
30228 /* confdefs.h. */
30229 _ACEOF
30230 cat confdefs.h >>conftest.$ac_ext
30231 cat >>conftest.$ac_ext <<_ACEOF
30232 /* end confdefs.h. */
30233 #include <$ac_header>
30234 _ACEOF
30235 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
30248 if test -s conftest.err; then
30249 ac_cpp_err=$ac_c_preproc_warn_flag
30250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30251 else
30252 ac_cpp_err=
30254 else
30255 ac_cpp_err=yes
30257 if test -z "$ac_cpp_err"; then
30258 ac_header_preproc=yes
30259 else
30260 echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30263 ac_header_preproc=no
30266 rm -f conftest.err conftest.$ac_ext
30267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30268 echo "${ECHO_T}$ac_header_preproc" >&6; }
30270 # So? What about this header?
30271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30272 yes:no: )
30273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30277 ac_header_preproc=yes
30279 no:yes:* )
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30292 ( cat <<\_ASBOX
30293 ## ----------------------------------- ##
30294 ## Report this to llvmbugs@cs.uiuc.edu ##
30295 ## ----------------------------------- ##
30296 _ASBOX
30297 ) | sed "s/^/$as_me: WARNING: /" >&2
30299 esac
30300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30304 else
30305 eval "$as_ac_Header=\$ac_header_preproc"
30307 ac_res=`eval echo '${'$as_ac_Header'}'`
30308 { echo "$as_me:$LINENO: result: $ac_res" >&5
30309 echo "${ECHO_T}$ac_res" >&6; }
30312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30313 cat >>confdefs.h <<_ACEOF
30314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30315 _ACEOF
30319 done
30325 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30332 echo $ECHO_N "(cached) $ECHO_C" >&6
30334 ac_res=`eval echo '${'$as_ac_Header'}'`
30335 { echo "$as_me:$LINENO: result: $ac_res" >&5
30336 echo "${ECHO_T}$ac_res" >&6; }
30337 else
30338 # Is the header compilable?
30339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30341 cat >conftest.$ac_ext <<_ACEOF
30342 /* confdefs.h. */
30343 _ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h. */
30347 $ac_includes_default
30348 #include <$ac_header>
30349 _ACEOF
30350 rm -f conftest.$ac_objext
30351 if { (ac_try="$ac_compile"
30352 case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30355 esac
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_compile") 2>conftest.er1
30358 ac_status=$?
30359 grep -v '^ *+' conftest.er1 >conftest.err
30360 rm -f conftest.er1
30361 cat conftest.err >&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } &&
30364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30365 { (case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30368 esac
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370 (eval "$ac_try") 2>&5
30371 ac_status=$?
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; } &&
30374 { ac_try='test -s conftest.$ac_objext'
30375 { (case "(($ac_try" in
30376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30377 *) ac_try_echo=$ac_try;;
30378 esac
30379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380 (eval "$ac_try") 2>&5
30381 ac_status=$?
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); }; }; then
30384 ac_header_compiler=yes
30385 else
30386 echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30389 ac_header_compiler=no
30392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30394 echo "${ECHO_T}$ac_header_compiler" >&6; }
30396 # Is the header present?
30397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30399 cat >conftest.$ac_ext <<_ACEOF
30400 /* confdefs.h. */
30401 _ACEOF
30402 cat confdefs.h >>conftest.$ac_ext
30403 cat >>conftest.$ac_ext <<_ACEOF
30404 /* end confdefs.h. */
30405 #include <$ac_header>
30406 _ACEOF
30407 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
30420 if test -s conftest.err; then
30421 ac_cpp_err=$ac_c_preproc_warn_flag
30422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30423 else
30424 ac_cpp_err=
30426 else
30427 ac_cpp_err=yes
30429 if test -z "$ac_cpp_err"; then
30430 ac_header_preproc=yes
30431 else
30432 echo "$as_me: failed program was:" >&5
30433 sed 's/^/| /' conftest.$ac_ext >&5
30435 ac_header_preproc=no
30438 rm -f conftest.err conftest.$ac_ext
30439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30440 echo "${ECHO_T}$ac_header_preproc" >&6; }
30442 # So? What about this header?
30443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30444 yes:no: )
30445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30449 ac_header_preproc=yes
30451 no:yes:* )
30452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30464 ( cat <<\_ASBOX
30465 ## ----------------------------------- ##
30466 ## Report this to llvmbugs@cs.uiuc.edu ##
30467 ## ----------------------------------- ##
30468 _ASBOX
30469 ) | sed "s/^/$as_me: WARNING: /" >&2
30471 esac
30472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30476 else
30477 eval "$as_ac_Header=\$ac_header_preproc"
30479 ac_res=`eval echo '${'$as_ac_Header'}'`
30480 { echo "$as_me:$LINENO: result: $ac_res" >&5
30481 echo "${ECHO_T}$ac_res" >&6; }
30484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30485 cat >>confdefs.h <<_ACEOF
30486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30487 _ACEOF
30491 done
30497 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30504 echo $ECHO_N "(cached) $ECHO_C" >&6
30506 ac_res=`eval echo '${'$as_ac_Header'}'`
30507 { echo "$as_me:$LINENO: result: $ac_res" >&5
30508 echo "${ECHO_T}$ac_res" >&6; }
30509 else
30510 # Is the header compilable?
30511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30513 cat >conftest.$ac_ext <<_ACEOF
30514 /* confdefs.h. */
30515 _ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h. */
30519 $ac_includes_default
30520 #include <$ac_header>
30521 _ACEOF
30522 rm -f conftest.$ac_objext
30523 if { (ac_try="$ac_compile"
30524 case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30527 esac
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_compile") 2>conftest.er1
30530 ac_status=$?
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
30536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30537 { (case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30540 esac
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_try") 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; } &&
30546 { ac_try='test -s conftest.$ac_objext'
30547 { (case "(($ac_try" in
30548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549 *) ac_try_echo=$ac_try;;
30550 esac
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552 (eval "$ac_try") 2>&5
30553 ac_status=$?
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; }; then
30556 ac_header_compiler=yes
30557 else
30558 echo "$as_me: failed program was:" >&5
30559 sed 's/^/| /' conftest.$ac_ext >&5
30561 ac_header_compiler=no
30564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30566 echo "${ECHO_T}$ac_header_compiler" >&6; }
30568 # Is the header present?
30569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30571 cat >conftest.$ac_ext <<_ACEOF
30572 /* confdefs.h. */
30573 _ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30577 #include <$ac_header>
30578 _ACEOF
30579 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
30592 if test -s conftest.err; then
30593 ac_cpp_err=$ac_c_preproc_warn_flag
30594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30595 else
30596 ac_cpp_err=
30598 else
30599 ac_cpp_err=yes
30601 if test -z "$ac_cpp_err"; then
30602 ac_header_preproc=yes
30603 else
30604 echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30607 ac_header_preproc=no
30610 rm -f conftest.err conftest.$ac_ext
30611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30612 echo "${ECHO_T}$ac_header_preproc" >&6; }
30614 # So? What about this header?
30615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30616 yes:no: )
30617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30621 ac_header_preproc=yes
30623 no:yes:* )
30624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30636 ( cat <<\_ASBOX
30637 ## ----------------------------------- ##
30638 ## Report this to llvmbugs@cs.uiuc.edu ##
30639 ## ----------------------------------- ##
30640 _ASBOX
30641 ) | sed "s/^/$as_me: WARNING: /" >&2
30643 esac
30644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648 else
30649 eval "$as_ac_Header=\$ac_header_preproc"
30651 ac_res=`eval echo '${'$as_ac_Header'}'`
30652 { echo "$as_me:$LINENO: result: $ac_res" >&5
30653 echo "${ECHO_T}$ac_res" >&6; }
30656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30657 cat >>confdefs.h <<_ACEOF
30658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30659 _ACEOF
30663 done
30665 if test "$ENABLE_THREADS" -eq 1 ; then
30667 for ac_header in pthread.h
30669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30674 echo $ECHO_N "(cached) $ECHO_C" >&6
30676 ac_res=`eval echo '${'$as_ac_Header'}'`
30677 { echo "$as_me:$LINENO: result: $ac_res" >&5
30678 echo "${ECHO_T}$ac_res" >&6; }
30679 else
30680 # Is the header compilable?
30681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30683 cat >conftest.$ac_ext <<_ACEOF
30684 /* confdefs.h. */
30685 _ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h. */
30689 $ac_includes_default
30690 #include <$ac_header>
30691 _ACEOF
30692 rm -f conftest.$ac_objext
30693 if { (ac_try="$ac_compile"
30694 case "(($ac_try" in
30695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696 *) ac_try_echo=$ac_try;;
30697 esac
30698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699 (eval "$ac_compile") 2>conftest.er1
30700 ac_status=$?
30701 grep -v '^ *+' conftest.er1 >conftest.err
30702 rm -f conftest.er1
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } &&
30706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30707 { (case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30710 esac
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_try") 2>&5
30713 ac_status=$?
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; } &&
30716 { ac_try='test -s conftest.$ac_objext'
30717 { (case "(($ac_try" in
30718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719 *) ac_try_echo=$ac_try;;
30720 esac
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_try") 2>&5
30723 ac_status=$?
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; }; then
30726 ac_header_compiler=yes
30727 else
30728 echo "$as_me: failed program was:" >&5
30729 sed 's/^/| /' conftest.$ac_ext >&5
30731 ac_header_compiler=no
30734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30736 echo "${ECHO_T}$ac_header_compiler" >&6; }
30738 # Is the header present?
30739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30741 cat >conftest.$ac_ext <<_ACEOF
30742 /* confdefs.h. */
30743 _ACEOF
30744 cat confdefs.h >>conftest.$ac_ext
30745 cat >>conftest.$ac_ext <<_ACEOF
30746 /* end confdefs.h. */
30747 #include <$ac_header>
30748 _ACEOF
30749 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
30762 if test -s conftest.err; then
30763 ac_cpp_err=$ac_c_preproc_warn_flag
30764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30765 else
30766 ac_cpp_err=
30768 else
30769 ac_cpp_err=yes
30771 if test -z "$ac_cpp_err"; then
30772 ac_header_preproc=yes
30773 else
30774 echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30777 ac_header_preproc=no
30780 rm -f conftest.err conftest.$ac_ext
30781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30782 echo "${ECHO_T}$ac_header_preproc" >&6; }
30784 # So? What about this header?
30785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30786 yes:no: )
30787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30791 ac_header_preproc=yes
30793 no:yes:* )
30794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30806 ( cat <<\_ASBOX
30807 ## ----------------------------------- ##
30808 ## Report this to llvmbugs@cs.uiuc.edu ##
30809 ## ----------------------------------- ##
30810 _ASBOX
30811 ) | sed "s/^/$as_me: WARNING: /" >&2
30813 esac
30814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 else
30819 eval "$as_ac_Header=\$ac_header_preproc"
30821 ac_res=`eval echo '${'$as_ac_Header'}'`
30822 { echo "$as_me:$LINENO: result: $ac_res" >&5
30823 echo "${ECHO_T}$ac_res" >&6; }
30826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30827 cat >>confdefs.h <<_ACEOF
30828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30829 _ACEOF
30830 HAVE_PTHREAD=1
30832 else
30833 HAVE_PTHREAD=0
30837 done
30839 else
30840 HAVE_PTHREAD=0
30844 if test "$llvm_cv_enable_libffi" = "yes" ; then
30847 for ac_header in ffi.h ffi/ffi.h
30849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30854 echo $ECHO_N "(cached) $ECHO_C" >&6
30856 ac_res=`eval echo '${'$as_ac_Header'}'`
30857 { echo "$as_me:$LINENO: result: $ac_res" >&5
30858 echo "${ECHO_T}$ac_res" >&6; }
30859 else
30860 # Is the header compilable?
30861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30863 cat >conftest.$ac_ext <<_ACEOF
30864 /* confdefs.h. */
30865 _ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h. */
30869 $ac_includes_default
30870 #include <$ac_header>
30871 _ACEOF
30872 rm -f conftest.$ac_objext
30873 if { (ac_try="$ac_compile"
30874 case "(($ac_try" in
30875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876 *) ac_try_echo=$ac_try;;
30877 esac
30878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879 (eval "$ac_compile") 2>conftest.er1
30880 ac_status=$?
30881 grep -v '^ *+' conftest.er1 >conftest.err
30882 rm -f conftest.er1
30883 cat conftest.err >&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); } &&
30886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30887 { (case "(($ac_try" in
30888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889 *) ac_try_echo=$ac_try;;
30890 esac
30891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30892 (eval "$ac_try") 2>&5
30893 ac_status=$?
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; } &&
30896 { ac_try='test -s conftest.$ac_objext'
30897 { (case "(($ac_try" in
30898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30899 *) ac_try_echo=$ac_try;;
30900 esac
30901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30902 (eval "$ac_try") 2>&5
30903 ac_status=$?
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; }; then
30906 ac_header_compiler=yes
30907 else
30908 echo "$as_me: failed program was:" >&5
30909 sed 's/^/| /' conftest.$ac_ext >&5
30911 ac_header_compiler=no
30914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30916 echo "${ECHO_T}$ac_header_compiler" >&6; }
30918 # Is the header present?
30919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30921 cat >conftest.$ac_ext <<_ACEOF
30922 /* confdefs.h. */
30923 _ACEOF
30924 cat confdefs.h >>conftest.$ac_ext
30925 cat >>conftest.$ac_ext <<_ACEOF
30926 /* end confdefs.h. */
30927 #include <$ac_header>
30928 _ACEOF
30929 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
30942 if test -s conftest.err; then
30943 ac_cpp_err=$ac_c_preproc_warn_flag
30944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30945 else
30946 ac_cpp_err=
30948 else
30949 ac_cpp_err=yes
30951 if test -z "$ac_cpp_err"; then
30952 ac_header_preproc=yes
30953 else
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 ac_header_preproc=no
30960 rm -f conftest.err conftest.$ac_ext
30961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30962 echo "${ECHO_T}$ac_header_preproc" >&6; }
30964 # So? What about this header?
30965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30966 yes:no: )
30967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30971 ac_header_preproc=yes
30973 no:yes:* )
30974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30986 ( cat <<\_ASBOX
30987 ## ----------------------------------- ##
30988 ## Report this to llvmbugs@cs.uiuc.edu ##
30989 ## ----------------------------------- ##
30990 _ASBOX
30991 ) | sed "s/^/$as_me: WARNING: /" >&2
30993 esac
30994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30997 echo $ECHO_N "(cached) $ECHO_C" >&6
30998 else
30999 eval "$as_ac_Header=\$ac_header_preproc"
31001 ac_res=`eval echo '${'$as_ac_Header'}'`
31002 { echo "$as_me:$LINENO: result: $ac_res" >&5
31003 echo "${ECHO_T}$ac_res" >&6; }
31006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31007 cat >>confdefs.h <<_ACEOF
31008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31009 _ACEOF
31013 done
31019 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31020 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31021 if test "${ac_cv_huge_val_sanity+set}" = set; then
31022 echo $ECHO_N "(cached) $ECHO_C" >&6
31023 else
31025 ac_ext=cpp
31026 ac_cpp='$CXXCPP $CPPFLAGS'
31027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31031 CXXFLAGS=-pedantic
31032 if test "$cross_compiling" = yes; then
31033 ac_cv_huge_val_sanity=yes
31034 else
31035 cat >conftest.$ac_ext <<_ACEOF
31036 /* confdefs.h. */
31037 _ACEOF
31038 cat confdefs.h >>conftest.$ac_ext
31039 cat >>conftest.$ac_ext <<_ACEOF
31040 /* end confdefs.h. */
31041 #include <math.h>
31043 main ()
31045 double x = HUGE_VAL; return x != x;
31047 return 0;
31049 _ACEOF
31050 rm -f conftest$ac_exeext
31051 if { (ac_try="$ac_link"
31052 case "(($ac_try" in
31053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31054 *) ac_try_echo=$ac_try;;
31055 esac
31056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31057 (eval "$ac_link") 2>&5
31058 ac_status=$?
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31061 { (case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31064 esac
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_try") 2>&5
31067 ac_status=$?
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; }; then
31070 ac_cv_huge_val_sanity=yes
31071 else
31072 echo "$as_me: program exited with status $ac_status" >&5
31073 echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31076 ( exit $ac_status )
31077 ac_cv_huge_val_sanity=no
31079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31083 ac_ext=c
31084 ac_cpp='$CPP $CPPFLAGS'
31085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31091 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31092 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31093 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31096 { echo "$as_me:$LINENO: checking for pid_t" >&5
31097 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31098 if test "${ac_cv_type_pid_t+set}" = set; then
31099 echo $ECHO_N "(cached) $ECHO_C" >&6
31100 else
31101 cat >conftest.$ac_ext <<_ACEOF
31102 /* confdefs.h. */
31103 _ACEOF
31104 cat confdefs.h >>conftest.$ac_ext
31105 cat >>conftest.$ac_ext <<_ACEOF
31106 /* end confdefs.h. */
31107 $ac_includes_default
31108 typedef pid_t ac__type_new_;
31110 main ()
31112 if ((ac__type_new_ *) 0)
31113 return 0;
31114 if (sizeof (ac__type_new_))
31115 return 0;
31117 return 0;
31119 _ACEOF
31120 rm -f conftest.$ac_objext
31121 if { (ac_try="$ac_compile"
31122 case "(($ac_try" in
31123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124 *) ac_try_echo=$ac_try;;
31125 esac
31126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31127 (eval "$ac_compile") 2>conftest.er1
31128 ac_status=$?
31129 grep -v '^ *+' conftest.er1 >conftest.err
31130 rm -f conftest.er1
31131 cat conftest.err >&5
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); } &&
31134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31135 { (case "(($ac_try" in
31136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31137 *) ac_try_echo=$ac_try;;
31138 esac
31139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31140 (eval "$ac_try") 2>&5
31141 ac_status=$?
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); }; } &&
31144 { ac_try='test -s conftest.$ac_objext'
31145 { (case "(($ac_try" in
31146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31147 *) ac_try_echo=$ac_try;;
31148 esac
31149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31150 (eval "$ac_try") 2>&5
31151 ac_status=$?
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); }; }; then
31154 ac_cv_type_pid_t=yes
31155 else
31156 echo "$as_me: failed program was:" >&5
31157 sed 's/^/| /' conftest.$ac_ext >&5
31159 ac_cv_type_pid_t=no
31162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31164 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31165 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31166 if test $ac_cv_type_pid_t = yes; then
31168 else
31170 cat >>confdefs.h <<_ACEOF
31171 #define pid_t int
31172 _ACEOF
31176 { echo "$as_me:$LINENO: checking for size_t" >&5
31177 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31178 if test "${ac_cv_type_size_t+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31180 else
31181 cat >conftest.$ac_ext <<_ACEOF
31182 /* confdefs.h. */
31183 _ACEOF
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h. */
31187 $ac_includes_default
31188 typedef size_t ac__type_new_;
31190 main ()
31192 if ((ac__type_new_ *) 0)
31193 return 0;
31194 if (sizeof (ac__type_new_))
31195 return 0;
31197 return 0;
31199 _ACEOF
31200 rm -f conftest.$ac_objext
31201 if { (ac_try="$ac_compile"
31202 case "(($ac_try" in
31203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31204 *) ac_try_echo=$ac_try;;
31205 esac
31206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31207 (eval "$ac_compile") 2>conftest.er1
31208 ac_status=$?
31209 grep -v '^ *+' conftest.er1 >conftest.err
31210 rm -f conftest.er1
31211 cat conftest.err >&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); } &&
31214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31215 { (case "(($ac_try" in
31216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31217 *) ac_try_echo=$ac_try;;
31218 esac
31219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220 (eval "$ac_try") 2>&5
31221 ac_status=$?
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try='test -s conftest.$ac_objext'
31225 { (case "(($ac_try" in
31226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227 *) ac_try_echo=$ac_try;;
31228 esac
31229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230 (eval "$ac_try") 2>&5
31231 ac_status=$?
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
31234 ac_cv_type_size_t=yes
31235 else
31236 echo "$as_me: failed program was:" >&5
31237 sed 's/^/| /' conftest.$ac_ext >&5
31239 ac_cv_type_size_t=no
31242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31244 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31245 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31246 if test $ac_cv_type_size_t = yes; then
31248 else
31250 cat >>confdefs.h <<_ACEOF
31251 #define size_t unsigned int
31252 _ACEOF
31256 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31257 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31258 if test "${ac_cv_type_signal+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31260 else
31261 cat >conftest.$ac_ext <<_ACEOF
31262 /* confdefs.h. */
31263 _ACEOF
31264 cat confdefs.h >>conftest.$ac_ext
31265 cat >>conftest.$ac_ext <<_ACEOF
31266 /* end confdefs.h. */
31267 #include <sys/types.h>
31268 #include <signal.h>
31271 main ()
31273 return *(signal (0, 0)) (0) == 1;
31275 return 0;
31277 _ACEOF
31278 rm -f conftest.$ac_objext
31279 if { (ac_try="$ac_compile"
31280 case "(($ac_try" in
31281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31282 *) ac_try_echo=$ac_try;;
31283 esac
31284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31285 (eval "$ac_compile") 2>conftest.er1
31286 ac_status=$?
31287 grep -v '^ *+' conftest.er1 >conftest.err
31288 rm -f conftest.er1
31289 cat conftest.err >&5
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); } &&
31292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31293 { (case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31296 esac
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_try") 2>&5
31299 ac_status=$?
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; } &&
31302 { ac_try='test -s conftest.$ac_objext'
31303 { (case "(($ac_try" in
31304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305 *) ac_try_echo=$ac_try;;
31306 esac
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308 (eval "$ac_try") 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; }; then
31312 ac_cv_type_signal=int
31313 else
31314 echo "$as_me: failed program was:" >&5
31315 sed 's/^/| /' conftest.$ac_ext >&5
31317 ac_cv_type_signal=void
31320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31322 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31323 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31325 cat >>confdefs.h <<_ACEOF
31326 #define RETSIGTYPE $ac_cv_type_signal
31327 _ACEOF
31330 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31331 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31332 if test "${ac_cv_struct_tm+set}" = set; then
31333 echo $ECHO_N "(cached) $ECHO_C" >&6
31334 else
31335 cat >conftest.$ac_ext <<_ACEOF
31336 /* confdefs.h. */
31337 _ACEOF
31338 cat confdefs.h >>conftest.$ac_ext
31339 cat >>conftest.$ac_ext <<_ACEOF
31340 /* end confdefs.h. */
31341 #include <sys/types.h>
31342 #include <time.h>
31345 main ()
31347 struct tm *tp; tp->tm_sec;
31349 return 0;
31351 _ACEOF
31352 rm -f conftest.$ac_objext
31353 if { (ac_try="$ac_compile"
31354 case "(($ac_try" in
31355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31356 *) ac_try_echo=$ac_try;;
31357 esac
31358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31359 (eval "$ac_compile") 2>conftest.er1
31360 ac_status=$?
31361 grep -v '^ *+' conftest.er1 >conftest.err
31362 rm -f conftest.er1
31363 cat conftest.err >&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); } &&
31366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31367 { (case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31370 esac
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31373 ac_status=$?
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; } &&
31376 { ac_try='test -s conftest.$ac_objext'
31377 { (case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31380 esac
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_try") 2>&5
31383 ac_status=$?
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; }; then
31386 ac_cv_struct_tm=time.h
31387 else
31388 echo "$as_me: failed program was:" >&5
31389 sed 's/^/| /' conftest.$ac_ext >&5
31391 ac_cv_struct_tm=sys/time.h
31394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31396 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31397 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31398 if test $ac_cv_struct_tm = sys/time.h; then
31400 cat >>confdefs.h <<\_ACEOF
31401 #define TM_IN_SYS_TIME 1
31402 _ACEOF
31406 { echo "$as_me:$LINENO: checking for int64_t" >&5
31407 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31408 if test "${ac_cv_type_int64_t+set}" = set; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31410 else
31411 cat >conftest.$ac_ext <<_ACEOF
31412 /* confdefs.h. */
31413 _ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h. */
31417 $ac_includes_default
31418 typedef int64_t ac__type_new_;
31420 main ()
31422 if ((ac__type_new_ *) 0)
31423 return 0;
31424 if (sizeof (ac__type_new_))
31425 return 0;
31427 return 0;
31429 _ACEOF
31430 rm -f conftest.$ac_objext
31431 if { (ac_try="$ac_compile"
31432 case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31435 esac
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_compile") 2>conftest.er1
31438 ac_status=$?
31439 grep -v '^ *+' conftest.er1 >conftest.err
31440 rm -f conftest.er1
31441 cat conftest.err >&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } &&
31444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31445 { (case "(($ac_try" in
31446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447 *) ac_try_echo=$ac_try;;
31448 esac
31449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450 (eval "$ac_try") 2>&5
31451 ac_status=$?
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; } &&
31454 { ac_try='test -s conftest.$ac_objext'
31455 { (case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31458 esac
31459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_try") 2>&5
31461 ac_status=$?
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
31464 ac_cv_type_int64_t=yes
31465 else
31466 echo "$as_me: failed program was:" >&5
31467 sed 's/^/| /' conftest.$ac_ext >&5
31469 ac_cv_type_int64_t=no
31472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31474 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31475 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31476 if test $ac_cv_type_int64_t = yes; then
31478 cat >>confdefs.h <<_ACEOF
31479 #define HAVE_INT64_T 1
31480 _ACEOF
31483 else
31484 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31485 echo "$as_me: error: Type int64_t required but not found" >&2;}
31486 { (exit 1); exit 1; }; }
31489 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31490 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31491 if test "${ac_cv_type_uint64_t+set}" = set; then
31492 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 else
31494 cat >conftest.$ac_ext <<_ACEOF
31495 /* confdefs.h. */
31496 _ACEOF
31497 cat confdefs.h >>conftest.$ac_ext
31498 cat >>conftest.$ac_ext <<_ACEOF
31499 /* end confdefs.h. */
31500 $ac_includes_default
31501 typedef uint64_t ac__type_new_;
31503 main ()
31505 if ((ac__type_new_ *) 0)
31506 return 0;
31507 if (sizeof (ac__type_new_))
31508 return 0;
31510 return 0;
31512 _ACEOF
31513 rm -f conftest.$ac_objext
31514 if { (ac_try="$ac_compile"
31515 case "(($ac_try" in
31516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31517 *) ac_try_echo=$ac_try;;
31518 esac
31519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520 (eval "$ac_compile") 2>conftest.er1
31521 ac_status=$?
31522 grep -v '^ *+' conftest.er1 >conftest.err
31523 rm -f conftest.er1
31524 cat conftest.err >&5
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); } &&
31527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31528 { (case "(($ac_try" in
31529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31530 *) ac_try_echo=$ac_try;;
31531 esac
31532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31533 (eval "$ac_try") 2>&5
31534 ac_status=$?
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); }; } &&
31537 { ac_try='test -s conftest.$ac_objext'
31538 { (case "(($ac_try" in
31539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31540 *) ac_try_echo=$ac_try;;
31541 esac
31542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31543 (eval "$ac_try") 2>&5
31544 ac_status=$?
31545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); }; }; then
31547 ac_cv_type_uint64_t=yes
31548 else
31549 echo "$as_me: failed program was:" >&5
31550 sed 's/^/| /' conftest.$ac_ext >&5
31552 ac_cv_type_uint64_t=no
31555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31557 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31558 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31559 if test $ac_cv_type_uint64_t = yes; then
31561 cat >>confdefs.h <<_ACEOF
31562 #define HAVE_UINT64_T 1
31563 _ACEOF
31566 else
31567 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31568 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31569 if test "${ac_cv_type_u_int64_t+set}" = set; then
31570 echo $ECHO_N "(cached) $ECHO_C" >&6
31571 else
31572 cat >conftest.$ac_ext <<_ACEOF
31573 /* confdefs.h. */
31574 _ACEOF
31575 cat confdefs.h >>conftest.$ac_ext
31576 cat >>conftest.$ac_ext <<_ACEOF
31577 /* end confdefs.h. */
31578 $ac_includes_default
31579 typedef u_int64_t ac__type_new_;
31581 main ()
31583 if ((ac__type_new_ *) 0)
31584 return 0;
31585 if (sizeof (ac__type_new_))
31586 return 0;
31588 return 0;
31590 _ACEOF
31591 rm -f conftest.$ac_objext
31592 if { (ac_try="$ac_compile"
31593 case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31596 esac
31597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598 (eval "$ac_compile") 2>conftest.er1
31599 ac_status=$?
31600 grep -v '^ *+' conftest.er1 >conftest.err
31601 rm -f conftest.er1
31602 cat conftest.err >&5
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); } &&
31605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31606 { (case "(($ac_try" in
31607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31608 *) ac_try_echo=$ac_try;;
31609 esac
31610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31611 (eval "$ac_try") 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; } &&
31615 { ac_try='test -s conftest.$ac_objext'
31616 { (case "(($ac_try" in
31617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618 *) ac_try_echo=$ac_try;;
31619 esac
31620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621 (eval "$ac_try") 2>&5
31622 ac_status=$?
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); }; }; then
31625 ac_cv_type_u_int64_t=yes
31626 else
31627 echo "$as_me: failed program was:" >&5
31628 sed 's/^/| /' conftest.$ac_ext >&5
31630 ac_cv_type_u_int64_t=no
31633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31635 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31636 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31637 if test $ac_cv_type_u_int64_t = yes; then
31639 cat >>confdefs.h <<_ACEOF
31640 #define HAVE_U_INT64_T 1
31641 _ACEOF
31644 else
31645 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31646 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31647 { (exit 1); exit 1; }; }
31661 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31664 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31667 echo $ECHO_N "(cached) $ECHO_C" >&6
31668 else
31669 cat >conftest.$ac_ext <<_ACEOF
31670 /* confdefs.h. */
31671 _ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h. */
31675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31677 #define $ac_func innocuous_$ac_func
31679 /* System header to define __stub macros and hopefully few prototypes,
31680 which can conflict with char $ac_func (); below.
31681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31682 <limits.h> exists even on freestanding compilers. */
31684 #ifdef __STDC__
31685 # include <limits.h>
31686 #else
31687 # include <assert.h>
31688 #endif
31690 #undef $ac_func
31692 /* Override any GCC internal prototype to avoid an error.
31693 Use char because int might match the return type of a GCC
31694 builtin and then its argument prototype would still apply. */
31695 #ifdef __cplusplus
31696 extern "C"
31697 #endif
31698 char $ac_func ();
31699 /* The GNU C library defines this for functions which it implements
31700 to always fail with ENOSYS. Some functions are actually named
31701 something starting with __ and the normal name is an alias. */
31702 #if defined __stub_$ac_func || defined __stub___$ac_func
31703 choke me
31704 #endif
31707 main ()
31709 return $ac_func ();
31711 return 0;
31713 _ACEOF
31714 rm -f conftest.$ac_objext conftest$ac_exeext
31715 if { (ac_try="$ac_link"
31716 case "(($ac_try" in
31717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718 *) ac_try_echo=$ac_try;;
31719 esac
31720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721 (eval "$ac_link") 2>conftest.er1
31722 ac_status=$?
31723 grep -v '^ *+' conftest.er1 >conftest.err
31724 rm -f conftest.er1
31725 cat conftest.err >&5
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); } &&
31728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31729 { (case "(($ac_try" in
31730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731 *) ac_try_echo=$ac_try;;
31732 esac
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_try") 2>&5
31735 ac_status=$?
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); }; } &&
31738 { ac_try='test -s conftest$ac_exeext'
31739 { (case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31742 esac
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_try") 2>&5
31745 ac_status=$?
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); }; }; then
31748 eval "$as_ac_var=yes"
31749 else
31750 echo "$as_me: failed program was:" >&5
31751 sed 's/^/| /' conftest.$ac_ext >&5
31753 eval "$as_ac_var=no"
31756 rm -f core conftest.err conftest.$ac_objext \
31757 conftest$ac_exeext conftest.$ac_ext
31759 ac_res=`eval echo '${'$as_ac_var'}'`
31760 { echo "$as_me:$LINENO: result: $ac_res" >&5
31761 echo "${ECHO_T}$ac_res" >&6; }
31762 if test `eval echo '${'$as_ac_var'}'` = yes; then
31763 cat >>confdefs.h <<_ACEOF
31764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31765 _ACEOF
31768 done
31774 for ac_func in powf fmodf strtof round
31776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31780 echo $ECHO_N "(cached) $ECHO_C" >&6
31781 else
31782 cat >conftest.$ac_ext <<_ACEOF
31783 /* confdefs.h. */
31784 _ACEOF
31785 cat confdefs.h >>conftest.$ac_ext
31786 cat >>conftest.$ac_ext <<_ACEOF
31787 /* end confdefs.h. */
31788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31790 #define $ac_func innocuous_$ac_func
31792 /* System header to define __stub macros and hopefully few prototypes,
31793 which can conflict with char $ac_func (); below.
31794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31795 <limits.h> exists even on freestanding compilers. */
31797 #ifdef __STDC__
31798 # include <limits.h>
31799 #else
31800 # include <assert.h>
31801 #endif
31803 #undef $ac_func
31805 /* Override any GCC internal prototype to avoid an error.
31806 Use char because int might match the return type of a GCC
31807 builtin and then its argument prototype would still apply. */
31808 #ifdef __cplusplus
31809 extern "C"
31810 #endif
31811 char $ac_func ();
31812 /* The GNU C library defines this for functions which it implements
31813 to always fail with ENOSYS. Some functions are actually named
31814 something starting with __ and the normal name is an alias. */
31815 #if defined __stub_$ac_func || defined __stub___$ac_func
31816 choke me
31817 #endif
31820 main ()
31822 return $ac_func ();
31824 return 0;
31826 _ACEOF
31827 rm -f conftest.$ac_objext conftest$ac_exeext
31828 if { (ac_try="$ac_link"
31829 case "(($ac_try" in
31830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831 *) ac_try_echo=$ac_try;;
31832 esac
31833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31834 (eval "$ac_link") 2>conftest.er1
31835 ac_status=$?
31836 grep -v '^ *+' conftest.er1 >conftest.err
31837 rm -f conftest.er1
31838 cat conftest.err >&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); } &&
31841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31842 { (case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31845 esac
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_try") 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } &&
31851 { ac_try='test -s conftest$ac_exeext'
31852 { (case "(($ac_try" in
31853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854 *) ac_try_echo=$ac_try;;
31855 esac
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857 (eval "$ac_try") 2>&5
31858 ac_status=$?
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); }; }; then
31861 eval "$as_ac_var=yes"
31862 else
31863 echo "$as_me: failed program was:" >&5
31864 sed 's/^/| /' conftest.$ac_ext >&5
31866 eval "$as_ac_var=no"
31869 rm -f core conftest.err conftest.$ac_objext \
31870 conftest$ac_exeext conftest.$ac_ext
31872 ac_res=`eval echo '${'$as_ac_var'}'`
31873 { echo "$as_me:$LINENO: result: $ac_res" >&5
31874 echo "${ECHO_T}$ac_res" >&6; }
31875 if test `eval echo '${'$as_ac_var'}'` = yes; then
31876 cat >>confdefs.h <<_ACEOF
31877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31878 _ACEOF
31881 done
31888 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31895 else
31896 cat >conftest.$ac_ext <<_ACEOF
31897 /* confdefs.h. */
31898 _ACEOF
31899 cat confdefs.h >>conftest.$ac_ext
31900 cat >>conftest.$ac_ext <<_ACEOF
31901 /* end confdefs.h. */
31902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31904 #define $ac_func innocuous_$ac_func
31906 /* System header to define __stub macros and hopefully few prototypes,
31907 which can conflict with char $ac_func (); below.
31908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31909 <limits.h> exists even on freestanding compilers. */
31911 #ifdef __STDC__
31912 # include <limits.h>
31913 #else
31914 # include <assert.h>
31915 #endif
31917 #undef $ac_func
31919 /* Override any GCC internal prototype to avoid an error.
31920 Use char because int might match the return type of a GCC
31921 builtin and then its argument prototype would still apply. */
31922 #ifdef __cplusplus
31923 extern "C"
31924 #endif
31925 char $ac_func ();
31926 /* The GNU C library defines this for functions which it implements
31927 to always fail with ENOSYS. Some functions are actually named
31928 something starting with __ and the normal name is an alias. */
31929 #if defined __stub_$ac_func || defined __stub___$ac_func
31930 choke me
31931 #endif
31934 main ()
31936 return $ac_func ();
31938 return 0;
31940 _ACEOF
31941 rm -f conftest.$ac_objext conftest$ac_exeext
31942 if { (ac_try="$ac_link"
31943 case "(($ac_try" in
31944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945 *) ac_try_echo=$ac_try;;
31946 esac
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_link") 2>conftest.er1
31949 ac_status=$?
31950 grep -v '^ *+' conftest.er1 >conftest.err
31951 rm -f conftest.er1
31952 cat conftest.err >&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); } &&
31955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31956 { (case "(($ac_try" in
31957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31958 *) ac_try_echo=$ac_try;;
31959 esac
31960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31961 (eval "$ac_try") 2>&5
31962 ac_status=$?
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); }; } &&
31965 { ac_try='test -s conftest$ac_exeext'
31966 { (case "(($ac_try" in
31967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968 *) ac_try_echo=$ac_try;;
31969 esac
31970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_try") 2>&5
31972 ac_status=$?
31973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); }; }; then
31975 eval "$as_ac_var=yes"
31976 else
31977 echo "$as_me: failed program was:" >&5
31978 sed 's/^/| /' conftest.$ac_ext >&5
31980 eval "$as_ac_var=no"
31983 rm -f core conftest.err conftest.$ac_objext \
31984 conftest$ac_exeext conftest.$ac_ext
31986 ac_res=`eval echo '${'$as_ac_var'}'`
31987 { echo "$as_me:$LINENO: result: $ac_res" >&5
31988 echo "${ECHO_T}$ac_res" >&6; }
31989 if test `eval echo '${'$as_ac_var'}'` = yes; then
31990 cat >>confdefs.h <<_ACEOF
31991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31992 _ACEOF
31995 done
32000 for ac_func in isatty mkdtemp mkstemp
32002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32006 echo $ECHO_N "(cached) $ECHO_C" >&6
32007 else
32008 cat >conftest.$ac_ext <<_ACEOF
32009 /* confdefs.h. */
32010 _ACEOF
32011 cat confdefs.h >>conftest.$ac_ext
32012 cat >>conftest.$ac_ext <<_ACEOF
32013 /* end confdefs.h. */
32014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32016 #define $ac_func innocuous_$ac_func
32018 /* System header to define __stub macros and hopefully few prototypes,
32019 which can conflict with char $ac_func (); below.
32020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32021 <limits.h> exists even on freestanding compilers. */
32023 #ifdef __STDC__
32024 # include <limits.h>
32025 #else
32026 # include <assert.h>
32027 #endif
32029 #undef $ac_func
32031 /* Override any GCC internal prototype to avoid an error.
32032 Use char because int might match the return type of a GCC
32033 builtin and then its argument prototype would still apply. */
32034 #ifdef __cplusplus
32035 extern "C"
32036 #endif
32037 char $ac_func ();
32038 /* The GNU C library defines this for functions which it implements
32039 to always fail with ENOSYS. Some functions are actually named
32040 something starting with __ and the normal name is an alias. */
32041 #if defined __stub_$ac_func || defined __stub___$ac_func
32042 choke me
32043 #endif
32046 main ()
32048 return $ac_func ();
32050 return 0;
32052 _ACEOF
32053 rm -f conftest.$ac_objext conftest$ac_exeext
32054 if { (ac_try="$ac_link"
32055 case "(($ac_try" in
32056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32057 *) ac_try_echo=$ac_try;;
32058 esac
32059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32060 (eval "$ac_link") 2>conftest.er1
32061 ac_status=$?
32062 grep -v '^ *+' conftest.er1 >conftest.err
32063 rm -f conftest.er1
32064 cat conftest.err >&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); } &&
32067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32068 { (case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32071 esac
32072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_try") 2>&5
32074 ac_status=$?
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; } &&
32077 { ac_try='test -s conftest$ac_exeext'
32078 { (case "(($ac_try" in
32079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080 *) ac_try_echo=$ac_try;;
32081 esac
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083 (eval "$ac_try") 2>&5
32084 ac_status=$?
32085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086 (exit $ac_status); }; }; then
32087 eval "$as_ac_var=yes"
32088 else
32089 echo "$as_me: failed program was:" >&5
32090 sed 's/^/| /' conftest.$ac_ext >&5
32092 eval "$as_ac_var=no"
32095 rm -f core conftest.err conftest.$ac_objext \
32096 conftest$ac_exeext conftest.$ac_ext
32098 ac_res=`eval echo '${'$as_ac_var'}'`
32099 { echo "$as_me:$LINENO: result: $ac_res" >&5
32100 echo "${ECHO_T}$ac_res" >&6; }
32101 if test `eval echo '${'$as_ac_var'}'` = yes; then
32102 cat >>confdefs.h <<_ACEOF
32103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32104 _ACEOF
32107 done
32114 for ac_func in mktemp realpath sbrk setrlimit strdup
32116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32120 echo $ECHO_N "(cached) $ECHO_C" >&6
32121 else
32122 cat >conftest.$ac_ext <<_ACEOF
32123 /* confdefs.h. */
32124 _ACEOF
32125 cat confdefs.h >>conftest.$ac_ext
32126 cat >>conftest.$ac_ext <<_ACEOF
32127 /* end confdefs.h. */
32128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32130 #define $ac_func innocuous_$ac_func
32132 /* System header to define __stub macros and hopefully few prototypes,
32133 which can conflict with char $ac_func (); below.
32134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32135 <limits.h> exists even on freestanding compilers. */
32137 #ifdef __STDC__
32138 # include <limits.h>
32139 #else
32140 # include <assert.h>
32141 #endif
32143 #undef $ac_func
32145 /* Override any GCC internal prototype to avoid an error.
32146 Use char because int might match the return type of a GCC
32147 builtin and then its argument prototype would still apply. */
32148 #ifdef __cplusplus
32149 extern "C"
32150 #endif
32151 char $ac_func ();
32152 /* The GNU C library defines this for functions which it implements
32153 to always fail with ENOSYS. Some functions are actually named
32154 something starting with __ and the normal name is an alias. */
32155 #if defined __stub_$ac_func || defined __stub___$ac_func
32156 choke me
32157 #endif
32160 main ()
32162 return $ac_func ();
32164 return 0;
32166 _ACEOF
32167 rm -f conftest.$ac_objext conftest$ac_exeext
32168 if { (ac_try="$ac_link"
32169 case "(($ac_try" in
32170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32171 *) ac_try_echo=$ac_try;;
32172 esac
32173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32174 (eval "$ac_link") 2>conftest.er1
32175 ac_status=$?
32176 grep -v '^ *+' conftest.er1 >conftest.err
32177 rm -f conftest.er1
32178 cat conftest.err >&5
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); } &&
32181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32182 { (case "(($ac_try" in
32183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32184 *) ac_try_echo=$ac_try;;
32185 esac
32186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32187 (eval "$ac_try") 2>&5
32188 ac_status=$?
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; } &&
32191 { ac_try='test -s conftest$ac_exeext'
32192 { (case "(($ac_try" in
32193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32194 *) ac_try_echo=$ac_try;;
32195 esac
32196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32197 (eval "$ac_try") 2>&5
32198 ac_status=$?
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); }; }; then
32201 eval "$as_ac_var=yes"
32202 else
32203 echo "$as_me: failed program was:" >&5
32204 sed 's/^/| /' conftest.$ac_ext >&5
32206 eval "$as_ac_var=no"
32209 rm -f core conftest.err conftest.$ac_objext \
32210 conftest$ac_exeext conftest.$ac_ext
32212 ac_res=`eval echo '${'$as_ac_var'}'`
32213 { echo "$as_me:$LINENO: result: $ac_res" >&5
32214 echo "${ECHO_T}$ac_res" >&6; }
32215 if test `eval echo '${'$as_ac_var'}'` = yes; then
32216 cat >>confdefs.h <<_ACEOF
32217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32218 _ACEOF
32221 done
32226 for ac_func in strerror strerror_r strerror_s
32228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32233 else
32234 cat >conftest.$ac_ext <<_ACEOF
32235 /* confdefs.h. */
32236 _ACEOF
32237 cat confdefs.h >>conftest.$ac_ext
32238 cat >>conftest.$ac_ext <<_ACEOF
32239 /* end confdefs.h. */
32240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32242 #define $ac_func innocuous_$ac_func
32244 /* System header to define __stub macros and hopefully few prototypes,
32245 which can conflict with char $ac_func (); below.
32246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32247 <limits.h> exists even on freestanding compilers. */
32249 #ifdef __STDC__
32250 # include <limits.h>
32251 #else
32252 # include <assert.h>
32253 #endif
32255 #undef $ac_func
32257 /* Override any GCC internal prototype to avoid an error.
32258 Use char because int might match the return type of a GCC
32259 builtin and then its argument prototype would still apply. */
32260 #ifdef __cplusplus
32261 extern "C"
32262 #endif
32263 char $ac_func ();
32264 /* The GNU C library defines this for functions which it implements
32265 to always fail with ENOSYS. Some functions are actually named
32266 something starting with __ and the normal name is an alias. */
32267 #if defined __stub_$ac_func || defined __stub___$ac_func
32268 choke me
32269 #endif
32272 main ()
32274 return $ac_func ();
32276 return 0;
32278 _ACEOF
32279 rm -f conftest.$ac_objext conftest$ac_exeext
32280 if { (ac_try="$ac_link"
32281 case "(($ac_try" in
32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32284 esac
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_link") 2>conftest.er1
32287 ac_status=$?
32288 grep -v '^ *+' conftest.er1 >conftest.err
32289 rm -f conftest.er1
32290 cat conftest.err >&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } &&
32293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32294 { (case "(($ac_try" in
32295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32297 esac
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_try") 2>&5
32300 ac_status=$?
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; } &&
32303 { ac_try='test -s conftest$ac_exeext'
32304 { (case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32307 esac
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
32310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
32313 eval "$as_ac_var=yes"
32314 else
32315 echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32318 eval "$as_ac_var=no"
32321 rm -f core conftest.err conftest.$ac_objext \
32322 conftest$ac_exeext conftest.$ac_ext
32324 ac_res=`eval echo '${'$as_ac_var'}'`
32325 { echo "$as_me:$LINENO: result: $ac_res" >&5
32326 echo "${ECHO_T}$ac_res" >&6; }
32327 if test `eval echo '${'$as_ac_var'}'` = yes; then
32328 cat >>confdefs.h <<_ACEOF
32329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32330 _ACEOF
32333 done
32339 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32345 echo $ECHO_N "(cached) $ECHO_C" >&6
32346 else
32347 cat >conftest.$ac_ext <<_ACEOF
32348 /* confdefs.h. */
32349 _ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h. */
32353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32355 #define $ac_func innocuous_$ac_func
32357 /* System header to define __stub macros and hopefully few prototypes,
32358 which can conflict with char $ac_func (); below.
32359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32360 <limits.h> exists even on freestanding compilers. */
32362 #ifdef __STDC__
32363 # include <limits.h>
32364 #else
32365 # include <assert.h>
32366 #endif
32368 #undef $ac_func
32370 /* Override any GCC internal prototype to avoid an error.
32371 Use char because int might match the return type of a GCC
32372 builtin and then its argument prototype would still apply. */
32373 #ifdef __cplusplus
32374 extern "C"
32375 #endif
32376 char $ac_func ();
32377 /* The GNU C library defines this for functions which it implements
32378 to always fail with ENOSYS. Some functions are actually named
32379 something starting with __ and the normal name is an alias. */
32380 #if defined __stub_$ac_func || defined __stub___$ac_func
32381 choke me
32382 #endif
32385 main ()
32387 return $ac_func ();
32389 return 0;
32391 _ACEOF
32392 rm -f conftest.$ac_objext conftest$ac_exeext
32393 if { (ac_try="$ac_link"
32394 case "(($ac_try" in
32395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396 *) ac_try_echo=$ac_try;;
32397 esac
32398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399 (eval "$ac_link") 2>conftest.er1
32400 ac_status=$?
32401 grep -v '^ *+' conftest.er1 >conftest.err
32402 rm -f conftest.er1
32403 cat conftest.err >&5
32404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405 (exit $ac_status); } &&
32406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32407 { (case "(($ac_try" in
32408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409 *) ac_try_echo=$ac_try;;
32410 esac
32411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412 (eval "$ac_try") 2>&5
32413 ac_status=$?
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); }; } &&
32416 { ac_try='test -s conftest$ac_exeext'
32417 { (case "(($ac_try" in
32418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419 *) ac_try_echo=$ac_try;;
32420 esac
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422 (eval "$ac_try") 2>&5
32423 ac_status=$?
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); }; }; then
32426 eval "$as_ac_var=yes"
32427 else
32428 echo "$as_me: failed program was:" >&5
32429 sed 's/^/| /' conftest.$ac_ext >&5
32431 eval "$as_ac_var=no"
32434 rm -f core conftest.err conftest.$ac_objext \
32435 conftest$ac_exeext conftest.$ac_ext
32437 ac_res=`eval echo '${'$as_ac_var'}'`
32438 { echo "$as_me:$LINENO: result: $ac_res" >&5
32439 echo "${ECHO_T}$ac_res" >&6; }
32440 if test `eval echo '${'$as_ac_var'}'` = yes; then
32441 cat >>confdefs.h <<_ACEOF
32442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32443 _ACEOF
32446 done
32452 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32458 echo $ECHO_N "(cached) $ECHO_C" >&6
32459 else
32460 cat >conftest.$ac_ext <<_ACEOF
32461 /* confdefs.h. */
32462 _ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h. */
32466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32468 #define $ac_func innocuous_$ac_func
32470 /* System header to define __stub macros and hopefully few prototypes,
32471 which can conflict with char $ac_func (); below.
32472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32473 <limits.h> exists even on freestanding compilers. */
32475 #ifdef __STDC__
32476 # include <limits.h>
32477 #else
32478 # include <assert.h>
32479 #endif
32481 #undef $ac_func
32483 /* Override any GCC internal prototype to avoid an error.
32484 Use char because int might match the return type of a GCC
32485 builtin and then its argument prototype would still apply. */
32486 #ifdef __cplusplus
32487 extern "C"
32488 #endif
32489 char $ac_func ();
32490 /* The GNU C library defines this for functions which it implements
32491 to always fail with ENOSYS. Some functions are actually named
32492 something starting with __ and the normal name is an alias. */
32493 #if defined __stub_$ac_func || defined __stub___$ac_func
32494 choke me
32495 #endif
32498 main ()
32500 return $ac_func ();
32502 return 0;
32504 _ACEOF
32505 rm -f conftest.$ac_objext conftest$ac_exeext
32506 if { (ac_try="$ac_link"
32507 case "(($ac_try" in
32508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509 *) ac_try_echo=$ac_try;;
32510 esac
32511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512 (eval "$ac_link") 2>conftest.er1
32513 ac_status=$?
32514 grep -v '^ *+' conftest.er1 >conftest.err
32515 rm -f conftest.er1
32516 cat conftest.err >&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); } &&
32519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32520 { (case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32523 esac
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_try") 2>&5
32526 ac_status=$?
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); }; } &&
32529 { ac_try='test -s conftest$ac_exeext'
32530 { (case "(($ac_try" in
32531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532 *) ac_try_echo=$ac_try;;
32533 esac
32534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535 (eval "$ac_try") 2>&5
32536 ac_status=$?
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; }; then
32539 eval "$as_ac_var=yes"
32540 else
32541 echo "$as_me: failed program was:" >&5
32542 sed 's/^/| /' conftest.$ac_ext >&5
32544 eval "$as_ac_var=no"
32547 rm -f core conftest.err conftest.$ac_objext \
32548 conftest$ac_exeext conftest.$ac_ext
32550 ac_res=`eval echo '${'$as_ac_var'}'`
32551 { echo "$as_me:$LINENO: result: $ac_res" >&5
32552 echo "${ECHO_T}$ac_res" >&6; }
32553 if test `eval echo '${'$as_ac_var'}'` = yes; then
32554 cat >>confdefs.h <<_ACEOF
32555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32556 _ACEOF
32559 done
32561 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32562 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32563 if test "${llvm_cv_c_printf_a+set}" = set; then
32564 echo $ECHO_N "(cached) $ECHO_C" >&6
32565 else
32566 ac_ext=c
32567 ac_cpp='$CPP $CPPFLAGS'
32568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32572 if test "$cross_compiling" = yes; then
32573 llvmac_cv_c_printf_a=no
32574 else
32575 cat >conftest.$ac_ext <<_ACEOF
32577 /* confdefs.h. */
32578 _ACEOF
32579 cat confdefs.h >>conftest.$ac_ext
32580 cat >>conftest.$ac_ext <<_ACEOF
32581 /* end confdefs.h. */
32583 #include <stdio.h>
32584 #include <stdlib.h>
32587 main ()
32590 volatile double A, B;
32591 char Buffer[100];
32592 A = 1;
32593 A /= 10.0;
32594 sprintf(Buffer, "%a", A);
32595 B = atof(Buffer);
32596 if (A != B)
32597 return (1);
32598 if (A != 0x1.999999999999ap-4)
32599 return (1);
32600 return (0);
32602 return 0;
32604 _ACEOF
32605 rm -f conftest$ac_exeext
32606 if { (ac_try="$ac_link"
32607 case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32610 esac
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_link") 2>&5
32613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32616 { (case "(($ac_try" in
32617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32618 *) ac_try_echo=$ac_try;;
32619 esac
32620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32621 (eval "$ac_try") 2>&5
32622 ac_status=$?
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; }; then
32625 llvm_cv_c_printf_a=yes
32626 else
32627 echo "$as_me: program exited with status $ac_status" >&5
32628 echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32631 ( exit $ac_status )
32632 llvmac_cv_c_printf_a=no
32634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32638 ac_ext=c
32639 ac_cpp='$CPP $CPPFLAGS'
32640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32645 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32646 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32647 if test "$llvm_cv_c_printf_a" = "yes"; then
32649 cat >>confdefs.h <<\_ACEOF
32650 #define HAVE_PRINTF_A 1
32651 _ACEOF
32655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32656 # for constant arguments. Useless!
32657 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32658 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32659 if test "${ac_cv_working_alloca_h+set}" = set; then
32660 echo $ECHO_N "(cached) $ECHO_C" >&6
32661 else
32662 cat >conftest.$ac_ext <<_ACEOF
32663 /* confdefs.h. */
32664 _ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h. */
32668 #include <alloca.h>
32670 main ()
32672 char *p = (char *) alloca (2 * sizeof (int));
32673 if (p) return 0;
32675 return 0;
32677 _ACEOF
32678 rm -f conftest.$ac_objext conftest$ac_exeext
32679 if { (ac_try="$ac_link"
32680 case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32683 esac
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_link") 2>conftest.er1
32686 ac_status=$?
32687 grep -v '^ *+' conftest.er1 >conftest.err
32688 rm -f conftest.er1
32689 cat conftest.err >&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } &&
32692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32693 { (case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32696 esac
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_try") 2>&5
32699 ac_status=$?
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try='test -s conftest$ac_exeext'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706 esac
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
32712 ac_cv_working_alloca_h=yes
32713 else
32714 echo "$as_me: failed program was:" >&5
32715 sed 's/^/| /' conftest.$ac_ext >&5
32717 ac_cv_working_alloca_h=no
32720 rm -f core conftest.err conftest.$ac_objext \
32721 conftest$ac_exeext conftest.$ac_ext
32723 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32724 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32725 if test $ac_cv_working_alloca_h = yes; then
32727 cat >>confdefs.h <<\_ACEOF
32728 #define HAVE_ALLOCA_H 1
32729 _ACEOF
32733 { echo "$as_me:$LINENO: checking for alloca" >&5
32734 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32735 if test "${ac_cv_func_alloca_works+set}" = set; then
32736 echo $ECHO_N "(cached) $ECHO_C" >&6
32737 else
32738 cat >conftest.$ac_ext <<_ACEOF
32739 /* confdefs.h. */
32740 _ACEOF
32741 cat confdefs.h >>conftest.$ac_ext
32742 cat >>conftest.$ac_ext <<_ACEOF
32743 /* end confdefs.h. */
32744 #ifdef __GNUC__
32745 # define alloca __builtin_alloca
32746 #else
32747 # ifdef _MSC_VER
32748 # include <malloc.h>
32749 # define alloca _alloca
32750 # else
32751 # if HAVE_ALLOCA_H
32752 # include <alloca.h>
32753 # else
32754 # ifdef _AIX
32755 #pragma alloca
32756 # else
32757 # ifndef alloca /* predefined by HP cc +Olibcalls */
32758 char *alloca ();
32759 # endif
32760 # endif
32761 # endif
32762 # endif
32763 #endif
32766 main ()
32768 char *p = (char *) alloca (1);
32769 if (p) return 0;
32771 return 0;
32773 _ACEOF
32774 rm -f conftest.$ac_objext conftest$ac_exeext
32775 if { (ac_try="$ac_link"
32776 case "(($ac_try" in
32777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778 *) ac_try_echo=$ac_try;;
32779 esac
32780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781 (eval "$ac_link") 2>conftest.er1
32782 ac_status=$?
32783 grep -v '^ *+' conftest.er1 >conftest.err
32784 rm -f conftest.er1
32785 cat conftest.err >&5
32786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787 (exit $ac_status); } &&
32788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32789 { (case "(($ac_try" in
32790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791 *) ac_try_echo=$ac_try;;
32792 esac
32793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32794 (eval "$ac_try") 2>&5
32795 ac_status=$?
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); }; } &&
32798 { ac_try='test -s conftest$ac_exeext'
32799 { (case "(($ac_try" in
32800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801 *) ac_try_echo=$ac_try;;
32802 esac
32803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804 (eval "$ac_try") 2>&5
32805 ac_status=$?
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); }; }; then
32808 ac_cv_func_alloca_works=yes
32809 else
32810 echo "$as_me: failed program was:" >&5
32811 sed 's/^/| /' conftest.$ac_ext >&5
32813 ac_cv_func_alloca_works=no
32816 rm -f core conftest.err conftest.$ac_objext \
32817 conftest$ac_exeext conftest.$ac_ext
32819 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32820 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32822 if test $ac_cv_func_alloca_works = yes; then
32824 cat >>confdefs.h <<\_ACEOF
32825 #define HAVE_ALLOCA 1
32826 _ACEOF
32828 else
32829 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32830 # that cause trouble. Some versions do not even contain alloca or
32831 # contain a buggy version. If you still want to use their alloca,
32832 # use ar to extract alloca.o from them instead of compiling alloca.c.
32834 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32836 cat >>confdefs.h <<\_ACEOF
32837 #define C_ALLOCA 1
32838 _ACEOF
32841 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32842 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32843 if test "${ac_cv_os_cray+set}" = set; then
32844 echo $ECHO_N "(cached) $ECHO_C" >&6
32845 else
32846 cat >conftest.$ac_ext <<_ACEOF
32847 /* confdefs.h. */
32848 _ACEOF
32849 cat confdefs.h >>conftest.$ac_ext
32850 cat >>conftest.$ac_ext <<_ACEOF
32851 /* end confdefs.h. */
32852 #if defined CRAY && ! defined CRAY2
32853 webecray
32854 #else
32855 wenotbecray
32856 #endif
32858 _ACEOF
32859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32860 $EGREP "webecray" >/dev/null 2>&1; then
32861 ac_cv_os_cray=yes
32862 else
32863 ac_cv_os_cray=no
32865 rm -f conftest*
32868 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32869 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32870 if test $ac_cv_os_cray = yes; then
32871 for ac_func in _getb67 GETB67 getb67; do
32872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32876 echo $ECHO_N "(cached) $ECHO_C" >&6
32877 else
32878 cat >conftest.$ac_ext <<_ACEOF
32879 /* confdefs.h. */
32880 _ACEOF
32881 cat confdefs.h >>conftest.$ac_ext
32882 cat >>conftest.$ac_ext <<_ACEOF
32883 /* end confdefs.h. */
32884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32886 #define $ac_func innocuous_$ac_func
32888 /* System header to define __stub macros and hopefully few prototypes,
32889 which can conflict with char $ac_func (); below.
32890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32891 <limits.h> exists even on freestanding compilers. */
32893 #ifdef __STDC__
32894 # include <limits.h>
32895 #else
32896 # include <assert.h>
32897 #endif
32899 #undef $ac_func
32901 /* Override any GCC internal prototype to avoid an error.
32902 Use char because int might match the return type of a GCC
32903 builtin and then its argument prototype would still apply. */
32904 #ifdef __cplusplus
32905 extern "C"
32906 #endif
32907 char $ac_func ();
32908 /* The GNU C library defines this for functions which it implements
32909 to always fail with ENOSYS. Some functions are actually named
32910 something starting with __ and the normal name is an alias. */
32911 #if defined __stub_$ac_func || defined __stub___$ac_func
32912 choke me
32913 #endif
32916 main ()
32918 return $ac_func ();
32920 return 0;
32922 _ACEOF
32923 rm -f conftest.$ac_objext conftest$ac_exeext
32924 if { (ac_try="$ac_link"
32925 case "(($ac_try" in
32926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32927 *) ac_try_echo=$ac_try;;
32928 esac
32929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32930 (eval "$ac_link") 2>conftest.er1
32931 ac_status=$?
32932 grep -v '^ *+' conftest.er1 >conftest.err
32933 rm -f conftest.er1
32934 cat conftest.err >&5
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); } &&
32937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32938 { (case "(($ac_try" in
32939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940 *) ac_try_echo=$ac_try;;
32941 esac
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_try") 2>&5
32944 ac_status=$?
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; } &&
32947 { ac_try='test -s conftest$ac_exeext'
32948 { (case "(($ac_try" in
32949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32950 *) ac_try_echo=$ac_try;;
32951 esac
32952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32953 (eval "$ac_try") 2>&5
32954 ac_status=$?
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; }; then
32957 eval "$as_ac_var=yes"
32958 else
32959 echo "$as_me: failed program was:" >&5
32960 sed 's/^/| /' conftest.$ac_ext >&5
32962 eval "$as_ac_var=no"
32965 rm -f core conftest.err conftest.$ac_objext \
32966 conftest$ac_exeext conftest.$ac_ext
32968 ac_res=`eval echo '${'$as_ac_var'}'`
32969 { echo "$as_me:$LINENO: result: $ac_res" >&5
32970 echo "${ECHO_T}$ac_res" >&6; }
32971 if test `eval echo '${'$as_ac_var'}'` = yes; then
32973 cat >>confdefs.h <<_ACEOF
32974 #define CRAY_STACKSEG_END $ac_func
32975 _ACEOF
32977 break
32980 done
32983 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32984 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32985 if test "${ac_cv_c_stack_direction+set}" = set; then
32986 echo $ECHO_N "(cached) $ECHO_C" >&6
32987 else
32988 if test "$cross_compiling" = yes; then
32989 ac_cv_c_stack_direction=0
32990 else
32991 cat >conftest.$ac_ext <<_ACEOF
32992 /* confdefs.h. */
32993 _ACEOF
32994 cat confdefs.h >>conftest.$ac_ext
32995 cat >>conftest.$ac_ext <<_ACEOF
32996 /* end confdefs.h. */
32997 $ac_includes_default
32999 find_stack_direction ()
33001 static char *addr = 0;
33002 auto char dummy;
33003 if (addr == 0)
33005 addr = &dummy;
33006 return find_stack_direction ();
33008 else
33009 return (&dummy > addr) ? 1 : -1;
33013 main ()
33015 return find_stack_direction () < 0;
33017 _ACEOF
33018 rm -f conftest$ac_exeext
33019 if { (ac_try="$ac_link"
33020 case "(($ac_try" in
33021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33022 *) ac_try_echo=$ac_try;;
33023 esac
33024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025 (eval "$ac_link") 2>&5
33026 ac_status=$?
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33029 { (case "(($ac_try" in
33030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031 *) ac_try_echo=$ac_try;;
33032 esac
33033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034 (eval "$ac_try") 2>&5
33035 ac_status=$?
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; }; then
33038 ac_cv_c_stack_direction=1
33039 else
33040 echo "$as_me: program exited with status $ac_status" >&5
33041 echo "$as_me: failed program was:" >&5
33042 sed 's/^/| /' conftest.$ac_ext >&5
33044 ( exit $ac_status )
33045 ac_cv_c_stack_direction=-1
33047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33052 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33053 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33055 cat >>confdefs.h <<_ACEOF
33056 #define STACK_DIRECTION $ac_cv_c_stack_direction
33057 _ACEOF
33063 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33064 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33065 if test "${ac_cv_func_rand48+set}" = set; then
33066 echo $ECHO_N "(cached) $ECHO_C" >&6
33067 else
33068 ac_ext=cpp
33069 ac_cpp='$CXXCPP $CPPFLAGS'
33070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33074 cat >conftest.$ac_ext <<_ACEOF
33075 /* confdefs.h. */
33076 _ACEOF
33077 cat confdefs.h >>conftest.$ac_ext
33078 cat >>conftest.$ac_ext <<_ACEOF
33079 /* end confdefs.h. */
33080 #include <stdlib.h>
33082 main ()
33084 srand48(0);lrand48();drand48();
33086 return 0;
33088 _ACEOF
33089 rm -f conftest.$ac_objext
33090 if { (ac_try="$ac_compile"
33091 case "(($ac_try" in
33092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33093 *) ac_try_echo=$ac_try;;
33094 esac
33095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33096 (eval "$ac_compile") 2>conftest.er1
33097 ac_status=$?
33098 grep -v '^ *+' conftest.er1 >conftest.err
33099 rm -f conftest.er1
33100 cat conftest.err >&5
33101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102 (exit $ac_status); } &&
33103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33104 { (case "(($ac_try" in
33105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33106 *) ac_try_echo=$ac_try;;
33107 esac
33108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33109 (eval "$ac_try") 2>&5
33110 ac_status=$?
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); }; } &&
33113 { ac_try='test -s conftest.$ac_objext'
33114 { (case "(($ac_try" in
33115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33116 *) ac_try_echo=$ac_try;;
33117 esac
33118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33119 (eval "$ac_try") 2>&5
33120 ac_status=$?
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; }; then
33123 ac_cv_func_rand48=yes
33124 else
33125 echo "$as_me: failed program was:" >&5
33126 sed 's/^/| /' conftest.$ac_ext >&5
33128 ac_cv_func_rand48=no
33131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33132 ac_ext=c
33133 ac_cpp='$CPP $CPPFLAGS'
33134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33139 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33140 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33142 if test "$ac_cv_func_rand48" = "yes" ; then
33144 cat >>confdefs.h <<\_ACEOF
33145 #define HAVE_RAND48 1
33146 _ACEOF
33151 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33152 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33153 if test "${ac_cv_cxx_namespaces+set}" = set; then
33154 echo $ECHO_N "(cached) $ECHO_C" >&6
33155 else
33156 ac_ext=cpp
33157 ac_cpp='$CXXCPP $CPPFLAGS'
33158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33162 cat >conftest.$ac_ext <<_ACEOF
33163 /* confdefs.h. */
33164 _ACEOF
33165 cat confdefs.h >>conftest.$ac_ext
33166 cat >>conftest.$ac_ext <<_ACEOF
33167 /* end confdefs.h. */
33168 namespace Outer { namespace Inner { int i = 0; }}
33170 main ()
33172 using namespace Outer::Inner; return i;
33174 return 0;
33176 _ACEOF
33177 rm -f conftest.$ac_objext
33178 if { (ac_try="$ac_compile"
33179 case "(($ac_try" in
33180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181 *) ac_try_echo=$ac_try;;
33182 esac
33183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184 (eval "$ac_compile") 2>conftest.er1
33185 ac_status=$?
33186 grep -v '^ *+' conftest.er1 >conftest.err
33187 rm -f conftest.er1
33188 cat conftest.err >&5
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); } &&
33191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33192 { (case "(($ac_try" in
33193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33194 *) ac_try_echo=$ac_try;;
33195 esac
33196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33197 (eval "$ac_try") 2>&5
33198 ac_status=$?
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); }; } &&
33201 { ac_try='test -s conftest.$ac_objext'
33202 { (case "(($ac_try" in
33203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33204 *) ac_try_echo=$ac_try;;
33205 esac
33206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33207 (eval "$ac_try") 2>&5
33208 ac_status=$?
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); }; }; then
33211 ac_cv_cxx_namespaces=yes
33212 else
33213 echo "$as_me: failed program was:" >&5
33214 sed 's/^/| /' conftest.$ac_ext >&5
33216 ac_cv_cxx_namespaces=no
33219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33220 ac_ext=c
33221 ac_cpp='$CPP $CPPFLAGS'
33222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33228 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33229 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33230 if test "$ac_cv_cxx_namespaces" = yes; then
33232 cat >>confdefs.h <<\_ACEOF
33233 #define HAVE_NAMESPACES
33234 _ACEOF
33238 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33239 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33240 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33242 else
33244 ac_ext=cpp
33245 ac_cpp='$CXXCPP $CPPFLAGS'
33246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33250 cat >conftest.$ac_ext <<_ACEOF
33251 /* confdefs.h. */
33252 _ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h. */
33256 #include <iterator>
33257 #ifdef HAVE_NAMESPACES
33258 using namespace std;
33259 #endif
33261 main ()
33263 iterator<int,int,int> t; return 0;
33265 return 0;
33267 _ACEOF
33268 rm -f conftest.$ac_objext
33269 if { (ac_try="$ac_compile"
33270 case "(($ac_try" in
33271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33272 *) ac_try_echo=$ac_try;;
33273 esac
33274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33275 (eval "$ac_compile") 2>conftest.er1
33276 ac_status=$?
33277 grep -v '^ *+' conftest.er1 >conftest.err
33278 rm -f conftest.er1
33279 cat conftest.err >&5
33280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); } &&
33282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33283 { (case "(($ac_try" in
33284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33285 *) ac_try_echo=$ac_try;;
33286 esac
33287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33288 (eval "$ac_try") 2>&5
33289 ac_status=$?
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; } &&
33292 { ac_try='test -s conftest.$ac_objext'
33293 { (case "(($ac_try" in
33294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33295 *) ac_try_echo=$ac_try;;
33296 esac
33297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33298 (eval "$ac_try") 2>&5
33299 ac_status=$?
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); }; }; then
33302 ac_cv_cxx_have_std_iterator=yes
33303 else
33304 echo "$as_me: failed program was:" >&5
33305 sed 's/^/| /' conftest.$ac_ext >&5
33307 ac_cv_cxx_have_std_iterator=no
33310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33311 ac_ext=c
33312 ac_cpp='$CPP $CPPFLAGS'
33313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33319 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33320 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33321 if test "$ac_cv_cxx_have_std_iterator" = yes
33322 then
33324 cat >>confdefs.h <<\_ACEOF
33325 #define HAVE_STD_ITERATOR 1
33326 _ACEOF
33328 else
33330 cat >>confdefs.h <<\_ACEOF
33331 #define HAVE_STD_ITERATOR 0
33332 _ACEOF
33336 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33337 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33338 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33339 echo $ECHO_N "(cached) $ECHO_C" >&6
33340 else
33342 ac_ext=cpp
33343 ac_cpp='$CXXCPP $CPPFLAGS'
33344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33348 cat >conftest.$ac_ext <<_ACEOF
33349 /* confdefs.h. */
33350 _ACEOF
33351 cat confdefs.h >>conftest.$ac_ext
33352 cat >>conftest.$ac_ext <<_ACEOF
33353 /* end confdefs.h. */
33354 #include <iterator>
33355 #ifdef HAVE_NAMESPACES
33356 using namespace std;
33357 #endif
33359 main ()
33361 bidirectional_iterator<int,int> t; return 0;
33363 return 0;
33365 _ACEOF
33366 rm -f conftest.$ac_objext
33367 if { (ac_try="$ac_compile"
33368 case "(($ac_try" in
33369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33371 esac
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_compile") 2>conftest.er1
33374 ac_status=$?
33375 grep -v '^ *+' conftest.er1 >conftest.err
33376 rm -f conftest.er1
33377 cat conftest.err >&5
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } &&
33380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33381 { (case "(($ac_try" in
33382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33383 *) ac_try_echo=$ac_try;;
33384 esac
33385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33386 (eval "$ac_try") 2>&5
33387 ac_status=$?
33388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389 (exit $ac_status); }; } &&
33390 { ac_try='test -s conftest.$ac_objext'
33391 { (case "(($ac_try" in
33392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33393 *) ac_try_echo=$ac_try;;
33394 esac
33395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33396 (eval "$ac_try") 2>&5
33397 ac_status=$?
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); }; }; then
33400 ac_cv_cxx_have_bi_iterator=yes
33401 else
33402 echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33405 ac_cv_cxx_have_bi_iterator=no
33408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33409 ac_ext=c
33410 ac_cpp='$CPP $CPPFLAGS'
33411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33417 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33418 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33419 if test "$ac_cv_cxx_have_bi_iterator" = yes
33420 then
33422 cat >>confdefs.h <<\_ACEOF
33423 #define HAVE_BI_ITERATOR 1
33424 _ACEOF
33426 else
33428 cat >>confdefs.h <<\_ACEOF
33429 #define HAVE_BI_ITERATOR 0
33430 _ACEOF
33434 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33435 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33436 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33437 echo $ECHO_N "(cached) $ECHO_C" >&6
33438 else
33440 ac_ext=cpp
33441 ac_cpp='$CXXCPP $CPPFLAGS'
33442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33446 cat >conftest.$ac_ext <<_ACEOF
33447 /* confdefs.h. */
33448 _ACEOF
33449 cat confdefs.h >>conftest.$ac_ext
33450 cat >>conftest.$ac_ext <<_ACEOF
33451 /* end confdefs.h. */
33452 #include <iterator>
33453 #ifdef HAVE_NAMESPACES
33454 using namespace std;
33455 #endif
33457 main ()
33459 forward_iterator<int,int> t; return 0;
33461 return 0;
33463 _ACEOF
33464 rm -f conftest.$ac_objext
33465 if { (ac_try="$ac_compile"
33466 case "(($ac_try" in
33467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33468 *) ac_try_echo=$ac_try;;
33469 esac
33470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33471 (eval "$ac_compile") 2>conftest.er1
33472 ac_status=$?
33473 grep -v '^ *+' conftest.er1 >conftest.err
33474 rm -f conftest.er1
33475 cat conftest.err >&5
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); } &&
33478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33479 { (case "(($ac_try" in
33480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33481 *) ac_try_echo=$ac_try;;
33482 esac
33483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33484 (eval "$ac_try") 2>&5
33485 ac_status=$?
33486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487 (exit $ac_status); }; } &&
33488 { ac_try='test -s conftest.$ac_objext'
33489 { (case "(($ac_try" in
33490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491 *) ac_try_echo=$ac_try;;
33492 esac
33493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494 (eval "$ac_try") 2>&5
33495 ac_status=$?
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; }; then
33498 ac_cv_cxx_have_fwd_iterator=yes
33499 else
33500 echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.$ac_ext >&5
33503 ac_cv_cxx_have_fwd_iterator=no
33506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33507 ac_ext=c
33508 ac_cpp='$CPP $CPPFLAGS'
33509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33515 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33516 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33517 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33518 then
33520 cat >>confdefs.h <<\_ACEOF
33521 #define HAVE_FWD_ITERATOR 1
33522 _ACEOF
33524 else
33526 cat >>confdefs.h <<\_ACEOF
33527 #define HAVE_FWD_ITERATOR 0
33528 _ACEOF
33533 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33534 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33535 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33536 echo $ECHO_N "(cached) $ECHO_C" >&6
33537 else
33538 ac_ext=cpp
33539 ac_cpp='$CXXCPP $CPPFLAGS'
33540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33544 cat >conftest.$ac_ext <<_ACEOF
33545 /* confdefs.h. */
33546 _ACEOF
33547 cat confdefs.h >>conftest.$ac_ext
33548 cat >>conftest.$ac_ext <<_ACEOF
33549 /* end confdefs.h. */
33550 #include <math.h>
33552 main ()
33554 float f; isnan(f);
33556 return 0;
33558 _ACEOF
33559 rm -f conftest.$ac_objext
33560 if { (ac_try="$ac_compile"
33561 case "(($ac_try" in
33562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33563 *) ac_try_echo=$ac_try;;
33564 esac
33565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33566 (eval "$ac_compile") 2>conftest.er1
33567 ac_status=$?
33568 grep -v '^ *+' conftest.er1 >conftest.err
33569 rm -f conftest.er1
33570 cat conftest.err >&5
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); } &&
33573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33574 { (case "(($ac_try" in
33575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576 *) ac_try_echo=$ac_try;;
33577 esac
33578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33579 (eval "$ac_try") 2>&5
33580 ac_status=$?
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); }; } &&
33583 { ac_try='test -s conftest.$ac_objext'
33584 { (case "(($ac_try" in
33585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33586 *) ac_try_echo=$ac_try;;
33587 esac
33588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33589 (eval "$ac_try") 2>&5
33590 ac_status=$?
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); }; }; then
33593 ac_cv_func_isnan_in_math_h=yes
33594 else
33595 echo "$as_me: failed program was:" >&5
33596 sed 's/^/| /' conftest.$ac_ext >&5
33598 ac_cv_func_isnan_in_math_h=no
33601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33602 ac_ext=c
33603 ac_cpp='$CPP $CPPFLAGS'
33604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33609 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33610 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33613 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33615 cat >>confdefs.h <<\_ACEOF
33616 #define HAVE_ISNAN_IN_MATH_H 1
33617 _ACEOF
33621 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33622 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33623 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33624 echo $ECHO_N "(cached) $ECHO_C" >&6
33625 else
33626 ac_ext=cpp
33627 ac_cpp='$CXXCPP $CPPFLAGS'
33628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33632 cat >conftest.$ac_ext <<_ACEOF
33633 /* confdefs.h. */
33634 _ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h. */
33638 #include <cmath>
33640 main ()
33642 float f; isnan(f);
33644 return 0;
33646 _ACEOF
33647 rm -f conftest.$ac_objext
33648 if { (ac_try="$ac_compile"
33649 case "(($ac_try" in
33650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33651 *) ac_try_echo=$ac_try;;
33652 esac
33653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33654 (eval "$ac_compile") 2>conftest.er1
33655 ac_status=$?
33656 grep -v '^ *+' conftest.er1 >conftest.err
33657 rm -f conftest.er1
33658 cat conftest.err >&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); } &&
33661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33662 { (case "(($ac_try" in
33663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33664 *) ac_try_echo=$ac_try;;
33665 esac
33666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33667 (eval "$ac_try") 2>&5
33668 ac_status=$?
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); }; } &&
33671 { ac_try='test -s conftest.$ac_objext'
33672 { (case "(($ac_try" in
33673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33674 *) ac_try_echo=$ac_try;;
33675 esac
33676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33677 (eval "$ac_try") 2>&5
33678 ac_status=$?
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); }; }; then
33681 ac_cv_func_isnan_in_cmath=yes
33682 else
33683 echo "$as_me: failed program was:" >&5
33684 sed 's/^/| /' conftest.$ac_ext >&5
33686 ac_cv_func_isnan_in_cmath=no
33689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33690 ac_ext=c
33691 ac_cpp='$CPP $CPPFLAGS'
33692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33697 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33698 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33700 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33702 cat >>confdefs.h <<\_ACEOF
33703 #define HAVE_ISNAN_IN_CMATH 1
33704 _ACEOF
33708 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33709 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33710 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33711 echo $ECHO_N "(cached) $ECHO_C" >&6
33712 else
33713 ac_ext=cpp
33714 ac_cpp='$CXXCPP $CPPFLAGS'
33715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33719 cat >conftest.$ac_ext <<_ACEOF
33720 /* confdefs.h. */
33721 _ACEOF
33722 cat confdefs.h >>conftest.$ac_ext
33723 cat >>conftest.$ac_ext <<_ACEOF
33724 /* end confdefs.h. */
33725 #include <cmath>
33727 main ()
33729 float f; std::isnan(f);
33731 return 0;
33733 _ACEOF
33734 rm -f conftest.$ac_objext
33735 if { (ac_try="$ac_compile"
33736 case "(($ac_try" in
33737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33739 esac
33740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_compile") 2>conftest.er1
33742 ac_status=$?
33743 grep -v '^ *+' conftest.er1 >conftest.err
33744 rm -f conftest.er1
33745 cat conftest.err >&5
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747 (exit $ac_status); } &&
33748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33749 { (case "(($ac_try" in
33750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751 *) ac_try_echo=$ac_try;;
33752 esac
33753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754 (eval "$ac_try") 2>&5
33755 ac_status=$?
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); }; } &&
33758 { ac_try='test -s conftest.$ac_objext'
33759 { (case "(($ac_try" in
33760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33762 esac
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_try") 2>&5
33765 ac_status=$?
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; }; then
33768 ac_cv_func_std_isnan_in_cmath=yes
33769 else
33770 echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33773 ac_cv_func_std_isnan_in_cmath=no
33776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33777 ac_ext=c
33778 ac_cpp='$CPP $CPPFLAGS'
33779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33784 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33785 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33787 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33789 cat >>confdefs.h <<\_ACEOF
33790 #define HAVE_STD_ISNAN_IN_CMATH 1
33791 _ACEOF
33796 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33797 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33798 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33800 else
33801 ac_ext=cpp
33802 ac_cpp='$CXXCPP $CPPFLAGS'
33803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33807 cat >conftest.$ac_ext <<_ACEOF
33808 /* confdefs.h. */
33809 _ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h. */
33813 #include <math.h>
33815 main ()
33817 float f; isinf(f);
33819 return 0;
33821 _ACEOF
33822 rm -f conftest.$ac_objext
33823 if { (ac_try="$ac_compile"
33824 case "(($ac_try" in
33825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826 *) ac_try_echo=$ac_try;;
33827 esac
33828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_compile") 2>conftest.er1
33830 ac_status=$?
33831 grep -v '^ *+' conftest.er1 >conftest.err
33832 rm -f conftest.er1
33833 cat conftest.err >&5
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); } &&
33836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33837 { (case "(($ac_try" in
33838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839 *) ac_try_echo=$ac_try;;
33840 esac
33841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842 (eval "$ac_try") 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); }; } &&
33846 { ac_try='test -s conftest.$ac_objext'
33847 { (case "(($ac_try" in
33848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33849 *) ac_try_echo=$ac_try;;
33850 esac
33851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33852 (eval "$ac_try") 2>&5
33853 ac_status=$?
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); }; }; then
33856 ac_cv_func_isinf_in_math_h=yes
33857 else
33858 echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33861 ac_cv_func_isinf_in_math_h=no
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33865 ac_ext=c
33866 ac_cpp='$CPP $CPPFLAGS'
33867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33872 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33873 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33875 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33877 cat >>confdefs.h <<\_ACEOF
33878 #define HAVE_ISINF_IN_MATH_H 1
33879 _ACEOF
33883 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33884 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33885 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33886 echo $ECHO_N "(cached) $ECHO_C" >&6
33887 else
33888 ac_ext=cpp
33889 ac_cpp='$CXXCPP $CPPFLAGS'
33890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33894 cat >conftest.$ac_ext <<_ACEOF
33895 /* confdefs.h. */
33896 _ACEOF
33897 cat confdefs.h >>conftest.$ac_ext
33898 cat >>conftest.$ac_ext <<_ACEOF
33899 /* end confdefs.h. */
33900 #include <cmath>
33902 main ()
33904 float f; isinf(f);
33906 return 0;
33908 _ACEOF
33909 rm -f conftest.$ac_objext
33910 if { (ac_try="$ac_compile"
33911 case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33914 esac
33915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_compile") 2>conftest.er1
33917 ac_status=$?
33918 grep -v '^ *+' conftest.er1 >conftest.err
33919 rm -f conftest.er1
33920 cat conftest.err >&5
33921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922 (exit $ac_status); } &&
33923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33924 { (case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33927 esac
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_try") 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; } &&
33933 { ac_try='test -s conftest.$ac_objext'
33934 { (case "(($ac_try" in
33935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33936 *) ac_try_echo=$ac_try;;
33937 esac
33938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939 (eval "$ac_try") 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
33943 ac_cv_func_isinf_in_cmath=yes
33944 else
33945 echo "$as_me: failed program was:" >&5
33946 sed 's/^/| /' conftest.$ac_ext >&5
33948 ac_cv_func_isinf_in_cmath=no
33951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33952 ac_ext=c
33953 ac_cpp='$CPP $CPPFLAGS'
33954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33959 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33960 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33962 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33964 cat >>confdefs.h <<\_ACEOF
33965 #define HAVE_ISINF_IN_CMATH 1
33966 _ACEOF
33970 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33971 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33972 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33973 echo $ECHO_N "(cached) $ECHO_C" >&6
33974 else
33975 ac_ext=cpp
33976 ac_cpp='$CXXCPP $CPPFLAGS'
33977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33981 cat >conftest.$ac_ext <<_ACEOF
33982 /* confdefs.h. */
33983 _ACEOF
33984 cat confdefs.h >>conftest.$ac_ext
33985 cat >>conftest.$ac_ext <<_ACEOF
33986 /* end confdefs.h. */
33987 #include <cmath>
33989 main ()
33991 float f; std::isinf(f)}
33993 return 0;
33995 _ACEOF
33996 rm -f conftest.$ac_objext
33997 if { (ac_try="$ac_compile"
33998 case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34001 esac
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_compile") 2>conftest.er1
34004 ac_status=$?
34005 grep -v '^ *+' conftest.er1 >conftest.err
34006 rm -f conftest.er1
34007 cat conftest.err >&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); } &&
34010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34011 { (case "(($ac_try" in
34012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013 *) ac_try_echo=$ac_try;;
34014 esac
34015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016 (eval "$ac_try") 2>&5
34017 ac_status=$?
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; } &&
34020 { ac_try='test -s conftest.$ac_objext'
34021 { (case "(($ac_try" in
34022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023 *) ac_try_echo=$ac_try;;
34024 esac
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026 (eval "$ac_try") 2>&5
34027 ac_status=$?
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
34030 ac_cv_func_std_isinf_in_cmath=yes
34031 else
34032 echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34035 ac_cv_func_std_isinf_in_cmath=no
34038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34039 ac_ext=c
34040 ac_cpp='$CPP $CPPFLAGS'
34041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34046 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34047 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34049 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34051 cat >>confdefs.h <<\_ACEOF
34052 #define HAVE_STD_ISINF_IN_CMATH 1
34053 _ACEOF
34057 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34058 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34059 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34060 echo $ECHO_N "(cached) $ECHO_C" >&6
34061 else
34062 ac_ext=cpp
34063 ac_cpp='$CXXCPP $CPPFLAGS'
34064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34068 cat >conftest.$ac_ext <<_ACEOF
34069 /* confdefs.h. */
34070 _ACEOF
34071 cat confdefs.h >>conftest.$ac_ext
34072 cat >>conftest.$ac_ext <<_ACEOF
34073 /* end confdefs.h. */
34074 #include <ieeefp.h>
34076 main ()
34078 float f; finite(f);
34080 return 0;
34082 _ACEOF
34083 rm -f conftest.$ac_objext
34084 if { (ac_try="$ac_compile"
34085 case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34088 esac
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_compile") 2>conftest.er1
34091 ac_status=$?
34092 grep -v '^ *+' conftest.er1 >conftest.err
34093 rm -f conftest.er1
34094 cat conftest.err >&5
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); } &&
34097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34098 { (case "(($ac_try" in
34099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100 *) ac_try_echo=$ac_try;;
34101 esac
34102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103 (eval "$ac_try") 2>&5
34104 ac_status=$?
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; } &&
34107 { ac_try='test -s conftest.$ac_objext'
34108 { (case "(($ac_try" in
34109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34110 *) ac_try_echo=$ac_try;;
34111 esac
34112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34113 (eval "$ac_try") 2>&5
34114 ac_status=$?
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); }; }; then
34117 ac_cv_func_finite_in_ieeefp_h=yes
34118 else
34119 echo "$as_me: failed program was:" >&5
34120 sed 's/^/| /' conftest.$ac_ext >&5
34122 ac_cv_func_finite_in_ieeefp_h=no
34125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34126 ac_ext=c
34127 ac_cpp='$CPP $CPPFLAGS'
34128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34133 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34134 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34136 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34138 cat >>confdefs.h <<\_ACEOF
34139 #define HAVE_FINITE_IN_IEEEFP_H 1
34140 _ACEOF
34146 if test "$llvm_cv_platform_type" = "Unix" ; then
34149 for ac_header in stdlib.h unistd.h
34151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34158 ac_res=`eval echo '${'$as_ac_Header'}'`
34159 { echo "$as_me:$LINENO: result: $ac_res" >&5
34160 echo "${ECHO_T}$ac_res" >&6; }
34161 else
34162 # Is the header compilable?
34163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34165 cat >conftest.$ac_ext <<_ACEOF
34166 /* confdefs.h. */
34167 _ACEOF
34168 cat confdefs.h >>conftest.$ac_ext
34169 cat >>conftest.$ac_ext <<_ACEOF
34170 /* end confdefs.h. */
34171 $ac_includes_default
34172 #include <$ac_header>
34173 _ACEOF
34174 rm -f conftest.$ac_objext
34175 if { (ac_try="$ac_compile"
34176 case "(($ac_try" in
34177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34178 *) ac_try_echo=$ac_try;;
34179 esac
34180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181 (eval "$ac_compile") 2>conftest.er1
34182 ac_status=$?
34183 grep -v '^ *+' conftest.er1 >conftest.err
34184 rm -f conftest.er1
34185 cat conftest.err >&5
34186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 (exit $ac_status); } &&
34188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34189 { (case "(($ac_try" in
34190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34191 *) ac_try_echo=$ac_try;;
34192 esac
34193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34194 (eval "$ac_try") 2>&5
34195 ac_status=$?
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); }; } &&
34198 { ac_try='test -s conftest.$ac_objext'
34199 { (case "(($ac_try" in
34200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34201 *) ac_try_echo=$ac_try;;
34202 esac
34203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34204 (eval "$ac_try") 2>&5
34205 ac_status=$?
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); }; }; then
34208 ac_header_compiler=yes
34209 else
34210 echo "$as_me: failed program was:" >&5
34211 sed 's/^/| /' conftest.$ac_ext >&5
34213 ac_header_compiler=no
34216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34218 echo "${ECHO_T}$ac_header_compiler" >&6; }
34220 # Is the header present?
34221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34223 cat >conftest.$ac_ext <<_ACEOF
34224 /* confdefs.h. */
34225 _ACEOF
34226 cat confdefs.h >>conftest.$ac_ext
34227 cat >>conftest.$ac_ext <<_ACEOF
34228 /* end confdefs.h. */
34229 #include <$ac_header>
34230 _ACEOF
34231 if { (ac_try="$ac_cpp conftest.$ac_ext"
34232 case "(($ac_try" in
34233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34234 *) ac_try_echo=$ac_try;;
34235 esac
34236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34238 ac_status=$?
34239 grep -v '^ *+' conftest.er1 >conftest.err
34240 rm -f conftest.er1
34241 cat conftest.err >&5
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); } >/dev/null; then
34244 if test -s conftest.err; then
34245 ac_cpp_err=$ac_c_preproc_warn_flag
34246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34247 else
34248 ac_cpp_err=
34250 else
34251 ac_cpp_err=yes
34253 if test -z "$ac_cpp_err"; then
34254 ac_header_preproc=yes
34255 else
34256 echo "$as_me: failed program was:" >&5
34257 sed 's/^/| /' conftest.$ac_ext >&5
34259 ac_header_preproc=no
34262 rm -f conftest.err conftest.$ac_ext
34263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34264 echo "${ECHO_T}$ac_header_preproc" >&6; }
34266 # So? What about this header?
34267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34268 yes:no: )
34269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34273 ac_header_preproc=yes
34275 no:yes:* )
34276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34288 ( cat <<\_ASBOX
34289 ## ----------------------------------- ##
34290 ## Report this to llvmbugs@cs.uiuc.edu ##
34291 ## ----------------------------------- ##
34292 _ASBOX
34293 ) | sed "s/^/$as_me: WARNING: /" >&2
34295 esac
34296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34299 echo $ECHO_N "(cached) $ECHO_C" >&6
34300 else
34301 eval "$as_ac_Header=\$ac_header_preproc"
34303 ac_res=`eval echo '${'$as_ac_Header'}'`
34304 { echo "$as_me:$LINENO: result: $ac_res" >&5
34305 echo "${ECHO_T}$ac_res" >&6; }
34308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34309 cat >>confdefs.h <<_ACEOF
34310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34311 _ACEOF
34315 done
34318 for ac_func in getpagesize
34320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34324 echo $ECHO_N "(cached) $ECHO_C" >&6
34325 else
34326 cat >conftest.$ac_ext <<_ACEOF
34327 /* confdefs.h. */
34328 _ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h. */
34332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34334 #define $ac_func innocuous_$ac_func
34336 /* System header to define __stub macros and hopefully few prototypes,
34337 which can conflict with char $ac_func (); below.
34338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34339 <limits.h> exists even on freestanding compilers. */
34341 #ifdef __STDC__
34342 # include <limits.h>
34343 #else
34344 # include <assert.h>
34345 #endif
34347 #undef $ac_func
34349 /* Override any GCC internal prototype to avoid an error.
34350 Use char because int might match the return type of a GCC
34351 builtin and then its argument prototype would still apply. */
34352 #ifdef __cplusplus
34353 extern "C"
34354 #endif
34355 char $ac_func ();
34356 /* The GNU C library defines this for functions which it implements
34357 to always fail with ENOSYS. Some functions are actually named
34358 something starting with __ and the normal name is an alias. */
34359 #if defined __stub_$ac_func || defined __stub___$ac_func
34360 choke me
34361 #endif
34364 main ()
34366 return $ac_func ();
34368 return 0;
34370 _ACEOF
34371 rm -f conftest.$ac_objext conftest$ac_exeext
34372 if { (ac_try="$ac_link"
34373 case "(($ac_try" in
34374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34375 *) ac_try_echo=$ac_try;;
34376 esac
34377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34378 (eval "$ac_link") 2>conftest.er1
34379 ac_status=$?
34380 grep -v '^ *+' conftest.er1 >conftest.err
34381 rm -f conftest.er1
34382 cat conftest.err >&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); } &&
34385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34386 { (case "(($ac_try" in
34387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34388 *) ac_try_echo=$ac_try;;
34389 esac
34390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34391 (eval "$ac_try") 2>&5
34392 ac_status=$?
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); }; } &&
34395 { ac_try='test -s conftest$ac_exeext'
34396 { (case "(($ac_try" in
34397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34398 *) ac_try_echo=$ac_try;;
34399 esac
34400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34401 (eval "$ac_try") 2>&5
34402 ac_status=$?
34403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); }; }; then
34405 eval "$as_ac_var=yes"
34406 else
34407 echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34410 eval "$as_ac_var=no"
34413 rm -f core conftest.err conftest.$ac_objext \
34414 conftest$ac_exeext conftest.$ac_ext
34416 ac_res=`eval echo '${'$as_ac_var'}'`
34417 { echo "$as_me:$LINENO: result: $ac_res" >&5
34418 echo "${ECHO_T}$ac_res" >&6; }
34419 if test `eval echo '${'$as_ac_var'}'` = yes; then
34420 cat >>confdefs.h <<_ACEOF
34421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34422 _ACEOF
34425 done
34427 { echo "$as_me:$LINENO: checking for working mmap" >&5
34428 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34429 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34430 echo $ECHO_N "(cached) $ECHO_C" >&6
34431 else
34432 if test "$cross_compiling" = yes; then
34433 ac_cv_func_mmap_fixed_mapped=no
34434 else
34435 cat >conftest.$ac_ext <<_ACEOF
34436 /* confdefs.h. */
34437 _ACEOF
34438 cat confdefs.h >>conftest.$ac_ext
34439 cat >>conftest.$ac_ext <<_ACEOF
34440 /* end confdefs.h. */
34441 $ac_includes_default
34442 /* malloc might have been renamed as rpl_malloc. */
34443 #undef malloc
34445 /* Thanks to Mike Haertel and Jim Avera for this test.
34446 Here is a matrix of mmap possibilities:
34447 mmap private not fixed
34448 mmap private fixed at somewhere currently unmapped
34449 mmap private fixed at somewhere already mapped
34450 mmap shared not fixed
34451 mmap shared fixed at somewhere currently unmapped
34452 mmap shared fixed at somewhere already mapped
34453 For private mappings, we should verify that changes cannot be read()
34454 back from the file, nor mmap's back from the file at a different
34455 address. (There have been systems where private was not correctly
34456 implemented like the infamous i386 svr4.0, and systems where the
34457 VM page cache was not coherent with the file system buffer cache
34458 like early versions of FreeBSD and possibly contemporary NetBSD.)
34459 For shared mappings, we should conversely verify that changes get
34460 propagated back to all the places they're supposed to be.
34462 Grep wants private fixed already mapped.
34463 The main things grep needs to know about mmap are:
34464 * does it exist and is it safe to write into the mmap'd area
34465 * how to use it (BSD variants) */
34467 #include <fcntl.h>
34468 #include <sys/mman.h>
34470 #if !STDC_HEADERS && !HAVE_STDLIB_H
34471 char *malloc ();
34472 #endif
34474 /* This mess was copied from the GNU getpagesize.h. */
34475 #if !HAVE_GETPAGESIZE
34476 /* Assume that all systems that can run configure have sys/param.h. */
34477 # if !HAVE_SYS_PARAM_H
34478 # define HAVE_SYS_PARAM_H 1
34479 # endif
34481 # ifdef _SC_PAGESIZE
34482 # define getpagesize() sysconf(_SC_PAGESIZE)
34483 # else /* no _SC_PAGESIZE */
34484 # if HAVE_SYS_PARAM_H
34485 # include <sys/param.h>
34486 # ifdef EXEC_PAGESIZE
34487 # define getpagesize() EXEC_PAGESIZE
34488 # else /* no EXEC_PAGESIZE */
34489 # ifdef NBPG
34490 # define getpagesize() NBPG * CLSIZE
34491 # ifndef CLSIZE
34492 # define CLSIZE 1
34493 # endif /* no CLSIZE */
34494 # else /* no NBPG */
34495 # ifdef NBPC
34496 # define getpagesize() NBPC
34497 # else /* no NBPC */
34498 # ifdef PAGESIZE
34499 # define getpagesize() PAGESIZE
34500 # endif /* PAGESIZE */
34501 # endif /* no NBPC */
34502 # endif /* no NBPG */
34503 # endif /* no EXEC_PAGESIZE */
34504 # else /* no HAVE_SYS_PARAM_H */
34505 # define getpagesize() 8192 /* punt totally */
34506 # endif /* no HAVE_SYS_PARAM_H */
34507 # endif /* no _SC_PAGESIZE */
34509 #endif /* no HAVE_GETPAGESIZE */
34512 main ()
34514 char *data, *data2, *data3;
34515 int i, pagesize;
34516 int fd;
34518 pagesize = getpagesize ();
34520 /* First, make a file with some known garbage in it. */
34521 data = (char *) malloc (pagesize);
34522 if (!data)
34523 return 1;
34524 for (i = 0; i < pagesize; ++i)
34525 *(data + i) = rand ();
34526 umask (0);
34527 fd = creat ("conftest.mmap", 0600);
34528 if (fd < 0)
34529 return 1;
34530 if (write (fd, data, pagesize) != pagesize)
34531 return 1;
34532 close (fd);
34534 /* Next, try to mmap the file at a fixed address which already has
34535 something else allocated at it. If we can, also make sure that
34536 we see the same garbage. */
34537 fd = open ("conftest.mmap", O_RDWR);
34538 if (fd < 0)
34539 return 1;
34540 data2 = (char *) malloc (2 * pagesize);
34541 if (!data2)
34542 return 1;
34543 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34544 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34545 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34546 return 1;
34547 for (i = 0; i < pagesize; ++i)
34548 if (*(data + i) != *(data2 + i))
34549 return 1;
34551 /* Finally, make sure that changes to the mapped area do not
34552 percolate back to the file as seen by read(). (This is a bug on
34553 some variants of i386 svr4.0.) */
34554 for (i = 0; i < pagesize; ++i)
34555 *(data2 + i) = *(data2 + i) + 1;
34556 data3 = (char *) malloc (pagesize);
34557 if (!data3)
34558 return 1;
34559 if (read (fd, data3, pagesize) != pagesize)
34560 return 1;
34561 for (i = 0; i < pagesize; ++i)
34562 if (*(data + i) != *(data3 + i))
34563 return 1;
34564 close (fd);
34565 return 0;
34567 _ACEOF
34568 rm -f conftest$ac_exeext
34569 if { (ac_try="$ac_link"
34570 case "(($ac_try" in
34571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34572 *) ac_try_echo=$ac_try;;
34573 esac
34574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34575 (eval "$ac_link") 2>&5
34576 ac_status=$?
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34579 { (case "(($ac_try" in
34580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34581 *) ac_try_echo=$ac_try;;
34582 esac
34583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34584 (eval "$ac_try") 2>&5
34585 ac_status=$?
34586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 (exit $ac_status); }; }; then
34588 ac_cv_func_mmap_fixed_mapped=yes
34589 else
34590 echo "$as_me: program exited with status $ac_status" >&5
34591 echo "$as_me: failed program was:" >&5
34592 sed 's/^/| /' conftest.$ac_ext >&5
34594 ( exit $ac_status )
34595 ac_cv_func_mmap_fixed_mapped=no
34597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34602 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34603 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34604 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34606 cat >>confdefs.h <<\_ACEOF
34607 #define HAVE_MMAP 1
34608 _ACEOF
34611 rm -f conftest.mmap
34613 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34614 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34615 if test "${ac_cv_func_mmap_file+set}" = set; then
34616 echo $ECHO_N "(cached) $ECHO_C" >&6
34617 else
34618 ac_ext=c
34619 ac_cpp='$CPP $CPPFLAGS'
34620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34624 if test "$cross_compiling" = yes; then
34625 ac_cv_func_mmap_file=no
34626 else
34627 cat >conftest.$ac_ext <<_ACEOF
34629 /* confdefs.h. */
34630 _ACEOF
34631 cat confdefs.h >>conftest.$ac_ext
34632 cat >>conftest.$ac_ext <<_ACEOF
34633 /* end confdefs.h. */
34635 #include <sys/types.h>
34636 #include <sys/mman.h>
34637 #include <fcntl.h>
34640 main ()
34643 int fd;
34644 fd = creat ("foo",0777);
34645 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34646 unlink ("foo");
34647 return (fd != (int) MAP_FAILED);
34649 return 0;
34651 _ACEOF
34652 rm -f conftest$ac_exeext
34653 if { (ac_try="$ac_link"
34654 case "(($ac_try" in
34655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34656 *) ac_try_echo=$ac_try;;
34657 esac
34658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34659 (eval "$ac_link") 2>&5
34660 ac_status=$?
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34663 { (case "(($ac_try" in
34664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34665 *) ac_try_echo=$ac_try;;
34666 esac
34667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34668 (eval "$ac_try") 2>&5
34669 ac_status=$?
34670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671 (exit $ac_status); }; }; then
34672 ac_cv_func_mmap_file=yes
34673 else
34674 echo "$as_me: program exited with status $ac_status" >&5
34675 echo "$as_me: failed program was:" >&5
34676 sed 's/^/| /' conftest.$ac_ext >&5
34678 ( exit $ac_status )
34679 ac_cv_func_mmap_file=no
34681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34685 ac_ext=c
34686 ac_cpp='$CPP $CPPFLAGS'
34687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34693 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34694 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34695 if test "$ac_cv_func_mmap_file" = yes; then
34697 cat >>confdefs.h <<\_ACEOF
34698 #define HAVE_MMAP_FILE
34699 _ACEOF
34701 MMAP_FILE=yes
34705 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34706 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34707 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34708 echo $ECHO_N "(cached) $ECHO_C" >&6
34709 else
34710 if test "$llvm_cv_os_type" = "Interix" ; then
34711 ac_cv_need_dev_zero_for_mmap=yes
34712 else
34713 ac_cv_need_dev_zero_for_mmap=no
34717 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34718 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34719 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34721 cat >>confdefs.h <<\_ACEOF
34722 #define NEED_DEV_ZERO_FOR_MMAP 1
34723 _ACEOF
34727 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34728 then
34729 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34730 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34732 if test "$ac_cv_func_mmap_file" = "no"
34733 then
34734 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34735 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34739 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34740 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34741 cat >conftest.$ac_ext <<_ACEOF
34742 /* confdefs.h. */
34743 _ACEOF
34744 cat confdefs.h >>conftest.$ac_ext
34745 cat >>conftest.$ac_ext <<_ACEOF
34746 /* end confdefs.h. */
34747 int main() {
34748 volatile unsigned long val = 1;
34749 __sync_synchronize();
34750 __sync_val_compare_and_swap(&val, 1, 0);
34751 __sync_add_and_fetch(&val, 1);
34752 __sync_sub_and_fetch(&val, 1);
34753 return 0;
34756 _ACEOF
34757 rm -f conftest.$ac_objext conftest$ac_exeext
34758 if { (ac_try="$ac_link"
34759 case "(($ac_try" in
34760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34761 *) ac_try_echo=$ac_try;;
34762 esac
34763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34764 (eval "$ac_link") 2>conftest.er1
34765 ac_status=$?
34766 grep -v '^ *+' conftest.er1 >conftest.err
34767 rm -f conftest.er1
34768 cat conftest.err >&5
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); } &&
34771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34772 { (case "(($ac_try" in
34773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34774 *) ac_try_echo=$ac_try;;
34775 esac
34776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34777 (eval "$ac_try") 2>&5
34778 ac_status=$?
34779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34780 (exit $ac_status); }; } &&
34781 { ac_try='test -s conftest$ac_exeext'
34782 { (case "(($ac_try" in
34783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784 *) ac_try_echo=$ac_try;;
34785 esac
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787 (eval "$ac_try") 2>&5
34788 ac_status=$?
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); }; }; then
34791 { echo "$as_me:$LINENO: result: yes" >&5
34792 echo "${ECHO_T}yes" >&6; }
34794 cat >>confdefs.h <<\_ACEOF
34795 #define LLVM_MULTITHREADED 1
34796 _ACEOF
34798 else
34799 echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34802 { echo "$as_me:$LINENO: result: no" >&5
34803 echo "${ECHO_T}no" >&6; }
34805 cat >>confdefs.h <<\_ACEOF
34806 #define LLVM_MULTITHREADED 0
34807 _ACEOF
34809 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34810 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34813 rm -f core conftest.err conftest.$ac_objext \
34814 conftest$ac_exeext conftest.$ac_ext
34819 for ac_func in __dso_handle
34821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34825 echo $ECHO_N "(cached) $ECHO_C" >&6
34826 else
34827 cat >conftest.$ac_ext <<_ACEOF
34828 /* confdefs.h. */
34829 _ACEOF
34830 cat confdefs.h >>conftest.$ac_ext
34831 cat >>conftest.$ac_ext <<_ACEOF
34832 /* end confdefs.h. */
34833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34835 #define $ac_func innocuous_$ac_func
34837 /* System header to define __stub macros and hopefully few prototypes,
34838 which can conflict with char $ac_func (); below.
34839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34840 <limits.h> exists even on freestanding compilers. */
34842 #ifdef __STDC__
34843 # include <limits.h>
34844 #else
34845 # include <assert.h>
34846 #endif
34848 #undef $ac_func
34850 /* Override any GCC internal prototype to avoid an error.
34851 Use char because int might match the return type of a GCC
34852 builtin and then its argument prototype would still apply. */
34853 #ifdef __cplusplus
34854 extern "C"
34855 #endif
34856 char $ac_func ();
34857 /* The GNU C library defines this for functions which it implements
34858 to always fail with ENOSYS. Some functions are actually named
34859 something starting with __ and the normal name is an alias. */
34860 #if defined __stub_$ac_func || defined __stub___$ac_func
34861 choke me
34862 #endif
34865 main ()
34867 return $ac_func ();
34869 return 0;
34871 _ACEOF
34872 rm -f conftest.$ac_objext conftest$ac_exeext
34873 if { (ac_try="$ac_link"
34874 case "(($ac_try" in
34875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34876 *) ac_try_echo=$ac_try;;
34877 esac
34878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34879 (eval "$ac_link") 2>conftest.er1
34880 ac_status=$?
34881 grep -v '^ *+' conftest.er1 >conftest.err
34882 rm -f conftest.er1
34883 cat conftest.err >&5
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); } &&
34886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34887 { (case "(($ac_try" in
34888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34889 *) ac_try_echo=$ac_try;;
34890 esac
34891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34892 (eval "$ac_try") 2>&5
34893 ac_status=$?
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; } &&
34896 { ac_try='test -s conftest$ac_exeext'
34897 { (case "(($ac_try" in
34898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34899 *) ac_try_echo=$ac_try;;
34900 esac
34901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34902 (eval "$ac_try") 2>&5
34903 ac_status=$?
34904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34905 (exit $ac_status); }; }; then
34906 eval "$as_ac_var=yes"
34907 else
34908 echo "$as_me: failed program was:" >&5
34909 sed 's/^/| /' conftest.$ac_ext >&5
34911 eval "$as_ac_var=no"
34914 rm -f core conftest.err conftest.$ac_objext \
34915 conftest$ac_exeext conftest.$ac_ext
34917 ac_res=`eval echo '${'$as_ac_var'}'`
34918 { echo "$as_me:$LINENO: result: $ac_res" >&5
34919 echo "${ECHO_T}$ac_res" >&6; }
34920 if test `eval echo '${'$as_ac_var'}'` = yes; then
34921 cat >>confdefs.h <<_ACEOF
34922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34923 _ACEOF
34926 done
34929 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34930 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34931 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34932 echo $ECHO_N "(cached) $ECHO_C" >&6
34933 else
34934 llvm_cv_llvmgcc_sanity="no"
34935 if test -x "$LLVMGCC" ; then
34936 cp /dev/null conftest.c
34937 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34938 grep 'target datalayout =' > /dev/null 2>&1
34939 if test $? -eq 0 ; then
34940 llvm_cv_llvmgcc_sanity="yes"
34942 rm conftest.c
34945 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34946 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34948 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34949 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34950 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34951 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34952 LLVMCC1=$llvmcc1path
34954 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34955 LLVMCC1PLUS=$llvmcc1pluspath
34957 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34958 LLVMGCCDIR=$llvmgccdir
34960 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34961 LLVMGCCLIBEXEC=$llvmgcclibexec
34963 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34964 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34965 LLVMGCC_VERSION=$llvmgccversion
34967 LLVMGCC_MAJVERS=$llvmgccmajvers
34969 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34970 LLVMGCC_LANGS=$llvmgcclangs
34972 { echo "$as_me:$LINENO: result: ok" >&5
34973 echo "${ECHO_T}ok" >&6; }
34976 SHLIBEXT=$libltdl_cv_shlibext
34979 # Translate the various configuration directories and other basic
34980 # information into substitutions that will end up in Makefile.config.in
34981 # that these configured values can be used by the makefiles
34982 if test "${prefix}" = "NONE" ; then
34983 prefix="/usr/local"
34985 eval LLVM_PREFIX="${prefix}";
34986 eval LLVM_BINDIR="${prefix}/bin";
34987 eval LLVM_LIBDIR="${prefix}/lib";
34988 eval LLVM_DATADIR="${prefix}/share/llvm";
34989 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34990 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34991 eval LLVM_INCLUDEDIR="${prefix}/include";
34992 eval LLVM_INFODIR="${prefix}/info";
34993 eval LLVM_MANDIR="${prefix}/man";
34994 LLVM_CONFIGTIME=`date`
35006 # Place the various directores into the config.h file as #defines so that we
35007 # can know about the installation paths within LLVM.
35009 cat >>confdefs.h <<_ACEOF
35010 #define LLVM_PREFIX "$LLVM_PREFIX"
35011 _ACEOF
35014 cat >>confdefs.h <<_ACEOF
35015 #define LLVM_BINDIR "$LLVM_BINDIR"
35016 _ACEOF
35019 cat >>confdefs.h <<_ACEOF
35020 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35021 _ACEOF
35024 cat >>confdefs.h <<_ACEOF
35025 #define LLVM_DATADIR "$LLVM_DATADIR"
35026 _ACEOF
35029 cat >>confdefs.h <<_ACEOF
35030 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35031 _ACEOF
35034 cat >>confdefs.h <<_ACEOF
35035 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35036 _ACEOF
35039 cat >>confdefs.h <<_ACEOF
35040 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35041 _ACEOF
35044 cat >>confdefs.h <<_ACEOF
35045 #define LLVM_INFODIR "$LLVM_INFODIR"
35046 _ACEOF
35049 cat >>confdefs.h <<_ACEOF
35050 #define LLVM_MANDIR "$LLVM_MANDIR"
35051 _ACEOF
35054 cat >>confdefs.h <<_ACEOF
35055 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35056 _ACEOF
35059 cat >>confdefs.h <<_ACEOF
35060 #define LLVM_HOSTTRIPLE "$host"
35061 _ACEOF
35064 # Determine which bindings to build.
35065 if test "$BINDINGS_TO_BUILD" = auto ; then
35066 BINDINGS_TO_BUILD=""
35067 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35068 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35071 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35074 # This isn't really configurey, but it avoids having to repeat the list in
35075 # other files.
35076 ALL_BINDINGS=ocaml
35079 # Do any work necessary to ensure that bindings have what they need.
35080 binding_prereqs_failed=0
35081 for a_binding in $BINDINGS_TO_BUILD ; do
35082 case "$a_binding" in
35083 ocaml)
35084 if test "x$OCAMLC" = x ; then
35085 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35086 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35087 binding_prereqs_failed=1
35089 if test "x$OCAMLDEP" = x ; then
35090 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35091 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35092 binding_prereqs_failed=1
35094 if test "x$OCAMLOPT" = x ; then
35095 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35096 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35098 if test "x$with_ocaml_libdir" != xauto ; then
35099 OCAML_LIBDIR=$with_ocaml_libdir
35101 else
35102 ocaml_stdlib="`"$OCAMLC" -where`"
35103 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35104 then
35105 # ocaml stdlib is beneath our prefix; use stdlib
35106 OCAML_LIBDIR=$ocaml_stdlib
35108 else
35109 # ocaml stdlib is outside our prefix; use libdir/ocaml
35110 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35115 esac
35116 done
35117 if test "$binding_prereqs_failed" = 1 ; then
35118 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35119 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35120 { (exit 1); exit 1; }; }
35123 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35124 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35125 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35126 echo $ECHO_N "(cached) $ECHO_C" >&6
35127 else
35128 ac_ext=cpp
35129 ac_cpp='$CXXCPP $CPPFLAGS'
35130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35134 oldcxxflags="$CXXFLAGS"
35135 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35136 cat >conftest.$ac_ext <<_ACEOF
35137 /* confdefs.h. */
35138 _ACEOF
35139 cat confdefs.h >>conftest.$ac_ext
35140 cat >>conftest.$ac_ext <<_ACEOF
35141 /* end confdefs.h. */
35144 main ()
35148 return 0;
35150 _ACEOF
35151 rm -f conftest.$ac_objext
35152 if { (ac_try="$ac_compile"
35153 case "(($ac_try" in
35154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35155 *) ac_try_echo=$ac_try;;
35156 esac
35157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35158 (eval "$ac_compile") 2>conftest.er1
35159 ac_status=$?
35160 grep -v '^ *+' conftest.er1 >conftest.err
35161 rm -f conftest.er1
35162 cat conftest.err >&5
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); } &&
35165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35166 { (case "(($ac_try" in
35167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35168 *) ac_try_echo=$ac_try;;
35169 esac
35170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35171 (eval "$ac_try") 2>&5
35172 ac_status=$?
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); }; } &&
35175 { ac_try='test -s conftest.$ac_objext'
35176 { (case "(($ac_try" in
35177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35178 *) ac_try_echo=$ac_try;;
35179 esac
35180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35181 (eval "$ac_try") 2>&5
35182 ac_status=$?
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); }; }; then
35185 llvm_cv_cxx_visibility_inlines_hidden=yes
35186 else
35187 echo "$as_me: failed program was:" >&5
35188 sed 's/^/| /' conftest.$ac_ext >&5
35190 llvm_cv_cxx_visibility_inlines_hidden=no
35193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35194 CXXFLAGS="$oldcxxflags"
35195 ac_ext=c
35196 ac_cpp='$CPP $CPPFLAGS'
35197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35203 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35204 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35205 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35206 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35208 else
35209 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35214 if test "$llvm_cv_link_use_r" = "yes" ; then
35215 RPATH="-Wl,-R"
35216 else
35217 RPATH="-Wl,-rpath"
35221 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35222 RDYNAMIC="-Wl,-export-dynamic"
35223 else
35224 RDYNAMIC=""
35229 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35231 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35233 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35235 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35237 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35239 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35242 ac_config_files="$ac_config_files Makefile.config"
35245 ac_config_files="$ac_config_files llvm.spec"
35248 ac_config_files="$ac_config_files docs/doxygen.cfg"
35251 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35254 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35257 ac_config_commands="$ac_config_commands setup"
35259 ac_config_commands="$ac_config_commands Makefile"
35262 ac_config_commands="$ac_config_commands Makefile.common"
35265 ac_config_commands="$ac_config_commands examples/Makefile"
35268 ac_config_commands="$ac_config_commands lib/Makefile"
35271 ac_config_commands="$ac_config_commands runtime/Makefile"
35274 ac_config_commands="$ac_config_commands test/Makefile"
35277 ac_config_commands="$ac_config_commands test/Makefile.tests"
35280 ac_config_commands="$ac_config_commands unittests/Makefile"
35283 ac_config_commands="$ac_config_commands tools/Makefile"
35286 ac_config_commands="$ac_config_commands utils/Makefile"
35289 ac_config_commands="$ac_config_commands projects/Makefile"
35292 ac_config_commands="$ac_config_commands bindings/Makefile"
35295 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35299 cat >confcache <<\_ACEOF
35300 # This file is a shell script that caches the results of configure
35301 # tests run on this system so they can be shared between configure
35302 # scripts and configure runs, see configure's option --config-cache.
35303 # It is not useful on other systems. If it contains results you don't
35304 # want to keep, you may remove or edit it.
35306 # config.status only pays attention to the cache file if you give it
35307 # the --recheck option to rerun configure.
35309 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35310 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35311 # following values.
35313 _ACEOF
35315 # The following way of writing the cache mishandles newlines in values,
35316 # but we know of no workaround that is simple, portable, and efficient.
35317 # So, we kill variables containing newlines.
35318 # Ultrix sh set writes to stderr and can't be redirected directly,
35319 # and sets the high bit in the cache file unless we assign to the vars.
35321 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35322 eval ac_val=\$$ac_var
35323 case $ac_val in #(
35324 *${as_nl}*)
35325 case $ac_var in #(
35326 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35327 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35328 esac
35329 case $ac_var in #(
35330 _ | IFS | as_nl) ;; #(
35331 *) $as_unset $ac_var ;;
35332 esac ;;
35333 esac
35334 done
35336 (set) 2>&1 |
35337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35338 *${as_nl}ac_space=\ *)
35339 # `set' does not quote correctly, so add quotes (double-quote
35340 # substitution turns \\\\ into \\, and sed turns \\ into \).
35341 sed -n \
35342 "s/'/'\\\\''/g;
35343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35344 ;; #(
35346 # `set' quotes correctly as required by POSIX, so do not add quotes.
35347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35349 esac |
35350 sort
35352 sed '
35353 /^ac_cv_env_/b end
35354 t clear
35355 :clear
35356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35357 t end
35358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35359 :end' >>confcache
35360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35361 if test -w "$cache_file"; then
35362 test "x$cache_file" != "x/dev/null" &&
35363 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35364 echo "$as_me: updating cache $cache_file" >&6;}
35365 cat confcache >$cache_file
35366 else
35367 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35368 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35371 rm -f confcache
35373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35374 # Let make expand exec_prefix.
35375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35377 DEFS=-DHAVE_CONFIG_H
35379 ac_libobjs=
35380 ac_ltlibobjs=
35381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35382 # 1. Remove the extension, and $U if already installed.
35383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35384 ac_i=`echo "$ac_i" | sed "$ac_script"`
35385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35386 # will be set to the directory where LIBOBJS objects are built.
35387 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35388 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35389 done
35390 LIBOBJS=$ac_libobjs
35392 LTLIBOBJS=$ac_ltlibobjs
35395 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35396 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35397 Usually this means the macro was only invoked conditionally." >&5
35398 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35399 Usually this means the macro was only invoked conditionally." >&2;}
35400 { (exit 1); exit 1; }; }
35402 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35403 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35404 Usually this means the macro was only invoked conditionally." >&5
35405 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35406 Usually this means the macro was only invoked conditionally." >&2;}
35407 { (exit 1); exit 1; }; }
35410 : ${CONFIG_STATUS=./config.status}
35411 ac_clean_files_save=$ac_clean_files
35412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35413 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35414 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35415 cat >$CONFIG_STATUS <<_ACEOF
35416 #! $SHELL
35417 # Generated by $as_me.
35418 # Run this file to recreate the current configuration.
35419 # Compiler output produced by configure, useful for debugging
35420 # configure, is in config.log if it exists.
35422 debug=false
35423 ac_cs_recheck=false
35424 ac_cs_silent=false
35425 SHELL=\${CONFIG_SHELL-$SHELL}
35426 _ACEOF
35428 cat >>$CONFIG_STATUS <<\_ACEOF
35429 ## --------------------- ##
35430 ## M4sh Initialization. ##
35431 ## --------------------- ##
35433 # Be Bourne compatible
35434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35435 emulate sh
35436 NULLCMD=:
35437 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35438 # is contrary to our usage. Disable this feature.
35439 alias -g '${1+"$@"}'='"$@"'
35440 setopt NO_GLOB_SUBST
35441 else
35442 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35444 BIN_SH=xpg4; export BIN_SH # for Tru64
35445 DUALCASE=1; export DUALCASE # for MKS sh
35448 # PATH needs CR
35449 # Avoid depending upon Character Ranges.
35450 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35451 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35452 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35453 as_cr_digits='0123456789'
35454 as_cr_alnum=$as_cr_Letters$as_cr_digits
35456 # The user is always right.
35457 if test "${PATH_SEPARATOR+set}" != set; then
35458 echo "#! /bin/sh" >conf$$.sh
35459 echo "exit 0" >>conf$$.sh
35460 chmod +x conf$$.sh
35461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35462 PATH_SEPARATOR=';'
35463 else
35464 PATH_SEPARATOR=:
35466 rm -f conf$$.sh
35469 # Support unset when possible.
35470 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35471 as_unset=unset
35472 else
35473 as_unset=false
35477 # IFS
35478 # We need space, tab and new line, in precisely that order. Quoting is
35479 # there to prevent editors from complaining about space-tab.
35480 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35481 # splitting by setting IFS to empty value.)
35482 as_nl='
35484 IFS=" "" $as_nl"
35486 # Find who we are. Look in the path if we contain no directory separator.
35487 case $0 in
35488 *[\\/]* ) as_myself=$0 ;;
35489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35490 for as_dir in $PATH
35492 IFS=$as_save_IFS
35493 test -z "$as_dir" && as_dir=.
35494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35495 done
35496 IFS=$as_save_IFS
35499 esac
35500 # We did not find ourselves, most probably we were run as `sh COMMAND'
35501 # in which case we are not to be found in the path.
35502 if test "x$as_myself" = x; then
35503 as_myself=$0
35505 if test ! -f "$as_myself"; then
35506 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35507 { (exit 1); exit 1; }
35510 # Work around bugs in pre-3.0 UWIN ksh.
35511 for as_var in ENV MAIL MAILPATH
35512 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35513 done
35514 PS1='$ '
35515 PS2='> '
35516 PS4='+ '
35518 # NLS nuisances.
35519 for as_var in \
35520 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35521 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35522 LC_TELEPHONE LC_TIME
35524 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35525 eval $as_var=C; export $as_var
35526 else
35527 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35529 done
35531 # Required to use basename.
35532 if expr a : '\(a\)' >/dev/null 2>&1 &&
35533 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35534 as_expr=expr
35535 else
35536 as_expr=false
35539 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35540 as_basename=basename
35541 else
35542 as_basename=false
35546 # Name of the executable.
35547 as_me=`$as_basename -- "$0" ||
35548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35549 X"$0" : 'X\(//\)$' \| \
35550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35551 echo X/"$0" |
35552 sed '/^.*\/\([^/][^/]*\)\/*$/{
35553 s//\1/
35556 /^X\/\(\/\/\)$/{
35557 s//\1/
35560 /^X\/\(\/\).*/{
35561 s//\1/
35564 s/.*/./; q'`
35566 # CDPATH.
35567 $as_unset CDPATH
35571 as_lineno_1=$LINENO
35572 as_lineno_2=$LINENO
35573 test "x$as_lineno_1" != "x$as_lineno_2" &&
35574 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35576 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35577 # uniformly replaced by the line number. The first 'sed' inserts a
35578 # line-number line after each line using $LINENO; the second 'sed'
35579 # does the real work. The second script uses 'N' to pair each
35580 # line-number line with the line containing $LINENO, and appends
35581 # trailing '-' during substitution so that $LINENO is not a special
35582 # case at line end.
35583 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35584 # scripts with optimization help from Paolo Bonzini. Blame Lee
35585 # E. McMahon (1931-1989) for sed's syntax. :-)
35586 sed -n '
35588 /[$]LINENO/=
35589 ' <$as_myself |
35590 sed '
35591 s/[$]LINENO.*/&-/
35592 t lineno
35594 :lineno
35596 :loop
35597 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35598 t loop
35599 s/-\n.*//
35600 ' >$as_me.lineno &&
35601 chmod +x "$as_me.lineno" ||
35602 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35603 { (exit 1); exit 1; }; }
35605 # Don't try to exec as it changes $[0], causing all sort of problems
35606 # (the dirname of $[0] is not the place where we might find the
35607 # original and so on. Autoconf is especially sensitive to this).
35608 . "./$as_me.lineno"
35609 # Exit status is that of the last command.
35610 exit
35614 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35615 as_dirname=dirname
35616 else
35617 as_dirname=false
35620 ECHO_C= ECHO_N= ECHO_T=
35621 case `echo -n x` in
35622 -n*)
35623 case `echo 'x\c'` in
35624 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35625 *) ECHO_C='\c';;
35626 esac;;
35628 ECHO_N='-n';;
35629 esac
35631 if expr a : '\(a\)' >/dev/null 2>&1 &&
35632 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35633 as_expr=expr
35634 else
35635 as_expr=false
35638 rm -f conf$$ conf$$.exe conf$$.file
35639 if test -d conf$$.dir; then
35640 rm -f conf$$.dir/conf$$.file
35641 else
35642 rm -f conf$$.dir
35643 mkdir conf$$.dir
35645 echo >conf$$.file
35646 if ln -s conf$$.file conf$$ 2>/dev/null; then
35647 as_ln_s='ln -s'
35648 # ... but there are two gotchas:
35649 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35650 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35651 # In both cases, we have to default to `cp -p'.
35652 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35653 as_ln_s='cp -p'
35654 elif ln conf$$.file conf$$ 2>/dev/null; then
35655 as_ln_s=ln
35656 else
35657 as_ln_s='cp -p'
35659 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35660 rmdir conf$$.dir 2>/dev/null
35662 if mkdir -p . 2>/dev/null; then
35663 as_mkdir_p=:
35664 else
35665 test -d ./-p && rmdir ./-p
35666 as_mkdir_p=false
35669 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35670 # systems may use methods other than mode bits to determine executability.
35671 cat >conf$$.file <<_ASEOF
35672 #! /bin/sh
35673 exit 0
35674 _ASEOF
35675 chmod +x conf$$.file
35676 if test -x conf$$.file >/dev/null 2>&1; then
35677 as_executable_p="test -x"
35678 else
35679 as_executable_p=:
35681 rm -f conf$$.file
35683 # Sed expression to map a string onto a valid CPP name.
35684 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35686 # Sed expression to map a string onto a valid variable name.
35687 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35690 exec 6>&1
35692 # Save the log message, to keep $[0] and so on meaningful, and to
35693 # report actual input values of CONFIG_FILES etc. instead of their
35694 # values after options handling.
35695 ac_log="
35696 This file was extended by llvm $as_me 2.6svn, which was
35697 generated by GNU Autoconf 2.60. Invocation command line was
35699 CONFIG_FILES = $CONFIG_FILES
35700 CONFIG_HEADERS = $CONFIG_HEADERS
35701 CONFIG_LINKS = $CONFIG_LINKS
35702 CONFIG_COMMANDS = $CONFIG_COMMANDS
35703 $ $0 $@
35705 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35708 _ACEOF
35710 cat >>$CONFIG_STATUS <<_ACEOF
35711 # Files that config.status was made for.
35712 config_files="$ac_config_files"
35713 config_headers="$ac_config_headers"
35714 config_commands="$ac_config_commands"
35716 _ACEOF
35718 cat >>$CONFIG_STATUS <<\_ACEOF
35719 ac_cs_usage="\
35720 \`$as_me' instantiates files from templates according to the
35721 current configuration.
35723 Usage: $0 [OPTIONS] [FILE]...
35725 -h, --help print this help, then exit
35726 -V, --version print version number, then exit
35727 -q, --quiet do not print progress messages
35728 -d, --debug don't remove temporary files
35729 --recheck update $as_me by reconfiguring in the same conditions
35730 --file=FILE[:TEMPLATE]
35731 instantiate the configuration file FILE
35732 --header=FILE[:TEMPLATE]
35733 instantiate the configuration header FILE
35735 Configuration files:
35736 $config_files
35738 Configuration headers:
35739 $config_headers
35741 Configuration commands:
35742 $config_commands
35744 Report bugs to <bug-autoconf@gnu.org>."
35746 _ACEOF
35747 cat >>$CONFIG_STATUS <<_ACEOF
35748 ac_cs_version="\\
35749 llvm config.status 2.6svn
35750 configured by $0, generated by GNU Autoconf 2.60,
35751 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35753 Copyright (C) 2006 Free Software Foundation, Inc.
35754 This config.status script is free software; the Free Software Foundation
35755 gives unlimited permission to copy, distribute and modify it."
35757 ac_pwd='$ac_pwd'
35758 srcdir='$srcdir'
35759 INSTALL='$INSTALL'
35760 _ACEOF
35762 cat >>$CONFIG_STATUS <<\_ACEOF
35763 # If no file are specified by the user, then we need to provide default
35764 # value. By we need to know if files were specified by the user.
35765 ac_need_defaults=:
35766 while test $# != 0
35768 case $1 in
35769 --*=*)
35770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35771 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35772 ac_shift=:
35775 ac_option=$1
35776 ac_optarg=$2
35777 ac_shift=shift
35779 esac
35781 case $ac_option in
35782 # Handling of the options.
35783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35784 ac_cs_recheck=: ;;
35785 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35786 echo "$ac_cs_version"; exit ;;
35787 --debug | --debu | --deb | --de | --d | -d )
35788 debug=: ;;
35789 --file | --fil | --fi | --f )
35790 $ac_shift
35791 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35792 ac_need_defaults=false;;
35793 --header | --heade | --head | --hea )
35794 $ac_shift
35795 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35796 ac_need_defaults=false;;
35797 --he | --h)
35798 # Conflict between --help and --header
35799 { echo "$as_me: error: ambiguous option: $1
35800 Try \`$0 --help' for more information." >&2
35801 { (exit 1); exit 1; }; };;
35802 --help | --hel | -h )
35803 echo "$ac_cs_usage"; exit ;;
35804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35806 ac_cs_silent=: ;;
35808 # This is an error.
35809 -*) { echo "$as_me: error: unrecognized option: $1
35810 Try \`$0 --help' for more information." >&2
35811 { (exit 1); exit 1; }; } ;;
35813 *) ac_config_targets="$ac_config_targets $1"
35814 ac_need_defaults=false ;;
35816 esac
35817 shift
35818 done
35820 ac_configure_extra_args=
35822 if $ac_cs_silent; then
35823 exec 6>/dev/null
35824 ac_configure_extra_args="$ac_configure_extra_args --silent"
35827 _ACEOF
35828 cat >>$CONFIG_STATUS <<_ACEOF
35829 if \$ac_cs_recheck; then
35830 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35831 CONFIG_SHELL=$SHELL
35832 export CONFIG_SHELL
35833 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35836 _ACEOF
35837 cat >>$CONFIG_STATUS <<\_ACEOF
35838 exec 5>>config.log
35840 echo
35841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35842 ## Running $as_me. ##
35843 _ASBOX
35844 echo "$ac_log"
35845 } >&5
35847 _ACEOF
35848 cat >>$CONFIG_STATUS <<_ACEOF
35850 # INIT-COMMANDS
35852 llvm_src="${srcdir}"
35854 _ACEOF
35856 cat >>$CONFIG_STATUS <<\_ACEOF
35858 # Handling of arguments.
35859 for ac_config_target in $ac_config_targets
35861 case $ac_config_target in
35862 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35863 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35864 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35865 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35866 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35867 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35868 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35869 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35870 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35871 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35872 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35873 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35874 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35875 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35876 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35877 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35878 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35879 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35880 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35881 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35882 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35883 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35884 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35885 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35886 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35888 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35889 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35890 { (exit 1); exit 1; }; };;
35891 esac
35892 done
35895 # If the user did not use the arguments to specify the items to instantiate,
35896 # then the envvar interface is used. Set only those that are not.
35897 # We use the long form for the default assignment because of an extremely
35898 # bizarre bug on SunOS 4.1.3.
35899 if $ac_need_defaults; then
35900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35901 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35902 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35905 # Have a temporary directory for convenience. Make it in the build tree
35906 # simply because there is no reason against having it here, and in addition,
35907 # creating and moving files from /tmp can sometimes cause problems.
35908 # Hook for its removal unless debugging.
35909 # Note that there is a small window in which the directory will not be cleaned:
35910 # after its creation but before its name has been assigned to `$tmp'.
35911 $debug ||
35913 tmp=
35914 trap 'exit_status=$?
35915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35917 trap '{ (exit 1); exit 1; }' 1 2 13 15
35919 # Create a (secure) tmp directory for tmp files.
35922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35923 test -n "$tmp" && test -d "$tmp"
35924 } ||
35926 tmp=./conf$$-$RANDOM
35927 (umask 077 && mkdir "$tmp")
35928 } ||
35930 echo "$me: cannot create a temporary directory in ." >&2
35931 { (exit 1); exit 1; }
35935 # Set up the sed scripts for CONFIG_FILES section.
35938 # No need to generate the scripts if there are no CONFIG_FILES.
35939 # This happens for instance when ./config.status config.h
35940 if test -n "$CONFIG_FILES"; then
35942 _ACEOF
35946 ac_delim='%!_!# '
35947 for ac_last_try in false false false false false :; do
35948 cat >conf$$subs.sed <<_ACEOF
35949 SHELL!$SHELL$ac_delim
35950 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35951 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35952 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35953 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35954 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35955 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35956 exec_prefix!$exec_prefix$ac_delim
35957 prefix!$prefix$ac_delim
35958 program_transform_name!$program_transform_name$ac_delim
35959 bindir!$bindir$ac_delim
35960 sbindir!$sbindir$ac_delim
35961 libexecdir!$libexecdir$ac_delim
35962 datarootdir!$datarootdir$ac_delim
35963 datadir!$datadir$ac_delim
35964 sysconfdir!$sysconfdir$ac_delim
35965 sharedstatedir!$sharedstatedir$ac_delim
35966 localstatedir!$localstatedir$ac_delim
35967 includedir!$includedir$ac_delim
35968 oldincludedir!$oldincludedir$ac_delim
35969 docdir!$docdir$ac_delim
35970 infodir!$infodir$ac_delim
35971 htmldir!$htmldir$ac_delim
35972 dvidir!$dvidir$ac_delim
35973 pdfdir!$pdfdir$ac_delim
35974 psdir!$psdir$ac_delim
35975 libdir!$libdir$ac_delim
35976 localedir!$localedir$ac_delim
35977 mandir!$mandir$ac_delim
35978 DEFS!$DEFS$ac_delim
35979 ECHO_C!$ECHO_C$ac_delim
35980 ECHO_N!$ECHO_N$ac_delim
35981 ECHO_T!$ECHO_T$ac_delim
35982 LIBS!$LIBS$ac_delim
35983 build_alias!$build_alias$ac_delim
35984 host_alias!$host_alias$ac_delim
35985 target_alias!$target_alias$ac_delim
35986 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35987 subdirs!$subdirs$ac_delim
35988 build!$build$ac_delim
35989 build_cpu!$build_cpu$ac_delim
35990 build_vendor!$build_vendor$ac_delim
35991 build_os!$build_os$ac_delim
35992 host!$host$ac_delim
35993 host_cpu!$host_cpu$ac_delim
35994 host_vendor!$host_vendor$ac_delim
35995 host_os!$host_os$ac_delim
35996 target!$target$ac_delim
35997 target_cpu!$target_cpu$ac_delim
35998 target_vendor!$target_vendor$ac_delim
35999 target_os!$target_os$ac_delim
36000 OS!$OS$ac_delim
36001 LINKALL!$LINKALL$ac_delim
36002 NOLINKALL!$NOLINKALL$ac_delim
36003 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36004 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36005 ARCH!$ARCH$ac_delim
36006 ENDIAN!$ENDIAN$ac_delim
36007 CC!$CC$ac_delim
36008 CFLAGS!$CFLAGS$ac_delim
36009 LDFLAGS!$LDFLAGS$ac_delim
36010 CPPFLAGS!$CPPFLAGS$ac_delim
36011 ac_ct_CC!$ac_ct_CC$ac_delim
36012 EXEEXT!$EXEEXT$ac_delim
36013 OBJEXT!$OBJEXT$ac_delim
36014 CPP!$CPP$ac_delim
36015 GREP!$GREP$ac_delim
36016 EGREP!$EGREP$ac_delim
36017 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36018 BUILD_CC!$BUILD_CC$ac_delim
36019 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36020 BUILD_CXX!$BUILD_CXX$ac_delim
36021 CVSBUILD!$CVSBUILD$ac_delim
36022 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36023 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36024 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36025 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36026 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36027 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36028 JIT!$JIT$ac_delim
36029 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36030 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36031 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36032 ENABLE_PIC!$ENABLE_PIC$ac_delim
36033 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36034 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36035 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36036 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36037 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36038 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36039 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36040 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36041 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36042 CXX!$CXX$ac_delim
36043 CXXFLAGS!$CXXFLAGS$ac_delim
36044 ac_ct_CXX!$ac_ct_CXX$ac_delim
36045 NM!$NM$ac_delim
36046 _ACEOF
36048 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36049 break
36050 elif $ac_last_try; then
36051 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36052 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36053 { (exit 1); exit 1; }; }
36054 else
36055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36057 done
36059 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36060 if test -n "$ac_eof"; then
36061 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36062 ac_eof=`expr $ac_eof + 1`
36065 cat >>$CONFIG_STATUS <<_ACEOF
36066 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36068 _ACEOF
36069 sed '
36070 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36071 s/^/s,@/; s/!/@,|#_!!_#|/
36074 s/'"$ac_delim"'$/,g/; t
36075 s/$/\\/; p
36076 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36077 ' >>$CONFIG_STATUS <conf$$subs.sed
36078 rm -f conf$$subs.sed
36079 cat >>$CONFIG_STATUS <<_ACEOF
36080 CEOF$ac_eof
36081 _ACEOF
36084 ac_delim='%!_!# '
36085 for ac_last_try in false false false false false :; do
36086 cat >conf$$subs.sed <<_ACEOF
36087 ifGNUmake!$ifGNUmake$ac_delim
36088 LN_S!$LN_S$ac_delim
36089 CMP!$CMP$ac_delim
36090 CP!$CP$ac_delim
36091 DATE!$DATE$ac_delim
36092 FIND!$FIND$ac_delim
36093 MKDIR!$MKDIR$ac_delim
36094 MV!$MV$ac_delim
36095 RANLIB!$RANLIB$ac_delim
36096 RM!$RM$ac_delim
36097 SED!$SED$ac_delim
36098 TAR!$TAR$ac_delim
36099 BINPWD!$BINPWD$ac_delim
36100 GRAPHVIZ!$GRAPHVIZ$ac_delim
36101 DOT!$DOT$ac_delim
36102 FDP!$FDP$ac_delim
36103 NEATO!$NEATO$ac_delim
36104 TWOPI!$TWOPI$ac_delim
36105 CIRCO!$CIRCO$ac_delim
36106 GV!$GV$ac_delim
36107 DOTTY!$DOTTY$ac_delim
36108 PERL!$PERL$ac_delim
36109 HAVE_PERL!$HAVE_PERL$ac_delim
36110 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36111 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36112 INSTALL_DATA!$INSTALL_DATA$ac_delim
36113 BZIP2!$BZIP2$ac_delim
36114 DOXYGEN!$DOXYGEN$ac_delim
36115 GROFF!$GROFF$ac_delim
36116 GZIP!$GZIP$ac_delim
36117 POD2HTML!$POD2HTML$ac_delim
36118 POD2MAN!$POD2MAN$ac_delim
36119 RUNTEST!$RUNTEST$ac_delim
36120 TCLSH!$TCLSH$ac_delim
36121 ZIP!$ZIP$ac_delim
36122 OCAMLC!$OCAMLC$ac_delim
36123 OCAMLOPT!$OCAMLOPT$ac_delim
36124 OCAMLDEP!$OCAMLDEP$ac_delim
36125 OCAMLDOC!$OCAMLDOC$ac_delim
36126 GAS!$GAS$ac_delim
36127 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36128 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36129 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36130 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36131 LIBADD_DL!$LIBADD_DL$ac_delim
36132 ECHO!$ECHO$ac_delim
36133 AR!$AR$ac_delim
36134 STRIP!$STRIP$ac_delim
36135 CXXCPP!$CXXCPP$ac_delim
36136 F77!$F77$ac_delim
36137 FFLAGS!$FFLAGS$ac_delim
36138 ac_ct_F77!$ac_ct_F77$ac_delim
36139 LIBTOOL!$LIBTOOL$ac_delim
36140 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36141 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36142 LLVMGCC!$LLVMGCC$ac_delim
36143 LLVMGXX!$LLVMGXX$ac_delim
36144 USE_UDIS86!$USE_UDIS86$ac_delim
36145 USE_OPROFILE!$USE_OPROFILE$ac_delim
36146 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36147 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36148 ALLOCA!$ALLOCA$ac_delim
36149 MMAP_FILE!$MMAP_FILE$ac_delim
36150 LLVMCC1!$LLVMCC1$ac_delim
36151 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36152 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36153 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36154 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36155 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36156 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36157 SHLIBEXT!$SHLIBEXT$ac_delim
36158 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36159 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36160 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36161 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36162 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36163 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36164 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36165 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36166 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36167 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36168 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36169 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36170 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36171 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36172 RPATH!$RPATH$ac_delim
36173 RDYNAMIC!$RDYNAMIC$ac_delim
36174 LIBOBJS!$LIBOBJS$ac_delim
36175 LTLIBOBJS!$LTLIBOBJS$ac_delim
36176 _ACEOF
36178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
36179 break
36180 elif $ac_last_try; then
36181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36183 { (exit 1); exit 1; }; }
36184 else
36185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36187 done
36189 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36190 if test -n "$ac_eof"; then
36191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36192 ac_eof=`expr $ac_eof + 1`
36195 cat >>$CONFIG_STATUS <<_ACEOF
36196 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36198 _ACEOF
36199 sed '
36200 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36201 s/^/s,@/; s/!/@,|#_!!_#|/
36204 s/'"$ac_delim"'$/,g/; t
36205 s/$/\\/; p
36206 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36207 ' >>$CONFIG_STATUS <conf$$subs.sed
36208 rm -f conf$$subs.sed
36209 cat >>$CONFIG_STATUS <<_ACEOF
36210 :end
36211 s/|#_!!_#|//g
36212 CEOF$ac_eof
36213 _ACEOF
36216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36218 # trailing colons and then remove the whole line if VPATH becomes empty
36219 # (actually we leave an empty line to preserve line numbers).
36220 if test "x$srcdir" = x.; then
36221 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36222 s/:*\$(srcdir):*/:/
36223 s/:*\${srcdir}:*/:/
36224 s/:*@srcdir@:*/:/
36225 s/^\([^=]*=[ ]*\):*/\1/
36226 s/:*$//
36227 s/^[^=]*=[ ]*$//
36231 cat >>$CONFIG_STATUS <<\_ACEOF
36232 fi # test -n "$CONFIG_FILES"
36235 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36237 case $ac_tag in
36238 :[FHLC]) ac_mode=$ac_tag; continue;;
36239 esac
36240 case $ac_mode$ac_tag in
36241 :[FHL]*:*);;
36242 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36243 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36244 { (exit 1); exit 1; }; };;
36245 :[FH]-) ac_tag=-:-;;
36246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36247 esac
36248 ac_save_IFS=$IFS
36249 IFS=:
36250 set x $ac_tag
36251 IFS=$ac_save_IFS
36252 shift
36253 ac_file=$1
36254 shift
36256 case $ac_mode in
36257 :L) ac_source=$1;;
36258 :[FH])
36259 ac_file_inputs=
36260 for ac_f
36262 case $ac_f in
36263 -) ac_f="$tmp/stdin";;
36264 *) # Look for the file first in the build tree, then in the source tree
36265 # (if the path is not absolute). The absolute path cannot be DOS-style,
36266 # because $ac_f cannot contain `:'.
36267 test -f "$ac_f" ||
36268 case $ac_f in
36269 [\\/$]*) false;;
36270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36271 esac ||
36272 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36273 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36274 { (exit 1); exit 1; }; };;
36275 esac
36276 ac_file_inputs="$ac_file_inputs $ac_f"
36277 done
36279 # Let's still pretend it is `configure' which instantiates (i.e., don't
36280 # use $as_me), people would be surprised to read:
36281 # /* config.h. Generated by config.status. */
36282 configure_input="Generated from "`IFS=:
36283 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36284 if test x"$ac_file" != x-; then
36285 configure_input="$ac_file. $configure_input"
36286 { echo "$as_me:$LINENO: creating $ac_file" >&5
36287 echo "$as_me: creating $ac_file" >&6;}
36290 case $ac_tag in
36291 *:-:* | *:-) cat >"$tmp/stdin";;
36292 esac
36294 esac
36296 ac_dir=`$as_dirname -- "$ac_file" ||
36297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36298 X"$ac_file" : 'X\(//\)[^/]' \| \
36299 X"$ac_file" : 'X\(//\)$' \| \
36300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36301 echo X"$ac_file" |
36302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36303 s//\1/
36306 /^X\(\/\/\)[^/].*/{
36307 s//\1/
36310 /^X\(\/\/\)$/{
36311 s//\1/
36314 /^X\(\/\).*/{
36315 s//\1/
36318 s/.*/./; q'`
36319 { as_dir="$ac_dir"
36320 case $as_dir in #(
36321 -*) as_dir=./$as_dir;;
36322 esac
36323 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36324 as_dirs=
36325 while :; do
36326 case $as_dir in #(
36327 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36328 *) as_qdir=$as_dir;;
36329 esac
36330 as_dirs="'$as_qdir' $as_dirs"
36331 as_dir=`$as_dirname -- "$as_dir" ||
36332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36333 X"$as_dir" : 'X\(//\)[^/]' \| \
36334 X"$as_dir" : 'X\(//\)$' \| \
36335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36336 echo X"$as_dir" |
36337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36338 s//\1/
36341 /^X\(\/\/\)[^/].*/{
36342 s//\1/
36345 /^X\(\/\/\)$/{
36346 s//\1/
36349 /^X\(\/\).*/{
36350 s//\1/
36353 s/.*/./; q'`
36354 test -d "$as_dir" && break
36355 done
36356 test -z "$as_dirs" || eval "mkdir $as_dirs"
36357 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36358 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36359 { (exit 1); exit 1; }; }; }
36360 ac_builddir=.
36362 case "$ac_dir" in
36363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36366 # A ".." for each directory in $ac_dir_suffix.
36367 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36368 case $ac_top_builddir_sub in
36369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36371 esac ;;
36372 esac
36373 ac_abs_top_builddir=$ac_pwd
36374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36375 # for backward compatibility:
36376 ac_top_builddir=$ac_top_build_prefix
36378 case $srcdir in
36379 .) # We are building in place.
36380 ac_srcdir=.
36381 ac_top_srcdir=$ac_top_builddir_sub
36382 ac_abs_top_srcdir=$ac_pwd ;;
36383 [\\/]* | ?:[\\/]* ) # Absolute name.
36384 ac_srcdir=$srcdir$ac_dir_suffix;
36385 ac_top_srcdir=$srcdir
36386 ac_abs_top_srcdir=$srcdir ;;
36387 *) # Relative name.
36388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36389 ac_top_srcdir=$ac_top_build_prefix$srcdir
36390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36391 esac
36392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36395 case $ac_mode in
36398 # CONFIG_FILE
36401 case $INSTALL in
36402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36404 esac
36405 _ACEOF
36407 cat >>$CONFIG_STATUS <<\_ACEOF
36408 # If the template does not know about datarootdir, expand it.
36409 # FIXME: This hack should be removed a few years after 2.60.
36410 ac_datarootdir_hack=; ac_datarootdir_seen=
36412 case `sed -n '/datarootdir/ {
36416 /@datadir@/p
36417 /@docdir@/p
36418 /@infodir@/p
36419 /@localedir@/p
36420 /@mandir@/p
36421 ' $ac_file_inputs` in
36422 *datarootdir*) ac_datarootdir_seen=yes;;
36423 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36424 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36425 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36426 _ACEOF
36427 cat >>$CONFIG_STATUS <<_ACEOF
36428 ac_datarootdir_hack='
36429 s&@datadir@&$datadir&g
36430 s&@docdir@&$docdir&g
36431 s&@infodir@&$infodir&g
36432 s&@localedir@&$localedir&g
36433 s&@mandir@&$mandir&g
36434 s&\\\${datarootdir}&$datarootdir&g' ;;
36435 esac
36436 _ACEOF
36438 # Neutralize VPATH when `$srcdir' = `.'.
36439 # Shell code in configure.ac might set extrasub.
36440 # FIXME: do we really want to maintain this feature?
36441 cat >>$CONFIG_STATUS <<_ACEOF
36442 sed "$ac_vpsub
36443 $extrasub
36444 _ACEOF
36445 cat >>$CONFIG_STATUS <<\_ACEOF
36447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36448 s&@configure_input@&$configure_input&;t t
36449 s&@top_builddir@&$ac_top_builddir_sub&;t t
36450 s&@srcdir@&$ac_srcdir&;t t
36451 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36452 s&@top_srcdir@&$ac_top_srcdir&;t t
36453 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36454 s&@builddir@&$ac_builddir&;t t
36455 s&@abs_builddir@&$ac_abs_builddir&;t t
36456 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36457 s&@INSTALL@&$ac_INSTALL&;t t
36458 $ac_datarootdir_hack
36459 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36464 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36465 which seems to be undefined. Please make sure it is defined." >&5
36466 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36467 which seems to be undefined. Please make sure it is defined." >&2;}
36469 rm -f "$tmp/stdin"
36470 case $ac_file in
36471 -) cat "$tmp/out"; rm -f "$tmp/out";;
36472 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36473 esac
36477 # CONFIG_HEADER
36479 _ACEOF
36481 # Transform confdefs.h into a sed script `conftest.defines', that
36482 # substitutes the proper values into config.h.in to produce config.h.
36483 rm -f conftest.defines conftest.tail
36484 # First, append a space to every undef/define line, to ease matching.
36485 echo 's/$/ /' >conftest.defines
36486 # Then, protect against being on the right side of a sed subst, or in
36487 # an unquoted here document, in config.status. If some macros were
36488 # called several times there might be several #defines for the same
36489 # symbol, which is useless. But do not sort them, since the last
36490 # AC_DEFINE must be honored.
36491 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36492 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36493 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36494 # PARAMS is the parameter list in the macro definition--in most cases, it's
36495 # just an empty string.
36496 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36497 ac_dB='\\)[ (].*,\\1define\\2'
36498 ac_dC=' '
36499 ac_dD=' ,'
36501 uniq confdefs.h |
36502 sed -n '
36503 t rset
36504 :rset
36505 s/^[ ]*#[ ]*define[ ][ ]*//
36506 t ok
36509 s/[\\&,]/\\&/g
36510 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36511 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36512 ' >>conftest.defines
36514 # Remove the space that was appended to ease matching.
36515 # Then replace #undef with comments. This is necessary, for
36516 # example, in the case of _POSIX_SOURCE, which is predefined and required
36517 # on some systems where configure will not decide to define it.
36518 # (The regexp can be short, since the line contains either #define or #undef.)
36519 echo 's/ $//
36520 s,^[ #]*u.*,/* & */,' >>conftest.defines
36522 # Break up conftest.defines:
36523 ac_max_sed_lines=50
36525 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36526 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36527 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36528 # et cetera.
36529 ac_in='$ac_file_inputs'
36530 ac_out='"$tmp/out1"'
36531 ac_nxt='"$tmp/out2"'
36533 while :
36535 # Write a here document:
36536 cat >>$CONFIG_STATUS <<_ACEOF
36537 # First, check the format of the line:
36538 cat >"\$tmp/defines.sed" <<\\CEOF
36539 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36540 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36542 :def
36543 _ACEOF
36544 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36545 echo 'CEOF
36546 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36547 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36548 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36549 grep . conftest.tail >/dev/null || break
36550 rm -f conftest.defines
36551 mv conftest.tail conftest.defines
36552 done
36553 rm -f conftest.defines conftest.tail
36555 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36556 cat >>$CONFIG_STATUS <<\_ACEOF
36557 if test x"$ac_file" != x-; then
36558 echo "/* $configure_input */" >"$tmp/config.h"
36559 cat "$ac_result" >>"$tmp/config.h"
36560 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36561 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36562 echo "$as_me: $ac_file is unchanged" >&6;}
36563 else
36564 rm -f $ac_file
36565 mv "$tmp/config.h" $ac_file
36567 else
36568 echo "/* $configure_input */"
36569 cat "$ac_result"
36571 rm -f "$tmp/out12"
36574 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36575 echo "$as_me: executing $ac_file commands" >&6;}
36577 esac
36580 case $ac_file$ac_mode in
36581 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36582 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36583 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36584 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36585 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36586 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36587 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36588 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36589 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36590 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36591 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36593 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36595 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36597 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36599 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36601 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36603 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36605 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36608 esac
36609 done # for ac_tag
36612 { (exit 0); exit 0; }
36613 _ACEOF
36614 chmod +x $CONFIG_STATUS
36615 ac_clean_files=$ac_clean_files_save
36618 # configure is writing to config.log, and then calls config.status.
36619 # config.status does its own redirection, appending to config.log.
36620 # Unfortunately, on DOS this fails, as config.log is still kept open
36621 # by configure, so config.status won't be able to write to it; its
36622 # output is simply discarded. So we exec the FD to /dev/null,
36623 # effectively closing config.log, so it can be properly (re)opened and
36624 # appended to by config.status. When coming back to configure, we
36625 # need to make the FD available again.
36626 if test "$no_create" != yes; then
36627 ac_cs_success=:
36628 ac_config_status_args=
36629 test "$silent" = yes &&
36630 ac_config_status_args="$ac_config_status_args --quiet"
36631 exec 5>/dev/null
36632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36633 exec 5>>config.log
36634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36635 # would make configure fail if this is the last instruction.
36636 $ac_cs_success || { (exit 1); exit 1; }
36640 # CONFIG_SUBDIRS section.
36642 if test "$no_recursion" != yes; then
36644 # Remove --cache-file and --srcdir arguments so they do not pile up.
36645 ac_sub_configure_args=
36646 ac_prev=
36647 eval "set x $ac_configure_args"
36648 shift
36649 for ac_arg
36651 if test -n "$ac_prev"; then
36652 ac_prev=
36653 continue
36655 case $ac_arg in
36656 -cache-file | --cache-file | --cache-fil | --cache-fi \
36657 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36658 ac_prev=cache_file ;;
36659 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36660 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36661 | --c=*)
36663 --config-cache | -C)
36665 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36666 ac_prev=srcdir ;;
36667 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36670 ac_prev=prefix ;;
36671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36674 case $ac_arg in
36675 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36676 esac
36677 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36678 esac
36679 done
36681 # Always prepend --prefix to ensure using the same prefix
36682 # in subdir configurations.
36683 ac_arg="--prefix=$prefix"
36684 case $ac_arg in
36685 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36686 esac
36687 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36689 ac_popdir=`pwd`
36690 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36692 # Do not complain, so a configure script can configure whichever
36693 # parts of a large source tree are present.
36694 test -d "$srcdir/$ac_dir" || continue
36696 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36697 echo "$as_me:$LINENO: $ac_msg" >&5
36698 echo "$ac_msg" >&6
36699 { as_dir="$ac_dir"
36700 case $as_dir in #(
36701 -*) as_dir=./$as_dir;;
36702 esac
36703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36704 as_dirs=
36705 while :; do
36706 case $as_dir in #(
36707 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36708 *) as_qdir=$as_dir;;
36709 esac
36710 as_dirs="'$as_qdir' $as_dirs"
36711 as_dir=`$as_dirname -- "$as_dir" ||
36712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36713 X"$as_dir" : 'X\(//\)[^/]' \| \
36714 X"$as_dir" : 'X\(//\)$' \| \
36715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36716 echo X"$as_dir" |
36717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36718 s//\1/
36721 /^X\(\/\/\)[^/].*/{
36722 s//\1/
36725 /^X\(\/\/\)$/{
36726 s//\1/
36729 /^X\(\/\).*/{
36730 s//\1/
36733 s/.*/./; q'`
36734 test -d "$as_dir" && break
36735 done
36736 test -z "$as_dirs" || eval "mkdir $as_dirs"
36737 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36739 { (exit 1); exit 1; }; }; }
36740 ac_builddir=.
36742 case "$ac_dir" in
36743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36746 # A ".." for each directory in $ac_dir_suffix.
36747 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36748 case $ac_top_builddir_sub in
36749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36751 esac ;;
36752 esac
36753 ac_abs_top_builddir=$ac_pwd
36754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36755 # for backward compatibility:
36756 ac_top_builddir=$ac_top_build_prefix
36758 case $srcdir in
36759 .) # We are building in place.
36760 ac_srcdir=.
36761 ac_top_srcdir=$ac_top_builddir_sub
36762 ac_abs_top_srcdir=$ac_pwd ;;
36763 [\\/]* | ?:[\\/]* ) # Absolute name.
36764 ac_srcdir=$srcdir$ac_dir_suffix;
36765 ac_top_srcdir=$srcdir
36766 ac_abs_top_srcdir=$srcdir ;;
36767 *) # Relative name.
36768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36769 ac_top_srcdir=$ac_top_build_prefix$srcdir
36770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36771 esac
36772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36775 cd "$ac_dir"
36777 # Check for guested configure; otherwise get Cygnus style configure.
36778 if test -f "$ac_srcdir/configure.gnu"; then
36779 ac_sub_configure=$ac_srcdir/configure.gnu
36780 elif test -f "$ac_srcdir/configure"; then
36781 ac_sub_configure=$ac_srcdir/configure
36782 elif test -f "$ac_srcdir/configure.in"; then
36783 # This should be Cygnus configure.
36784 ac_sub_configure=$ac_aux_dir/configure
36785 else
36786 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36787 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36788 ac_sub_configure=
36791 # The recursion is here.
36792 if test -n "$ac_sub_configure"; then
36793 # Make the cache file name correct relative to the subdirectory.
36794 case $cache_file in
36795 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36796 *) # Relative name.
36797 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36798 esac
36800 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36801 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36802 # The eval makes quoting arguments work.
36803 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36804 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36805 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36806 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36807 { (exit 1); exit 1; }; }
36810 cd "$ac_popdir"
36811 done