Fixed some bugs.
[llvm/zpu.git] / configure
blob8a371997f5e4ba74dcbe95194aa1b076228fca3b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for llvm 2.9svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
16 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 emulate sh
25 NULLCMD=:
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
29 setopt NO_GLOB_SUBST
30 else
31 case `(set -o) 2>/dev/null` in #(
32 *posix*) :
33 set -o posix ;; #(
34 *) :
36 esac
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='print -r --'
52 as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 as_echo='printf %s\n'
55 as_echo_n='printf %s'
56 else
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59 as_echo_n='/usr/ucb/echo -n'
60 else
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 as_echo_n_body='eval
63 arg=$1;
64 case $arg in #(
65 *"$as_nl"*)
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 esac;
69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 export as_echo_n_body
72 as_echo_n='sh -c $as_echo_n_body as_echo'
74 export as_echo_body
75 as_echo='sh -c $as_echo_body as_echo'
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
80 PATH_SEPARATOR=:
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 PATH_SEPARATOR=';'
88 # IFS
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" "" $as_nl"
95 # Find who we are. Look in the path if we contain no directory separator.
96 case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148 else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
154 esac
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 else
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181 else
182 as_have_required=no
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 as_found=false
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in #(
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
206 done;;
207 esac
208 as_found=false
209 done
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213 fi; }
214 IFS=$as_save_IFS
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 if test x$as_have_required = xno; then :
229 $as_echo "$0: This script requires a shell more modern than all"
230 $as_echo "$0: the shells that I found on your system."
231 if test x${ZSH_VERSION+set} = xset ; then
232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 else
235 $as_echo "$0: Please tell bug-autoconf@gnu.org and
236 $0: llvmbugs@cs.uiuc.edu about your system, including any
237 $0: error possibly output before this message. Then install
238 $0: a modern shell, or manually run the script under such a
239 $0: shell if you do have one."
241 exit 1
245 SHELL=${CONFIG_SHELL-/bin/sh}
246 export SHELL
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE= GREP_OPTIONS=
249 unset CLICOLOR_FORCE GREP_OPTIONS
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
254 # as_fn_unset VAR
255 # ---------------
256 # Portably unset VAR.
257 as_fn_unset ()
259 { eval $1=; unset $1;}
261 as_unset=as_fn_unset
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
266 as_fn_set_status ()
268 return $1
269 } # as_fn_set_status
271 # as_fn_exit STATUS
272 # -----------------
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
274 as_fn_exit ()
276 set +e
277 as_fn_set_status $1
278 exit $1
279 } # as_fn_exit
281 # as_fn_mkdir_p
282 # -------------
283 # Create "$as_dir" as a directory, including parents if necessary.
284 as_fn_mkdir_p ()
287 case $as_dir in #(
288 -*) as_dir=./$as_dir;;
289 esac
290 test -d "$as_dir" || eval $as_mkdir_p || {
291 as_dirs=
292 while :; do
293 case $as_dir in #(
294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 *) as_qdir=$as_dir;;
296 esac
297 as_dirs="'$as_qdir' $as_dirs"
298 as_dir=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300 X"$as_dir" : 'X\(//\)[^/]' \| \
301 X"$as_dir" : 'X\(//\)$' \| \
302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
305 s//\1/
308 /^X\(\/\/\)[^/].*/{
309 s//\1/
312 /^X\(\/\/\)$/{
313 s//\1/
316 /^X\(\/\).*/{
317 s//\1/
320 s/.*/./; q'`
321 test -d "$as_dir" && break
322 done
323 test -z "$as_dirs" || eval "mkdir $as_dirs"
324 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
327 } # as_fn_mkdir_p
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
333 # implementations.
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335 eval 'as_fn_append ()
337 eval $1+=\$2
339 else
340 as_fn_append ()
342 eval $1=\$$1\$2
344 fi # as_fn_append
346 # as_fn_arith ARG...
347 # ------------------
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 eval 'as_fn_arith ()
354 as_val=$(( $* ))
356 else
357 as_fn_arith ()
359 as_val=`expr "$@" || test $? -eq 1`
361 fi # as_fn_arith
364 # as_fn_error ERROR [LINENO LOG_FD]
365 # ---------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with status $?, using 1 if that was 0.
369 as_fn_error ()
371 as_status=$?; test $as_status -eq 0 && as_status=1
372 if test "$3"; then
373 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 $as_echo "$as_me: error: $1" >&2
377 as_fn_exit $as_status
378 } # as_fn_error
380 if expr a : '\(a\)' >/dev/null 2>&1 &&
381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 as_expr=expr
383 else
384 as_expr=false
387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 as_basename=basename
389 else
390 as_basename=false
393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_dirname=dirname
395 else
396 as_dirname=false
399 as_me=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401 X"$0" : 'X\(//\)$' \| \
402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 $as_echo X/"$0" |
404 sed '/^.*\/\([^/][^/]*\)\/*$/{
405 s//\1/
408 /^X\/\(\/\/\)$/{
409 s//\1/
412 /^X\/\(\/\).*/{
413 s//\1/
416 s/.*/./; q'`
418 # Avoid depending upon Character Ranges.
419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits='0123456789'
423 as_cr_alnum=$as_cr_Letters$as_cr_digits
426 as_lineno_1=$LINENO as_lineno_1a=$LINENO
427 as_lineno_2=$LINENO as_lineno_2a=$LINENO
428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
431 sed -n '
433 /[$]LINENO/=
434 ' <$as_myself |
435 sed '
436 s/[$]LINENO.*/&-/
437 t lineno
439 :lineno
441 :loop
442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443 t loop
444 s/-\n.*//
445 ' >$as_me.lineno &&
446 chmod +x "$as_me.lineno" ||
447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449 # Don't try to exec as it changes $[0], causing all sort of problems
450 # (the dirname of $[0] is not the place where we might find the
451 # original and so on. Autoconf is especially sensitive to this).
452 . "./$as_me.lineno"
453 # Exit status is that of the last command.
454 exit
457 ECHO_C= ECHO_N= ECHO_T=
458 case `echo -n x` in #(((((
459 -n*)
460 case `echo 'xy\c'` in
461 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 xy) ECHO_C='\c';;
463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
464 ECHO_T=' ';;
465 esac;;
467 ECHO_N='-n';;
468 esac
470 rm -f conf$$ conf$$.exe conf$$.file
471 if test -d conf$$.dir; then
472 rm -f conf$$.dir/conf$$.file
473 else
474 rm -f conf$$.dir
475 mkdir conf$$.dir 2>/dev/null
477 if (echo >conf$$.file) 2>/dev/null; then
478 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s='ln -s'
480 # ... but there are two gotchas:
481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483 # In both cases, we have to default to `cp -p'.
484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 as_ln_s='cp -p'
486 elif ln conf$$.file conf$$ 2>/dev/null; then
487 as_ln_s=ln
488 else
489 as_ln_s='cp -p'
491 else
492 as_ln_s='cp -p'
494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495 rmdir conf$$.dir 2>/dev/null
497 if mkdir -p . 2>/dev/null; then
498 as_mkdir_p='mkdir -p "$as_dir"'
499 else
500 test -d ./-p && rmdir ./-p
501 as_mkdir_p=false
504 if test -x / >/dev/null 2>&1; then
505 as_test_x='test -x'
506 else
507 if ls -dL / >/dev/null 2>&1; then
508 as_ls_L_option=L
509 else
510 as_ls_L_option=
512 as_test_x='
513 eval sh -c '\''
514 if test -d "$1"; then
515 test -d "$1/.";
516 else
517 case $1 in #(
518 -*)set "./$1";;
519 esac;
520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521 ???[sx]*):;;*)false;;esac;fi
522 '\'' sh
525 as_executable_p=$as_test_x
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 test -n "$DJDIR" || exec 7<&0 </dev/null
535 exec 6>&1
537 # Name of the host.
538 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
539 # so uname gets run too.
540 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 # Initializations.
545 ac_default_prefix=/usr/local
546 ac_clean_files=
547 ac_config_libobj_dir=.
548 LIBOBJS=
549 cross_compiling=no
550 subdirs=
551 MFLAGS=
552 MAKEFLAGS=
554 # Identity of this package.
555 PACKAGE_NAME='llvm'
556 PACKAGE_TARNAME='-llvm-'
557 PACKAGE_VERSION='2.9svn'
558 PACKAGE_STRING='llvm 2.9svn'
559 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
560 PACKAGE_URL=''
562 ac_unique_file="lib/VMCore/Module.cpp"
563 enable_option_checking=no
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_header_list=
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 RDYNAMIC
604 RPATH
605 ENABLE_VISIBILITY_INLINES_HIDDEN
606 OCAML_LIBDIR
607 ALL_BINDINGS
608 BINDINGS_TO_BUILD
609 LLVM_CONFIGTIME
610 LLVM_MANDIR
611 LLVM_INFODIR
612 LLVM_INCLUDEDIR
613 LLVM_ETCDIR
614 LLVM_DOCSDIR
615 LLVM_DATADIR
616 LLVM_LIBDIR
617 LLVM_BINDIR
618 LLVM_PREFIX
619 SHLIBPATH_VAR
620 SHLIBEXT
621 LLVMGCC_LANGS
622 LLVMGCCDIR
623 LLVMCC1PLUS
624 LLVMCC1
625 MMAP_FILE
626 HUGE_VAL_SANITY
627 HAVE_PTHREAD
628 USE_OPROFILE
629 USE_UDIS86
630 NO_MISSING_FIELD_INITIALIZERS
631 NO_VARIADIC_MACROS
632 LLVMCC_OPTION
633 LLVMGXX
634 LLVMGCC
635 LLVMGXXCOMMAND
636 LLVMGCCCOMMAND
637 LIBADD_DL
638 CONVENIENCE_LTDL_FALSE
639 CONVENIENCE_LTDL_TRUE
640 INSTALL_LTDL_FALSE
641 INSTALL_LTDL_TRUE
642 HAVE_LINK_VERSION_SCRIPT
644 OCAMLDOC
645 OCAMLDEP
646 OCAMLOPT
647 OCAMLC
649 TCLSH
650 RUNTEST
651 PDFROFF
652 POD2MAN
653 POD2HTML
654 GZIP
655 GROFF
656 DOXYGEN
658 BZIP2
659 INSTALL_DATA
660 INSTALL_SCRIPT
661 INSTALL_PROGRAM
662 HAVE_PERL
663 PERL
664 XDOT_PY
665 DOTTY
667 CIRCO
668 TWOPI
669 NEATO
672 GRAPHVIZ
673 BINPWD
678 RANLIB
680 MKDIR
681 FIND
682 DATE
685 LN_S
686 ifGNUmake
688 ac_ct_CXX
689 CXXFLAGS
691 BINUTILS_INCDIR
692 EXTRA_OPTIONS
693 OPTIMIZE_OPTION
694 ENABLE_BUILT_CLANG
695 CLANGXXPATH
696 CLANGPATH
697 ENABLE_CBE_PRINTF_A
698 LLVM_ENUM_DISASSEMBLERS
699 LLVM_ENUM_ASM_PARSERS
700 LLVM_ENUM_ASM_PRINTERS
701 LLVM_ENUM_TARGETS
702 TARGETS_TO_BUILD
703 ENABLE_TIMESTAMPS
704 ENABLE_SHARED
705 ENABLE_PIC
706 ENABLE_THREADS
707 ENABLE_DOXYGEN
708 TARGET_HAS_JIT
710 DEBUG_SYMBOLS
711 DEBUG_RUNTIME
712 EXPENSIVE_CHECKS
713 ENABLE_EXPENSIVE_CHECKS
714 DISABLE_ASSERTIONS
715 ENABLE_PROFILING
716 ENABLE_OPTIMIZED
717 CVSBUILD
718 BUILD_CXX
719 BUILD_EXEEXT
720 BUILD_CC
721 LLVM_CROSS_COMPILING
722 EGREP
723 GREP
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
732 ENDIAN
733 ARCH
734 LLVM_ON_WIN32
735 LLVM_ON_UNIX
736 NOLINKALL
737 LINKALL
738 TARGET_OS
739 HOST_OS
741 target_os
742 target_vendor
743 target_cpu
744 target
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 LLVM_HAS_POLLY
754 ENABLE_POLLY
755 subdirs
756 LLVM_COPYRIGHT
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 enable_polly
799 enable_optimized
800 enable_profiling
801 enable_assertions
802 enable_expensive_checks
803 enable_debug_runtime
804 enable_debug_symbols
805 enable_jit
806 enable_doxygen
807 enable_threads
808 enable_pic
809 enable_shared
810 enable_timestamps
811 enable_targets
812 enable_cbe_printf_a
813 with_llvmgccdir
814 with_llvmgcc
815 with_llvmgxx
816 with_clang
817 with_built_clang
818 with_optimize_option
819 with_extra_options
820 enable_bindings
821 with_ocaml_libdir
822 with_clang_resource_dir
823 with_c_include_dirs
824 with_cxx_include_root
825 with_cxx_include_arch
826 with_cxx_include_32bit_dir
827 with_cxx_include_64bit_dir
828 with_binutils_include
829 enable_libffi
830 with_tclinclude
831 enable_ltdl_install
832 with_llvmcc
833 with_udis86
834 with_oprofile
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
846 CXXFLAGS
847 CCC'
848 ac_subdirs_all='projects/llvm-gcc
849 projects/test-suite
850 projects/llvm-test
851 projects/poolalloc
852 projects/llvm-poolalloc
853 projects/sample
854 projects/privbracket
855 projects/llvm-stacker
856 projects/llvm-reopt
857 projects/llvm-java
858 projects/llvm-tv
859 projects/safecode
860 projects/llvm-kernel
861 tools/polly'
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
911 ac_prev=
912 ac_dashdash=
913 for ac_option
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
918 ac_prev=
919 continue
922 case $ac_option in
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *) ac_optarg=yes ;;
925 esac
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
931 ac_dashdash=yes ;;
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
950 --config-cache | -C)
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1195 -with-* | --with-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=\$ac_optarg ;;
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=no ;;
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) as_fn_error "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information."
1249 *=*)
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1255 esac
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 esac
1268 done
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error "missing argument to $ac_option"
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1277 no) ;;
1278 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 esac
1283 # Check all directory arguments for consistency.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1291 case $ac_val in
1292 */ )
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1295 esac
1296 # Be sure to have absolute directory names.
1297 case $ac_val in
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300 esac
1301 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1302 done
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325 test "$silent" = yes && exec 6>/dev/null
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error "pwd does not report name of working directory"
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1354 /^X\(\/\/\)$/{
1355 s//\1/
1358 /^X\(\/\).*/{
1359 s//\1/
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1367 else
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1457 cat <<\_ACEOF
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463 _ACEOF
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1469 esac
1470 cat <<\_ACEOF
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-polly Use polly if available (default is YES)
1477 --enable-optimized Compile with optimizations enabled (default is NO)
1478 --enable-profiling Compile with profiling enabled (default is NO)
1479 --enable-assertions Compile with assertion checks enabled (default is
1480 YES)
1481 --enable-expensive-checks
1482 Compile with expensive debug checks enabled (default
1483 is NO)
1484 --enable-debug-runtime Build runtime libs with debug symbols (default is
1486 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1487 optimization is on and YES if it's off)
1488 --enable-jit Enable Just In Time Compiling (default is YES)
1489 --enable-doxygen Build doxygen documentation (default is NO)
1490 --enable-threads Use threads if available (default is YES)
1491 --enable-pic Build LLVM with Position Independent Code (default
1492 is YES)
1493 --enable-shared Build a shared library and link tools against it
1494 (default is NO)
1495 --enable-timestamps Enable embedding timestamp information in build
1496 (default is YES)
1497 --enable-targets Build specific host targets: all or
1498 target1,target2,... Valid targets are: host, x86,
1499 x86_64, sparc, powerpc, alpha, arm, mips, zpu, spu,
1500 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1501 (default=all)
1502 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1503 %a (default is YES)
1504 --enable-bindings Build specific language bindings:
1505 all,auto,none,{binding-name} (default=auto)
1506 --enable-libffi Check for the presence of libffi (default is NO)
1507 --enable-ltdl-install install libltdl
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1513 searches PATH)
1514 --with-llvmgcc Specify location of llvm-gcc driver (default
1515 searches PATH)
1516 --with-llvmgxx Specify location of llvm-g++ driver (default
1517 searches PATH)
1518 --with-clang Specify location of clang compiler (default is
1519 --with-built-clang)
1520 --with-built-clang Use the compiled Clang as the LLVM compiler
1521 (default=check)
1522 --with-optimize-option Select the compiler options to use for optimized
1523 builds
1524 --with-extra-options Specify additional options to compile LLVM with
1525 --with-ocaml-libdir Specify install location for ocaml bindings (default
1526 is stdlib)
1527 --with-clang-resource-dir
1528 Relative directory from the Clang binary for
1529 resource files
1530 --with-c-include-dirs Colon separated list of directories clang will
1531 search for headers
1532 --with-cxx-include-root Directory with the libstdc++ headers.
1533 --with-cxx-include-arch Architecture of the libstdc++ headers.
1534 --with-cxx-include-32bit-dir
1535 32 bit multilib dir.
1536 --with-cxx-include-64bit-dir
1537 64 bit multilib directory.
1538 --with-binutils-include Specify path to binutils/include/ containing
1539 plugin-api.h file for gold plugin.
1540 --with-tclinclude directory where tcl headers are
1541 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1542 clang, or none; default=check)
1543 --with-udis86=<path> Use udis86 external x86 disassembler library
1544 --with-oprofile=<prefix>
1545 Tell OProfile >= 0.9.4 how to symbolize JIT output
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CPP C preprocessor
1556 CXX C++ compiler command
1557 CXXFLAGS C++ compiler flags
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <llvmbugs@cs.uiuc.edu>.
1563 _ACEOF
1564 ac_status=$?
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 continue
1573 ac_builddir=.
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1591 case $srcdir in
1592 .) # We are building in place.
1593 ac_srcdir=.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1600 *) # Relative name.
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1615 else
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 fi || ac_status=$?
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1619 done
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624 cat <<\_ACEOF
1625 llvm configure 2.9svn
1626 generated by GNU Autoconf 2.65
1628 Copyright (C) 2009 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1632 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1633 _ACEOF
1634 exit
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext
1648 if { { ac_try="$ac_compile"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1672 ac_retval=1
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_compile
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 # that executables *can* be run.
1683 ac_fn_c_try_run ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: program exited with status $ac_status" >&5
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=$ac_status
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_c_try_run
1721 # ac_fn_c_try_cpp LINENO
1722 # ----------------------
1723 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_cpp ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_cpp conftest.$ac_ext"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } >/dev/null && {
1743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1751 ac_retval=1
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_c_try_cpp
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768 $as_echo_n "(cached) " >&6
1769 else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777 else
1778 eval "$3=no"
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 } # ac_fn_c_check_header_compile
1789 # ac_fn_cxx_try_compile LINENO
1790 # ----------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_cxx_try_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_cxx_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 as_fn_set_status $ac_retval
1825 } # ac_fn_cxx_try_compile
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_link ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest$ac_exeext
1855 }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1861 ac_retval=1
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_link
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1877 # accordingly.
1878 ac_fn_c_check_header_mongrel ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 else
1891 # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1897 #include <$2>
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_header_compiler=yes
1901 else
1902 ac_header_compiler=no
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_cpp "$LINENO"; then :
1916 ac_header_preproc=yes
1917 else
1918 ac_header_preproc=no
1920 rm -f conftest.err conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1924 # So? What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1926 yes:no: )
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932 no:yes:* )
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ( cat <<\_ASBOX
1944 ## ----------------------------------- ##
1945 ## Report this to llvmbugs@cs.uiuc.edu ##
1946 ## ----------------------------------- ##
1947 _ASBOX
1948 ) | sed "s/^/$as_me: WARNING: /" >&2
1950 esac
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=\$ac_header_compiler"
1958 eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 } # ac_fn_c_check_header_mongrel
1966 # ac_fn_c_check_func LINENO FUNC VAR
1967 # ----------------------------------
1968 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1969 ac_fn_c_check_func ()
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1981 #define $2 innocuous_$2
1983 /* System header to define __stub macros and hopefully few prototypes,
1984 which can conflict with char $2 (); below.
1985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1986 <limits.h> exists even on freestanding compilers. */
1988 #ifdef __STDC__
1989 # include <limits.h>
1990 #else
1991 # include <assert.h>
1992 #endif
1994 #undef $2
1996 /* Override any GCC internal prototype to avoid an error.
1997 Use char because int might match the return type of a GCC
1998 builtin and then its argument prototype would still apply. */
1999 #ifdef __cplusplus
2000 extern "C"
2001 #endif
2002 char $2 ();
2003 /* The GNU C library defines this for functions which it implements
2004 to always fail with ENOSYS. Some functions are actually named
2005 something starting with __ and the normal name is an alias. */
2006 #if defined __stub_$2 || defined __stub___$2
2007 choke me
2008 #endif
2011 main ()
2013 return $2 ();
2015 return 0;
2017 _ACEOF
2018 if ac_fn_c_try_link "$LINENO"; then :
2019 eval "$3=yes"
2020 else
2021 eval "$3=no"
2023 rm -f core conftest.err conftest.$ac_objext \
2024 conftest$ac_exeext conftest.$ac_ext
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 } # ac_fn_c_check_func
2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2034 # -------------------------------------------
2035 # Tests whether TYPE exists after having included INCLUDES, setting cache
2036 # variable VAR accordingly.
2037 ac_fn_c_check_type ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 eval "$3=no"
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2050 main ()
2052 if (sizeof ($2))
2053 return 0;
2055 return 0;
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 if (sizeof (($2)))
2066 return 0;
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2073 else
2074 eval "$3=yes"
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085 } # ac_fn_c_check_type
2087 # ac_fn_cxx_try_run LINENO
2088 # ------------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2090 # that executables *can* be run.
2091 ac_fn_cxx_try_run ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 if { { ac_try="$ac_link"
2095 case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098 esac
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>&5
2102 ac_status=$?
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2105 { { case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108 esac
2109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_try") 2>&5
2112 ac_status=$?
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; }; }; then :
2115 ac_retval=0
2116 else
2117 $as_echo "$as_me: program exited with status $ac_status" >&5
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2121 ac_retval=$ac_status
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125 as_fn_set_status $ac_retval
2127 } # ac_fn_cxx_try_run
2128 cat >config.log <<_ACEOF
2129 This file contains any messages produced by compilers while
2130 running configure, to aid debugging if configure makes a mistake.
2132 It was created by llvm $as_me 2.9svn, which was
2133 generated by GNU Autoconf 2.65. Invocation command line was
2135 $ $0 $@
2137 _ACEOF
2138 exec 5>>config.log
2140 cat <<_ASUNAME
2141 ## --------- ##
2142 ## Platform. ##
2143 ## --------- ##
2145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2154 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2155 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2158 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2159 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2160 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2162 _ASUNAME
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 $as_echo "PATH: $as_dir"
2170 done
2171 IFS=$as_save_IFS
2173 } >&5
2175 cat >&5 <<_ACEOF
2178 ## ----------- ##
2179 ## Core tests. ##
2180 ## ----------- ##
2182 _ACEOF
2185 # Keep a trace of the command line.
2186 # Strip out --no-create and --no-recursion so they do not pile up.
2187 # Strip out --silent because we don't want to record it for future runs.
2188 # Also quote any args containing shell meta-characters.
2189 # Make two passes to allow for proper duplicate-argument suppression.
2190 ac_configure_args=
2191 ac_configure_args0=
2192 ac_configure_args1=
2193 ac_must_keep_next=false
2194 for ac_pass in 1 2
2196 for ac_arg
2198 case $ac_arg in
2199 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2201 | -silent | --silent | --silen | --sile | --sil)
2202 continue ;;
2203 *\'*)
2204 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 esac
2206 case $ac_pass in
2207 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2209 as_fn_append ac_configure_args1 " '$ac_arg'"
2210 if test $ac_must_keep_next = true; then
2211 ac_must_keep_next=false # Got value, back to normal.
2212 else
2213 case $ac_arg in
2214 *=* | --config-cache | -C | -disable-* | --disable-* \
2215 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2216 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2217 | -with-* | --with-* | -without-* | --without-* | --x)
2218 case "$ac_configure_args0 " in
2219 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2220 esac
2222 -* ) ac_must_keep_next=true ;;
2223 esac
2225 as_fn_append ac_configure_args " '$ac_arg'"
2227 esac
2228 done
2229 done
2230 { ac_configure_args0=; unset ac_configure_args0;}
2231 { ac_configure_args1=; unset ac_configure_args1;}
2233 # When interrupted or exit'd, cleanup temporary files, and complete
2234 # config.log. We remove comments because anyway the quotes in there
2235 # would cause problems or look ugly.
2236 # WARNING: Use '\'' to represent an apostrophe within the trap.
2237 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2238 trap 'exit_status=$?
2239 # Save into config.log some information that might help in debugging.
2241 echo
2243 cat <<\_ASBOX
2244 ## ---------------- ##
2245 ## Cache variables. ##
2246 ## ---------------- ##
2247 _ASBOX
2248 echo
2249 # The following way of writing the cache mishandles newlines in values,
2251 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2252 eval ac_val=\$$ac_var
2253 case $ac_val in #(
2254 *${as_nl}*)
2255 case $ac_var in #(
2256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2258 esac
2259 case $ac_var in #(
2260 _ | IFS | as_nl) ;; #(
2261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2262 *) { eval $ac_var=; unset $ac_var;} ;;
2263 esac ;;
2264 esac
2265 done
2266 (set) 2>&1 |
2267 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2268 *${as_nl}ac_space=\ *)
2269 sed -n \
2270 "s/'\''/'\''\\\\'\'''\''/g;
2271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2272 ;; #(
2274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2276 esac |
2277 sort
2279 echo
2281 cat <<\_ASBOX
2282 ## ----------------- ##
2283 ## Output variables. ##
2284 ## ----------------- ##
2285 _ASBOX
2286 echo
2287 for ac_var in $ac_subst_vars
2289 eval ac_val=\$$ac_var
2290 case $ac_val in
2291 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292 esac
2293 $as_echo "$ac_var='\''$ac_val'\''"
2294 done | sort
2295 echo
2297 if test -n "$ac_subst_files"; then
2298 cat <<\_ASBOX
2299 ## ------------------- ##
2300 ## File substitutions. ##
2301 ## ------------------- ##
2302 _ASBOX
2303 echo
2304 for ac_var in $ac_subst_files
2306 eval ac_val=\$$ac_var
2307 case $ac_val in
2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309 esac
2310 $as_echo "$ac_var='\''$ac_val'\''"
2311 done | sort
2312 echo
2315 if test -s confdefs.h; then
2316 cat <<\_ASBOX
2317 ## ----------- ##
2318 ## confdefs.h. ##
2319 ## ----------- ##
2320 _ASBOX
2321 echo
2322 cat confdefs.h
2323 echo
2325 test "$ac_signal" != 0 &&
2326 $as_echo "$as_me: caught signal $ac_signal"
2327 $as_echo "$as_me: exit $exit_status"
2328 } >&5
2329 rm -f core *.core core.conftest.* &&
2330 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2331 exit $exit_status
2333 for ac_signal in 1 2 13 15; do
2334 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2335 done
2336 ac_signal=0
2338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2339 rm -f -r conftest* confdefs.h
2341 $as_echo "/* confdefs.h */" > confdefs.h
2343 # Predefined preprocessor variables.
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_NAME "$PACKAGE_NAME"
2347 _ACEOF
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2351 _ACEOF
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2355 _ACEOF
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_STRING "$PACKAGE_STRING"
2359 _ACEOF
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2363 _ACEOF
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_URL "$PACKAGE_URL"
2367 _ACEOF
2370 # Let the site file select an alternate cache file if it wants to.
2371 # Prefer an explicitly selected file to automatically selected ones.
2372 ac_site_file1=NONE
2373 ac_site_file2=NONE
2374 if test -n "$CONFIG_SITE"; then
2375 ac_site_file1=$CONFIG_SITE
2376 elif test "x$prefix" != xNONE; then
2377 ac_site_file1=$prefix/share/config.site
2378 ac_site_file2=$prefix/etc/config.site
2379 else
2380 ac_site_file1=$ac_default_prefix/share/config.site
2381 ac_site_file2=$ac_default_prefix/etc/config.site
2383 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2385 test "x$ac_site_file" = xNONE && continue
2386 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2388 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2389 sed 's/^/| /' "$ac_site_file" >&5
2390 . "$ac_site_file"
2392 done
2394 if test -r "$cache_file"; then
2395 # Some versions of bash will fail to source /dev/null (special files
2396 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2397 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2399 $as_echo "$as_me: loading cache $cache_file" >&6;}
2400 case $cache_file in
2401 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2402 *) . "./$cache_file";;
2403 esac
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2407 $as_echo "$as_me: creating cache $cache_file" >&6;}
2408 >$cache_file
2411 as_fn_append ac_header_list " stdlib.h"
2412 as_fn_append ac_header_list " unistd.h"
2413 as_fn_append ac_header_list " sys/param.h"
2414 # Check that the precious variables saved in the cache have kept the same
2415 # value.
2416 ac_cache_corrupted=false
2417 for ac_var in $ac_precious_vars; do
2418 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419 eval ac_new_set=\$ac_env_${ac_var}_set
2420 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421 eval ac_new_val=\$ac_env_${ac_var}_value
2422 case $ac_old_set,$ac_new_set in
2423 set,)
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426 ac_cache_corrupted=: ;;
2427 ,set)
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2431 ,);;
2433 if test "x$ac_old_val" != "x$ac_new_val"; then
2434 # differences in whitespace do not lead to failure.
2435 ac_old_val_w=`echo x $ac_old_val`
2436 ac_new_val_w=`echo x $ac_new_val`
2437 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440 ac_cache_corrupted=:
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444 eval $ac_var=\$ac_old_val
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2447 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2449 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2450 fi;;
2451 esac
2452 # Pass precious variables to config.status.
2453 if test "$ac_new_set" = set; then
2454 case $ac_new_val in
2455 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456 *) ac_arg=$ac_var=$ac_new_val ;;
2457 esac
2458 case " $ac_configure_args " in
2459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2460 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2461 esac
2463 done
2464 if $ac_cache_corrupted; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2471 ## -------------------- ##
2472 ## Main body of script. ##
2473 ## -------------------- ##
2475 ac_ext=c
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
2491 ac_aux_dir=
2492 for ac_dir in autoconf "$srcdir"/autoconf; do
2493 for ac_t in install-sh install.sh shtool; do
2494 if test -f "$ac_dir/$ac_t"; then
2495 ac_aux_dir=$ac_dir
2496 ac_install_sh="$ac_aux_dir/$ac_t -c"
2497 break 2
2499 done
2500 done
2501 if test -z "$ac_aux_dir"; then
2502 as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2505 # These three variables are undocumented and unsupported,
2506 # and are intended to be withdrawn in a future Autoconf release.
2507 # They can cause serious problems if a builder's source tree is in a directory
2508 # whose full name contains unusual characters.
2509 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2510 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2511 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2515 if test ${srcdir} != "." ; then
2516 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2517 as_fn_error "Already configured in ${srcdir}" "$LINENO" 5
2523 if test -d ${srcdir}/projects/llvm-gcc ; then
2526 subdirs="$subdirs projects/llvm-gcc"
2530 if test -d ${srcdir}/projects/test-suite ; then
2531 subdirs="$subdirs projects/test-suite"
2535 if test -d ${srcdir}/projects/llvm-test ; then
2536 subdirs="$subdirs projects/llvm-test"
2540 if test -d ${srcdir}/projects/poolalloc ; then
2541 subdirs="$subdirs projects/poolalloc"
2545 if test -d ${srcdir}/projects/llvm-poolalloc ; then
2546 subdirs="$subdirs projects/llvm-poolalloc"
2550 for i in `ls ${srcdir}/projects`
2552 if test -d ${srcdir}/projects/${i} ; then
2553 case ${i} in
2554 sample) subdirs="$subdirs projects/sample"
2556 privbracket) subdirs="$subdirs projects/privbracket"
2558 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2560 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2562 llvm-java) subdirs="$subdirs projects/llvm-java"
2564 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2566 safecode) subdirs="$subdirs projects/safecode"
2568 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2570 llvm-gcc) ;;
2571 test-suite) ;;
2572 llvm-test) ;;
2573 poolalloc) ;;
2574 llvm-poolalloc) ;;
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2577 $as_echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2579 esac
2581 done
2583 # Check whether --enable-polly was given.
2584 if test "${enable_polly+set}" = set; then :
2585 enableval=$enable_polly;
2586 else
2587 enableval=default
2590 case "$enableval" in
2591 yes) ENABLE_POLLY=1
2593 no) ENABLE_POLLY=0
2595 default) ENABLE_POLLY=1
2597 *) as_fn_error "Invalid setting for --enable-polly. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
2598 esac
2601 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2602 LLVM_HAS_POLLY=1
2604 subdirs="$subdirs tools/polly"
2609 # Make sure we can run config.sub.
2610 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2611 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2614 $as_echo_n "checking build system type... " >&6; }
2615 if test "${ac_cv_build+set}" = set; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 ac_build_alias=$build_alias
2619 test "x$ac_build_alias" = x &&
2620 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2621 test "x$ac_build_alias" = x &&
2622 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2623 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2624 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2628 $as_echo "$ac_cv_build" >&6; }
2629 case $ac_cv_build in
2630 *-*-*) ;;
2631 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2632 esac
2633 build=$ac_cv_build
2634 ac_save_IFS=$IFS; IFS='-'
2635 set x $ac_cv_build
2636 shift
2637 build_cpu=$1
2638 build_vendor=$2
2639 shift; shift
2640 # Remember, the first character of IFS is used to create $*,
2641 # except with old shells:
2642 build_os=$*
2643 IFS=$ac_save_IFS
2644 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2648 $as_echo_n "checking host system type... " >&6; }
2649 if test "${ac_cv_host+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test "x$host_alias" = x; then
2653 ac_cv_host=$ac_cv_build
2654 else
2655 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2656 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2661 $as_echo "$ac_cv_host" >&6; }
2662 case $ac_cv_host in
2663 *-*-*) ;;
2664 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2665 esac
2666 host=$ac_cv_host
2667 ac_save_IFS=$IFS; IFS='-'
2668 set x $ac_cv_host
2669 shift
2670 host_cpu=$1
2671 host_vendor=$2
2672 shift; shift
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2675 host_os=$*
2676 IFS=$ac_save_IFS
2677 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2681 $as_echo_n "checking target system type... " >&6; }
2682 if test "${ac_cv_target+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test "x$target_alias" = x; then
2686 ac_cv_target=$ac_cv_host
2687 else
2688 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2689 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2694 $as_echo "$ac_cv_target" >&6; }
2695 case $ac_cv_target in
2696 *-*-*) ;;
2697 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2698 esac
2699 target=$ac_cv_target
2700 ac_save_IFS=$IFS; IFS='-'
2701 set x $ac_cv_target
2702 shift
2703 target_cpu=$1
2704 target_vendor=$2
2705 shift; shift
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2708 target_os=$*
2709 IFS=$ac_save_IFS
2710 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2713 # The aliases save the names the user supplied, while $host etc.
2714 # will get canonicalized.
2715 test -n "$target_alias" &&
2716 test "$program_prefix$program_suffix$program_transform_name" = \
2717 NONENONEs,x,x, &&
2718 program_prefix=${target_alias}-
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5
2721 $as_echo_n "checking type of operating system we're going to host on... " >&6; }
2722 if test "${llvm_cv_os_type+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 case $host in
2726 *-*-aix*)
2727 llvm_cv_link_all_option="-Wl,--whole-archive"
2728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2729 llvm_cv_os_type="AIX"
2730 llvm_cv_platform_type="Unix" ;;
2731 *-*-irix*)
2732 llvm_cv_link_all_option="-Wl,--whole-archive"
2733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2734 llvm_cv_os_type="IRIX"
2735 llvm_cv_platform_type="Unix" ;;
2736 *-*-cygwin*)
2737 llvm_cv_link_all_option="-Wl,--whole-archive"
2738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2739 llvm_cv_os_type="Cygwin"
2740 llvm_cv_platform_type="Unix" ;;
2741 *-*-darwin*)
2742 llvm_cv_link_all_option="-Wl,-all_load"
2743 llvm_cv_no_link_all_option="-Wl,-noall_load"
2744 llvm_cv_os_type="Darwin"
2745 llvm_cv_platform_type="Unix" ;;
2746 *-*-minix*)
2747 llvm_cv_link_all_option="-Wl,-all_load"
2748 llvm_cv_no_link_all_option="-Wl,-noall_load"
2749 llvm_cv_os_type="Minix"
2750 llvm_cv_platform_type="Unix" ;;
2751 *-*-freebsd*)
2752 llvm_cv_link_all_option="-Wl,--whole-archive"
2753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2754 llvm_cv_os_type="FreeBSD"
2755 llvm_cv_platform_type="Unix" ;;
2756 *-*-openbsd*)
2757 llvm_cv_link_all_option="-Wl,--whole-archive"
2758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2759 llvm_cv_os_type="OpenBSD"
2760 llvm_cv_platform_type="Unix" ;;
2761 *-*-netbsd*)
2762 llvm_cv_link_all_option="-Wl,--whole-archive"
2763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2764 llvm_cv_os_type="NetBSD"
2765 llvm_cv_platform_type="Unix" ;;
2766 *-*-dragonfly*)
2767 llvm_cv_link_all_option="-Wl,--whole-archive"
2768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2769 llvm_cv_os_type="DragonFly"
2770 llvm_cv_platform_type="Unix" ;;
2771 *-*-hpux*)
2772 llvm_cv_link_all_option="-Wl,--whole-archive"
2773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2774 llvm_cv_os_type="HP-UX"
2775 llvm_cv_platform_type="Unix" ;;
2776 *-*-interix*)
2777 llvm_cv_link_all_option="-Wl,--whole-archive"
2778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2779 llvm_cv_os_type="Interix"
2780 llvm_cv_platform_type="Unix" ;;
2781 *-*-linux*)
2782 llvm_cv_link_all_option="-Wl,--whole-archive"
2783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2784 llvm_cv_os_type="Linux"
2785 llvm_cv_platform_type="Unix" ;;
2786 *-*-solaris*)
2787 llvm_cv_link_all_option="-Wl,-z,allextract"
2788 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2789 llvm_cv_os_type="SunOS"
2790 llvm_cv_platform_type="Unix" ;;
2791 *-*-auroraux*)
2792 llvm_cv_link_all_option="-Wl,-z,allextract"
2793 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2794 llvm_cv_os_type="AuroraUX"
2795 llvm_cv_platform_type="Unix" ;;
2796 *-*-win32*)
2797 llvm_cv_link_all_option="-Wl,--whole-archive"
2798 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2799 llvm_cv_os_type="Win32"
2800 llvm_cv_platform_type="Win32" ;;
2801 *-*-mingw*)
2802 llvm_cv_link_all_option="-Wl,--whole-archive"
2803 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2804 llvm_cv_os_type="MingW"
2805 llvm_cv_platform_type="Win32" ;;
2806 *-*-haiku*)
2807 llvm_cv_link_all_option="-Wl,--whole-archive"
2808 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2809 llvm_cv_os_type="Haiku"
2810 llvm_cv_platform_type="Unix" ;;
2811 *-unknown-eabi*)
2812 llvm_cv_link_all_option="-Wl,--whole-archive"
2813 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2814 llvm_cv_os_type="Freestanding"
2815 llvm_cv_platform_type="Unix" ;;
2816 *-unknown-elf*)
2817 llvm_cv_link_all_option="-Wl,--whole-archive"
2818 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2819 llvm_cv_os_type="Freestanding"
2820 llvm_cv_platform_type="Unix" ;;
2822 llvm_cv_link_all_option=""
2823 llvm_cv_no_link_all_option=""
2824 llvm_cv_os_type="Unknown"
2825 llvm_cv_platform_type="Unknown" ;;
2826 esac
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5
2829 $as_echo "$llvm_cv_os_type" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5
2832 $as_echo_n "checking type of operating system we're going to target... " >&6; }
2833 if test "${llvm_cv_target_os_type+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 case $target in
2837 *-*-aix*)
2838 llvm_cv_target_os_type="AIX" ;;
2839 *-*-irix*)
2840 llvm_cv_target_os_type="IRIX" ;;
2841 *-*-cygwin*)
2842 llvm_cv_target_os_type="Cygwin" ;;
2843 *-*-darwin*)
2844 llvm_cv_target_os_type="Darwin" ;;
2845 *-*-minix*)
2846 llvm_cv_target_os_type="Minix" ;;
2847 *-*-freebsd*)
2848 llvm_cv_target_os_type="FreeBSD" ;;
2849 *-*-openbsd*)
2850 llvm_cv_target_os_type="OpenBSD" ;;
2851 *-*-netbsd*)
2852 llvm_cv_target_os_type="NetBSD" ;;
2853 *-*-dragonfly*)
2854 llvm_cv_target_os_type="DragonFly" ;;
2855 *-*-hpux*)
2856 llvm_cv_target_os_type="HP-UX" ;;
2857 *-*-interix*)
2858 llvm_cv_target_os_type="Interix" ;;
2859 *-*-linux*)
2860 llvm_cv_target_os_type="Linux" ;;
2861 *-*-solaris*)
2862 llvm_cv_target_os_type="SunOS" ;;
2863 *-*-auroraux*)
2864 llvm_cv_target_os_type="AuroraUX" ;;
2865 *-*-win32*)
2866 llvm_cv_target_os_type="Win32" ;;
2867 *-*-mingw*)
2868 llvm_cv_target_os_type="MingW" ;;
2869 *-*-haiku*)
2870 llvm_cv_target_os_type="Haiku" ;;
2871 *-unknown-eabi*)
2872 llvm_cv_target_os_type="Freestanding" ;;
2874 llvm_cv_target_os_type="Unknown" ;;
2875 esac
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5
2878 $as_echo "$llvm_cv_target_os_type" >&6; }
2880 if test "$llvm_cv_os_type" = "Unknown" ; then
2881 as_fn_error "Operating system is unknown, configure can't continue" "$LINENO" 5
2884 OS=$llvm_cv_os_type
2886 HOST_OS=$llvm_cv_os_type
2888 TARGET_OS=$llvm_cv_target_os_type
2891 LINKALL=$llvm_cv_link_all_option
2893 NOLINKALL=$llvm_cv_no_link_all_option
2896 case $llvm_cv_platform_type in
2897 Unix)
2899 $as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h
2901 LLVM_ON_UNIX=1
2903 LLVM_ON_WIN32=0
2906 Win32)
2908 $as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h
2910 LLVM_ON_UNIX=0
2912 LLVM_ON_WIN32=1
2915 esac
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5
2918 $as_echo_n "checking target architecture... " >&6; }
2919 if test "${llvm_cv_target_arch+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 case $target in
2923 i?86-*) llvm_cv_target_arch="x86" ;;
2924 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2925 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2926 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2927 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2928 arm*-*) llvm_cv_target_arch="ARM" ;;
2929 mips-*) llvm_cv_target_arch="Mips" ;;
2930 zpu-*) llvm_cv_target_arch="ZPU" ;;
2931 xcore-*) llvm_cv_target_arch="XCore" ;;
2932 msp430-*) llvm_cv_target_arch="MSP430" ;;
2933 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2934 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2935 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2936 ptx-*) llvm_cv_target_arch="PTX" ;;
2937 *) llvm_cv_target_arch="Unknown" ;;
2938 esac
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5
2941 $as_echo "$llvm_cv_target_arch" >&6; }
2943 if test "$llvm_cv_target_arch" = "Unknown" ; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5
2945 $as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2948 # Determine the LLVM native architecture for the target
2949 case "$llvm_cv_target_arch" in
2950 x86) LLVM_NATIVE_ARCH="X86" ;;
2951 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2952 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2953 esac
2955 ARCH=$llvm_cv_target_arch
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_CC+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2987 IFS=$as_save_IFS
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3002 if test -z "$ac_cv_prog_CC"; then
3003 ac_ct_CC=$CC
3004 # Extract the first word of "gcc", so it can be a program name with args.
3005 set dummy gcc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_ac_ct_CC="gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3025 done
3026 done
3027 IFS=$as_save_IFS
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3040 if test "x$ac_ct_CC" = x; then
3041 CC=""
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049 CC=$ac_ct_CC
3051 else
3052 CC="$ac_cv_prog_CC"
3055 if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}cc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if test "${ac_cv_prog_CC+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 ac_cv_prog_CC="${ac_tool_prefix}cc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3078 done
3079 done
3080 IFS=$as_save_IFS
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3096 if test -z "$CC"; then
3097 # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_CC+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107 ac_prog_rejected=no
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3116 ac_prog_rejected=yes
3117 continue
3119 ac_cv_prog_CC="cc"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3125 IFS=$as_save_IFS
3127 if test $ac_prog_rejected = yes; then
3128 # We found a bogon in the path, so make sure we never use it.
3129 set dummy $ac_cv_prog_CC
3130 shift
3131 if test $# != 0; then
3132 # We chose a different compiler from the bogus one.
3133 # However, it has the same basename, so the bogon will be chosen
3134 # first if we set CC to just the basename; use the full file name.
3135 shift
3136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3152 if test -z "$CC"; then
3153 if test -n "$ac_tool_prefix"; then
3154 for ac_prog in cl.exe
3156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_CC+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3177 done
3178 done
3179 IFS=$as_save_IFS
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3193 test -n "$CC" && break
3194 done
3196 if test -z "$CC"; then
3197 ac_ct_CC=$CC
3198 for ac_prog in cl.exe
3200 # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_ac_ct_CC="$ac_prog"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3221 done
3222 done
3223 IFS=$as_save_IFS
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3237 test -n "$ac_ct_CC" && break
3238 done
3240 if test "x$ac_ct_CC" = x; then
3241 CC=""
3242 else
3243 case $cross_compiling:$ac_tool_warned in
3244 yes:)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned=yes ;;
3248 esac
3249 CC=$ac_ct_CC
3256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error "no acceptable C compiler found in \$PATH
3259 See \`config.log' for more details." "$LINENO" 5; }
3261 # Provide some information about the compiler.
3262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3263 set X $ac_compile
3264 ac_compiler=$2
3265 for ac_option in --version -v -V -qversion; do
3266 { { ac_try="$ac_compiler $ac_option >&5"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3274 ac_status=$?
3275 if test -s conftest.err; then
3276 sed '10a\
3277 ... rest of stderr output deleted ...
3278 10q' conftest.err >conftest.er1
3279 cat conftest.er1 >&5
3281 rm -f conftest.er1 conftest.err
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }
3284 done
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3290 main ()
3294 return 0;
3296 _ACEOF
3297 ac_clean_files_save=$ac_clean_files
3298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3301 # of exeext.
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3303 $as_echo_n "checking whether the C compiler works... " >&6; }
3304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3306 # The possible output files:
3307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309 ac_rmfiles=
3310 for ac_file in $ac_files
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315 esac
3316 done
3317 rm -f $ac_rmfiles
3319 if { { ac_try="$ac_link_default"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link_default") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3334 # Autoconf.
3335 for ac_file in $ac_files ''
3337 test -f "$ac_file" || continue
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341 [ab].out )
3342 # We found the default executable, but exeext='' is most
3343 # certainly right.
3344 break;;
3345 *.* )
3346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 then :; else
3348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350 # We set ac_cv_exeext here because the later test for it is not
3351 # safe: cross compilers may not add the suffix if given an `-o'
3352 # argument, so we may need to know it at that point already.
3353 # Even if this section looks crufty: it has the advantage of
3354 # actually working.
3355 break;;
3357 break;;
3358 esac
3359 done
3360 test "$ac_cv_exeext" = no && ac_cv_exeext=
3362 else
3363 ac_file=''
3365 if test -z "$ac_file"; then :
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { as_fn_set_status 77
3374 as_fn_error "C compiler cannot create executables
3375 See \`config.log' for more details." "$LINENO" 5; }; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3378 $as_echo "yes" >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3381 $as_echo_n "checking for C compiler default output file name... " >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3383 $as_echo "$ac_file" >&6; }
3384 ac_exeext=$ac_cv_exeext
3386 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3387 ac_clean_files=$ac_clean_files_save
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3389 $as_echo_n "checking for suffix of executables... " >&6; }
3390 if { { ac_try="$ac_link"
3391 case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link") 2>&5
3398 ac_status=$?
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; then :
3401 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3402 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3403 # work properly (i.e., refer to `conftest.exe'), while it won't with
3404 # `rm'.
3405 for ac_file in conftest.exe conftest conftest.*; do
3406 test -f "$ac_file" || continue
3407 case $ac_file in
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3409 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3410 break;;
3411 * ) break;;
3412 esac
3413 done
3414 else
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error "cannot compute suffix of executables: cannot compile and link
3418 See \`config.log' for more details." "$LINENO" 5; }
3420 rm -f conftest conftest$ac_cv_exeext
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3422 $as_echo "$ac_cv_exeext" >&6; }
3424 rm -f conftest.$ac_ext
3425 EXEEXT=$ac_cv_exeext
3426 ac_exeext=$EXEEXT
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429 #include <stdio.h>
3431 main ()
3433 FILE *f = fopen ("conftest.out", "w");
3434 return ferror (f) || fclose (f) != 0;
3437 return 0;
3439 _ACEOF
3440 ac_clean_files="$ac_clean_files conftest.out"
3441 # Check that the compiler produces executables we can run. If not, either
3442 # the compiler is broken, or we cross compile.
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3444 $as_echo_n "checking whether we are cross compiling... " >&6; }
3445 if test "$cross_compiling" != yes; then
3446 { { ac_try="$ac_link"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_link") 2>&5
3454 ac_status=$?
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }
3457 if { ac_try='./conftest$ac_cv_exeext'
3458 { { case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_try") 2>&5
3465 ac_status=$?
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; }; then
3468 cross_compiling=no
3469 else
3470 if test "$cross_compiling" = maybe; then
3471 cross_compiling=yes
3472 else
3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error "cannot run C compiled programs.
3476 If you meant to cross compile, use \`--host'.
3477 See \`config.log' for more details." "$LINENO" 5; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3482 $as_echo "$cross_compiling" >&6; }
3484 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3485 ac_clean_files=$ac_clean_files_save
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3487 $as_echo_n "checking for suffix of object files... " >&6; }
3488 if test "${ac_cv_objext+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3495 main ()
3499 return 0;
3501 _ACEOF
3502 rm -f conftest.o conftest.obj
3503 if { { ac_try="$ac_compile"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_compile") 2>&5
3511 ac_status=$?
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; then :
3514 for ac_file in conftest.o conftest.obj conftest.*; do
3515 test -f "$ac_file" || continue;
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3519 break;;
3520 esac
3521 done
3522 else
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error "cannot compute suffix of object files: cannot compile
3529 See \`config.log' for more details." "$LINENO" 5; }
3531 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3534 $as_echo "$ac_cv_objext" >&6; }
3535 OBJEXT=$ac_cv_objext
3536 ac_objext=$OBJEXT
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3538 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3539 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3546 main ()
3548 #ifndef __GNUC__
3549 choke me
3550 #endif
3553 return 0;
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_compiler_gnu=yes
3558 else
3559 ac_compiler_gnu=no
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3566 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3567 if test $ac_compiler_gnu = yes; then
3568 GCC=yes
3569 else
3570 GCC=
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3575 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3576 if test "${ac_cv_prog_cc_g+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 ac_save_c_werror_flag=$ac_c_werror_flag
3580 ac_c_werror_flag=yes
3581 ac_cv_prog_cc_g=no
3582 CFLAGS="-g"
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3587 main ()
3591 return 0;
3593 _ACEOF
3594 if ac_fn_c_try_compile "$LINENO"; then :
3595 ac_cv_prog_cc_g=yes
3596 else
3597 CFLAGS=""
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3602 main ()
3606 return 0;
3608 _ACEOF
3609 if ac_fn_c_try_compile "$LINENO"; then :
3611 else
3612 ac_c_werror_flag=$ac_save_c_werror_flag
3613 CFLAGS="-g"
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3618 main ()
3622 return 0;
3624 _ACEOF
3625 if ac_fn_c_try_compile "$LINENO"; then :
3626 ac_cv_prog_cc_g=yes
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 ac_c_werror_flag=$ac_save_c_werror_flag
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3636 $as_echo "$ac_cv_prog_cc_g" >&6; }
3637 if test "$ac_test_CFLAGS" = set; then
3638 CFLAGS=$ac_save_CFLAGS
3639 elif test $ac_cv_prog_cc_g = yes; then
3640 if test "$GCC" = yes; then
3641 CFLAGS="-g -O2"
3642 else
3643 CFLAGS="-g"
3645 else
3646 if test "$GCC" = yes; then
3647 CFLAGS="-O2"
3648 else
3649 CFLAGS=
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3653 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3654 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 ac_cv_prog_cc_c89=no
3658 ac_save_CC=$CC
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3661 #include <stdarg.h>
3662 #include <stdio.h>
3663 #include <sys/types.h>
3664 #include <sys/stat.h>
3665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3666 struct buf { int x; };
3667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668 static char *e (p, i)
3669 char **p;
3670 int i;
3672 return p[i];
3674 static char *f (char * (*g) (char **, int), char **p, ...)
3676 char *s;
3677 va_list v;
3678 va_start (v,p);
3679 s = g (p, va_arg (v,int));
3680 va_end (v);
3681 return s;
3684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3685 function prototypes and stuff, but not '\xHH' hex character constants.
3686 These don't provoke an error unfortunately, instead are silently treated
3687 as 'x'. The following induces an error, until -std is added to get
3688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3689 array size at least. It's necessary to write '\x00'==0 to get something
3690 that's true only with -std. */
3691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3694 inside strings and character constants. */
3695 #define FOO(x) 'x'
3696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3698 int test (int i, double x);
3699 struct s1 {int (*f) (int a);};
3700 struct s2 {int (*f) (double a);};
3701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3702 int argc;
3703 char **argv;
3705 main ()
3707 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3709 return 0;
3711 _ACEOF
3712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3715 CC="$ac_save_CC $ac_arg"
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_c89=$ac_arg
3719 rm -f core conftest.err conftest.$ac_objext
3720 test "x$ac_cv_prog_cc_c89" != "xno" && break
3721 done
3722 rm -f conftest.$ac_ext
3723 CC=$ac_save_CC
3726 # AC_CACHE_VAL
3727 case "x$ac_cv_prog_cc_c89" in
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730 $as_echo "none needed" >&6; } ;;
3731 xno)
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733 $as_echo "unsupported" >&6; } ;;
3735 CC="$CC $ac_cv_prog_cc_c89"
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3738 esac
3739 if test "x$ac_cv_prog_cc_c89" != xno; then :
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3756 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3757 # On Suns, sometimes $CPP names a directory.
3758 if test -n "$CPP" && test -d "$CPP"; then
3759 CPP=
3761 if test -z "$CPP"; then
3762 if test "${ac_cv_prog_CPP+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 # Double quotes because CPP needs to be expanded
3766 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3768 ac_preproc_ok=false
3769 for ac_c_preproc_warn_flag in '' yes
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error" is here to catch this case.
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779 #ifdef __STDC__
3780 # include <limits.h>
3781 #else
3782 # include <assert.h>
3783 #endif
3784 Syntax error
3785 _ACEOF
3786 if ac_fn_c_try_cpp "$LINENO"; then :
3788 else
3789 # Broken: fails on valid input.
3790 continue
3792 rm -f conftest.err conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <ac_nonexistent.h>
3799 _ACEOF
3800 if ac_fn_c_try_cpp "$LINENO"; then :
3801 # Broken: success on invalid input.
3802 continue
3803 else
3804 # Passes both tests.
3805 ac_preproc_ok=:
3806 break
3808 rm -f conftest.err conftest.$ac_ext
3810 done
3811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3812 rm -f conftest.err conftest.$ac_ext
3813 if $ac_preproc_ok; then :
3814 break
3817 done
3818 ac_cv_prog_CPP=$CPP
3821 CPP=$ac_cv_prog_CPP
3822 else
3823 ac_cv_prog_CPP=$CPP
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3826 $as_echo "$CPP" >&6; }
3827 ac_preproc_ok=false
3828 for ac_c_preproc_warn_flag in '' yes
3830 # Use a header file that comes with gcc, so configuring glibc
3831 # with a fresh cross-compiler works.
3832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3833 # <limits.h> exists even on freestanding compilers.
3834 # On the NeXT, cc -E runs the code through the compiler's parser,
3835 # not just through cpp. "Syntax error" is here to catch this case.
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #ifdef __STDC__
3839 # include <limits.h>
3840 #else
3841 # include <assert.h>
3842 #endif
3843 Syntax error
3844 _ACEOF
3845 if ac_fn_c_try_cpp "$LINENO"; then :
3847 else
3848 # Broken: fails on valid input.
3849 continue
3851 rm -f conftest.err conftest.$ac_ext
3853 # OK, works on sane cases. Now check whether nonexistent headers
3854 # can be detected and how.
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <ac_nonexistent.h>
3858 _ACEOF
3859 if ac_fn_c_try_cpp "$LINENO"; then :
3860 # Broken: success on invalid input.
3861 continue
3862 else
3863 # Passes both tests.
3864 ac_preproc_ok=:
3865 break
3867 rm -f conftest.err conftest.$ac_ext
3869 done
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then :
3874 else
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3878 See \`config.log' for more details." "$LINENO" 5; }
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3889 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3890 if test "${ac_cv_path_GREP+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 if test -z "$GREP"; then
3894 ac_path_GREP_found=false
3895 # Loop through the user's path and test for each of PROGNAME-LIST
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_prog in grep ggrep; do
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3904 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3905 # Check for GNU ac_path_GREP and select it if it is found.
3906 # Check for GNU $ac_path_GREP
3907 case `"$ac_path_GREP" --version 2>&1` in
3908 *GNU*)
3909 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3911 ac_count=0
3912 $as_echo_n 0123456789 >"conftest.in"
3913 while :
3915 cat "conftest.in" "conftest.in" >"conftest.tmp"
3916 mv "conftest.tmp" "conftest.in"
3917 cp "conftest.in" "conftest.nl"
3918 $as_echo 'GREP' >> "conftest.nl"
3919 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921 as_fn_arith $ac_count + 1 && ac_count=$as_val
3922 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3923 # Best one so far, save it but keep looking for a better one
3924 ac_cv_path_GREP="$ac_path_GREP"
3925 ac_path_GREP_max=$ac_count
3927 # 10*(2^10) chars as input seems more than enough
3928 test $ac_count -gt 10 && break
3929 done
3930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931 esac
3933 $ac_path_GREP_found && break 3
3934 done
3935 done
3936 done
3937 IFS=$as_save_IFS
3938 if test -z "$ac_cv_path_GREP"; then
3939 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3941 else
3942 ac_cv_path_GREP=$GREP
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3947 $as_echo "$ac_cv_path_GREP" >&6; }
3948 GREP="$ac_cv_path_GREP"
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3952 $as_echo_n "checking for egrep... " >&6; }
3953 if test "${ac_cv_path_EGREP+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3957 then ac_cv_path_EGREP="$GREP -E"
3958 else
3959 if test -z "$EGREP"; then
3960 ac_path_EGREP_found=false
3961 # Loop through the user's path and test for each of PROGNAME-LIST
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_prog in egrep; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3970 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3971 # Check for GNU ac_path_EGREP and select it if it is found.
3972 # Check for GNU $ac_path_EGREP
3973 case `"$ac_path_EGREP" --version 2>&1` in
3974 *GNU*)
3975 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3977 ac_count=0
3978 $as_echo_n 0123456789 >"conftest.in"
3979 while :
3981 cat "conftest.in" "conftest.in" >"conftest.tmp"
3982 mv "conftest.tmp" "conftest.in"
3983 cp "conftest.in" "conftest.nl"
3984 $as_echo 'EGREP' >> "conftest.nl"
3985 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987 as_fn_arith $ac_count + 1 && ac_count=$as_val
3988 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3989 # Best one so far, save it but keep looking for a better one
3990 ac_cv_path_EGREP="$ac_path_EGREP"
3991 ac_path_EGREP_max=$ac_count
3993 # 10*(2^10) chars as input seems more than enough
3994 test $ac_count -gt 10 && break
3995 done
3996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997 esac
3999 $ac_path_EGREP_found && break 3
4000 done
4001 done
4002 done
4003 IFS=$as_save_IFS
4004 if test -z "$ac_cv_path_EGREP"; then
4005 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4007 else
4008 ac_cv_path_EGREP=$EGREP
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4014 $as_echo "$ac_cv_path_EGREP" >&6; }
4015 EGREP="$ac_cv_path_EGREP"
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4019 $as_echo_n "checking for ANSI C header files... " >&6; }
4020 if test "${ac_cv_header_stdc+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 #include <stdlib.h>
4026 #include <stdarg.h>
4027 #include <string.h>
4028 #include <float.h>
4031 main ()
4035 return 0;
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039 ac_cv_header_stdc=yes
4040 else
4041 ac_cv_header_stdc=no
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 if test $ac_cv_header_stdc = yes; then
4046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <string.h>
4051 _ACEOF
4052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053 $EGREP "memchr" >/dev/null 2>&1; then :
4055 else
4056 ac_cv_header_stdc=no
4058 rm -f conftest*
4062 if test $ac_cv_header_stdc = yes; then
4063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <stdlib.h>
4068 _ACEOF
4069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4070 $EGREP "free" >/dev/null 2>&1; then :
4072 else
4073 ac_cv_header_stdc=no
4075 rm -f conftest*
4079 if test $ac_cv_header_stdc = yes; then
4080 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4081 if test "$cross_compiling" = yes; then :
4083 else
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086 #include <ctype.h>
4087 #include <stdlib.h>
4088 #if ((' ' & 0x0FF) == 0x020)
4089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4091 #else
4092 # define ISLOWER(c) \
4093 (('a' <= (c) && (c) <= 'i') \
4094 || ('j' <= (c) && (c) <= 'r') \
4095 || ('s' <= (c) && (c) <= 'z'))
4096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4097 #endif
4099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4101 main ()
4103 int i;
4104 for (i = 0; i < 256; i++)
4105 if (XOR (islower (i), ISLOWER (i))
4106 || toupper (i) != TOUPPER (i))
4107 return 2;
4108 return 0;
4110 _ACEOF
4111 if ac_fn_c_try_run "$LINENO"; then :
4113 else
4114 ac_cv_header_stdc=no
4116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4117 conftest.$ac_objext conftest.beam conftest.$ac_ext
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4123 $as_echo "$ac_cv_header_stdc" >&6; }
4124 if test $ac_cv_header_stdc = yes; then
4126 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4132 inttypes.h stdint.h unistd.h
4133 do :
4134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4135 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4137 eval as_val=\$$as_ac_Header
4138 if test "x$as_val" = x""yes; then :
4139 cat >>confdefs.h <<_ACEOF
4140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141 _ACEOF
4145 done
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4149 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4150 if test "${ac_cv_c_bigendian+set}" = set; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 ac_cv_c_bigendian=unknown
4154 # See if we're dealing with a universal compiler.
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #ifndef __APPLE_CC__
4158 not a universal capable compiler
4159 #endif
4160 typedef int dummy;
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"; then :
4165 # Check for potential -arch flags. It is not universal unless
4166 # there are at least two -arch flags with different values.
4167 ac_arch=
4168 ac_prev=
4169 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4170 if test -n "$ac_prev"; then
4171 case $ac_word in
4172 i?86 | x86_64 | ppc | ppc64)
4173 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4174 ac_arch=$ac_word
4175 else
4176 ac_cv_c_bigendian=universal
4177 break
4180 esac
4181 ac_prev=
4182 elif test "x$ac_word" = "x-arch"; then
4183 ac_prev=arch
4185 done
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 if test $ac_cv_c_bigendian = unknown; then
4189 # See if sys/param.h defines the BYTE_ORDER macro.
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #include <sys/types.h>
4193 #include <sys/param.h>
4196 main ()
4198 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4199 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4200 && LITTLE_ENDIAN)
4201 bogus endian macros
4202 #endif
4205 return 0;
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 # It does; now see whether it defined to BIG_ENDIAN or not.
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212 #include <sys/types.h>
4213 #include <sys/param.h>
4216 main ()
4218 #if BYTE_ORDER != BIG_ENDIAN
4219 not big endian
4220 #endif
4223 return 0;
4225 _ACEOF
4226 if ac_fn_c_try_compile "$LINENO"; then :
4227 ac_cv_c_bigendian=yes
4228 else
4229 ac_cv_c_bigendian=no
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 if test $ac_cv_c_bigendian = unknown; then
4236 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #include <limits.h>
4242 main ()
4244 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4245 bogus endian macros
4246 #endif
4249 return 0;
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253 # It does; now see whether it defined to _BIG_ENDIAN or not.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <limits.h>
4259 main ()
4261 #ifndef _BIG_ENDIAN
4262 not big endian
4263 #endif
4266 return 0;
4268 _ACEOF
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270 ac_cv_c_bigendian=yes
4271 else
4272 ac_cv_c_bigendian=no
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 if test $ac_cv_c_bigendian = unknown; then
4279 # Compile a test program.
4280 if test "$cross_compiling" = yes; then :
4281 # Try to guess by grepping values from an object file.
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 short int ascii_mm[] =
4285 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4286 short int ascii_ii[] =
4287 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4288 int use_ascii (int i) {
4289 return ascii_mm[i] + ascii_ii[i];
4291 short int ebcdic_ii[] =
4292 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4293 short int ebcdic_mm[] =
4294 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4295 int use_ebcdic (int i) {
4296 return ebcdic_mm[i] + ebcdic_ii[i];
4298 extern int foo;
4301 main ()
4303 return use_ascii (foo) == use_ebcdic (foo);
4305 return 0;
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4310 ac_cv_c_bigendian=yes
4312 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4313 if test "$ac_cv_c_bigendian" = unknown; then
4314 ac_cv_c_bigendian=no
4315 else
4316 # finding both strings is unlikely to happen, but who knows?
4317 ac_cv_c_bigendian=unknown
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 else
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 $ac_includes_default
4327 main ()
4330 /* Are we little or big endian? From Harbison&Steele. */
4331 union
4333 long int l;
4334 char c[sizeof (long int)];
4335 } u;
4336 u.l = 1;
4337 return u.c[sizeof (long int) - 1] == 1;
4340 return 0;
4342 _ACEOF
4343 if ac_fn_c_try_run "$LINENO"; then :
4344 ac_cv_c_bigendian=no
4345 else
4346 ac_cv_c_bigendian=yes
4348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4349 conftest.$ac_objext conftest.beam conftest.$ac_ext
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4355 $as_echo "$ac_cv_c_bigendian" >&6; }
4356 case $ac_cv_c_bigendian in #(
4357 yes)
4358 ENDIAN=big
4359 ;; #(
4361 ENDIAN=little
4362 ;; #(
4363 universal)
4365 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4367 ;; #(
4369 as_fn_error "unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4371 esac
4374 if test "$cross_compiling" = yes; then
4375 LLVM_CROSS_COMPILING=1
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5
4379 $as_echo_n "checking for executable suffix on build platform... " >&6; }
4380 if test "${ac_cv_build_exeext+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4384 ac_cv_build_exeext=.exe
4385 else
4386 ac_build_prefix=${build_alias}-
4388 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4389 set dummy ${ac_build_prefix}gcc; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$BUILD_CC"; then
4396 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4409 done
4410 done
4411 IFS=$as_save_IFS
4415 BUILD_CC=$ac_cv_prog_BUILD_CC
4416 if test -n "$BUILD_CC"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4418 $as_echo "$BUILD_CC" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4425 if test -z "$BUILD_CC"; then
4426 # Extract the first word of "gcc", so it can be a program name with args.
4427 set dummy gcc; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$BUILD_CC"; then
4434 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 ac_cv_prog_BUILD_CC="gcc"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4447 done
4448 done
4449 IFS=$as_save_IFS
4453 BUILD_CC=$ac_cv_prog_BUILD_CC
4454 if test -n "$BUILD_CC"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4456 $as_echo "$BUILD_CC" >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4463 if test -z "$BUILD_CC"; then
4464 # Extract the first word of "cc", so it can be a program name with args.
4465 set dummy cc; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 if test -n "$BUILD_CC"; then
4472 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4473 else
4474 ac_prog_rejected=no
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4483 ac_prog_rejected=yes
4484 continue
4486 ac_cv_prog_BUILD_CC="cc"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4490 done
4491 done
4492 IFS=$as_save_IFS
4494 if test $ac_prog_rejected = yes; then
4495 # We found a bogon in the path, so make sure we never use it.
4496 set dummy $ac_cv_prog_BUILD_CC
4497 shift
4498 if test $# != 0; then
4499 # We chose a different compiler from the bogus one.
4500 # However, it has the same basename, so the bogon will be chosen
4501 # first if we set BUILD_CC to just the basename; use the full file name.
4502 shift
4503 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4508 BUILD_CC=$ac_cv_prog_BUILD_CC
4509 if test -n "$BUILD_CC"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4511 $as_echo "$BUILD_CC" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4520 test -z "$BUILD_CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5
4521 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4522 rm -f conftest*
4523 echo 'int main () { return 0; }' > conftest.$ac_ext
4524 ac_cv_build_exeext=
4525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5
4526 (eval $ac_build_link) 2>&5
4527 ac_status=$?
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then
4530 for file in conftest.*; do
4531 case $file in
4532 *.c | *.o | *.obj | *.dSYM) ;;
4533 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4534 esac
4535 done
4536 else
4537 as_fn_error "installation or configuration problem: compiler cannot create executables." "$LINENO" 5
4539 rm -f conftest*
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544 BUILD_EXEEXT=""
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5
4547 $as_echo "${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4581 $as_echo "$BUILD_CXX" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_BUILD_CXX="g++"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4619 $as_echo "$BUILD_CXX" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636 else
4637 ac_prog_rejected=no
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4647 continue
4649 ac_cv_prog_BUILD_CXX="c++"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4657 if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4660 shift
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 shift
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4674 $as_echo "$BUILD_CXX" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4683 else
4684 LLVM_CROSS_COMPILING=0
4688 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4689 cvsbuild="yes"
4690 optimize="no"
4691 CVSBUILD=CVSBUILD=1
4693 else
4694 cvsbuild="no"
4695 optimize="yes"
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then :
4701 enableval=$enable_optimized;
4702 else
4703 enableval=$optimize
4706 if test ${enableval} = "no" ; then
4707 ENABLE_OPTIMIZED=
4709 else
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then :
4716 enableval=$enable_profiling;
4717 else
4718 enableval="no"
4721 if test ${enableval} = "no" ; then
4722 ENABLE_PROFILING=
4724 else
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then :
4731 enableval=$enable_assertions;
4732 else
4733 enableval="yes"
4736 if test ${enableval} = "yes" ; then
4737 DISABLE_ASSERTIONS=
4739 else
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then :
4746 enableval=$enable_expensive_checks;
4747 else
4748 enableval="no"
4751 if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754 EXPENSIVE_CHECKS=yes
4756 else
4757 ENABLE_EXPENSIVE_CHECKS=
4759 EXPENSIVE_CHECKS=no
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then :
4765 enableval=$enable_debug_runtime;
4766 else
4767 enableval=no
4770 if test ${enableval} = "no" ; then
4771 DEBUG_RUNTIME=
4773 else
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then :
4780 enableval=$enable_debug_symbols;
4781 else
4782 enableval=no
4785 if test ${enableval} = "no" ; then
4786 DEBUG_SYMBOLS=
4788 else
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then :
4795 enableval=$enable_jit;
4796 else
4797 enableval=default
4800 if test ${enableval} = "no"
4801 then
4802 JIT=
4804 else
4805 case "$llvm_cv_target_arch" in
4806 x86) TARGET_HAS_JIT=1
4808 Sparc) TARGET_HAS_JIT=0
4810 PowerPC) TARGET_HAS_JIT=1
4812 x86_64) TARGET_HAS_JIT=1
4814 Alpha) TARGET_HAS_JIT=1
4816 ARM) TARGET_HAS_JIT=1
4818 Mips) TARGET_HAS_JIT=0
4820 ZPU) TARGET_HAS_JIT=0
4822 XCore) TARGET_HAS_JIT=0
4824 MSP430) TARGET_HAS_JIT=0
4826 SystemZ) TARGET_HAS_JIT=0
4828 Blackfin) TARGET_HAS_JIT=0
4830 MBlaze) TARGET_HAS_JIT=0
4832 PTX) TARGET_HAS_JIT=0
4834 *) TARGET_HAS_JIT=0
4836 esac
4839 # Check whether --enable-doxygen was given.
4840 if test "${enable_doxygen+set}" = set; then :
4841 enableval=$enable_doxygen;
4842 else
4843 enableval=default
4846 case "$enableval" in
4847 yes) ENABLE_DOXYGEN=1
4849 no) ENABLE_DOXYGEN=0
4851 default) ENABLE_DOXYGEN=0
4853 *) as_fn_error "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4854 esac
4856 # Check whether --enable-threads was given.
4857 if test "${enable_threads+set}" = set; then :
4858 enableval=$enable_threads;
4859 else
4860 enableval=default
4863 case "$enableval" in
4864 yes) ENABLE_THREADS=1
4866 no) ENABLE_THREADS=0
4868 default) ENABLE_THREADS=1
4870 *) as_fn_error "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4871 esac
4873 cat >>confdefs.h <<_ACEOF
4874 #define ENABLE_THREADS $ENABLE_THREADS
4875 _ACEOF
4878 # Check whether --enable-pic was given.
4879 if test "${enable_pic+set}" = set; then :
4880 enableval=$enable_pic;
4881 else
4882 enableval=default
4885 case "$enableval" in
4886 yes) ENABLE_PIC=1
4888 no) ENABLE_PIC=0
4890 default) ENABLE_PIC=1
4892 *) as_fn_error "Invalid setting for --enable-pic. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4893 esac
4895 cat >>confdefs.h <<_ACEOF
4896 #define ENABLE_PIC $ENABLE_PIC
4897 _ACEOF
4900 # Check whether --enable-shared was given.
4901 if test "${enable_shared+set}" = set; then :
4902 enableval=$enable_shared;
4903 else
4904 enableval=default
4907 case "$enableval" in
4908 yes) ENABLE_SHARED=1
4910 no) ENABLE_SHARED=0
4912 default) ENABLE_SHARED=0
4914 *) as_fn_error "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4915 esac
4917 # Check whether --enable-timestamps was given.
4918 if test "${enable_timestamps+set}" = set; then :
4919 enableval=$enable_timestamps;
4920 else
4921 enableval=default
4924 case "$enableval" in
4925 yes) ENABLE_TIMESTAMPS=1
4927 no) ENABLE_TIMESTAMPS=0
4929 default) ENABLE_TIMESTAMPS=1
4931 *) as_fn_error "Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4932 esac
4934 cat >>confdefs.h <<_ACEOF
4935 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4936 _ACEOF
4939 TARGETS_TO_BUILD=""
4940 # Check whether --enable-targets was given.
4941 if test "${enable_targets+set}" = set; then :
4942 enableval=$enable_targets;
4943 else
4944 enableval=all
4947 if test "$enableval" = host-only ; then
4948 enableval=host
4950 case "$enableval" in
4951 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips ZPU CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4952 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4953 case "$a_target" in
4954 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4955 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4956 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4957 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4958 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4959 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4960 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4961 zpu) TARGETS_TO_BUILD="ZPU $TARGETS_TO_BUILD" ;;
4962 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4963 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4964 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4965 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4966 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4967 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4968 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4969 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4970 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4971 host) case "$llvm_cv_target_arch" in
4972 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4973 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4974 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4975 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4976 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4977 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4978 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4979 ZPU) TARGETS_TO_BUILD="ZPU $TARGETS_TO_BUILD" ;;
4980 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4981 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4982 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4983 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4984 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4985 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4986 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4987 *) as_fn_error "Can not set target to build" "$LINENO" 5 ;;
4988 esac ;;
4989 *) as_fn_error "Unrecognized target $a_target" "$LINENO" 5 ;;
4990 esac
4991 done
4993 esac
4994 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4997 # Determine whether we are building LLVM support for the native architecture.
4998 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4999 for a_target in $TARGETS_TO_BUILD; do
5000 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5002 cat >>confdefs.h <<_ACEOF
5003 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5004 _ACEOF
5006 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5007 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5008 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5010 cat >>confdefs.h <<_ACEOF
5011 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5012 _ACEOF
5015 cat >>confdefs.h <<_ACEOF
5016 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5017 _ACEOF
5020 cat >>confdefs.h <<_ACEOF
5021 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5022 _ACEOF
5025 done
5027 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5028 # target feature def files.
5029 LLVM_ENUM_TARGETS=""
5030 LLVM_ENUM_ASM_PRINTERS=""
5031 LLVM_ENUM_ASM_PARSERS=""
5032 LLVM_ENUM_DISASSEMBLERS=""
5033 for target_to_build in $TARGETS_TO_BUILD; do
5034 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5035 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5036 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5038 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5039 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5040 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5042 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5043 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5045 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5046 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5048 done
5054 # Check whether --enable-cbe-printf-a was given.
5055 if test "${enable_cbe_printf_a+set}" = set; then :
5056 enableval=$enable_cbe_printf_a;
5057 else
5058 enableval=default
5061 case "$enableval" in
5062 yes) ENABLE_CBE_PRINTF_A=1
5064 no) ENABLE_CBE_PRINTF_A=0
5066 default) ENABLE_CBE_PRINTF_A=1
5068 *) as_fn_error "Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5069 esac
5071 cat >>confdefs.h <<_ACEOF
5072 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5073 _ACEOF
5077 # Check whether --with-llvmgccdir was given.
5078 if test "${with_llvmgccdir+set}" = set; then :
5079 withval=$with_llvmgccdir;
5080 else
5081 withval=default
5084 case "$withval" in
5085 default) WITH_LLVMGCCDIR=default ;;
5086 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5087 *) as_fn_error "Invalid path for --with-llvmgccdir. Provide full path" "$LINENO" 5 ;;
5088 esac
5091 # Check whether --with-llvmgcc was given.
5092 if test "${with_llvmgcc+set}" = set; then :
5093 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5094 WITH_LLVMGCCDIR=""
5099 # Check whether --with-llvmgxx was given.
5100 if test "${with_llvmgxx+set}" = set; then :
5101 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5102 WITH_LLVMGCCDIR=""
5106 if test -n "$LLVMGCC"; then
5107 LLVMGCCCOMMAND="$LLVMGCC"
5110 if test -n "$LLVMGXX"; then
5111 LLVMGXXCOMMAND="$LLVMGXX"
5114 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5115 as_fn_error "Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" "$LINENO" 5;
5118 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5119 as_fn_error "Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" "$LINENO" 5;
5123 # Check whether --with-clang was given.
5124 if test "${with_clang+set}" = set; then :
5125 withval=$with_clang;
5126 else
5127 with_clang=default
5132 # Check whether --with-built-clang was given.
5133 if test "${with_built_clang+set}" = set; then :
5134 withval=$with_built_clang;
5135 else
5136 with_built_clang=check
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking clang compiler" >&5
5141 $as_echo_n "checking clang compiler... " >&6; }
5142 WITH_CLANGPATH=""
5143 WITH_BUILT_CLANG=0
5144 if test "$with_clang" != "default"; then
5145 WITH_CLANGPATH="$with_clang"
5146 if ! test -x "$WITH_CLANGPATH"; then
5147 as_fn_error "invalid --with-clang, path does not specify an executable" "$LINENO" 5
5149 elif test "$with_built_clang" = "yes"; then
5150 WITH_BUILT_CLANG=1
5151 elif test "$with_built_clang" = "no"; then
5152 WITH_BUILT_CLANG=0
5153 else
5154 if test "$with_built_clang" != "check"; then
5155 as_fn_error "invalid value for --with-built-clang." "$LINENO" 5
5158 if test -f ${srcdir}/tools/clang/README.txt; then
5159 WITH_BUILT_CLANG=1
5163 if ! test -z "$WITH_CLANGPATH"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_CLANGPATH" >&5
5165 $as_echo "$WITH_CLANGPATH" >&6; }
5166 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5167 elif test "$WITH_BUILT_CLANG" = "1"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: built" >&5
5169 $as_echo "built" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5172 $as_echo "none" >&6; }
5174 CLANGPATH=$WITH_CLANGPATH
5176 CLANGXXPATH=$WITH_CLANGXXPATH
5178 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5182 # Check whether --with-optimize-option was given.
5183 if test "${with_optimize_option+set}" = set; then :
5184 withval=$with_optimize_option;
5185 else
5186 withval=default
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5
5190 $as_echo_n "checking optimization flags... " >&6; }
5191 case "$withval" in
5192 default)
5193 case "$llvm_cv_os_type" in
5194 FreeBSD) optimize_option=-O2 ;;
5195 MingW) optimize_option=-O2 ;;
5196 *) optimize_option=-O3 ;;
5197 esac ;;
5198 *) optimize_option="$withval" ;;
5199 esac
5200 OPTIMIZE_OPTION=$optimize_option
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5
5203 $as_echo "$optimize_option" >&6; }
5206 # Check whether --with-extra-options was given.
5207 if test "${with_extra_options+set}" = set; then :
5208 withval=$with_extra_options;
5209 else
5210 withval=default
5213 case "$withval" in
5214 default) EXTRA_OPTIONS= ;;
5215 *) EXTRA_OPTIONS=$withval ;;
5216 esac
5217 EXTRA_OPTIONS=$EXTRA_OPTIONS
5220 # Check whether --enable-bindings was given.
5221 if test "${enable_bindings+set}" = set; then :
5222 enableval=$enable_bindings;
5223 else
5224 enableval=default
5227 BINDINGS_TO_BUILD=""
5228 case "$enableval" in
5229 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5230 all ) BINDINGS_TO_BUILD="ocaml" ;;
5231 none | no) BINDINGS_TO_BUILD="" ;;
5232 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5233 case "$a_binding" in
5234 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5235 *) as_fn_error "Unrecognized binding $a_binding" "$LINENO" 5 ;;
5236 esac
5237 done
5239 esac
5242 # Check whether --with-ocaml-libdir was given.
5243 if test "${with_ocaml_libdir+set}" = set; then :
5244 withval=$with_ocaml_libdir;
5245 else
5246 withval=auto
5249 case "$withval" in
5250 auto) with_ocaml_libdir="$withval" ;;
5251 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5252 *) as_fn_error "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
5253 esac
5256 # Check whether --with-clang-resource-dir was given.
5257 if test "${with_clang_resource_dir+set}" = set; then :
5258 withval=$with_clang_resource_dir;
5259 else
5260 withval=""
5264 cat >>confdefs.h <<_ACEOF
5265 #define CLANG_RESOURCE_DIR "$withval"
5266 _ACEOF
5270 # Check whether --with-c-include-dirs was given.
5271 if test "${with_c_include_dirs+set}" = set; then :
5272 withval=$with_c_include_dirs;
5273 else
5274 withval=""
5278 cat >>confdefs.h <<_ACEOF
5279 #define C_INCLUDE_DIRS "$withval"
5280 _ACEOF
5284 # Check whether --with-cxx-include-root was given.
5285 if test "${with_cxx_include_root+set}" = set; then :
5286 withval=$with_cxx_include_root;
5287 else
5288 withval=""
5292 cat >>confdefs.h <<_ACEOF
5293 #define CXX_INCLUDE_ROOT "$withval"
5294 _ACEOF
5298 # Check whether --with-cxx-include-arch was given.
5299 if test "${with_cxx_include_arch+set}" = set; then :
5300 withval=$with_cxx_include_arch;
5301 else
5302 withval=""
5306 cat >>confdefs.h <<_ACEOF
5307 #define CXX_INCLUDE_ARCH "$withval"
5308 _ACEOF
5312 # Check whether --with-cxx-include-32bit-dir was given.
5313 if test "${with_cxx_include_32bit_dir+set}" = set; then :
5314 withval=$with_cxx_include_32bit_dir;
5315 else
5316 withval=""
5320 cat >>confdefs.h <<_ACEOF
5321 #define CXX_INCLUDE_32BIT_DIR "$withval"
5322 _ACEOF
5326 # Check whether --with-cxx-include-64bit-dir was given.
5327 if test "${with_cxx_include_64bit_dir+set}" = set; then :
5328 withval=$with_cxx_include_64bit_dir;
5329 else
5330 withval=""
5334 cat >>confdefs.h <<_ACEOF
5335 #define CXX_INCLUDE_64BIT_DIR "$withval"
5336 _ACEOF
5340 # Check whether --with-binutils-include was given.
5341 if test "${with_binutils_include+set}" = set; then :
5342 withval=$with_binutils_include;
5343 else
5344 withval=default
5347 case "$withval" in
5348 default) WITH_BINUTILS_INCDIR=default ;;
5349 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5350 *) as_fn_error "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
5351 esac
5352 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5353 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5355 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5356 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5357 as_fn_error "Invalid path to directory containing plugin-api.h." "$LINENO" 5;
5361 # Check whether --enable-libffi was given.
5362 if test "${enable_libffi+set}" = set; then :
5363 enableval=$enable_libffi; case "$enableval" in
5364 yes) llvm_cv_enable_libffi="yes" ;;
5365 no) llvm_cv_enable_libffi="no" ;;
5366 *) as_fn_error "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5367 esac
5368 else
5369 llvm_cv_enable_libffi=no
5374 ac_ext=c
5375 ac_cpp='$CPP $CPPFLAGS'
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5380 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5381 # On Suns, sometimes $CPP names a directory.
5382 if test -n "$CPP" && test -d "$CPP"; then
5383 CPP=
5385 if test -z "$CPP"; then
5386 if test "${ac_cv_prog_CPP+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 # Double quotes because CPP needs to be expanded
5390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5392 ac_preproc_ok=false
5393 for ac_c_preproc_warn_flag in '' yes
5395 # Use a header file that comes with gcc, so configuring glibc
5396 # with a fresh cross-compiler works.
5397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398 # <limits.h> exists even on freestanding compilers.
5399 # On the NeXT, cc -E runs the code through the compiler's parser,
5400 # not just through cpp. "Syntax error" is here to catch this case.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #ifdef __STDC__
5404 # include <limits.h>
5405 #else
5406 # include <assert.h>
5407 #endif
5408 Syntax error
5409 _ACEOF
5410 if ac_fn_c_try_cpp "$LINENO"; then :
5412 else
5413 # Broken: fails on valid input.
5414 continue
5416 rm -f conftest.err conftest.$ac_ext
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ac_nonexistent.h>
5423 _ACEOF
5424 if ac_fn_c_try_cpp "$LINENO"; then :
5425 # Broken: success on invalid input.
5426 continue
5427 else
5428 # Passes both tests.
5429 ac_preproc_ok=:
5430 break
5432 rm -f conftest.err conftest.$ac_ext
5434 done
5435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5436 rm -f conftest.err conftest.$ac_ext
5437 if $ac_preproc_ok; then :
5438 break
5441 done
5442 ac_cv_prog_CPP=$CPP
5445 CPP=$ac_cv_prog_CPP
5446 else
5447 ac_cv_prog_CPP=$CPP
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5450 $as_echo "$CPP" >&6; }
5451 ac_preproc_ok=false
5452 for ac_c_preproc_warn_flag in '' yes
5454 # Use a header file that comes with gcc, so configuring glibc
5455 # with a fresh cross-compiler works.
5456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 # <limits.h> exists even on freestanding compilers.
5458 # On the NeXT, cc -E runs the code through the compiler's parser,
5459 # not just through cpp. "Syntax error" is here to catch this case.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 #ifdef __STDC__
5463 # include <limits.h>
5464 #else
5465 # include <assert.h>
5466 #endif
5467 Syntax error
5468 _ACEOF
5469 if ac_fn_c_try_cpp "$LINENO"; then :
5471 else
5472 # Broken: fails on valid input.
5473 continue
5475 rm -f conftest.err conftest.$ac_ext
5477 # OK, works on sane cases. Now check whether nonexistent headers
5478 # can be detected and how.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #include <ac_nonexistent.h>
5482 _ACEOF
5483 if ac_fn_c_try_cpp "$LINENO"; then :
5484 # Broken: success on invalid input.
5485 continue
5486 else
5487 # Passes both tests.
5488 ac_preproc_ok=:
5489 break
5491 rm -f conftest.err conftest.$ac_ext
5493 done
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.err conftest.$ac_ext
5496 if $ac_preproc_ok; then :
5498 else
5499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5501 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5502 See \`config.log' for more details." "$LINENO" 5; }
5505 ac_ext=c
5506 ac_cpp='$CPP $CPPFLAGS'
5507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516 if test -n "$ac_tool_prefix"; then
5517 for ac_prog in gcc
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_CC+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$CC"; then
5527 ac_cv_prog_CC="$CC" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5540 done
5541 done
5542 IFS=$as_save_IFS
5546 CC=$ac_cv_prog_CC
5547 if test -n "$CC"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5549 $as_echo "$CC" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5556 test -n "$CC" && break
5557 done
5559 if test -z "$CC"; then
5560 ac_ct_CC=$CC
5561 for ac_prog in gcc
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if test -n "$ac_ct_CC"; then
5571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_ac_ct_CC="$ac_prog"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5584 done
5585 done
5586 IFS=$as_save_IFS
5590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5591 if test -n "$ac_ct_CC"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5593 $as_echo "$ac_ct_CC" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5600 test -n "$ac_ct_CC" && break
5601 done
5603 if test "x$ac_ct_CC" = x; then
5604 CC=""
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612 CC=$ac_ct_CC
5617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619 as_fn_error "no acceptable C compiler found in \$PATH
5620 See \`config.log' for more details." "$LINENO" 5; }
5622 # Provide some information about the compiler.
5623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5624 set X $ac_compile
5625 ac_compiler=$2
5626 for ac_option in --version -v -V -qversion; do
5627 { { ac_try="$ac_compiler $ac_option >&5"
5628 case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631 esac
5632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5633 $as_echo "$ac_try_echo"; } >&5
5634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5635 ac_status=$?
5636 if test -s conftest.err; then
5637 sed '10a\
5638 ... rest of stderr output deleted ...
5639 10q' conftest.err >conftest.er1
5640 cat conftest.er1 >&5
5642 rm -f conftest.er1 conftest.err
5643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644 test $ac_status = 0; }
5645 done
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5649 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5656 main ()
5658 #ifndef __GNUC__
5659 choke me
5660 #endif
5663 return 0;
5665 _ACEOF
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_compiler_gnu=yes
5668 else
5669 ac_compiler_gnu=no
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5677 if test $ac_compiler_gnu = yes; then
5678 GCC=yes
5679 else
5680 GCC=
5682 ac_test_CFLAGS=${CFLAGS+set}
5683 ac_save_CFLAGS=$CFLAGS
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5686 if test "${ac_cv_prog_cc_g+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 ac_save_c_werror_flag=$ac_c_werror_flag
5690 ac_c_werror_flag=yes
5691 ac_cv_prog_cc_g=no
5692 CFLAGS="-g"
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5697 main ()
5701 return 0;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 ac_cv_prog_cc_g=yes
5706 else
5707 CFLAGS=""
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5712 main ()
5716 return 0;
5718 _ACEOF
5719 if ac_fn_c_try_compile "$LINENO"; then :
5721 else
5722 ac_c_werror_flag=$ac_save_c_werror_flag
5723 CFLAGS="-g"
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5728 main ()
5732 return 0;
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 ac_cv_prog_cc_g=yes
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 ac_c_werror_flag=$ac_save_c_werror_flag
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5746 $as_echo "$ac_cv_prog_cc_g" >&6; }
5747 if test "$ac_test_CFLAGS" = set; then
5748 CFLAGS=$ac_save_CFLAGS
5749 elif test $ac_cv_prog_cc_g = yes; then
5750 if test "$GCC" = yes; then
5751 CFLAGS="-g -O2"
5752 else
5753 CFLAGS="-g"
5755 else
5756 if test "$GCC" = yes; then
5757 CFLAGS="-O2"
5758 else
5759 CFLAGS=
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5764 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 ac_cv_prog_cc_c89=no
5768 ac_save_CC=$CC
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #include <stdarg.h>
5772 #include <stdio.h>
5773 #include <sys/types.h>
5774 #include <sys/stat.h>
5775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5776 struct buf { int x; };
5777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5778 static char *e (p, i)
5779 char **p;
5780 int i;
5782 return p[i];
5784 static char *f (char * (*g) (char **, int), char **p, ...)
5786 char *s;
5787 va_list v;
5788 va_start (v,p);
5789 s = g (p, va_arg (v,int));
5790 va_end (v);
5791 return s;
5794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5795 function prototypes and stuff, but not '\xHH' hex character constants.
5796 These don't provoke an error unfortunately, instead are silently treated
5797 as 'x'. The following induces an error, until -std is added to get
5798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5799 array size at least. It's necessary to write '\x00'==0 to get something
5800 that's true only with -std. */
5801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5804 inside strings and character constants. */
5805 #define FOO(x) 'x'
5806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5808 int test (int i, double x);
5809 struct s1 {int (*f) (int a);};
5810 struct s2 {int (*f) (double a);};
5811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5812 int argc;
5813 char **argv;
5815 main ()
5817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5819 return 0;
5821 _ACEOF
5822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5825 CC="$ac_save_CC $ac_arg"
5826 if ac_fn_c_try_compile "$LINENO"; then :
5827 ac_cv_prog_cc_c89=$ac_arg
5829 rm -f core conftest.err conftest.$ac_objext
5830 test "x$ac_cv_prog_cc_c89" != "xno" && break
5831 done
5832 rm -f conftest.$ac_ext
5833 CC=$ac_save_CC
5836 # AC_CACHE_VAL
5837 case "x$ac_cv_prog_cc_c89" in
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5840 $as_echo "none needed" >&6; } ;;
5841 xno)
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5843 $as_echo "unsupported" >&6; } ;;
5845 CC="$CC $ac_cv_prog_cc_c89"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5848 esac
5849 if test "x$ac_cv_prog_cc_c89" != xno; then :
5853 ac_ext=c
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859 ac_ext=cpp
5860 ac_cpp='$CXXCPP $CPPFLAGS'
5861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5864 if test -z "$CXX"; then
5865 if test -n "$CCC"; then
5866 CXX=$CCC
5867 else
5868 if test -n "$ac_tool_prefix"; then
5869 for ac_prog in g++
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if test "${ac_cv_prog_CXX+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if test -n "$CXX"; then
5879 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5892 done
5893 done
5894 IFS=$as_save_IFS
5898 CXX=$ac_cv_prog_CXX
5899 if test -n "$CXX"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5901 $as_echo "$CXX" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5908 test -n "$CXX" && break
5909 done
5911 if test -z "$CXX"; then
5912 ac_ct_CXX=$CXX
5913 for ac_prog in g++
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$ac_ct_CXX"; then
5923 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_ac_ct_CXX="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5936 done
5937 done
5938 IFS=$as_save_IFS
5942 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5943 if test -n "$ac_ct_CXX"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5945 $as_echo "$ac_ct_CXX" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5952 test -n "$ac_ct_CXX" && break
5953 done
5955 if test "x$ac_ct_CXX" = x; then
5956 CXX="g++"
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5963 esac
5964 CXX=$ac_ct_CXX
5970 # Provide some information about the compiler.
5971 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5972 set X $ac_compile
5973 ac_compiler=$2
5974 for ac_option in --version -v -V -qversion; do
5975 { { ac_try="$ac_compiler $ac_option >&5"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5981 $as_echo "$ac_try_echo"; } >&5
5982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5983 ac_status=$?
5984 if test -s conftest.err; then
5985 sed '10a\
5986 ... rest of stderr output deleted ...
5987 10q' conftest.err >conftest.er1
5988 cat conftest.er1 >&5
5990 rm -f conftest.er1 conftest.err
5991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992 test $ac_status = 0; }
5993 done
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5996 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5997 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6004 main ()
6006 #ifndef __GNUC__
6007 choke me
6008 #endif
6011 return 0;
6013 _ACEOF
6014 if ac_fn_cxx_try_compile "$LINENO"; then :
6015 ac_compiler_gnu=yes
6016 else
6017 ac_compiler_gnu=no
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6024 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6025 if test $ac_compiler_gnu = yes; then
6026 GXX=yes
6027 else
6028 GXX=
6030 ac_test_CXXFLAGS=${CXXFLAGS+set}
6031 ac_save_CXXFLAGS=$CXXFLAGS
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6033 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6034 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6038 ac_cxx_werror_flag=yes
6039 ac_cv_prog_cxx_g=no
6040 CXXFLAGS="-g"
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6045 main ()
6049 return 0;
6051 _ACEOF
6052 if ac_fn_cxx_try_compile "$LINENO"; then :
6053 ac_cv_prog_cxx_g=yes
6054 else
6055 CXXFLAGS=""
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6060 main ()
6064 return 0;
6066 _ACEOF
6067 if ac_fn_cxx_try_compile "$LINENO"; then :
6069 else
6070 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6071 CXXFLAGS="-g"
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6076 main ()
6080 return 0;
6082 _ACEOF
6083 if ac_fn_cxx_try_compile "$LINENO"; then :
6084 ac_cv_prog_cxx_g=yes
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6094 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6095 if test "$ac_test_CXXFLAGS" = set; then
6096 CXXFLAGS=$ac_save_CXXFLAGS
6097 elif test $ac_cv_prog_cxx_g = yes; then
6098 if test "$GXX" = yes; then
6099 CXXFLAGS="-g -O2"
6100 else
6101 CXXFLAGS="-g"
6103 else
6104 if test "$GXX" = yes; then
6105 CXXFLAGS="-O2"
6106 else
6107 CXXFLAGS=
6110 ac_ext=c
6111 ac_cpp='$CPP $CPPFLAGS'
6112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6118 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6119 if test "${lt_cv_path_NM+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if test -n "$NM"; then
6123 # Let the user override the test.
6124 lt_cv_path_NM="$NM"
6125 else
6126 lt_nm_to_check="${ac_tool_prefix}nm"
6127 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6128 lt_nm_to_check="$lt_nm_to_check nm"
6130 for lt_tmp_nm in $lt_nm_to_check; do
6131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6132 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6133 IFS="$lt_save_ifs"
6134 test -z "$ac_dir" && ac_dir=.
6135 tmp_nm="$ac_dir/$lt_tmp_nm"
6136 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6137 # Check to see if the nm accepts a BSD-compat flag.
6138 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6139 # nm: unknown option "B" ignored
6140 # Tru64's nm complains that /dev/null is an invalid object file
6141 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6142 */dev/null* | *'Invalid file or object type'*)
6143 lt_cv_path_NM="$tmp_nm -B"
6144 break
6147 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6148 */dev/null*)
6149 lt_cv_path_NM="$tmp_nm -p"
6150 break
6153 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6154 continue # so that we can try to find one that supports BSD flags
6156 esac
6158 esac
6160 done
6161 IFS="$lt_save_ifs"
6162 done
6163 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6167 $as_echo "$lt_cv_path_NM" >&6; }
6168 NM="$lt_cv_path_NM"
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
6173 $as_echo_n "checking for GNU make... " >&6; }
6174 if test "${llvm_cv_gnu_make_command+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 llvm_cv_gnu_make_command=''
6178 for a in "$MAKE" make gmake gnumake ; do
6179 if test -z "$a" ; then continue ; fi ;
6180 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6181 then
6182 llvm_cv_gnu_make_command=$a ;
6183 break;
6185 done
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
6188 $as_echo "$llvm_cv_gnu_make_command" >&6; }
6189 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6190 ifGNUmake='' ;
6191 else
6192 ifGNUmake='#' ;
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
6194 $as_echo "\"Not found\"" >&6; };
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6199 $as_echo_n "checking whether ln -s works... " >&6; }
6200 LN_S=$as_ln_s
6201 if test "$LN_S" = "ln -s"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6203 $as_echo "yes" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6206 $as_echo "no, using $LN_S" >&6; }
6209 # Extract the first word of "cmp", so it can be a program name with args.
6210 set dummy cmp; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_path_CMP+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 case $CMP in
6217 [\\/]* | ?:[\\/]*)
6218 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6232 done
6233 done
6234 IFS=$as_save_IFS
6236 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6238 esac
6240 CMP=$ac_cv_path_CMP
6241 if test -n "$CMP"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6243 $as_echo "$CMP" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6250 # Extract the first word of "cp", so it can be a program name with args.
6251 set dummy cp; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_path_CP+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 case $CP in
6258 [\\/]* | ?:[\\/]*)
6259 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6273 done
6274 done
6275 IFS=$as_save_IFS
6277 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6279 esac
6281 CP=$ac_cv_path_CP
6282 if test -n "$CP"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6284 $as_echo "$CP" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291 # Extract the first word of "date", so it can be a program name with args.
6292 set dummy date; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_path_DATE+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 case $DATE in
6299 [\\/]* | ?:[\\/]*)
6300 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6318 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6320 esac
6322 DATE=$ac_cv_path_DATE
6323 if test -n "$DATE"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6325 $as_echo "$DATE" >&6; }
6326 else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6332 # Extract the first word of "find", so it can be a program name with args.
6333 set dummy find; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if test "${ac_cv_path_FIND+set}" = set; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 case $FIND in
6340 [\\/]* | ?:[\\/]*)
6341 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6355 done
6356 done
6357 IFS=$as_save_IFS
6359 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6361 esac
6363 FIND=$ac_cv_path_FIND
6364 if test -n "$FIND"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
6366 $as_echo "$FIND" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6373 # Extract the first word of "grep", so it can be a program name with args.
6374 set dummy grep; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_path_GREP+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 case $GREP in
6381 [\\/]* | ?:[\\/]*)
6382 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6396 done
6397 done
6398 IFS=$as_save_IFS
6400 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6402 esac
6404 GREP=$ac_cv_path_GREP
6405 if test -n "$GREP"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
6407 $as_echo "$GREP" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6414 # Extract the first word of "mkdir", so it can be a program name with args.
6415 set dummy mkdir; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_path_MKDIR+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 case $MKDIR in
6422 [\\/]* | ?:[\\/]*)
6423 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6437 done
6438 done
6439 IFS=$as_save_IFS
6441 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6443 esac
6445 MKDIR=$ac_cv_path_MKDIR
6446 if test -n "$MKDIR"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
6448 $as_echo "$MKDIR" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6455 # Extract the first word of "mv", so it can be a program name with args.
6456 set dummy mv; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if test "${ac_cv_path_MV+set}" = set; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 case $MV in
6463 [\\/]* | ?:[\\/]*)
6464 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6478 done
6479 done
6480 IFS=$as_save_IFS
6482 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6484 esac
6486 MV=$ac_cv_path_MV
6487 if test -n "$MV"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
6489 $as_echo "$MV" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6496 if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 if test -n "$RANLIB"; then
6505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6518 done
6519 done
6520 IFS=$as_save_IFS
6524 RANLIB=$ac_cv_prog_RANLIB
6525 if test -n "$RANLIB"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6527 $as_echo "$RANLIB" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6535 if test -z "$ac_cv_prog_RANLIB"; then
6536 ac_ct_RANLIB=$RANLIB
6537 # Extract the first word of "ranlib", so it can be a program name with args.
6538 set dummy ranlib; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test -n "$ac_ct_RANLIB"; then
6545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_ac_ct_RANLIB="ranlib"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6558 done
6559 done
6560 IFS=$as_save_IFS
6564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6565 if test -n "$ac_ct_RANLIB"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6567 $as_echo "$ac_ct_RANLIB" >&6; }
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6573 if test "x$ac_ct_RANLIB" = x; then
6574 RANLIB=":"
6575 else
6576 case $cross_compiling:$ac_tool_warned in
6577 yes:)
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580 ac_tool_warned=yes ;;
6581 esac
6582 RANLIB=$ac_ct_RANLIB
6584 else
6585 RANLIB="$ac_cv_prog_RANLIB"
6588 if test -n "$ac_tool_prefix"; then
6589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6590 set dummy ${ac_tool_prefix}ar; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if test "${ac_cv_prog_AR+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if test -n "$AR"; then
6597 ac_cv_prog_AR="$AR" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_prog_AR="${ac_tool_prefix}ar"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6610 done
6611 done
6612 IFS=$as_save_IFS
6616 AR=$ac_cv_prog_AR
6617 if test -n "$AR"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6619 $as_echo "$AR" >&6; }
6620 else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6627 if test -z "$ac_cv_prog_AR"; then
6628 ac_ct_AR=$AR
6629 # Extract the first word of "ar", so it can be a program name with args.
6630 set dummy ar; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 if test -n "$ac_ct_AR"; then
6637 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_prog_ac_ct_AR="ar"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6650 done
6651 done
6652 IFS=$as_save_IFS
6656 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6657 if test -n "$ac_ct_AR"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6659 $as_echo "$ac_ct_AR" >&6; }
6660 else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6665 if test "x$ac_ct_AR" = x; then
6666 AR="false"
6667 else
6668 case $cross_compiling:$ac_tool_warned in
6669 yes:)
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned=yes ;;
6673 esac
6674 AR=$ac_ct_AR
6676 else
6677 AR="$ac_cv_prog_AR"
6680 # Extract the first word of "rm", so it can be a program name with args.
6681 set dummy rm; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_path_RM+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 case $RM in
6688 [\\/]* | ?:[\\/]*)
6689 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6703 done
6704 done
6705 IFS=$as_save_IFS
6707 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6709 esac
6711 RM=$ac_cv_path_RM
6712 if test -n "$RM"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6714 $as_echo "$RM" >&6; }
6715 else
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6721 # Extract the first word of "sed", so it can be a program name with args.
6722 set dummy sed; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_path_SED+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 case $SED in
6729 [\\/]* | ?:[\\/]*)
6730 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6748 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6750 esac
6752 SED=$ac_cv_path_SED
6753 if test -n "$SED"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6755 $as_echo "$SED" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6762 # Extract the first word of "tar", so it can be a program name with args.
6763 set dummy tar; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_path_TAR+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 case $TAR in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6789 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6791 esac
6793 TAR=$ac_cv_path_TAR
6794 if test -n "$TAR"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6796 $as_echo "$TAR" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6803 # Extract the first word of "pwd", so it can be a program name with args.
6804 set dummy pwd; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if test "${ac_cv_path_BINPWD+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 case $BINPWD in
6811 [\\/]* | ?:[\\/]*)
6812 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6826 done
6827 done
6828 IFS=$as_save_IFS
6830 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6832 esac
6834 BINPWD=$ac_cv_path_BINPWD
6835 if test -n "$BINPWD"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5
6837 $as_echo "$BINPWD" >&6; }
6838 else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6845 # Extract the first word of "Graphviz", so it can be a program name with args.
6846 set dummy Graphviz; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 case $GRAPHVIZ in
6853 [\\/]* | ?:[\\/]*)
6854 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6868 done
6869 done
6870 IFS=$as_save_IFS
6872 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6874 esac
6876 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6877 if test -n "$GRAPHVIZ"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
6879 $as_echo "$GRAPHVIZ" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6886 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6888 $as_echo "#define HAVE_GRAPHVIZ 1" >>confdefs.h
6890 if test "$llvm_cv_os_type" = "MingW" ; then
6891 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6894 cat >>confdefs.h <<_ACEOF
6895 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6896 _ACEOF
6899 # Extract the first word of "dot", so it can be a program name with args.
6900 set dummy dot; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_path_DOT+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 case $DOT in
6907 [\\/]* | ?:[\\/]*)
6908 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6922 done
6923 done
6924 IFS=$as_save_IFS
6926 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6928 esac
6930 DOT=$ac_cv_path_DOT
6931 if test -n "$DOT"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
6933 $as_echo "$DOT" >&6; }
6934 else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6940 if test "$DOT" != "echo dot" ; then
6942 $as_echo "#define HAVE_DOT 1" >>confdefs.h
6944 if test "$llvm_cv_os_type" = "MingW" ; then
6945 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6948 cat >>confdefs.h <<_ACEOF
6949 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6950 _ACEOF
6953 # Extract the first word of "fdp", so it can be a program name with args.
6954 set dummy fdp; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if test "${ac_cv_path_FDP+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 case $FDP in
6961 [\\/]* | ?:[\\/]*)
6962 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6976 done
6977 done
6978 IFS=$as_save_IFS
6980 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6982 esac
6984 FDP=$ac_cv_path_FDP
6985 if test -n "$FDP"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FDP" >&5
6987 $as_echo "$FDP" >&6; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6994 if test "$FDP" != "echo fdp" ; then
6996 $as_echo "#define HAVE_FDP 1" >>confdefs.h
6998 if test "$llvm_cv_os_type" = "MingW" ; then
6999 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7002 cat >>confdefs.h <<_ACEOF
7003 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7004 _ACEOF
7007 # Extract the first word of "neato", so it can be a program name with args.
7008 set dummy neato; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_path_NEATO+set}" = set; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 case $NEATO in
7015 [\\/]* | ?:[\\/]*)
7016 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7030 done
7031 done
7032 IFS=$as_save_IFS
7034 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7036 esac
7038 NEATO=$ac_cv_path_NEATO
7039 if test -n "$NEATO"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEATO" >&5
7041 $as_echo "$NEATO" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7048 if test "$NEATO" != "echo neato" ; then
7050 $as_echo "#define HAVE_NEATO 1" >>confdefs.h
7052 if test "$llvm_cv_os_type" = "MingW" ; then
7053 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7056 cat >>confdefs.h <<_ACEOF
7057 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7058 _ACEOF
7061 # Extract the first word of "twopi", so it can be a program name with args.
7062 set dummy twopi; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if test "${ac_cv_path_TWOPI+set}" = set; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 case $TWOPI in
7069 [\\/]* | ?:[\\/]*)
7070 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7084 done
7085 done
7086 IFS=$as_save_IFS
7088 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7090 esac
7092 TWOPI=$ac_cv_path_TWOPI
7093 if test -n "$TWOPI"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TWOPI" >&5
7095 $as_echo "$TWOPI" >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7102 if test "$TWOPI" != "echo twopi" ; then
7104 $as_echo "#define HAVE_TWOPI 1" >>confdefs.h
7106 if test "$llvm_cv_os_type" = "MingW" ; then
7107 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7110 cat >>confdefs.h <<_ACEOF
7111 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7112 _ACEOF
7115 # Extract the first word of "circo", so it can be a program name with args.
7116 set dummy circo; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if test "${ac_cv_path_CIRCO+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 case $CIRCO in
7123 [\\/]* | ?:[\\/]*)
7124 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7138 done
7139 done
7140 IFS=$as_save_IFS
7142 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7144 esac
7146 CIRCO=$ac_cv_path_CIRCO
7147 if test -n "$CIRCO"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CIRCO" >&5
7149 $as_echo "$CIRCO" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7156 if test "$CIRCO" != "echo circo" ; then
7158 $as_echo "#define HAVE_CIRCO 1" >>confdefs.h
7160 if test "$llvm_cv_os_type" = "MingW" ; then
7161 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7164 cat >>confdefs.h <<_ACEOF
7165 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7166 _ACEOF
7169 for ac_prog in gv gsview32
7171 # Extract the first word of "$ac_prog", so it can be a program name with args.
7172 set dummy $ac_prog; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if test "${ac_cv_path_GV+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 case $GV in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7194 done
7195 done
7196 IFS=$as_save_IFS
7199 esac
7201 GV=$ac_cv_path_GV
7202 if test -n "$GV"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
7204 $as_echo "$GV" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7211 test -n "$GV" && break
7212 done
7213 test -n "$GV" || GV="echo gv"
7215 if test "$GV" != "echo gv" ; then
7217 $as_echo "#define HAVE_GV 1" >>confdefs.h
7219 if test "$llvm_cv_os_type" = "MingW" ; then
7220 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7223 cat >>confdefs.h <<_ACEOF
7224 #define LLVM_PATH_GV "$GV${EXEEXT}"
7225 _ACEOF
7228 # Extract the first word of "dotty", so it can be a program name with args.
7229 set dummy dotty; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_path_DOTTY+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 case $DOTTY in
7236 [\\/]* | ?:[\\/]*)
7237 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7251 done
7252 done
7253 IFS=$as_save_IFS
7255 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7257 esac
7259 DOTTY=$ac_cv_path_DOTTY
7260 if test -n "$DOTTY"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTTY" >&5
7262 $as_echo "$DOTTY" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7269 if test "$DOTTY" != "echo dotty" ; then
7271 $as_echo "#define HAVE_DOTTY 1" >>confdefs.h
7273 if test "$llvm_cv_os_type" = "MingW" ; then
7274 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7277 cat >>confdefs.h <<_ACEOF
7278 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7279 _ACEOF
7282 # Extract the first word of "xdot.py", so it can be a program name with args.
7283 set dummy xdot.py; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if test "${ac_cv_path_XDOT_PY+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 case $XDOT_PY in
7290 [\\/]* | ?:[\\/]*)
7291 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7305 done
7306 done
7307 IFS=$as_save_IFS
7309 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7311 esac
7313 XDOT_PY=$ac_cv_path_XDOT_PY
7314 if test -n "$XDOT_PY"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDOT_PY" >&5
7316 $as_echo "$XDOT_PY" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7323 if test "$XDOT_PY" != "echo xdot.py" ; then
7325 $as_echo "#define HAVE_XDOT_PY 1" >>confdefs.h
7327 if test "$llvm_cv_os_type" = "MingW" ; then
7328 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7331 cat >>confdefs.h <<_ACEOF
7332 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7333 _ACEOF
7338 # Extract the first word of "perl", so it can be a program name with args.
7339 set dummy perl; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if test "${ac_cv_path_PERL+set}" = set; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 case $PERL in
7346 [\\/]* | ?:[\\/]*)
7347 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7361 done
7362 done
7363 IFS=$as_save_IFS
7365 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7367 esac
7369 PERL=$ac_cv_path_PERL
7370 if test -n "$PERL"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7372 $as_echo "$PERL" >&6; }
7373 else
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7379 if test "$PERL" != "none"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl 5.006 or newer" >&5
7381 $as_echo_n "checking for Perl 5.006 or newer... " >&6; }
7382 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7385 else
7386 PERL=none
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7388 $as_echo "not found" >&6; }
7393 if test x"$PERL" = xnone; then
7394 HAVE_PERL=0
7396 as_fn_error "perl is required but was not found, please install it" "$LINENO" 5
7397 else
7398 HAVE_PERL=1
7402 # Find a good install program. We prefer a C program (faster),
7403 # so one script is as good as another. But avoid the broken or
7404 # incompatible versions:
7405 # SysV /etc/install, /usr/sbin/install
7406 # SunOS /usr/etc/install
7407 # IRIX /sbin/install
7408 # AIX /bin/install
7409 # AmigaOS /C/install, which installs bootblocks on floppy discs
7410 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7411 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7412 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7413 # OS/2's system install, which has a completely different semantic
7414 # ./install, which can be erroneously created by make from ./install.sh.
7415 # Reject install programs that cannot install multiple files.
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7417 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7418 if test -z "$INSTALL"; then
7419 if test "${ac_cv_path_install+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 # Account for people who put trailing slashes in PATH elements.
7428 case $as_dir/ in #((
7429 ./ | .// | /[cC]/* | \
7430 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7431 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7432 /usr/ucb/* ) ;;
7434 # OSF1 and SCO ODT 3.0 have their own names for install.
7435 # Don't use installbsd from OSF since it installs stuff as root
7436 # by default.
7437 for ac_prog in ginstall scoinst install; do
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7440 if test $ac_prog = install &&
7441 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7442 # AIX install. It has an incompatible calling convention.
7444 elif test $ac_prog = install &&
7445 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7446 # program-specific install script used by HP pwplus--don't use.
7448 else
7449 rm -rf conftest.one conftest.two conftest.dir
7450 echo one > conftest.one
7451 echo two > conftest.two
7452 mkdir conftest.dir
7453 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7454 test -s conftest.one && test -s conftest.two &&
7455 test -s conftest.dir/conftest.one &&
7456 test -s conftest.dir/conftest.two
7457 then
7458 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7459 break 3
7463 done
7464 done
7466 esac
7468 done
7469 IFS=$as_save_IFS
7471 rm -rf conftest.one conftest.two conftest.dir
7474 if test "${ac_cv_path_install+set}" = set; then
7475 INSTALL=$ac_cv_path_install
7476 else
7477 # As a last resort, use the slow shell script. Don't cache a
7478 # value for INSTALL within a source directory, because that will
7479 # break other packages using the cache if that directory is
7480 # removed, or if the value is a relative name.
7481 INSTALL=$ac_install_sh
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7485 $as_echo "$INSTALL" >&6; }
7487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7488 # It thinks the first close brace ends the variable substitution.
7489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7495 case "$INSTALL" in
7496 [\\/$]* | ?:[\\/]* ) ;;
7497 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7498 esac
7500 # Extract the first word of "bzip2", so it can be a program name with args.
7501 set dummy bzip2; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_path_BZIP2+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 case $BZIP2 in
7508 [\\/]* | ?:[\\/]*)
7509 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7523 done
7524 done
7525 IFS=$as_save_IFS
7528 esac
7530 BZIP2=$ac_cv_path_BZIP2
7531 if test -n "$BZIP2"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7533 $as_echo "$BZIP2" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7540 # Extract the first word of "cat", so it can be a program name with args.
7541 set dummy cat; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if test "${ac_cv_path_CAT+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 case $CAT in
7548 [\\/]* | ?:[\\/]*)
7549 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7563 done
7564 done
7565 IFS=$as_save_IFS
7568 esac
7570 CAT=$ac_cv_path_CAT
7571 if test -n "$CAT"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
7573 $as_echo "$CAT" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7580 # Extract the first word of "doxygen", so it can be a program name with args.
7581 set dummy doxygen; ac_word=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 case $DOXYGEN in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7603 done
7604 done
7605 IFS=$as_save_IFS
7608 esac
7610 DOXYGEN=$ac_cv_path_DOXYGEN
7611 if test -n "$DOXYGEN"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
7613 $as_echo "$DOXYGEN" >&6; }
7614 else
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7620 # Extract the first word of "groff", so it can be a program name with args.
7621 set dummy groff; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_path_GROFF+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 case $GROFF in
7628 [\\/]* | ?:[\\/]*)
7629 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7643 done
7644 done
7645 IFS=$as_save_IFS
7648 esac
7650 GROFF=$ac_cv_path_GROFF
7651 if test -n "$GROFF"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
7653 $as_echo "$GROFF" >&6; }
7654 else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7660 # Extract the first word of "gzip", so it can be a program name with args.
7661 set dummy gzip; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if test "${ac_cv_path_GZIP+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 case $GZIP in
7668 [\\/]* | ?:[\\/]*)
7669 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7683 done
7684 done
7685 IFS=$as_save_IFS
7688 esac
7690 GZIP=$ac_cv_path_GZIP
7691 if test -n "$GZIP"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
7693 $as_echo "$GZIP" >&6; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7700 # Extract the first word of "pod2html", so it can be a program name with args.
7701 set dummy pod2html; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if test "${ac_cv_path_POD2HTML+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 case $POD2HTML in
7708 [\\/]* | ?:[\\/]*)
7709 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7723 done
7724 done
7725 IFS=$as_save_IFS
7728 esac
7730 POD2HTML=$ac_cv_path_POD2HTML
7731 if test -n "$POD2HTML"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
7733 $as_echo "$POD2HTML" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7740 # Extract the first word of "pod2man", so it can be a program name with args.
7741 set dummy pod2man; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if test "${ac_cv_path_POD2MAN+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 case $POD2MAN in
7748 [\\/]* | ?:[\\/]*)
7749 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7763 done
7764 done
7765 IFS=$as_save_IFS
7768 esac
7770 POD2MAN=$ac_cv_path_POD2MAN
7771 if test -n "$POD2MAN"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
7773 $as_echo "$POD2MAN" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7780 # Extract the first word of "pdfroff", so it can be a program name with args.
7781 set dummy pdfroff; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if test "${ac_cv_path_PDFROFF+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 case $PDFROFF in
7788 [\\/]* | ?:[\\/]*)
7789 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7803 done
7804 done
7805 IFS=$as_save_IFS
7808 esac
7810 PDFROFF=$ac_cv_path_PDFROFF
7811 if test -n "$PDFROFF"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFROFF" >&5
7813 $as_echo "$PDFROFF" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7820 # Extract the first word of "runtest", so it can be a program name with args.
7821 set dummy runtest; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if test "${ac_cv_path_RUNTEST+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 case $RUNTEST in
7828 [\\/]* | ?:[\\/]*)
7829 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7839 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7843 done
7844 done
7845 IFS=$as_save_IFS
7848 esac
7850 RUNTEST=$ac_cv_path_RUNTEST
7851 if test -n "$RUNTEST"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7853 $as_echo "$RUNTEST" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7861 no_itcl=true
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the tclsh program in tclinclude directory" >&5
7863 $as_echo_n "checking for the tclsh program in tclinclude directory... " >&6; }
7865 # Check whether --with-tclinclude was given.
7866 if test "${with_tclinclude+set}" = set; then :
7867 withval=$with_tclinclude; with_tclinclude=${withval}
7868 else
7869 with_tclinclude=''
7872 if test "${ac_cv_path_tclsh+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7876 if test x"${with_tclinclude}" != x ; then
7877 if test -f ${with_tclinclude}/tclsh ; then
7878 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7879 elif test -f ${with_tclinclude}/src/tclsh ; then
7880 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7881 else
7882 as_fn_error "${with_tclinclude} directory doesn't contain tclsh" "$LINENO" 5
7888 if test x"${ac_cv_path_tclsh}" = x ; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7890 $as_echo "none" >&6; }
7891 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
7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy $ac_prog; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_path_TCLSH+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 case $TCLSH in
7901 [\\/]* | ?:[\\/]*)
7902 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7912 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7916 done
7917 done
7918 IFS=$as_save_IFS
7921 esac
7923 TCLSH=$ac_cv_path_TCLSH
7924 if test -n "$TCLSH"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
7926 $as_echo "$TCLSH" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7933 test -n "$TCLSH" && break
7934 done
7936 if test x"${TCLSH}" = x ; then
7937 ac_cv_path_tclsh='';
7938 else
7939 ac_cv_path_tclsh="${TCLSH}";
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_tclsh}" >&5
7943 $as_echo "${ac_cv_path_tclsh}" >&6; }
7944 TCLSH="${ac_cv_path_tclsh}"
7948 # Extract the first word of "zip", so it can be a program name with args.
7949 set dummy zip; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_path_ZIP+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 case $ZIP in
7956 [\\/]* | ?:[\\/]*)
7957 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7971 done
7972 done
7973 IFS=$as_save_IFS
7976 esac
7978 ZIP=$ac_cv_path_ZIP
7979 if test -n "$ZIP"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7981 $as_echo "$ZIP" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7988 for ac_prog in ocamlc
7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
7991 set dummy $ac_prog; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_path_OCAMLC+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 case $OCAMLC in
7998 [\\/]* | ?:[\\/]*)
7999 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8013 done
8014 done
8015 IFS=$as_save_IFS
8018 esac
8020 OCAMLC=$ac_cv_path_OCAMLC
8021 if test -n "$OCAMLC"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
8023 $as_echo "$OCAMLC" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8030 test -n "$OCAMLC" && break
8031 done
8033 for ac_prog in ocamlopt
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if test "${ac_cv_path_OCAMLOPT+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 case $OCAMLOPT in
8043 [\\/]* | ?:[\\/]*)
8044 ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8055 $as_echo "$as_me:${as_lineno-$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 OCAMLOPT=$ac_cv_path_OCAMLOPT
8066 if test -n "$OCAMLOPT"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
8068 $as_echo "$OCAMLOPT" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8075 test -n "$OCAMLOPT" && break
8076 done
8078 for ac_prog in ocamldep
8080 # Extract the first word of "$ac_prog", so it can be a program name with args.
8081 set dummy $ac_prog; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if test "${ac_cv_path_OCAMLDEP+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 case $OCAMLDEP in
8088 [\\/]* | ?:[\\/]*)
8089 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093 for as_dir in $PATH
8095 IFS=$as_save_IFS
8096 test -z "$as_dir" && as_dir=.
8097 for ac_exec_ext in '' $ac_executable_extensions; do
8098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8099 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 break 2
8103 done
8104 done
8105 IFS=$as_save_IFS
8108 esac
8110 OCAMLDEP=$ac_cv_path_OCAMLDEP
8111 if test -n "$OCAMLDEP"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
8113 $as_echo "$OCAMLDEP" >&6; }
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8120 test -n "$OCAMLDEP" && break
8121 done
8123 for ac_prog in ocamldoc
8125 # Extract the first word of "$ac_prog", so it can be a program name with args.
8126 set dummy $ac_prog; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if test "${ac_cv_path_OCAMLDOC+set}" = set; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 case $OCAMLDOC in
8133 [\\/]* | ?:[\\/]*)
8134 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8150 IFS=$as_save_IFS
8153 esac
8155 OCAMLDOC=$ac_cv_path_OCAMLDOC
8156 if test -n "$OCAMLDOC"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
8158 $as_echo "$OCAMLDOC" >&6; }
8159 else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8165 test -n "$OCAMLDOC" && break
8166 done
8168 for ac_prog in gas as
8170 # Extract the first word of "$ac_prog", so it can be a program name with args.
8171 set dummy $ac_prog; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_path_GAS+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 case $GAS in
8178 [\\/]* | ?:[\\/]*)
8179 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8195 IFS=$as_save_IFS
8198 esac
8200 GAS=$ac_cv_path_GAS
8201 if test -n "$GAS"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5
8203 $as_echo "$GAS" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8210 test -n "$GAS" && break
8211 done
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version" >&5
8215 $as_echo_n "checking for linker version... " >&6; }
8216 if test "${llvm_cv_link_version+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8220 version_string="$(ld -v 2>&1 | head -1)"
8222 # Check for ld64.
8223 if (echo "$version_string" | grep -q "ld64"); then
8224 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8225 else
8226 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_version" >&5
8231 $as_echo "$llvm_cv_link_version" >&6; }
8233 cat >>confdefs.h <<_ACEOF
8234 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8235 _ACEOF
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-R<path> option" >&5
8240 $as_echo_n "checking for compiler -Wl,-R<path> option... " >&6; }
8241 if test "${llvm_cv_link_use_r+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 ac_ext=c
8245 ac_cpp='$CPP $CPPFLAGS'
8246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8250 oldcflags="$CFLAGS"
8251 CFLAGS="$CFLAGS -Wl,-R."
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8256 main ()
8260 return 0;
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 llvm_cv_link_use_r=yes
8265 else
8266 llvm_cv_link_use_r=no
8268 rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 CFLAGS="$oldcflags"
8271 ac_ext=c
8272 ac_cpp='$CPP $CPPFLAGS'
8273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_r" >&5
8280 $as_echo "$llvm_cv_link_use_r" >&6; }
8281 if test "$llvm_cv_link_use_r" = yes ; then
8283 $as_echo "#define HAVE_LINK_R 1" >>confdefs.h
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-export-dynamic option" >&5
8289 $as_echo_n "checking for compiler -Wl,-export-dynamic option... " >&6; }
8290 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 ac_ext=c
8294 ac_cpp='$CPP $CPPFLAGS'
8295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8299 oldcflags="$CFLAGS"
8300 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8305 main ()
8309 return 0;
8311 _ACEOF
8312 if ac_fn_c_try_link "$LINENO"; then :
8313 llvm_cv_link_use_export_dynamic=yes
8314 else
8315 llvm_cv_link_use_export_dynamic=no
8317 rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 CFLAGS="$oldcflags"
8320 ac_ext=c
8321 ac_cpp='$CPP $CPPFLAGS'
8322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_export_dynamic" >&5
8329 $as_echo "$llvm_cv_link_use_export_dynamic" >&6; }
8330 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8332 $as_echo "#define HAVE_LINK_EXPORT_DYNAMIC 1" >>confdefs.h
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,--version-script option" >&5
8338 $as_echo_n "checking for compiler -Wl,--version-script option... " >&6; }
8339 if test "${llvm_cv_link_use_version_script+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 ac_ext=c
8343 ac_cpp='$CPP $CPPFLAGS'
8344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8348 oldcflags="$CFLAGS"
8350 # The following code is from the autoconf manual,
8351 # "11.13: Limitations of Usual Tools".
8352 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8353 # Use mktemp if possible; otherwise fall back on mkdir,
8354 # with $RANDOM to make collisions less likely.
8355 : ${TMPDIR=/tmp}
8357 tmp=`
8358 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8359 ` &&
8360 test -n "$tmp" && test -d "$tmp"
8361 } || {
8362 tmp=$TMPDIR/foo$$-$RANDOM
8363 (umask 077 && mkdir "$tmp")
8364 } || exit $?
8366 echo "{" > "$tmp/export.map"
8367 echo " global: main;" >> "$tmp/export.map"
8368 echo " local: *;" >> "$tmp/export.map"
8369 echo "};" >> "$tmp/export.map"
8371 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8376 main ()
8380 return 0;
8382 _ACEOF
8383 if ac_fn_c_try_link "$LINENO"; then :
8384 llvm_cv_link_use_version_script=yes
8385 else
8386 llvm_cv_link_use_version_script=no
8388 rm -f core conftest.err conftest.$ac_objext \
8389 conftest$ac_exeext conftest.$ac_ext
8390 rm "$tmp/export.map"
8391 rmdir "$tmp"
8392 CFLAGS="$oldcflags"
8393 ac_ext=c
8394 ac_cpp='$CPP $CPPFLAGS'
8395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_version_script" >&5
8402 $as_echo "$llvm_cv_link_use_version_script" >&6; }
8403 if test "$llvm_cv_link_use_version_script" = yes ; then
8404 HAVE_LINK_VERSION_SCRIPT=1
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8412 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8413 if test "${ac_cv_c_const+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8420 main ()
8422 /* FIXME: Include the comments suggested by Paul. */
8423 #ifndef __cplusplus
8424 /* Ultrix mips cc rejects this. */
8425 typedef int charset[2];
8426 const charset cs;
8427 /* SunOS 4.1.1 cc rejects this. */
8428 char const *const *pcpcc;
8429 char **ppc;
8430 /* NEC SVR4.0.2 mips cc rejects this. */
8431 struct point {int x, y;};
8432 static struct point const zero = {0,0};
8433 /* AIX XL C 1.02.0.0 rejects this.
8434 It does not let you subtract one const X* pointer from another in
8435 an arm of an if-expression whose if-part is not a constant
8436 expression */
8437 const char *g = "string";
8438 pcpcc = &g + (g ? g-g : 0);
8439 /* HPUX 7.0 cc rejects these. */
8440 ++pcpcc;
8441 ppc = (char**) pcpcc;
8442 pcpcc = (char const *const *) ppc;
8443 { /* SCO 3.2v4 cc rejects this. */
8444 char *t;
8445 char const *s = 0 ? (char *) 0 : (char const *) 0;
8447 *t++ = 0;
8448 if (s) return 0;
8450 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8451 int x[] = {25, 17};
8452 const int *foo = &x[0];
8453 ++foo;
8455 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8456 typedef const int *iptr;
8457 iptr p = 0;
8458 ++p;
8460 { /* AIX XL C 1.02.0.0 rejects this saying
8461 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8462 struct s { int j; const int *ap[3]; };
8463 struct s *b; b->j = 5;
8465 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8466 const int foo = 10;
8467 if (!foo) return 0;
8469 return !cs[0] && !zero.x;
8470 #endif
8473 return 0;
8475 _ACEOF
8476 if ac_fn_c_try_compile "$LINENO"; then :
8477 ac_cv_c_const=yes
8478 else
8479 ac_cv_c_const=no
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8484 $as_echo "$ac_cv_c_const" >&6; }
8485 if test $ac_cv_c_const = no; then
8487 $as_echo "#define const /**/" >>confdefs.h
8491 ac_header_dirent=no
8492 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8493 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8495 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <sys/types.h>
8502 #include <$ac_hdr>
8505 main ()
8507 if ((DIR *) 0)
8508 return 0;
8510 return 0;
8512 _ACEOF
8513 if ac_fn_c_try_compile "$LINENO"; then :
8514 eval "$as_ac_Header=yes"
8515 else
8516 eval "$as_ac_Header=no"
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 eval ac_res=\$$as_ac_Header
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8522 $as_echo "$ac_res" >&6; }
8523 eval as_val=\$$as_ac_Header
8524 if test "x$as_val" = x""yes; then :
8525 cat >>confdefs.h <<_ACEOF
8526 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8527 _ACEOF
8529 ac_header_dirent=$ac_hdr; break
8532 done
8533 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8534 if test $ac_header_dirent = dirent.h; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8536 $as_echo_n "checking for library containing opendir... " >&6; }
8537 if test "${ac_cv_search_opendir+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 ac_func_search_save_LIBS=$LIBS
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8544 /* Override any GCC internal prototype to avoid an error.
8545 Use char because int might match the return type of a GCC
8546 builtin and then its argument prototype would still apply. */
8547 #ifdef __cplusplus
8548 extern "C"
8549 #endif
8550 char opendir ();
8552 main ()
8554 return opendir ();
8556 return 0;
8558 _ACEOF
8559 for ac_lib in '' dir; do
8560 if test -z "$ac_lib"; then
8561 ac_res="none required"
8562 else
8563 ac_res=-l$ac_lib
8564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8566 if ac_fn_c_try_link "$LINENO"; then :
8567 ac_cv_search_opendir=$ac_res
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext
8571 if test "${ac_cv_search_opendir+set}" = set; then :
8572 break
8574 done
8575 if test "${ac_cv_search_opendir+set}" = set; then :
8577 else
8578 ac_cv_search_opendir=no
8580 rm conftest.$ac_ext
8581 LIBS=$ac_func_search_save_LIBS
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8584 $as_echo "$ac_cv_search_opendir" >&6; }
8585 ac_res=$ac_cv_search_opendir
8586 if test "$ac_res" != no; then :
8587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8593 $as_echo_n "checking for library containing opendir... " >&6; }
8594 if test "${ac_cv_search_opendir+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 ac_func_search_save_LIBS=$LIBS
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8601 /* Override any GCC internal prototype to avoid an error.
8602 Use char because int might match the return type of a GCC
8603 builtin and then its argument prototype would still apply. */
8604 #ifdef __cplusplus
8605 extern "C"
8606 #endif
8607 char opendir ();
8609 main ()
8611 return opendir ();
8613 return 0;
8615 _ACEOF
8616 for ac_lib in '' x; do
8617 if test -z "$ac_lib"; then
8618 ac_res="none required"
8619 else
8620 ac_res=-l$ac_lib
8621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8623 if ac_fn_c_try_link "$LINENO"; then :
8624 ac_cv_search_opendir=$ac_res
8626 rm -f core conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext
8628 if test "${ac_cv_search_opendir+set}" = set; then :
8629 break
8631 done
8632 if test "${ac_cv_search_opendir+set}" = set; then :
8634 else
8635 ac_cv_search_opendir=no
8637 rm conftest.$ac_ext
8638 LIBS=$ac_func_search_save_LIBS
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8641 $as_echo "$ac_cv_search_opendir" >&6; }
8642 ac_res=$ac_cv_search_opendir
8643 if test "$ac_res" != no; then :
8644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8650 for ac_header in dlfcn.h
8651 do :
8652 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8653 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8654 cat >>confdefs.h <<_ACEOF
8655 #define HAVE_DLFCN_H 1
8656 _ACEOF
8660 done
8662 # Check whether --enable-ltdl-install was given.
8663 if test "${enable_ltdl_install+set}" = set; then :
8664 enableval=$enable_ltdl_install;
8668 if test x"${enable_ltdl_install-no}" != xno; then
8669 INSTALL_LTDL_TRUE=
8670 INSTALL_LTDL_FALSE='#'
8671 else
8672 INSTALL_LTDL_TRUE='#'
8673 INSTALL_LTDL_FALSE=
8676 if test x"${enable_ltdl_convenience-no}" != xno; then
8677 CONVENIENCE_LTDL_TRUE=
8678 CONVENIENCE_LTDL_FALSE='#'
8679 else
8680 CONVENIENCE_LTDL_TRUE='#'
8681 CONVENIENCE_LTDL_FALSE=
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8687 library_names_spec=
8688 libname_spec='lib$name'
8689 soname_spec=
8690 shrext_cmds=".so"
8691 postinstall_cmds=
8692 postuninstall_cmds=
8693 finish_cmds=
8694 finish_eval=
8695 shlibpath_var=
8696 shlibpath_overrides_runpath=unknown
8697 version_type=none
8698 dynamic_linker="$host_os ld.so"
8699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8700 if test "$GCC" = yes; then
8701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8702 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8703 # if the path contains ";" then we assume it to be the separator
8704 # otherwise default to the standard path separator (i.e. ":") - it is
8705 # assumed that no part of a normal pathname contains ";" but that should
8706 # okay in the real world where ";" in dirpaths is itself problematic.
8707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8708 else
8709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8711 else
8712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8714 need_lib_prefix=unknown
8715 hardcode_into_libs=no
8717 # when you set need_version to no, make sure it does not cause -set_version
8718 # flags to be left without arguments
8719 need_version=unknown
8721 case $host_os in
8722 aix3*)
8723 version_type=linux
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8725 shlibpath_var=LIBPATH
8727 # AIX 3 has no versioning support, so we append a major version to the name.
8728 soname_spec='${libname}${release}${shared_ext}$major'
8731 aix4* | aix5*)
8732 version_type=linux
8733 need_lib_prefix=no
8734 need_version=no
8735 hardcode_into_libs=yes
8736 if test "$host_cpu" = ia64; then
8737 # AIX 5 supports IA64
8738 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8739 shlibpath_var=LD_LIBRARY_PATH
8740 else
8741 # With GCC up to 2.95.x, collect2 would create an import file
8742 # for dependence libraries. The import file would start with
8743 # the line `#! .'. This would cause the generated library to
8744 # depend on `.', always an invalid library. This was fixed in
8745 # development snapshots of GCC prior to 3.0.
8746 case $host_os in
8747 aix4 | aix4.[01] | aix4.[01].*)
8748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8749 echo ' yes '
8750 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8752 else
8753 can_build_shared=no
8756 esac
8757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8758 # soname into executable. Probably we can add versioning support to
8759 # collect2, so additional links can be useful in future.
8760 if test "$aix_use_runtimelinking" = yes; then
8761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8762 # instead of lib<name>.a to let people know that these are not
8763 # typical AIX shared libraries.
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8765 else
8766 # We preserve .a as extension for shared libraries through AIX4.2
8767 # and later when we are not doing run time linking.
8768 library_names_spec='${libname}${release}.a $libname.a'
8769 soname_spec='${libname}${release}${shared_ext}$major'
8771 shlibpath_var=LIBPATH
8775 amigaos*)
8776 library_names_spec='$libname.ixlibrary $libname.a'
8777 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8778 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'
8781 beos*)
8782 library_names_spec='${libname}${shared_ext}'
8783 dynamic_linker="$host_os ld.so"
8784 shlibpath_var=LIBRARY_PATH
8787 bsdi[45]*)
8788 version_type=linux
8789 need_version=no
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8793 shlibpath_var=LD_LIBRARY_PATH
8794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8796 # the default ld.so.conf also contains /usr/contrib/lib and
8797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8798 # libtool to hard-code these into programs
8801 cygwin* | mingw* | pw32*)
8802 version_type=windows
8803 shrext_cmds=".dll"
8804 need_version=no
8805 need_lib_prefix=no
8807 case $GCC,$host_os in
8808 yes,cygwin* | yes,mingw* | yes,pw32*)
8809 library_names_spec='$libname.dll.a'
8810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8811 postinstall_cmds='base_file=`basename \${file}`~
8812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8813 dldir=$destdir/`dirname \$dlpath`~
8814 test -d \$dldir || mkdir -p \$dldir~
8815 $install_prog $dir/$dlname \$dldir/$dlname~
8816 chmod a+x \$dldir/$dlname'
8817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8818 dlpath=$dir/\$dldll~
8819 $rm \$dlpath'
8820 shlibpath_overrides_runpath=yes
8822 case $host_os in
8823 cygwin*)
8824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8825 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8826 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8828 mingw*)
8829 # MinGW DLLs use traditional 'lib' prefix
8830 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8832 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8833 # It is most probably a Windows format PATH printed by
8834 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8835 # path with ; separators, and with drive letters. We can handle the
8836 # drive letters (cygwin fileutils understands them), so leave them,
8837 # especially as we might pass files found there to a mingw objdump,
8838 # which wouldn't understand a cygwinified path. Ahh.
8839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8840 else
8841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8844 pw32*)
8845 # pw32 DLLs use 'pw' prefix rather than 'lib'
8846 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8848 esac
8852 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8854 esac
8855 dynamic_linker='Win32 ld.exe'
8856 # FIXME: first we should search . and the directory the executable is in
8857 shlibpath_var=PATH
8860 darwin* | rhapsody*)
8861 dynamic_linker="$host_os dyld"
8862 version_type=darwin
8863 need_lib_prefix=no
8864 need_version=no
8865 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8866 soname_spec='${libname}${release}${major}$shared_ext'
8867 shlibpath_overrides_runpath=yes
8868 shlibpath_var=DYLD_LIBRARY_PATH
8869 shrext_cmds='.dylib'
8870 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8871 if test "$GCC" = yes; then
8872 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"`
8873 else
8874 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8876 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8879 dgux*)
8880 version_type=linux
8881 need_lib_prefix=no
8882 need_version=no
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 shlibpath_var=LD_LIBRARY_PATH
8888 freebsd1*)
8889 dynamic_linker=no
8892 kfreebsd*-gnu)
8893 version_type=linux
8894 need_lib_prefix=no
8895 need_version=no
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 shlibpath_overrides_runpath=no
8900 hardcode_into_libs=yes
8901 dynamic_linker='GNU ld.so'
8904 freebsd* | dragonfly*)
8905 # DragonFly does not have aout. When/if they implement a new
8906 # versioning mechanism, adjust this.
8907 if test -x /usr/bin/objformat; then
8908 objformat=`/usr/bin/objformat`
8909 else
8910 case $host_os in
8911 freebsd[123]*) objformat=aout ;;
8912 *) objformat=elf ;;
8913 esac
8915 version_type=freebsd-$objformat
8916 case $version_type in
8917 freebsd-elf*)
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8919 need_version=no
8920 need_lib_prefix=no
8922 freebsd-*)
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8924 need_version=yes
8926 esac
8927 shlibpath_var=LD_LIBRARY_PATH
8928 case $host_os in
8929 freebsd2*)
8930 shlibpath_overrides_runpath=yes
8932 freebsd3.[01]* | freebsdelf3.[01]*)
8933 shlibpath_overrides_runpath=yes
8934 hardcode_into_libs=yes
8936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8938 shlibpath_overrides_runpath=no
8939 hardcode_into_libs=yes
8941 freebsd*) # from 4.6 on
8942 shlibpath_overrides_runpath=yes
8943 hardcode_into_libs=yes
8945 esac
8948 gnu*)
8949 version_type=linux
8950 need_lib_prefix=no
8951 need_version=no
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 hardcode_into_libs=yes
8958 hpux9* | hpux10* | hpux11*)
8959 # Give a soname corresponding to the major version so that dld.sl refuses to
8960 # link against other versions.
8961 version_type=sunos
8962 need_lib_prefix=no
8963 need_version=no
8964 case $host_cpu in
8965 ia64*)
8966 shrext_cmds='.so'
8967 hardcode_into_libs=yes
8968 dynamic_linker="$host_os dld.so"
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 if test "X$HPUX_IA64_MODE" = X32; then
8974 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8975 else
8976 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8980 hppa*64*)
8981 shrext_cmds='.sl'
8982 hardcode_into_libs=yes
8983 dynamic_linker="$host_os dld.sl"
8984 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8992 shrext_cmds='.sl'
8993 dynamic_linker="$host_os dld.sl"
8994 shlibpath_var=SHLIB_PATH
8995 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8999 esac
9000 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9001 postinstall_cmds='chmod 555 $lib'
9004 interix3*)
9005 version_type=linux
9006 need_lib_prefix=no
9007 need_version=no
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 shlibpath_overrides_runpath=no
9013 hardcode_into_libs=yes
9016 irix5* | irix6* | nonstopux*)
9017 case $host_os in
9018 nonstopux*) version_type=nonstopux ;;
9020 if test "$lt_cv_prog_gnu_ld" = yes; then
9021 version_type=linux
9022 else
9023 version_type=irix
9024 fi ;;
9025 esac
9026 need_lib_prefix=no
9027 need_version=no
9028 soname_spec='${libname}${release}${shared_ext}$major'
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9030 case $host_os in
9031 irix5* | nonstopux*)
9032 libsuff= shlibsuff=
9035 case $LD in # libtool.m4 will add one of these switches to LD
9036 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9037 libsuff= shlibsuff= libmagic=32-bit;;
9038 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9039 libsuff=32 shlibsuff=N32 libmagic=N32;;
9040 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9041 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9042 *) libsuff= shlibsuff= libmagic=never-match;;
9043 esac
9045 esac
9046 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9047 shlibpath_overrides_runpath=no
9048 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9049 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9050 hardcode_into_libs=yes
9053 # No shared lib support for Linux oldld, aout, or coff.
9054 linux*oldld* | linux*aout* | linux*coff*)
9055 dynamic_linker=no
9058 # This must be Linux ELF.
9059 linux*)
9060 version_type=linux
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=no
9068 # This implies no fast_install, which is unacceptable.
9069 # Some rework will be needed to allow for fast_install
9070 # before this can be enabled.
9071 hardcode_into_libs=yes
9073 # Append ld.so.conf contents to the search path
9074 if test -f /etc/ld.so.conf; then
9075 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' ' '`
9076 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9079 # We used to test for /lib/ld.so.1 and disable shared libraries on
9080 # powerpc, because MkLinux only supported shared libraries with the
9081 # GNU dynamic linker. Since this was broken with cross compilers,
9082 # most powerpc-linux boxes support dynamic linking these days and
9083 # people can always --disable-shared, the test was removed, and we
9084 # assume the GNU/Linux dynamic linker is in use.
9085 dynamic_linker='GNU/Linux ld.so'
9088 knetbsd*-gnu)
9089 version_type=linux
9090 need_lib_prefix=no
9091 need_version=no
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=no
9096 hardcode_into_libs=yes
9097 dynamic_linker='GNU ld.so'
9100 netbsd*)
9101 version_type=sunos
9102 need_lib_prefix=no
9103 need_version=no
9104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9107 dynamic_linker='NetBSD (a.out) ld.so'
9108 else
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 dynamic_linker='NetBSD ld.elf_so'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9115 hardcode_into_libs=yes
9118 newsos6)
9119 version_type=linux
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=yes
9125 nto-qnx*)
9126 version_type=linux
9127 need_lib_prefix=no
9128 need_version=no
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9135 openbsd*)
9136 version_type=sunos
9137 sys_lib_dlsearch_path_spec="/usr/lib"
9138 need_lib_prefix=no
9139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9140 case $host_os in
9141 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9142 *) need_version=no ;;
9143 esac
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9148 case $host_os in
9149 openbsd2.[89] | openbsd2.[89].*)
9150 shlibpath_overrides_runpath=no
9153 shlibpath_overrides_runpath=yes
9155 esac
9156 else
9157 shlibpath_overrides_runpath=yes
9161 os2*)
9162 libname_spec='$name'
9163 shrext_cmds=".dll"
9164 need_lib_prefix=no
9165 library_names_spec='$libname${shared_ext} $libname.a'
9166 dynamic_linker='OS/2 ld.exe'
9167 shlibpath_var=LIBPATH
9170 osf3* | osf4* | osf5*)
9171 version_type=osf
9172 need_lib_prefix=no
9173 need_version=no
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9181 solaris*)
9182 version_type=linux
9183 need_lib_prefix=no
9184 need_version=no
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 shlibpath_overrides_runpath=yes
9189 hardcode_into_libs=yes
9190 # ldd complains unless libraries are executable
9191 postinstall_cmds='chmod +x $lib'
9194 sunos4*)
9195 version_type=sunos
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=yes
9200 if test "$with_gnu_ld" = yes; then
9201 need_lib_prefix=no
9203 need_version=yes
9206 sysv4 | sysv4.3*)
9207 version_type=linux
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 case $host_vendor in
9212 sni)
9213 shlibpath_overrides_runpath=no
9214 need_lib_prefix=no
9215 export_dynamic_flag_spec='${wl}-Blargedynsym'
9216 runpath_var=LD_RUN_PATH
9218 siemens)
9219 need_lib_prefix=no
9221 motorola)
9222 need_lib_prefix=no
9223 need_version=no
9224 shlibpath_overrides_runpath=no
9225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9227 esac
9230 sysv4*MP*)
9231 if test -d /usr/nec ;then
9232 version_type=linux
9233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9234 soname_spec='$libname${shared_ext}.$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9240 version_type=freebsd-elf
9241 need_lib_prefix=no
9242 need_version=no
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 hardcode_into_libs=yes
9247 if test "$with_gnu_ld" = yes; then
9248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9249 shlibpath_overrides_runpath=no
9250 else
9251 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9252 shlibpath_overrides_runpath=yes
9253 case $host_os in
9254 sco3.2v5*)
9255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9257 esac
9259 sys_lib_dlsearch_path_spec='/usr/lib'
9262 uts4*)
9263 version_type=linux
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9270 dynamic_linker=no
9272 esac
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9274 $as_echo "$dynamic_linker" >&6; }
9275 test "$dynamic_linker" = no && can_build_shared=no
9277 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9278 if test "$GCC" = yes; then
9279 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
9284 $as_echo_n "checking which extension is used for loadable modules... " >&6; }
9285 if test "${libltdl_cv_shlibext+set}" = set; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9289 module=yes
9290 eval libltdl_cv_shlibext=$shrext_cmds
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
9294 $as_echo "$libltdl_cv_shlibext" >&6; }
9295 if test -n "$libltdl_cv_shlibext"; then
9297 cat >>confdefs.h <<_ACEOF
9298 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9299 _ACEOF
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
9305 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
9306 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 libltdl_cv_shlibpath_var="$shlibpath_var"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
9312 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
9313 if test -n "$libltdl_cv_shlibpath_var"; then
9315 cat >>confdefs.h <<_ACEOF
9316 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9317 _ACEOF
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
9323 $as_echo_n "checking for the default library search path... " >&6; }
9324 if test "${libltdl_cv_sys_search_path+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
9330 $as_echo "$libltdl_cv_sys_search_path" >&6; }
9331 if test -n "$libltdl_cv_sys_search_path"; then
9332 sys_search_path=
9333 for dir in $libltdl_cv_sys_search_path; do
9334 if test -z "$sys_search_path"; then
9335 sys_search_path="$dir"
9336 else
9337 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9339 done
9341 cat >>confdefs.h <<_ACEOF
9342 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9343 _ACEOF
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9348 $as_echo_n "checking for objdir... " >&6; }
9349 if test "${libltdl_cv_objdir+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 libltdl_cv_objdir="$objdir"
9353 if test -n "$objdir"; then
9355 else
9356 rm -f .libs 2>/dev/null
9357 mkdir .libs 2>/dev/null
9358 if test -d .libs; then
9359 libltdl_cv_objdir=.libs
9360 else
9361 # MS-DOS does not allow filenames that begin with a dot.
9362 libltdl_cv_objdir=_libs
9364 rmdir .libs 2>/dev/null
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
9369 $as_echo "$libltdl_cv_objdir" >&6; }
9371 cat >>confdefs.h <<_ACEOF
9372 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9373 _ACEOF
9380 # Check for command to grab the raw symbol name followed by C symbol from nm.
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9382 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9383 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9387 # These are sane defaults that work on at least a few old systems.
9388 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9390 # Character class describing NM global symbol codes.
9391 symcode='[BCDEGRST]'
9393 # Regexp to match symbols that can be accessed directly from C.
9394 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9396 # Transform an extracted symbol line into a proper C declaration
9397 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9399 # Transform an extracted symbol line into symbol name and symbol address
9400 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'"
9402 # Define system-specific variables.
9403 case $host_os in
9404 aix*)
9405 symcode='[BCDT]'
9407 cygwin* | mingw* | pw32*)
9408 symcode='[ABCDGISTW]'
9410 hpux*) # Its linker distinguishes data from code symbols
9411 if test "$host_cpu" = ia64; then
9412 symcode='[ABCDEGRST]'
9414 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9415 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'"
9417 linux*)
9418 if test "$host_cpu" = ia64; then
9419 symcode='[ABCDGIRSTW]'
9420 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9421 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'"
9424 irix* | nonstopux*)
9425 symcode='[BCDEGRST]'
9427 osf*)
9428 symcode='[BCDEGQRST]'
9430 solaris*)
9431 symcode='[BDRT]'
9433 sco3.2v5*)
9434 symcode='[DT]'
9436 sysv4.2uw2*)
9437 symcode='[DT]'
9439 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9440 symcode='[ABDT]'
9442 sysv4)
9443 symcode='[DFNSTU]'
9445 esac
9447 # Handle CRLF in mingw tool chain
9448 opt_cr=
9449 case $build_os in
9450 mingw*)
9451 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9453 esac
9455 # If we're using GNU nm, then use its standard symbol codes.
9456 case `$NM -V 2>&1` in
9457 *GNU* | *'with BFD'*)
9458 symcode='[ABCDGIRSTW]' ;;
9459 esac
9461 # Try without a prefix undercore, then with it.
9462 for ac_symprfx in "" "_"; do
9464 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9465 symxfrm="\\1 $ac_symprfx\\2 \\2"
9467 # Write the raw and C identifiers.
9468 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9470 # Check to see that the pipe works correctly.
9471 pipe_works=no
9473 rm -f conftest*
9474 cat > conftest.$ac_ext <<EOF
9475 #ifdef __cplusplus
9476 extern "C" {
9477 #endif
9478 char nm_test_var;
9479 void nm_test_func(){}
9480 #ifdef __cplusplus
9482 #endif
9483 int main(){nm_test_var='a';nm_test_func();return(0);}
9486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9487 (eval $ac_compile) 2>&5
9488 ac_status=$?
9489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9490 test $ac_status = 0; }; then
9491 # Now try to grab the symbols.
9492 nlist=conftest.nm
9493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9494 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9495 ac_status=$?
9496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9497 test $ac_status = 0; } && test -s "$nlist"; then
9498 # Try sorting and uniquifying the output.
9499 if sort "$nlist" | uniq > "$nlist"T; then
9500 mv -f "$nlist"T "$nlist"
9501 else
9502 rm -f "$nlist"T
9505 # Make sure that we snagged all the symbols we need.
9506 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9507 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9508 cat <<EOF > conftest.$ac_ext
9509 #ifdef __cplusplus
9510 extern "C" {
9511 #endif
9514 # Now generate the symbol file.
9515 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9517 cat <<EOF >> conftest.$ac_ext
9518 #if defined (__STDC__) && __STDC__
9519 # define lt_ptr_t void *
9520 #else
9521 # define lt_ptr_t char *
9522 # define const
9523 #endif
9525 /* The mapping between symbol names and symbols. */
9526 const struct {
9527 const char *name;
9528 lt_ptr_t address;
9530 lt_preloaded_symbols[] =
9533 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9534 cat <<\EOF >> conftest.$ac_ext
9535 {0, (lt_ptr_t) 0}
9538 #ifdef __cplusplus
9540 #endif
9542 # Now try linking the two files.
9543 mv conftest.$ac_objext conftstm.$ac_objext
9544 lt_save_LIBS="$LIBS"
9545 lt_save_CFLAGS="$CFLAGS"
9546 LIBS="conftstm.$ac_objext"
9547 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9549 (eval $ac_link) 2>&5
9550 ac_status=$?
9551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9552 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9553 pipe_works=yes
9555 LIBS="$lt_save_LIBS"
9556 CFLAGS="$lt_save_CFLAGS"
9557 else
9558 echo "cannot find nm_test_func in $nlist" >&5
9560 else
9561 echo "cannot find nm_test_var in $nlist" >&5
9563 else
9564 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9566 else
9567 echo "$progname: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9570 rm -f conftest* conftst*
9572 # Do not use the global_symbol_pipe unless it works.
9573 if test "$pipe_works" = yes; then
9574 break
9575 else
9576 lt_cv_sys_global_symbol_pipe=
9578 done
9582 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9583 lt_cv_sys_global_symbol_to_cdecl=
9585 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9587 $as_echo "failed" >&6; }
9588 else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9590 $as_echo "ok" >&6; }
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
9595 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
9596 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9600 libltdl_cv_preloaded_symbols=yes
9601 else
9602 libltdl_cv_preloaded_symbols=no
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
9607 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
9608 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9610 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
9614 LIBADD_DL=
9616 ac_ext=c
9617 ac_cpp='$CPP $CPPFLAGS'
9618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9623 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9624 if test "x$ac_cv_func_shl_load" = x""yes; then :
9626 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
9628 else
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9630 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9631 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-ldld $LIBS"
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9639 /* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 char shl_load ();
9647 main ()
9649 return shl_load ();
9651 return 0;
9653 _ACEOF
9654 if ac_fn_c_try_link "$LINENO"; then :
9655 ac_cv_lib_dld_shl_load=yes
9656 else
9657 ac_cv_lib_dld_shl_load=no
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 LIBS=$ac_check_lib_save_LIBS
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9664 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9665 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9667 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
9669 LIBADD_DL="$LIBADD_DL -ldld"
9670 else
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9672 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 ac_check_lib_save_LIBS=$LIBS
9677 LIBS="-ldl $LIBS"
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9681 /* Override any GCC internal prototype to avoid an error.
9682 Use char because int might match the return type of a GCC
9683 builtin and then its argument prototype would still apply. */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 char dlopen ();
9689 main ()
9691 return dlopen ();
9693 return 0;
9695 _ACEOF
9696 if ac_fn_c_try_link "$LINENO"; then :
9697 ac_cv_lib_dl_dlopen=yes
9698 else
9699 ac_cv_lib_dl_dlopen=no
9701 rm -f core conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9706 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9707 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9709 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9711 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9712 else
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 #if HAVE_DLFCN_H
9716 # include <dlfcn.h>
9717 #endif
9720 main ()
9722 dlopen(0, 0);
9724 return 0;
9726 _ACEOF
9727 if ac_fn_c_try_link "$LINENO"; then :
9729 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9730 libltdl_cv_func_dlopen="yes"
9731 else
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9733 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9734 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 ac_check_lib_save_LIBS=$LIBS
9738 LIBS="-lsvld $LIBS"
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9742 /* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9745 #ifdef __cplusplus
9746 extern "C"
9747 #endif
9748 char dlopen ();
9750 main ()
9752 return dlopen ();
9754 return 0;
9756 _ACEOF
9757 if ac_fn_c_try_link "$LINENO"; then :
9758 ac_cv_lib_svld_dlopen=yes
9759 else
9760 ac_cv_lib_svld_dlopen=no
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9767 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9768 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9770 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9772 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9775 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9776 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9777 $as_echo_n "(cached) " >&6
9778 else
9779 ac_check_lib_save_LIBS=$LIBS
9780 LIBS="-ldld $LIBS"
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9784 /* Override any GCC internal prototype to avoid an error.
9785 Use char because int might match the return type of a GCC
9786 builtin and then its argument prototype would still apply. */
9787 #ifdef __cplusplus
9788 extern "C"
9789 #endif
9790 char dld_link ();
9792 main ()
9794 return dld_link ();
9796 return 0;
9798 _ACEOF
9799 if ac_fn_c_try_link "$LINENO"; then :
9800 ac_cv_lib_dld_dld_link=yes
9801 else
9802 ac_cv_lib_dld_dld_link=no
9804 rm -f core conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9806 LIBS=$ac_check_lib_save_LIBS
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9809 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9810 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9812 $as_echo "#define HAVE_DLD 1" >>confdefs.h
9814 LIBADD_DL="$LIBADD_DL -ldld"
9815 else
9816 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
9817 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
9819 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9843 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9844 then
9845 lt_save_LIBS="$LIBS"
9846 LIBS="$LIBS $LIBADD_DL"
9847 for ac_func in dlerror
9848 do :
9849 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
9850 if test "x$ac_cv_func_dlerror" = x""yes; then :
9851 cat >>confdefs.h <<_ACEOF
9852 #define HAVE_DLERROR 1
9853 _ACEOF
9856 done
9858 LIBS="$lt_save_LIBS"
9860 ac_ext=c
9861 ac_cpp='$CPP $CPPFLAGS'
9862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
9869 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
9870 if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873 ac_cv_sys_symbol_underscore=no
9874 cat > conftest.$ac_ext <<EOF
9875 void nm_test_func(){}
9876 int main(){nm_test_func;return 0;}
9878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9879 (eval $ac_compile) 2>&5
9880 ac_status=$?
9881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9882 test $ac_status = 0; }; then
9883 # Now try to grab the symbols.
9884 ac_nlist=conftest.nm
9885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
9886 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9887 ac_status=$?
9888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9889 test $ac_status = 0; } && test -s "$ac_nlist"; then
9890 # See whether the symbols have a leading underscore.
9891 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9892 ac_cv_sys_symbol_underscore=yes
9893 else
9894 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9896 else
9897 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9900 else
9901 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9903 else
9904 echo "configure: failed program was:" >&5
9905 cat conftest.c >&5
9907 rm -rf conftest*
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
9911 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
9914 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9915 if test x"$libltdl_cv_func_dlopen" = xyes ||
9916 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
9918 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
9919 if test "${libltdl_cv_need_uscore+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 libltdl_cv_need_uscore=unknown
9923 save_LIBS="$LIBS"
9924 LIBS="$LIBS $LIBADD_DL"
9925 if test "$cross_compiling" = yes; then :
9926 libltdl_cv_need_uscore=cross
9927 else
9928 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9929 lt_status=$lt_dlunknown
9930 cat > conftest.$ac_ext <<EOF
9931 #line 9931 "configure"
9932 #include "confdefs.h"
9934 #if HAVE_DLFCN_H
9935 #include <dlfcn.h>
9936 #endif
9938 #include <stdio.h>
9940 #ifdef RTLD_GLOBAL
9941 # define LT_DLGLOBAL RTLD_GLOBAL
9942 #else
9943 # ifdef DL_GLOBAL
9944 # define LT_DLGLOBAL DL_GLOBAL
9945 # else
9946 # define LT_DLGLOBAL 0
9947 # endif
9948 #endif
9950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9951 find out it does not work in some platform. */
9952 #ifndef LT_DLLAZY_OR_NOW
9953 # ifdef RTLD_LAZY
9954 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9955 # else
9956 # ifdef DL_LAZY
9957 # define LT_DLLAZY_OR_NOW DL_LAZY
9958 # else
9959 # ifdef RTLD_NOW
9960 # define LT_DLLAZY_OR_NOW RTLD_NOW
9961 # else
9962 # ifdef DL_NOW
9963 # define LT_DLLAZY_OR_NOW DL_NOW
9964 # else
9965 # define LT_DLLAZY_OR_NOW 0
9966 # endif
9967 # endif
9968 # endif
9969 # endif
9970 #endif
9972 #ifdef __cplusplus
9973 extern "C" void exit (int);
9974 #endif
9976 void fnord() { int i=42;}
9977 int main ()
9979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9980 int status = $lt_dlunknown;
9982 if (self)
9984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9985 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9986 /* dlclose (self); */
9988 else
9989 puts (dlerror ());
9991 exit (status);
9994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9995 (eval $ac_link) 2>&5
9996 ac_status=$?
9997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9998 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9999 (./conftest; exit; ) >&5 2>/dev/null
10000 lt_status=$?
10001 case x$lt_status in
10002 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10003 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10004 x$lt_dlunknown|x*) ;;
10005 esac
10006 else :
10007 # compilation failed
10011 rm -fr conftest*
10013 LIBS="$save_LIBS"
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
10017 $as_echo "$libltdl_cv_need_uscore" >&6; }
10021 if test x"$libltdl_cv_need_uscore" = xyes; then
10023 $as_echo "#define NEED_USCORE 1" >>confdefs.h
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
10029 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
10030 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 # PORTME does your system automatically load deplibs for dlopen?
10034 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10035 # For now, we just catch OSes we know something about -- in the
10036 # future, we'll try test this programmatically.
10037 libltdl_cv_sys_dlopen_deplibs=unknown
10038 case "$host_os" in
10039 aix3*|aix4.1.*|aix4.2.*)
10040 # Unknown whether this is true for these versions of AIX, but
10041 # we want this `case' here to explicitly catch those versions.
10042 libltdl_cv_sys_dlopen_deplibs=unknown
10044 aix[45]*)
10045 libltdl_cv_sys_dlopen_deplibs=yes
10047 darwin*)
10048 # Assuming the user has installed a libdl from somewhere, this is true
10049 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10050 libltdl_cv_sys_dlopen_deplibs=yes
10052 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10053 # GNU and its variants, using gnu ld.so (Glibc)
10054 libltdl_cv_sys_dlopen_deplibs=yes
10056 hpux10*|hpux11*)
10057 libltdl_cv_sys_dlopen_deplibs=yes
10059 interix*)
10060 libltdl_cv_sys_dlopen_deplibs=yes
10062 irix[12345]*|irix6.[01]*)
10063 # Catch all versions of IRIX before 6.2, and indicate that we don't
10064 # know how it worked for any of those versions.
10065 libltdl_cv_sys_dlopen_deplibs=unknown
10067 irix*)
10068 # The case above catches anything before 6.2, and it's known that
10069 # at 6.2 and later dlopen does load deplibs.
10070 libltdl_cv_sys_dlopen_deplibs=yes
10072 netbsd*)
10073 libltdl_cv_sys_dlopen_deplibs=yes
10075 openbsd*)
10076 libltdl_cv_sys_dlopen_deplibs=yes
10078 osf[1234]*)
10079 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10080 # it did *not* use an RPATH in a shared library to find objects the
10081 # library depends on, so we explictly say `no'.
10082 libltdl_cv_sys_dlopen_deplibs=no
10084 osf5.0|osf5.0a|osf5.1)
10085 # dlopen *does* load deplibs and with the right loader patch applied
10086 # it even uses RPATH in a shared library to search for shared objects
10087 # that the library depends on, but there's no easy way to know if that
10088 # patch is installed. Since this is the case, all we can really
10089 # say is unknown -- it depends on the patch being installed. If
10090 # it is, this changes to `yes'. Without it, it would be `no'.
10091 libltdl_cv_sys_dlopen_deplibs=unknown
10093 osf*)
10094 # the two cases above should catch all versions of osf <= 5.1. Read
10095 # the comments above for what we know about them.
10096 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10097 # is used to find them so we can finally say `yes'.
10098 libltdl_cv_sys_dlopen_deplibs=yes
10100 solaris*)
10101 libltdl_cv_sys_dlopen_deplibs=yes
10103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10104 libltdl_cv_sys_dlopen_deplibs=yes
10106 esac
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10110 $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
10111 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10113 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
10117 for ac_header in argz.h
10118 do :
10119 ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
10120 if test "x$ac_cv_header_argz_h" = x""yes; then :
10121 cat >>confdefs.h <<_ACEOF
10122 #define HAVE_ARGZ_H 1
10123 _ACEOF
10127 done
10130 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
10131 # include <argz.h>
10132 #endif
10134 if test "x$ac_cv_type_error_t" = x""yes; then :
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_ERROR_T 1
10138 _ACEOF
10141 else
10143 $as_echo "#define error_t int" >>confdefs.h
10148 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10149 do :
10150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10151 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10152 eval as_val=\$$as_ac_var
10153 if test "x$as_val" = x""yes; then :
10154 cat >>confdefs.h <<_ACEOF
10155 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10156 _ACEOF
10159 done
10180 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10181 stdio.h unistd.h
10182 do :
10183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10184 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10185 eval as_val=\$$as_ac_Header
10186 if test "x$as_val" = x""yes; then :
10187 cat >>confdefs.h <<_ACEOF
10188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10189 _ACEOF
10193 done
10195 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10196 do :
10197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10198 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10199 eval as_val=\$$as_ac_Header
10200 if test "x$as_val" = x""yes; then :
10201 cat >>confdefs.h <<_ACEOF
10202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10203 _ACEOF
10207 done
10209 for ac_header in string.h strings.h
10210 do :
10211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10212 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10213 eval as_val=\$$as_ac_Header
10214 if test "x$as_val" = x""yes; then :
10215 cat >>confdefs.h <<_ACEOF
10216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10217 _ACEOF
10218 break
10221 done
10224 for ac_func in strchr index
10225 do :
10226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10228 eval as_val=\$$as_ac_var
10229 if test "x$as_val" = x""yes; then :
10230 cat >>confdefs.h <<_ACEOF
10231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10232 _ACEOF
10233 break
10235 done
10237 for ac_func in strrchr rindex
10238 do :
10239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10241 eval as_val=\$$as_ac_var
10242 if test "x$as_val" = x""yes; then :
10243 cat >>confdefs.h <<_ACEOF
10244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10245 _ACEOF
10246 break
10248 done
10250 for ac_func in memcpy bcopy
10251 do :
10252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10254 eval as_val=\$$as_ac_var
10255 if test "x$as_val" = x""yes; then :
10256 cat >>confdefs.h <<_ACEOF
10257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10258 _ACEOF
10259 break
10261 done
10263 for ac_func in memmove strcmp
10264 do :
10265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10267 eval as_val=\$$as_ac_var
10268 if test "x$as_val" = x""yes; then :
10269 cat >>confdefs.h <<_ACEOF
10270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10271 _ACEOF
10274 done
10276 for ac_func in closedir opendir readdir
10277 do :
10278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10280 eval as_val=\$$as_ac_var
10281 if test "x$as_val" = x""yes; then :
10282 cat >>confdefs.h <<_ACEOF
10283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10284 _ACEOF
10287 done
10291 if test "$WITH_LLVMGCCDIR" = "default" ; then
10292 LLVMGCC="llvm-gcc${EXEEXT}"
10293 LLVMGXX="llvm-g++${EXEEXT}"
10294 LLVMGCCCOMMAND="$LLVMGCC"
10295 LLVMGXXCOMMAND="$LLVMGXX"
10296 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
10298 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
10300 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
10301 set dummy $LLVMGCC; ac_word=$2
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303 $as_echo_n "checking for $ac_word... " >&6; }
10304 if test "${ac_cv_path_LLVMGCC+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 case $LLVMGCC in
10308 [\\/]* | ?:[\\/]*)
10309 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10323 done
10324 done
10325 IFS=$as_save_IFS
10328 esac
10330 LLVMGCC=$ac_cv_path_LLVMGCC
10331 if test -n "$LLVMGCC"; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGCC" >&5
10333 $as_echo "$LLVMGCC" >&6; }
10334 else
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10340 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
10341 set dummy $LLVMGXX; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if test "${ac_cv_path_LLVMGXX+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 case $LLVMGXX in
10348 [\\/]* | ?:[\\/]*)
10349 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10363 done
10364 done
10365 IFS=$as_save_IFS
10368 esac
10370 LLVMGXX=$ac_cv_path_LLVMGXX
10371 if test -n "$LLVMGXX"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGXX" >&5
10373 $as_echo "$LLVMGXX" >&6; }
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10380 else
10381 if test -z "$LLVMGCC"; then
10382 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
10383 LLVMGCCCOMMAND="$LLVMGCC"
10385 if test -z "$LLVMGXX"; then
10386 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
10387 LLVMGXXCOMMAND="$LLVMGXX"
10390 LLVMGCC=$LLVMGCC
10392 LLVMGXX=$LLVMGXX
10394 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
10396 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
10401 # Check whether --with-llvmcc was given.
10402 if test "${with_llvmcc+set}" = set; then :
10403 withval=$with_llvmcc;
10404 else
10405 with_llvmcc=check
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LLVM capable compiler" >&5
10409 $as_echo_n "checking LLVM capable compiler... " >&6; }
10410 if test "$with_llvmcc" != "check"; then
10411 if (test "$with_llvmcc" != "llvm-gcc" &&
10412 test "$with_llvmcc" != "clang" &&
10413 test "$with_llvmcc" != "none"); then
10414 as_fn_error "invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." "$LINENO" 5
10416 WITH_LLVMCC="$with_llvmcc"
10417 elif test -n "$LLVMGCC"; then
10418 WITH_LLVMCC=llvm-gcc
10419 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
10420 WITH_LLVMCC=clang
10421 else
10422 WITH_LLVMCC=none
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LLVMCC" >&5
10425 $as_echo "$WITH_LLVMCC" >&6; }
10426 LLVMCC_OPTION=$WITH_LLVMCC
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5
10430 $as_echo_n "checking tool compatibility... " >&6; }
10432 ICC=no
10433 IXX=no
10434 case $CC in
10435 icc*|icpc*)
10436 ICC=yes
10437 IXX=yes
10441 esac
10443 if test "$GCC" != "yes" && test "$ICC" != "yes"
10444 then
10445 as_fn_error "gcc|icc required but not found" "$LINENO" 5
10448 if test "$GXX" != "yes" && test "$IXX" != "yes"
10449 then
10450 as_fn_error "g++|icc required but not found" "$LINENO" 5
10453 if test "$GCC" = "yes"
10454 then
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 #if !defined(__GNUC__) || __GNUC__ < 3
10458 #error Unsupported GCC version
10459 #endif
10461 _ACEOF
10462 if ac_fn_c_try_compile "$LINENO"; then :
10464 else
10465 as_fn_error "gcc 3.x required, but you have a lower version" "$LINENO" 5
10467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 if test -z "$llvm_cv_gnu_make_command"
10471 then
10472 as_fn_error "GNU Make required but not found" "$LINENO" 5
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10476 $as_echo "ok" >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
10479 $as_echo_n "checking optional compiler flags... " >&6; }
10480 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
10482 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
10485 $as_echo "$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
10489 $as_echo_n "checking for sin in -lm... " >&6; }
10490 if test "${ac_cv_lib_m_sin+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 ac_check_lib_save_LIBS=$LIBS
10494 LIBS="-lm $LIBS"
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10498 /* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
10501 #ifdef __cplusplus
10502 extern "C"
10503 #endif
10504 char sin ();
10506 main ()
10508 return sin ();
10510 return 0;
10512 _ACEOF
10513 if ac_fn_c_try_link "$LINENO"; then :
10514 ac_cv_lib_m_sin=yes
10515 else
10516 ac_cv_lib_m_sin=no
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 LIBS=$ac_check_lib_save_LIBS
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
10523 $as_echo "$ac_cv_lib_m_sin" >&6; }
10524 if test "x$ac_cv_lib_m_sin" = x""yes; then :
10525 cat >>confdefs.h <<_ACEOF
10526 #define HAVE_LIBM 1
10527 _ACEOF
10529 LIBS="-lm $LIBS"
10533 if test "$llvm_cv_os_type" = "MingW" ; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -limagehlp" >&5
10535 $as_echo_n "checking for main in -limagehlp... " >&6; }
10536 if test "${ac_cv_lib_imagehlp_main+set}" = set; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-limagehlp $LIBS"
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10546 main ()
10548 return main ();
10550 return 0;
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"; then :
10554 ac_cv_lib_imagehlp_main=yes
10555 else
10556 ac_cv_lib_imagehlp_main=no
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_imagehlp_main" >&5
10563 $as_echo "$ac_cv_lib_imagehlp_main" >&6; }
10564 if test "x$ac_cv_lib_imagehlp_main" = x""yes; then :
10565 cat >>confdefs.h <<_ACEOF
10566 #define HAVE_LIBIMAGEHLP 1
10567 _ACEOF
10569 LIBS="-limagehlp $LIBS"
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
10574 $as_echo_n "checking for main in -lpsapi... " >&6; }
10575 if test "${ac_cv_lib_psapi_main+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 ac_check_lib_save_LIBS=$LIBS
10579 LIBS="-lpsapi $LIBS"
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10585 main ()
10587 return main ();
10589 return 0;
10591 _ACEOF
10592 if ac_fn_c_try_link "$LINENO"; then :
10593 ac_cv_lib_psapi_main=yes
10594 else
10595 ac_cv_lib_psapi_main=no
10597 rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5
10602 $as_echo "$ac_cv_lib_psapi_main" >&6; }
10603 if test "x$ac_cv_lib_psapi_main" = x""yes; then :
10604 cat >>confdefs.h <<_ACEOF
10605 #define HAVE_LIBPSAPI 1
10606 _ACEOF
10608 LIBS="-lpsapi $LIBS"
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10615 $as_echo_n "checking for library containing dlopen... " >&6; }
10616 if test "${ac_cv_search_dlopen+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 ac_func_search_save_LIBS=$LIBS
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 /* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
10626 #ifdef __cplusplus
10627 extern "C"
10628 #endif
10629 char dlopen ();
10631 main ()
10633 return dlopen ();
10635 return 0;
10637 _ACEOF
10638 for ac_lib in '' dl; do
10639 if test -z "$ac_lib"; then
10640 ac_res="none required"
10641 else
10642 ac_res=-l$ac_lib
10643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10645 if ac_fn_c_try_link "$LINENO"; then :
10646 ac_cv_search_dlopen=$ac_res
10648 rm -f core conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext
10650 if test "${ac_cv_search_dlopen+set}" = set; then :
10651 break
10653 done
10654 if test "${ac_cv_search_dlopen+set}" = set; then :
10656 else
10657 ac_cv_search_dlopen=no
10659 rm conftest.$ac_ext
10660 LIBS=$ac_func_search_save_LIBS
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10663 $as_echo "$ac_cv_search_dlopen" >&6; }
10664 ac_res=$ac_cv_search_dlopen
10665 if test "$ac_res" != no; then :
10666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10668 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
10670 else
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5
10672 $as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
10676 if test "$llvm_cv_enable_libffi" = "yes" ; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
10678 $as_echo_n "checking for library containing ffi_call... " >&6; }
10679 if test "${ac_cv_search_ffi_call+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 ac_func_search_save_LIBS=$LIBS
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char ffi_call ();
10694 main ()
10696 return ffi_call ();
10698 return 0;
10700 _ACEOF
10701 for ac_lib in '' ffi; do
10702 if test -z "$ac_lib"; then
10703 ac_res="none required"
10704 else
10705 ac_res=-l$ac_lib
10706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10708 if ac_fn_c_try_link "$LINENO"; then :
10709 ac_cv_search_ffi_call=$ac_res
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext
10713 if test "${ac_cv_search_ffi_call+set}" = set; then :
10714 break
10716 done
10717 if test "${ac_cv_search_ffi_call+set}" = set; then :
10719 else
10720 ac_cv_search_ffi_call=no
10722 rm conftest.$ac_ext
10723 LIBS=$ac_func_search_save_LIBS
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
10726 $as_echo "$ac_cv_search_ffi_call" >&6; }
10727 ac_res=$ac_cv_search_ffi_call
10728 if test "$ac_res" != no; then :
10729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10731 $as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h
10733 else
10734 as_fn_error "libffi not found - configure without --enable-libffi to compile without it" "$LINENO" 5
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
10740 $as_echo_n "checking for library containing mallinfo... " >&6; }
10741 if test "${ac_cv_search_mallinfo+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
10743 else
10744 ac_func_search_save_LIBS=$LIBS
10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10751 #ifdef __cplusplus
10752 extern "C"
10753 #endif
10754 char mallinfo ();
10756 main ()
10758 return mallinfo ();
10760 return 0;
10762 _ACEOF
10763 for ac_lib in '' malloc; do
10764 if test -z "$ac_lib"; then
10765 ac_res="none required"
10766 else
10767 ac_res=-l$ac_lib
10768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 ac_cv_search_mallinfo=$ac_res
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext
10775 if test "${ac_cv_search_mallinfo+set}" = set; then :
10776 break
10778 done
10779 if test "${ac_cv_search_mallinfo+set}" = set; then :
10781 else
10782 ac_cv_search_mallinfo=no
10784 rm conftest.$ac_ext
10785 LIBS=$ac_func_search_save_LIBS
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
10788 $as_echo "$ac_cv_search_mallinfo" >&6; }
10789 ac_res=$ac_cv_search_mallinfo
10790 if test "$ac_res" != no; then :
10791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10793 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
10798 if test "$ENABLE_THREADS" -eq 1 ; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
10800 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
10801 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 ac_check_lib_save_LIBS=$LIBS
10805 LIBS="-lpthread $LIBS"
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 char pthread_mutex_init ();
10817 main ()
10819 return pthread_mutex_init ();
10821 return 0;
10823 _ACEOF
10824 if ac_fn_c_try_link "$LINENO"; then :
10825 ac_cv_lib_pthread_pthread_mutex_init=yes
10826 else
10827 ac_cv_lib_pthread_pthread_mutex_init=no
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
10834 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
10835 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then :
10836 cat >>confdefs.h <<_ACEOF
10837 #define HAVE_LIBPTHREAD 1
10838 _ACEOF
10840 LIBS="-lpthread $LIBS"
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5
10845 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10846 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_func_search_save_LIBS=$LIBS
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10853 /* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10856 #ifdef __cplusplus
10857 extern "C"
10858 #endif
10859 char pthread_mutex_lock ();
10861 main ()
10863 return pthread_mutex_lock ();
10865 return 0;
10867 _ACEOF
10868 for ac_lib in '' pthread; do
10869 if test -z "$ac_lib"; then
10870 ac_res="none required"
10871 else
10872 ac_res=-l$ac_lib
10873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10875 if ac_fn_c_try_link "$LINENO"; then :
10876 ac_cv_search_pthread_mutex_lock=$ac_res
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext
10880 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10881 break
10883 done
10884 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10886 else
10887 ac_cv_search_pthread_mutex_lock=no
10889 rm conftest.$ac_ext
10890 LIBS=$ac_func_search_save_LIBS
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5
10893 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10894 ac_res=$ac_cv_search_pthread_mutex_lock
10895 if test "$ac_res" != no; then :
10896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10898 $as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5
10903 $as_echo_n "checking for library containing pthread_rwlock_init... " >&6; }
10904 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_func_search_save_LIBS=$LIBS
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914 #ifdef __cplusplus
10915 extern "C"
10916 #endif
10917 char pthread_rwlock_init ();
10919 main ()
10921 return pthread_rwlock_init ();
10923 return 0;
10925 _ACEOF
10926 for ac_lib in '' pthread; do
10927 if test -z "$ac_lib"; then
10928 ac_res="none required"
10929 else
10930 ac_res=-l$ac_lib
10931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10933 if ac_fn_c_try_link "$LINENO"; then :
10934 ac_cv_search_pthread_rwlock_init=$ac_res
10936 rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext
10938 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10939 break
10941 done
10942 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10944 else
10945 ac_cv_search_pthread_rwlock_init=no
10947 rm conftest.$ac_ext
10948 LIBS=$ac_func_search_save_LIBS
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5
10951 $as_echo "$ac_cv_search_pthread_rwlock_init" >&6; }
10952 ac_res=$ac_cv_search_pthread_rwlock_init
10953 if test "$ac_res" != no; then :
10954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10956 $as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5
10961 $as_echo_n "checking for library containing pthread_getspecific... " >&6; }
10962 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_func_search_save_LIBS=$LIBS
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 char pthread_getspecific ();
10977 main ()
10979 return pthread_getspecific ();
10981 return 0;
10983 _ACEOF
10984 for ac_lib in '' pthread; do
10985 if test -z "$ac_lib"; then
10986 ac_res="none required"
10987 else
10988 ac_res=-l$ac_lib
10989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10991 if ac_fn_c_try_link "$LINENO"; then :
10992 ac_cv_search_pthread_getspecific=$ac_res
10994 rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext
10996 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10997 break
10999 done
11000 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
11002 else
11003 ac_cv_search_pthread_getspecific=no
11005 rm conftest.$ac_ext
11006 LIBS=$ac_func_search_save_LIBS
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5
11009 $as_echo "$ac_cv_search_pthread_getspecific" >&6; }
11010 ac_res=$ac_cv_search_pthread_getspecific
11011 if test "$ac_res" != no; then :
11012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11014 $as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h
11021 # Check whether --with-udis86 was given.
11022 if test "${with_udis86+set}" = set; then :
11023 withval=$with_udis86;
11024 USE_UDIS86=1
11026 case "$withval" in
11027 /usr/lib|yes) ;;
11028 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
11029 esac
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ud_init in -ludis86" >&5
11031 $as_echo_n "checking for ud_init in -ludis86... " >&6; }
11032 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 ac_check_lib_save_LIBS=$LIBS
11036 LIBS="-ludis86 $LIBS"
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 char ud_init ();
11048 main ()
11050 return ud_init ();
11052 return 0;
11054 _ACEOF
11055 if ac_fn_c_try_link "$LINENO"; then :
11056 ac_cv_lib_udis86_ud_init=yes
11057 else
11058 ac_cv_lib_udis86_ud_init=no
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udis86_ud_init" >&5
11065 $as_echo "$ac_cv_lib_udis86_ud_init" >&6; }
11066 if test "x$ac_cv_lib_udis86_ud_init" = x""yes; then :
11067 cat >>confdefs.h <<_ACEOF
11068 #define HAVE_LIBUDIS86 1
11069 _ACEOF
11071 LIBS="-ludis86 $LIBS"
11073 else
11075 echo "Error! You need to have libudis86 around."
11076 exit -1
11081 else
11082 USE_UDIS86=0
11087 cat >>confdefs.h <<_ACEOF
11088 #define USE_UDIS86 $USE_UDIS86
11089 _ACEOF
11093 # Check whether --with-oprofile was given.
11094 if test "${with_oprofile+set}" = set; then :
11095 withval=$with_oprofile;
11096 USE_OPROFILE=1
11098 case "$withval" in
11099 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
11100 no) llvm_cv_oppath=
11101 USE_OPROFILE=0
11103 *) llvm_cv_oppath="${withval}/lib/oprofile"
11104 CPPFLAGS="-I${withval}/include";;
11105 esac
11106 if test -n "$llvm_cv_oppath" ; then
11107 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
11109 $as_echo_n "checking for library containing bfd_init... " >&6; }
11110 if test "${ac_cv_search_bfd_init+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 ac_func_search_save_LIBS=$LIBS
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 char bfd_init ();
11125 main ()
11127 return bfd_init ();
11129 return 0;
11131 _ACEOF
11132 for ac_lib in '' bfd; do
11133 if test -z "$ac_lib"; then
11134 ac_res="none required"
11135 else
11136 ac_res=-l$ac_lib
11137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11139 if ac_fn_c_try_link "$LINENO"; then :
11140 ac_cv_search_bfd_init=$ac_res
11142 rm -f core conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext
11144 if test "${ac_cv_search_bfd_init+set}" = set; then :
11145 break
11147 done
11148 if test "${ac_cv_search_bfd_init+set}" = set; then :
11150 else
11151 ac_cv_search_bfd_init=no
11153 rm conftest.$ac_ext
11154 LIBS=$ac_func_search_save_LIBS
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
11157 $as_echo "$ac_cv_search_bfd_init" >&6; }
11158 ac_res=$ac_cv_search_bfd_init
11159 if test "$ac_res" != no; then :
11160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5
11165 $as_echo_n "checking for library containing op_open_agent... " >&6; }
11166 if test "${ac_cv_search_op_open_agent+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 ac_func_search_save_LIBS=$LIBS
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char op_open_agent ();
11181 main ()
11183 return op_open_agent ();
11185 return 0;
11187 _ACEOF
11188 for ac_lib in '' opagent; do
11189 if test -z "$ac_lib"; then
11190 ac_res="none required"
11191 else
11192 ac_res=-l$ac_lib
11193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11195 if ac_fn_c_try_link "$LINENO"; then :
11196 ac_cv_search_op_open_agent=$ac_res
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext
11200 if test "${ac_cv_search_op_open_agent+set}" = set; then :
11201 break
11203 done
11204 if test "${ac_cv_search_op_open_agent+set}" = set; then :
11206 else
11207 ac_cv_search_op_open_agent=no
11209 rm conftest.$ac_ext
11210 LIBS=$ac_func_search_save_LIBS
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5
11213 $as_echo "$ac_cv_search_op_open_agent" >&6; }
11214 ac_res=$ac_cv_search_op_open_agent
11215 if test "$ac_res" != no; then :
11216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11218 else
11220 echo "Error! You need to have libopagent around."
11221 exit -1
11225 ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default"
11226 if test "x$ac_cv_header_opagent_h" = x""yes; then :
11228 else
11230 echo "Error! You need to have opagent.h around."
11231 exit -1
11238 else
11240 USE_OPROFILE=0
11246 cat >>confdefs.h <<_ACEOF
11247 #define USE_OPROFILE $USE_OPROFILE
11248 _ACEOF
11252 ac_header_dirent=no
11253 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11254 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11256 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262 #include <sys/types.h>
11263 #include <$ac_hdr>
11266 main ()
11268 if ((DIR *) 0)
11269 return 0;
11271 return 0;
11273 _ACEOF
11274 if ac_fn_c_try_compile "$LINENO"; then :
11275 eval "$as_ac_Header=yes"
11276 else
11277 eval "$as_ac_Header=no"
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 eval ac_res=\$$as_ac_Header
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11283 $as_echo "$ac_res" >&6; }
11284 eval as_val=\$$as_ac_Header
11285 if test "x$as_val" = x""yes; then :
11286 cat >>confdefs.h <<_ACEOF
11287 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11288 _ACEOF
11290 ac_header_dirent=$ac_hdr; break
11293 done
11294 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11295 if test $ac_header_dirent = dirent.h; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11297 $as_echo_n "checking for library containing opendir... " >&6; }
11298 if test "${ac_cv_search_opendir+set}" = set; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 ac_func_search_save_LIBS=$LIBS
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char opendir ();
11313 main ()
11315 return opendir ();
11317 return 0;
11319 _ACEOF
11320 for ac_lib in '' dir; do
11321 if test -z "$ac_lib"; then
11322 ac_res="none required"
11323 else
11324 ac_res=-l$ac_lib
11325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11327 if ac_fn_c_try_link "$LINENO"; then :
11328 ac_cv_search_opendir=$ac_res
11330 rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext
11332 if test "${ac_cv_search_opendir+set}" = set; then :
11333 break
11335 done
11336 if test "${ac_cv_search_opendir+set}" = set; then :
11338 else
11339 ac_cv_search_opendir=no
11341 rm conftest.$ac_ext
11342 LIBS=$ac_func_search_save_LIBS
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11345 $as_echo "$ac_cv_search_opendir" >&6; }
11346 ac_res=$ac_cv_search_opendir
11347 if test "$ac_res" != no; then :
11348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11354 $as_echo_n "checking for library containing opendir... " >&6; }
11355 if test "${ac_cv_search_opendir+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 ac_func_search_save_LIBS=$LIBS
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 /* Override any GCC internal prototype to avoid an error.
11363 Use char because int might match the return type of a GCC
11364 builtin and then its argument prototype would still apply. */
11365 #ifdef __cplusplus
11366 extern "C"
11367 #endif
11368 char opendir ();
11370 main ()
11372 return opendir ();
11374 return 0;
11376 _ACEOF
11377 for ac_lib in '' x; do
11378 if test -z "$ac_lib"; then
11379 ac_res="none required"
11380 else
11381 ac_res=-l$ac_lib
11382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 ac_cv_search_opendir=$ac_res
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext
11389 if test "${ac_cv_search_opendir+set}" = set; then :
11390 break
11392 done
11393 if test "${ac_cv_search_opendir+set}" = set; then :
11395 else
11396 ac_cv_search_opendir=no
11398 rm conftest.$ac_ext
11399 LIBS=$ac_func_search_save_LIBS
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11402 $as_echo "$ac_cv_search_opendir" >&6; }
11403 ac_res=$ac_cv_search_opendir
11404 if test "$ac_res" != no; then :
11405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11412 $as_echo_n "checking for MAP_ANONYMOUS vs. MAP_ANON... " >&6; }
11413 if test "${ac_cv_header_mmap_anon+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 ac_ext=c
11417 ac_cpp='$CPP $CPPFLAGS'
11418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11424 #include <sys/mman.h>
11425 #include <unistd.h>
11426 #include <fcntl.h>
11428 main ()
11430 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11432 return 0;
11434 _ACEOF
11435 if ac_fn_c_try_compile "$LINENO"; then :
11436 ac_cv_header_mmap_anon=yes
11437 else
11438 ac_cv_header_mmap_anon=no
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11441 ac_ext=c
11442 ac_cpp='$CPP $CPPFLAGS'
11443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_mmap_anon" >&5
11450 $as_echo "$ac_cv_header_mmap_anon" >&6; }
11451 if test "$ac_cv_header_mmap_anon" = yes; then
11453 $as_echo "#define HAVE_MMAP_ANONYMOUS 1" >>confdefs.h
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11458 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11459 if test "${ac_cv_header_stat_broken+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #include <sys/types.h>
11465 #include <sys/stat.h>
11467 #if defined S_ISBLK && defined S_IFDIR
11468 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11469 #endif
11471 #if defined S_ISBLK && defined S_IFCHR
11472 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11473 #endif
11475 #if defined S_ISLNK && defined S_IFREG
11476 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11477 #endif
11479 #if defined S_ISSOCK && defined S_IFREG
11480 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11481 #endif
11483 _ACEOF
11484 if ac_fn_c_try_compile "$LINENO"; then :
11485 ac_cv_header_stat_broken=no
11486 else
11487 ac_cv_header_stat_broken=yes
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11492 $as_echo "$ac_cv_header_stat_broken" >&6; }
11493 if test $ac_cv_header_stat_broken = yes; then
11495 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11500 $as_echo_n "checking for ANSI C header files... " >&6; }
11501 if test "${ac_cv_header_stdc+set}" = set; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11506 #include <stdlib.h>
11507 #include <stdarg.h>
11508 #include <string.h>
11509 #include <float.h>
11512 main ()
11516 return 0;
11518 _ACEOF
11519 if ac_fn_c_try_compile "$LINENO"; then :
11520 ac_cv_header_stdc=yes
11521 else
11522 ac_cv_header_stdc=no
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526 if test $ac_cv_header_stdc = yes; then
11527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 #include <string.h>
11532 _ACEOF
11533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11534 $EGREP "memchr" >/dev/null 2>&1; then :
11536 else
11537 ac_cv_header_stdc=no
11539 rm -f conftest*
11543 if test $ac_cv_header_stdc = yes; then
11544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11547 #include <stdlib.h>
11549 _ACEOF
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551 $EGREP "free" >/dev/null 2>&1; then :
11553 else
11554 ac_cv_header_stdc=no
11556 rm -f conftest*
11560 if test $ac_cv_header_stdc = yes; then
11561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11562 if test "$cross_compiling" = yes; then :
11564 else
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11567 #include <ctype.h>
11568 #include <stdlib.h>
11569 #if ((' ' & 0x0FF) == 0x020)
11570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11572 #else
11573 # define ISLOWER(c) \
11574 (('a' <= (c) && (c) <= 'i') \
11575 || ('j' <= (c) && (c) <= 'r') \
11576 || ('s' <= (c) && (c) <= 'z'))
11577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11578 #endif
11580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11582 main ()
11584 int i;
11585 for (i = 0; i < 256; i++)
11586 if (XOR (islower (i), ISLOWER (i))
11587 || toupper (i) != TOUPPER (i))
11588 return 2;
11589 return 0;
11591 _ACEOF
11592 if ac_fn_c_try_run "$LINENO"; then :
11594 else
11595 ac_cv_header_stdc=no
11597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11598 conftest.$ac_objext conftest.beam conftest.$ac_ext
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11604 $as_echo "$ac_cv_header_stdc" >&6; }
11605 if test $ac_cv_header_stdc = yes; then
11607 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11612 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11613 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11618 #include <sys/types.h>
11619 #include <sys/wait.h>
11620 #ifndef WEXITSTATUS
11621 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11622 #endif
11623 #ifndef WIFEXITED
11624 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11625 #endif
11628 main ()
11630 int s;
11631 wait (&s);
11632 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11634 return 0;
11636 _ACEOF
11637 if ac_fn_c_try_compile "$LINENO"; then :
11638 ac_cv_header_sys_wait_h=yes
11639 else
11640 ac_cv_header_sys_wait_h=no
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11645 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11646 if test $ac_cv_header_sys_wait_h = yes; then
11648 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11653 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11654 if test "${ac_cv_header_time+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659 #include <sys/types.h>
11660 #include <sys/time.h>
11661 #include <time.h>
11664 main ()
11666 if ((struct tm *) 0)
11667 return 0;
11669 return 0;
11671 _ACEOF
11672 if ac_fn_c_try_compile "$LINENO"; then :
11673 ac_cv_header_time=yes
11674 else
11675 ac_cv_header_time=no
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11680 $as_echo "$ac_cv_header_time" >&6; }
11681 if test $ac_cv_header_time = yes; then
11683 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11688 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
11689 do :
11690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11691 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11692 eval as_val=\$$as_ac_Header
11693 if test "x$as_val" = x""yes; then :
11694 cat >>confdefs.h <<_ACEOF
11695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11696 _ACEOF
11700 done
11702 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11703 do :
11704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11705 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11706 eval as_val=\$$as_ac_Header
11707 if test "x$as_val" = x""yes; then :
11708 cat >>confdefs.h <<_ACEOF
11709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11710 _ACEOF
11714 done
11716 for ac_header in utime.h windows.h
11717 do :
11718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11719 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11720 eval as_val=\$$as_ac_Header
11721 if test "x$as_val" = x""yes; then :
11722 cat >>confdefs.h <<_ACEOF
11723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11724 _ACEOF
11728 done
11730 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
11731 do :
11732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11733 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11734 eval as_val=\$$as_ac_Header
11735 if test "x$as_val" = x""yes; then :
11736 cat >>confdefs.h <<_ACEOF
11737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11738 _ACEOF
11742 done
11744 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
11745 do :
11746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11748 eval as_val=\$$as_ac_Header
11749 if test "x$as_val" = x""yes; then :
11750 cat >>confdefs.h <<_ACEOF
11751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11752 _ACEOF
11756 done
11758 for ac_header in valgrind/valgrind.h
11759 do :
11760 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
11761 if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
11762 cat >>confdefs.h <<_ACEOF
11763 #define HAVE_VALGRIND_VALGRIND_H 1
11764 _ACEOF
11768 done
11770 for ac_header in fenv.h
11771 do :
11772 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
11773 if test "x$ac_cv_header_fenv_h" = x""yes; then :
11774 cat >>confdefs.h <<_ACEOF
11775 #define HAVE_FENV_H 1
11776 _ACEOF
11780 done
11782 if test "$ENABLE_THREADS" -eq 1 ; then
11783 for ac_header in pthread.h
11784 do :
11785 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11786 if test "x$ac_cv_header_pthread_h" = x""yes; then :
11787 cat >>confdefs.h <<_ACEOF
11788 #define HAVE_PTHREAD_H 1
11789 _ACEOF
11790 HAVE_PTHREAD=1
11792 else
11793 HAVE_PTHREAD=0
11797 done
11799 else
11800 HAVE_PTHREAD=0
11804 if test "$llvm_cv_enable_libffi" = "yes" ; then
11805 for ac_header in ffi.h ffi/ffi.h
11806 do :
11807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11808 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11809 eval as_val=\$$as_ac_Header
11810 if test "x$as_val" = x""yes; then :
11811 cat >>confdefs.h <<_ACEOF
11812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11813 _ACEOF
11817 done
11821 for ac_header in CrashReporterClient.h
11822 do :
11823 ac_fn_c_check_header_mongrel "$LINENO" "CrashReporterClient.h" "ac_cv_header_CrashReporterClient_h" "$ac_includes_default"
11824 if test "x$ac_cv_header_CrashReporterClient_h" = x""yes; then :
11825 cat >>confdefs.h <<_ACEOF
11826 #define HAVE_CRASHREPORTERCLIENT_H 1
11827 _ACEOF
11831 done
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5
11838 $as_echo_n "checking for HUGE_VAL sanity... " >&6; }
11839 if test "${ac_cv_huge_val_sanity+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11843 ac_ext=cpp
11844 ac_cpp='$CXXCPP $CPPFLAGS'
11845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11849 ac_save_CXXFLAGS=$CXXFLAGS
11850 CXXFLAGS=-pedantic
11851 if test "$cross_compiling" = yes; then :
11852 ac_cv_huge_val_sanity=yes
11853 else
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856 #include <math.h>
11858 main ()
11860 double x = HUGE_VAL; return x != x;
11862 return 0;
11864 _ACEOF
11865 if ac_fn_cxx_try_run "$LINENO"; then :
11866 ac_cv_huge_val_sanity=yes
11867 else
11868 ac_cv_huge_val_sanity=no
11870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11871 conftest.$ac_objext conftest.beam conftest.$ac_ext
11874 CXXFLAGS=$ac_save_CXXFLAGS
11875 ac_ext=c
11876 ac_cpp='$CPP $CPPFLAGS'
11877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5
11884 $as_echo "$ac_cv_huge_val_sanity" >&6; }
11885 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
11888 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11889 if test "x$ac_cv_type_pid_t" = x""yes; then :
11891 else
11893 cat >>confdefs.h <<_ACEOF
11894 #define pid_t int
11895 _ACEOF
11899 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11900 if test "x$ac_cv_type_size_t" = x""yes; then :
11902 else
11904 cat >>confdefs.h <<_ACEOF
11905 #define size_t unsigned int
11906 _ACEOF
11911 cat >>confdefs.h <<_ACEOF
11912 #define RETSIGTYPE void
11913 _ACEOF
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11916 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11917 if test "${ac_cv_struct_tm+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 #include <sys/types.h>
11923 #include <time.h>
11926 main ()
11928 struct tm tm;
11929 int *p = &tm.tm_sec;
11930 return !p;
11932 return 0;
11934 _ACEOF
11935 if ac_fn_c_try_compile "$LINENO"; then :
11936 ac_cv_struct_tm=time.h
11937 else
11938 ac_cv_struct_tm=sys/time.h
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11943 $as_echo "$ac_cv_struct_tm" >&6; }
11944 if test $ac_cv_struct_tm = sys/time.h; then
11946 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11950 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11951 if test "x$ac_cv_type_int64_t" = x""yes; then :
11953 cat >>confdefs.h <<_ACEOF
11954 #define HAVE_INT64_T 1
11955 _ACEOF
11958 else
11959 as_fn_error "Type int64_t required but not found" "$LINENO" 5
11962 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11963 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11965 cat >>confdefs.h <<_ACEOF
11966 #define HAVE_UINT64_T 1
11967 _ACEOF
11970 else
11971 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
11972 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11974 cat >>confdefs.h <<_ACEOF
11975 #define HAVE_U_INT64_T 1
11976 _ACEOF
11979 else
11980 as_fn_error "Type uint64_t or u_int64_t required but not found" "$LINENO" 5
11987 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
11988 do :
11989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11990 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11991 eval as_val=\$$as_ac_var
11992 if test "x$as_val" = x""yes; then :
11993 cat >>confdefs.h <<_ACEOF
11994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11995 _ACEOF
11998 done
12000 for ac_func in powf fmodf strtof round
12001 do :
12002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12004 eval as_val=\$$as_ac_var
12005 if test "x$as_val" = x""yes; then :
12006 cat >>confdefs.h <<_ACEOF
12007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12008 _ACEOF
12011 done
12013 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
12014 do :
12015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12016 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12017 eval as_val=\$$as_ac_var
12018 if test "x$as_val" = x""yes; then :
12019 cat >>confdefs.h <<_ACEOF
12020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12021 _ACEOF
12024 done
12026 for ac_func in isatty mkdtemp mkstemp
12027 do :
12028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12029 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12030 eval as_val=\$$as_ac_var
12031 if test "x$as_val" = x""yes; then :
12032 cat >>confdefs.h <<_ACEOF
12033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12034 _ACEOF
12037 done
12039 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
12040 do :
12041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12043 eval as_val=\$$as_ac_var
12044 if test "x$as_val" = x""yes; then :
12045 cat >>confdefs.h <<_ACEOF
12046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12047 _ACEOF
12050 done
12052 for ac_func in strerror strerror_r strerror_s setenv
12053 do :
12054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12055 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12056 eval as_val=\$$as_ac_var
12057 if test "x$as_val" = x""yes; then :
12058 cat >>confdefs.h <<_ACEOF
12059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12060 _ACEOF
12063 done
12065 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
12066 do :
12067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12069 eval as_val=\$$as_ac_var
12070 if test "x$as_val" = x""yes; then :
12071 cat >>confdefs.h <<_ACEOF
12072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 _ACEOF
12076 done
12078 for ac_func in setjmp longjmp sigsetjmp siglongjmp
12079 do :
12080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12082 eval as_val=\$$as_ac_var
12083 if test "x$as_val" = x""yes; then :
12084 cat >>confdefs.h <<_ACEOF
12085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12086 _ACEOF
12089 done
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf has the %a format character" >&5
12092 $as_echo_n "checking if printf has the %a format character... " >&6; }
12093 if test "${llvm_cv_c_printf_a+set}" = set; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 ac_ext=c
12097 ac_cpp='$CPP $CPPFLAGS'
12098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12102 if test "$cross_compiling" = yes; then :
12103 llvmac_cv_c_printf_a=no
12104 else
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12109 #include <stdio.h>
12110 #include <stdlib.h>
12113 main ()
12116 volatile double A, B;
12117 char Buffer[100];
12118 A = 1;
12119 A /= 10.0;
12120 sprintf(Buffer, "%a", A);
12121 B = atof(Buffer);
12122 if (A != B)
12123 return (1);
12124 if (A != 0x1.999999999999ap-4)
12125 return (1);
12126 return (0);
12128 return 0;
12130 _ACEOF
12131 if ac_fn_c_try_run "$LINENO"; then :
12132 llvm_cv_c_printf_a=yes
12133 else
12134 llvmac_cv_c_printf_a=no
12136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12137 conftest.$ac_objext conftest.beam conftest.$ac_ext
12140 ac_ext=c
12141 ac_cpp='$CPP $CPPFLAGS'
12142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_c_printf_a" >&5
12148 $as_echo "$llvm_cv_c_printf_a" >&6; }
12149 if test "$llvm_cv_c_printf_a" = "yes"; then
12151 $as_echo "#define HAVE_PRINTF_A 1" >>confdefs.h
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
12157 $as_echo_n "checking for srand48/lrand48/drand48 in <stdlib.h>... " >&6; }
12158 if test "${ac_cv_func_rand48+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 ac_ext=cpp
12162 ac_cpp='$CXXCPP $CPPFLAGS'
12163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 #include <stdlib.h>
12171 main ()
12173 srand48(0);lrand48();drand48();
12175 return 0;
12177 _ACEOF
12178 if ac_fn_cxx_try_compile "$LINENO"; then :
12179 ac_cv_func_rand48=yes
12180 else
12181 ac_cv_func_rand48=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 ac_ext=c
12185 ac_cpp='$CPP $CPPFLAGS'
12186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_rand48" >&5
12192 $as_echo "$ac_cv_func_rand48" >&6; }
12194 if test "$ac_cv_func_rand48" = "yes" ; then
12196 $as_echo "#define HAVE_RAND48 1" >>confdefs.h
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <math.h>" >&5
12203 $as_echo_n "checking for isnan in <math.h>... " >&6; }
12204 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 ac_ext=cpp
12208 ac_cpp='$CXXCPP $CPPFLAGS'
12209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215 #include <math.h>
12217 main ()
12219 float f; isnan(f);
12221 return 0;
12223 _ACEOF
12224 if ac_fn_cxx_try_compile "$LINENO"; then :
12225 ac_cv_func_isnan_in_math_h=yes
12226 else
12227 ac_cv_func_isnan_in_math_h=no
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 ac_ext=c
12231 ac_cpp='$CPP $CPPFLAGS'
12232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_math_h" >&5
12238 $as_echo "$ac_cv_func_isnan_in_math_h" >&6; }
12241 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
12243 $as_echo "#define HAVE_ISNAN_IN_MATH_H 1" >>confdefs.h
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <cmath>" >&5
12248 $as_echo_n "checking for isnan in <cmath>... " >&6; }
12249 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 ac_ext=cpp
12253 ac_cpp='$CXXCPP $CPPFLAGS'
12254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260 #include <cmath>
12262 main ()
12264 float f; isnan(f);
12266 return 0;
12268 _ACEOF
12269 if ac_fn_cxx_try_compile "$LINENO"; then :
12270 ac_cv_func_isnan_in_cmath=yes
12271 else
12272 ac_cv_func_isnan_in_cmath=no
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 ac_ext=c
12276 ac_cpp='$CPP $CPPFLAGS'
12277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_cmath" >&5
12283 $as_echo "$ac_cv_func_isnan_in_cmath" >&6; }
12285 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
12287 $as_echo "#define HAVE_ISNAN_IN_CMATH 1" >>confdefs.h
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isnan in <cmath>" >&5
12292 $as_echo_n "checking for std::isnan in <cmath>... " >&6; }
12293 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 ac_ext=cpp
12297 ac_cpp='$CXXCPP $CPPFLAGS'
12298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304 #include <cmath>
12306 main ()
12308 float f; std::isnan(f);
12310 return 0;
12312 _ACEOF
12313 if ac_fn_cxx_try_compile "$LINENO"; then :
12314 ac_cv_func_std_isnan_in_cmath=yes
12315 else
12316 ac_cv_func_std_isnan_in_cmath=no
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 ac_ext=c
12320 ac_cpp='$CPP $CPPFLAGS'
12321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isnan_in_cmath" >&5
12327 $as_echo "$ac_cv_func_std_isnan_in_cmath" >&6; }
12329 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
12331 $as_echo "#define HAVE_STD_ISNAN_IN_CMATH 1" >>confdefs.h
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <math.h>" >&5
12337 $as_echo_n "checking for isinf in <math.h>... " >&6; }
12338 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 ac_ext=cpp
12342 ac_cpp='$CXXCPP $CPPFLAGS'
12343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349 #include <math.h>
12351 main ()
12353 float f; isinf(f);
12355 return 0;
12357 _ACEOF
12358 if ac_fn_cxx_try_compile "$LINENO"; then :
12359 ac_cv_func_isinf_in_math_h=yes
12360 else
12361 ac_cv_func_isinf_in_math_h=no
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 ac_ext=c
12365 ac_cpp='$CPP $CPPFLAGS'
12366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_math_h" >&5
12372 $as_echo "$ac_cv_func_isinf_in_math_h" >&6; }
12374 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
12376 $as_echo "#define HAVE_ISINF_IN_MATH_H 1" >>confdefs.h
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <cmath>" >&5
12381 $as_echo_n "checking for isinf in <cmath>... " >&6; }
12382 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 ac_ext=cpp
12386 ac_cpp='$CXXCPP $CPPFLAGS'
12387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393 #include <cmath>
12395 main ()
12397 float f; isinf(f);
12399 return 0;
12401 _ACEOF
12402 if ac_fn_cxx_try_compile "$LINENO"; then :
12403 ac_cv_func_isinf_in_cmath=yes
12404 else
12405 ac_cv_func_isinf_in_cmath=no
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 ac_ext=c
12409 ac_cpp='$CPP $CPPFLAGS'
12410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_cmath" >&5
12416 $as_echo "$ac_cv_func_isinf_in_cmath" >&6; }
12418 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
12420 $as_echo "#define HAVE_ISINF_IN_CMATH 1" >>confdefs.h
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isinf in <cmath>" >&5
12425 $as_echo_n "checking for std::isinf in <cmath>... " >&6; }
12426 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 ac_ext=cpp
12430 ac_cpp='$CXXCPP $CPPFLAGS'
12431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12437 #include <cmath>
12439 main ()
12441 float f; std::isinf(f)}
12443 return 0;
12445 _ACEOF
12446 if ac_fn_cxx_try_compile "$LINENO"; then :
12447 ac_cv_func_std_isinf_in_cmath=yes
12448 else
12449 ac_cv_func_std_isinf_in_cmath=no
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 ac_ext=c
12453 ac_cpp='$CPP $CPPFLAGS'
12454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isinf_in_cmath" >&5
12460 $as_echo "$ac_cv_func_std_isinf_in_cmath" >&6; }
12462 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
12464 $as_echo "#define HAVE_STD_ISINF_IN_CMATH 1" >>confdefs.h
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite in <ieeefp.h>" >&5
12469 $as_echo_n "checking for finite in <ieeefp.h>... " >&6; }
12470 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 ac_ext=cpp
12474 ac_cpp='$CXXCPP $CPPFLAGS'
12475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12481 #include <ieeefp.h>
12483 main ()
12485 float f; finite(f);
12487 return 0;
12489 _ACEOF
12490 if ac_fn_cxx_try_compile "$LINENO"; then :
12491 ac_cv_func_finite_in_ieeefp_h=yes
12492 else
12493 ac_cv_func_finite_in_ieeefp_h=no
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 ac_ext=c
12497 ac_cpp='$CPP $CPPFLAGS'
12498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_finite_in_ieeefp_h" >&5
12504 $as_echo "$ac_cv_func_finite_in_ieeefp_h" >&6; }
12506 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
12508 $as_echo "#define HAVE_FINITE_IN_IEEEFP_H 1" >>confdefs.h
12514 if test "$llvm_cv_platform_type" = "Unix" ; then
12518 for ac_header in $ac_header_list
12519 do :
12520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12521 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12523 eval as_val=\$$as_ac_Header
12524 if test "x$as_val" = x""yes; then :
12525 cat >>confdefs.h <<_ACEOF
12526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12527 _ACEOF
12531 done
12540 for ac_func in getpagesize
12541 do :
12542 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12543 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12544 cat >>confdefs.h <<_ACEOF
12545 #define HAVE_GETPAGESIZE 1
12546 _ACEOF
12549 done
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12552 $as_echo_n "checking for working mmap... " >&6; }
12553 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 if test "$cross_compiling" = yes; then :
12557 ac_cv_func_mmap_fixed_mapped=no
12558 else
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561 $ac_includes_default
12562 /* malloc might have been renamed as rpl_malloc. */
12563 #undef malloc
12565 /* Thanks to Mike Haertel and Jim Avera for this test.
12566 Here is a matrix of mmap possibilities:
12567 mmap private not fixed
12568 mmap private fixed at somewhere currently unmapped
12569 mmap private fixed at somewhere already mapped
12570 mmap shared not fixed
12571 mmap shared fixed at somewhere currently unmapped
12572 mmap shared fixed at somewhere already mapped
12573 For private mappings, we should verify that changes cannot be read()
12574 back from the file, nor mmap's back from the file at a different
12575 address. (There have been systems where private was not correctly
12576 implemented like the infamous i386 svr4.0, and systems where the
12577 VM page cache was not coherent with the file system buffer cache
12578 like early versions of FreeBSD and possibly contemporary NetBSD.)
12579 For shared mappings, we should conversely verify that changes get
12580 propagated back to all the places they're supposed to be.
12582 Grep wants private fixed already mapped.
12583 The main things grep needs to know about mmap are:
12584 * does it exist and is it safe to write into the mmap'd area
12585 * how to use it (BSD variants) */
12587 #include <fcntl.h>
12588 #include <sys/mman.h>
12590 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12591 char *malloc ();
12592 #endif
12594 /* This mess was copied from the GNU getpagesize.h. */
12595 #ifndef HAVE_GETPAGESIZE
12596 # ifdef _SC_PAGESIZE
12597 # define getpagesize() sysconf(_SC_PAGESIZE)
12598 # else /* no _SC_PAGESIZE */
12599 # ifdef HAVE_SYS_PARAM_H
12600 # include <sys/param.h>
12601 # ifdef EXEC_PAGESIZE
12602 # define getpagesize() EXEC_PAGESIZE
12603 # else /* no EXEC_PAGESIZE */
12604 # ifdef NBPG
12605 # define getpagesize() NBPG * CLSIZE
12606 # ifndef CLSIZE
12607 # define CLSIZE 1
12608 # endif /* no CLSIZE */
12609 # else /* no NBPG */
12610 # ifdef NBPC
12611 # define getpagesize() NBPC
12612 # else /* no NBPC */
12613 # ifdef PAGESIZE
12614 # define getpagesize() PAGESIZE
12615 # endif /* PAGESIZE */
12616 # endif /* no NBPC */
12617 # endif /* no NBPG */
12618 # endif /* no EXEC_PAGESIZE */
12619 # else /* no HAVE_SYS_PARAM_H */
12620 # define getpagesize() 8192 /* punt totally */
12621 # endif /* no HAVE_SYS_PARAM_H */
12622 # endif /* no _SC_PAGESIZE */
12624 #endif /* no HAVE_GETPAGESIZE */
12627 main ()
12629 char *data, *data2, *data3;
12630 const char *cdata2;
12631 int i, pagesize;
12632 int fd, fd2;
12634 pagesize = getpagesize ();
12636 /* First, make a file with some known garbage in it. */
12637 data = (char *) malloc (pagesize);
12638 if (!data)
12639 return 1;
12640 for (i = 0; i < pagesize; ++i)
12641 *(data + i) = rand ();
12642 umask (0);
12643 fd = creat ("conftest.mmap", 0600);
12644 if (fd < 0)
12645 return 2;
12646 if (write (fd, data, pagesize) != pagesize)
12647 return 3;
12648 close (fd);
12650 /* Next, check that the tail of a page is zero-filled. File must have
12651 non-zero length, otherwise we risk SIGBUS for entire page. */
12652 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12653 if (fd2 < 0)
12654 return 4;
12655 cdata2 = "";
12656 if (write (fd2, cdata2, 1) != 1)
12657 return 5;
12658 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12659 if (data2 == MAP_FAILED)
12660 return 6;
12661 for (i = 0; i < pagesize; ++i)
12662 if (*(data2 + i))
12663 return 7;
12664 close (fd2);
12665 if (munmap (data2, pagesize))
12666 return 8;
12668 /* Next, try to mmap the file at a fixed address which already has
12669 something else allocated at it. If we can, also make sure that
12670 we see the same garbage. */
12671 fd = open ("conftest.mmap", O_RDWR);
12672 if (fd < 0)
12673 return 9;
12674 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12675 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12676 return 10;
12677 for (i = 0; i < pagesize; ++i)
12678 if (*(data + i) != *(data2 + i))
12679 return 11;
12681 /* Finally, make sure that changes to the mapped area do not
12682 percolate back to the file as seen by read(). (This is a bug on
12683 some variants of i386 svr4.0.) */
12684 for (i = 0; i < pagesize; ++i)
12685 *(data2 + i) = *(data2 + i) + 1;
12686 data3 = (char *) malloc (pagesize);
12687 if (!data3)
12688 return 12;
12689 if (read (fd, data3, pagesize) != pagesize)
12690 return 13;
12691 for (i = 0; i < pagesize; ++i)
12692 if (*(data + i) != *(data3 + i))
12693 return 14;
12694 close (fd);
12695 return 0;
12697 _ACEOF
12698 if ac_fn_c_try_run "$LINENO"; then :
12699 ac_cv_func_mmap_fixed_mapped=yes
12700 else
12701 ac_cv_func_mmap_fixed_mapped=no
12703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12704 conftest.$ac_objext conftest.beam conftest.$ac_ext
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12709 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12710 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12712 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12715 rm -f conftest.mmap conftest.txt
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap of files" >&5
12718 $as_echo_n "checking for mmap of files... " >&6; }
12719 if test "${ac_cv_func_mmap_file+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 ac_ext=c
12723 ac_cpp='$CPP $CPPFLAGS'
12724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12728 if test "$cross_compiling" = yes; then :
12729 ac_cv_func_mmap_file=no
12730 else
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12735 #include <sys/types.h>
12736 #include <sys/mman.h>
12737 #include <fcntl.h>
12740 main ()
12743 int fd;
12744 fd = creat ("foo",0777);
12745 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
12746 unlink ("foo");
12747 return (fd != (int) MAP_FAILED);
12749 return 0;
12751 _ACEOF
12752 if ac_fn_c_try_run "$LINENO"; then :
12753 ac_cv_func_mmap_file=yes
12754 else
12755 ac_cv_func_mmap_file=no
12757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12758 conftest.$ac_objext conftest.beam conftest.$ac_ext
12761 ac_ext=c
12762 ac_cpp='$CPP $CPPFLAGS'
12763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
12770 $as_echo "$ac_cv_func_mmap_file" >&6; }
12771 if test "$ac_cv_func_mmap_file" = yes; then
12773 $as_echo "#define HAVE_MMAP_FILE /**/" >>confdefs.h
12775 MMAP_FILE=yes
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /dev/zero is needed for mmap" >&5
12780 $as_echo_n "checking if /dev/zero is needed for mmap... " >&6; }
12781 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 if test "$llvm_cv_os_type" = "Interix" ; then
12785 ac_cv_need_dev_zero_for_mmap=yes
12786 else
12787 ac_cv_need_dev_zero_for_mmap=no
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_dev_zero_for_mmap" >&5
12792 $as_echo "$ac_cv_need_dev_zero_for_mmap" >&6; }
12793 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
12795 $as_echo "#define NEED_DEV_ZERO_FOR_MMAP 1" >>confdefs.h
12799 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
12800 then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of a fixed address required but not supported" >&5
12802 $as_echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
12804 if test "$ac_cv_func_mmap_file" = "no"
12805 then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of files required but not found" >&5
12807 $as_echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
12812 $as_echo_n "checking for GCC atomic builtins... " >&6; }
12813 ac_ext=cpp
12814 ac_cpp='$CXXCPP $CPPFLAGS'
12815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 int main() {
12822 volatile unsigned long val = 1;
12823 __sync_synchronize();
12824 __sync_val_compare_and_swap(&val, 1, 0);
12825 __sync_add_and_fetch(&val, 1);
12826 __sync_sub_and_fetch(&val, 1);
12827 return 0;
12830 _ACEOF
12831 if ac_fn_c_try_link "$LINENO"; then :
12832 ac_ext=c
12833 ac_cpp='$CPP $CPPFLAGS'
12834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12839 $as_echo "yes" >&6; }
12841 $as_echo "#define LLVM_MULTITHREADED 1" >>confdefs.h
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12847 $as_echo "#define LLVM_MULTITHREADED 0" >>confdefs.h
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
12850 $as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12856 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5
12858 $as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; }
12859 if test "${llvm_cv_linux_mixed+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 ac_ext=c
12863 ac_cpp='$CPP $CPPFLAGS'
12864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870 #ifndef __x86_64__
12871 error: Not x86-64 even if uname says so!
12872 #endif
12875 main ()
12879 return 0;
12881 _ACEOF
12882 if ac_fn_c_try_compile "$LINENO"; then :
12883 llvm_cv_linux_mixed=no
12884 else
12885 llvm_cv_linux_mixed=yes
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 ac_ext=c
12889 ac_cpp='$CPP $CPPFLAGS'
12890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5
12897 $as_echo "$llvm_cv_linux_mixed" >&6; }
12899 if test "$llvm_cv_linux_mixed" = "yes"; then
12900 llvm_cv_target_arch="x86"
12901 ARCH="x86"
12905 for ac_func in __dso_handle
12906 do :
12907 ac_fn_c_check_func "$LINENO" "__dso_handle" "ac_cv_func___dso_handle"
12908 if test "x$ac_cv_func___dso_handle" = x""yes; then :
12909 cat >>confdefs.h <<_ACEOF
12910 #define HAVE___DSO_HANDLE 1
12911 _ACEOF
12914 done
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llvm-gcc is sane" >&5
12918 $as_echo_n "checking whether llvm-gcc is sane... " >&6; }
12919 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 llvm_cv_llvmgcc_sanity="no"
12923 if test -x "$LLVMGCC" ; then
12924 cp /dev/null conftest.c
12925 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
12926 grep 'target datalayout =' > /dev/null 2>&1
12927 if test $? -eq 0 ; then
12928 llvm_cv_llvmgcc_sanity="yes"
12930 rm conftest.c
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_llvmgcc_sanity" >&5
12934 $as_echo "$llvm_cv_llvmgcc_sanity" >&6; }
12936 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm-gcc component support" >&5
12938 $as_echo_n "checking llvm-gcc component support... " >&6; }
12939 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
12940 LLVMCC1=$llvmcc1path
12942 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
12943 LLVMCC1PLUS=$llvmcc1pluspath
12945 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
12946 LLVMGCCDIR=$llvmgccdir
12948 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
12949 LLVMGCC_LANGS=$llvmgcclangs
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12952 $as_echo "ok" >&6; }
12955 SHLIBEXT=$libltdl_cv_shlibext
12958 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
12961 # Translate the various configuration directories and other basic
12962 # information into substitutions that will end up in Makefile.config.in
12963 # that these configured values can be used by the makefiles
12964 if test "${prefix}" = "NONE" ; then
12965 prefix="/usr/local"
12967 eval LLVM_PREFIX="${prefix}";
12968 eval LLVM_BINDIR="${prefix}/bin";
12969 eval LLVM_LIBDIR="${prefix}/lib";
12970 eval LLVM_DATADIR="${prefix}/share/llvm";
12971 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
12972 eval LLVM_ETCDIR="${prefix}/etc/llvm";
12973 eval LLVM_INCLUDEDIR="${prefix}/include";
12974 eval LLVM_INFODIR="${prefix}/info";
12975 eval LLVM_MANDIR="${prefix}/man";
12976 LLVM_CONFIGTIME=`date`
12988 # Place the various directores into the config.h file as #defines so that we
12989 # can know about the installation paths within LLVM.
12991 cat >>confdefs.h <<_ACEOF
12992 #define LLVM_PREFIX "$LLVM_PREFIX"
12993 _ACEOF
12996 cat >>confdefs.h <<_ACEOF
12997 #define LLVM_BINDIR "$LLVM_BINDIR"
12998 _ACEOF
13001 cat >>confdefs.h <<_ACEOF
13002 #define LLVM_LIBDIR "$LLVM_LIBDIR"
13003 _ACEOF
13006 cat >>confdefs.h <<_ACEOF
13007 #define LLVM_DATADIR "$LLVM_DATADIR"
13008 _ACEOF
13011 cat >>confdefs.h <<_ACEOF
13012 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
13013 _ACEOF
13016 cat >>confdefs.h <<_ACEOF
13017 #define LLVM_ETCDIR "$LLVM_ETCDIR"
13018 _ACEOF
13021 cat >>confdefs.h <<_ACEOF
13022 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
13023 _ACEOF
13026 cat >>confdefs.h <<_ACEOF
13027 #define LLVM_INFODIR "$LLVM_INFODIR"
13028 _ACEOF
13031 cat >>confdefs.h <<_ACEOF
13032 #define LLVM_MANDIR "$LLVM_MANDIR"
13033 _ACEOF
13036 cat >>confdefs.h <<_ACEOF
13037 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
13038 _ACEOF
13041 cat >>confdefs.h <<_ACEOF
13042 #define LLVM_HOSTTRIPLE "$host"
13043 _ACEOF
13046 # Determine which bindings to build.
13047 if test "$BINDINGS_TO_BUILD" = auto ; then
13048 BINDINGS_TO_BUILD=""
13049 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
13050 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
13053 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
13056 # This isn't really configurey, but it avoids having to repeat the list in
13057 # other files.
13058 ALL_BINDINGS=ocaml
13061 # Do any work necessary to ensure that bindings have what they need.
13062 binding_prereqs_failed=0
13063 for a_binding in $BINDINGS_TO_BUILD ; do
13064 case "$a_binding" in
13065 ocaml)
13066 if test "x$OCAMLC" = x ; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
13068 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
13069 binding_prereqs_failed=1
13071 if test "x$OCAMLDEP" = x ; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
13073 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
13074 binding_prereqs_failed=1
13076 if test "x$OCAMLOPT" = x ; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
13078 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
13080 if test "x$with_ocaml_libdir" != xauto ; then
13081 OCAML_LIBDIR=$with_ocaml_libdir
13083 else
13084 ocaml_stdlib="`"$OCAMLC" -where`"
13085 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
13086 then
13087 # ocaml stdlib is beneath our prefix; use stdlib
13088 OCAML_LIBDIR=$ocaml_stdlib
13090 else
13091 # ocaml stdlib is outside our prefix; use libdir/ocaml
13092 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
13097 esac
13098 done
13099 if test "$binding_prereqs_failed" = 1 ; then
13100 as_fn_error "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
13104 $as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; }
13105 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 ac_ext=cpp
13109 ac_cpp='$CXXCPP $CPPFLAGS'
13110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13114 oldcxxflags="$CXXFLAGS"
13115 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13120 main ()
13124 return 0;
13126 _ACEOF
13127 if ac_fn_cxx_try_compile "$LINENO"; then :
13128 llvm_cv_cxx_visibility_inlines_hidden=yes
13129 else
13130 llvm_cv_cxx_visibility_inlines_hidden=no
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133 CXXFLAGS="$oldcxxflags"
13134 ac_ext=c
13135 ac_cpp='$CPP $CPPFLAGS'
13136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
13143 $as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
13144 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
13145 ENABLE_VISIBILITY_INLINES_HIDDEN=1
13147 else
13148 ENABLE_VISIBILITY_INLINES_HIDDEN=0
13153 if test "$llvm_cv_link_use_r" = "yes" ; then
13154 RPATH="-Wl,-R"
13155 else
13156 RPATH="-Wl,-rpath"
13160 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
13161 RDYNAMIC="-Wl,-export-dynamic"
13162 else
13163 RDYNAMIC=""
13168 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
13173 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
13175 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
13177 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
13179 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
13181 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
13184 ac_config_files="$ac_config_files Makefile.config"
13187 ac_config_files="$ac_config_files llvm.spec"
13190 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
13193 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
13196 ac_config_commands="$ac_config_commands setup"
13198 ac_config_commands="$ac_config_commands Makefile"
13201 ac_config_commands="$ac_config_commands Makefile.common"
13204 ac_config_commands="$ac_config_commands examples/Makefile"
13207 ac_config_commands="$ac_config_commands lib/Makefile"
13210 ac_config_commands="$ac_config_commands runtime/Makefile"
13213 ac_config_commands="$ac_config_commands test/Makefile"
13216 ac_config_commands="$ac_config_commands test/Makefile.tests"
13219 ac_config_commands="$ac_config_commands unittests/Makefile"
13222 ac_config_commands="$ac_config_commands tools/Makefile"
13225 ac_config_commands="$ac_config_commands utils/Makefile"
13228 ac_config_commands="$ac_config_commands projects/Makefile"
13231 ac_config_commands="$ac_config_commands bindings/Makefile"
13234 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
13238 cat >confcache <<\_ACEOF
13239 # This file is a shell script that caches the results of configure
13240 # tests run on this system so they can be shared between configure
13241 # scripts and configure runs, see configure's option --config-cache.
13242 # It is not useful on other systems. If it contains results you don't
13243 # want to keep, you may remove or edit it.
13245 # config.status only pays attention to the cache file if you give it
13246 # the --recheck option to rerun configure.
13248 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13249 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13250 # following values.
13252 _ACEOF
13254 # The following way of writing the cache mishandles newlines in values,
13255 # but we know of no workaround that is simple, portable, and efficient.
13256 # So, we kill variables containing newlines.
13257 # Ultrix sh set writes to stderr and can't be redirected directly,
13258 # and sets the high bit in the cache file unless we assign to the vars.
13260 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13261 eval ac_val=\$$ac_var
13262 case $ac_val in #(
13263 *${as_nl}*)
13264 case $ac_var in #(
13265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13266 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13267 esac
13268 case $ac_var in #(
13269 _ | IFS | as_nl) ;; #(
13270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13271 *) { eval $ac_var=; unset $ac_var;} ;;
13272 esac ;;
13273 esac
13274 done
13276 (set) 2>&1 |
13277 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13278 *${as_nl}ac_space=\ *)
13279 # `set' does not quote correctly, so add quotes: double-quote
13280 # substitution turns \\\\ into \\, and sed turns \\ into \.
13281 sed -n \
13282 "s/'/'\\\\''/g;
13283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13284 ;; #(
13286 # `set' quotes correctly as required by POSIX, so do not add quotes.
13287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13289 esac |
13290 sort
13292 sed '
13293 /^ac_cv_env_/b end
13294 t clear
13295 :clear
13296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13297 t end
13298 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13299 :end' >>confcache
13300 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13301 if test -w "$cache_file"; then
13302 test "x$cache_file" != "x/dev/null" &&
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13304 $as_echo "$as_me: updating cache $cache_file" >&6;}
13305 cat confcache >$cache_file
13306 else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13308 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13311 rm -f confcache
13313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13314 # Let make expand exec_prefix.
13315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13317 DEFS=-DHAVE_CONFIG_H
13319 ac_libobjs=
13320 ac_ltlibobjs=
13321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13322 # 1. Remove the extension, and $U if already installed.
13323 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13324 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13326 # will be set to the directory where LIBOBJS objects are built.
13327 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13328 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13329 done
13330 LIBOBJS=$ac_libobjs
13332 LTLIBOBJS=$ac_ltlibobjs
13336 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13337 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13340 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13341 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13345 : ${CONFIG_STATUS=./config.status}
13346 ac_write_fail=0
13347 ac_clean_files_save=$ac_clean_files
13348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13351 as_write_fail=0
13352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13353 #! $SHELL
13354 # Generated by $as_me.
13355 # Run this file to recreate the current configuration.
13356 # Compiler output produced by configure, useful for debugging
13357 # configure, is in config.log if it exists.
13359 debug=false
13360 ac_cs_recheck=false
13361 ac_cs_silent=false
13363 SHELL=\${CONFIG_SHELL-$SHELL}
13364 export SHELL
13365 _ASEOF
13366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13367 ## -------------------- ##
13368 ## M4sh Initialization. ##
13369 ## -------------------- ##
13371 # Be more Bourne compatible
13372 DUALCASE=1; export DUALCASE # for MKS sh
13373 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13374 emulate sh
13375 NULLCMD=:
13376 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13377 # is contrary to our usage. Disable this feature.
13378 alias -g '${1+"$@"}'='"$@"'
13379 setopt NO_GLOB_SUBST
13380 else
13381 case `(set -o) 2>/dev/null` in #(
13382 *posix*) :
13383 set -o posix ;; #(
13384 *) :
13386 esac
13390 as_nl='
13392 export as_nl
13393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13394 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13397 # Prefer a ksh shell builtin over an external printf program on Solaris,
13398 # but without wasting forks for bash or zsh.
13399 if test -z "$BASH_VERSION$ZSH_VERSION" \
13400 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13401 as_echo='print -r --'
13402 as_echo_n='print -rn --'
13403 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13404 as_echo='printf %s\n'
13405 as_echo_n='printf %s'
13406 else
13407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13408 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13409 as_echo_n='/usr/ucb/echo -n'
13410 else
13411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13412 as_echo_n_body='eval
13413 arg=$1;
13414 case $arg in #(
13415 *"$as_nl"*)
13416 expr "X$arg" : "X\\(.*\\)$as_nl";
13417 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13418 esac;
13419 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13421 export as_echo_n_body
13422 as_echo_n='sh -c $as_echo_n_body as_echo'
13424 export as_echo_body
13425 as_echo='sh -c $as_echo_body as_echo'
13428 # The user is always right.
13429 if test "${PATH_SEPARATOR+set}" != set; then
13430 PATH_SEPARATOR=:
13431 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13432 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13433 PATH_SEPARATOR=';'
13438 # IFS
13439 # We need space, tab and new line, in precisely that order. Quoting is
13440 # there to prevent editors from complaining about space-tab.
13441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13442 # splitting by setting IFS to empty value.)
13443 IFS=" "" $as_nl"
13445 # Find who we are. Look in the path if we contain no directory separator.
13446 case $0 in #((
13447 *[\\/]* ) as_myself=$0 ;;
13448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13454 done
13455 IFS=$as_save_IFS
13458 esac
13459 # We did not find ourselves, most probably we were run as `sh COMMAND'
13460 # in which case we are not to be found in the path.
13461 if test "x$as_myself" = x; then
13462 as_myself=$0
13464 if test ! -f "$as_myself"; then
13465 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13466 exit 1
13469 # Unset variables that we do not need and which cause bugs (e.g. in
13470 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13471 # suppresses any "Segmentation fault" message there. '((' could
13472 # trigger a bug in pdksh 5.2.14.
13473 for as_var in BASH_ENV ENV MAIL MAILPATH
13474 do eval test x\${$as_var+set} = xset \
13475 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13476 done
13477 PS1='$ '
13478 PS2='> '
13479 PS4='+ '
13481 # NLS nuisances.
13482 LC_ALL=C
13483 export LC_ALL
13484 LANGUAGE=C
13485 export LANGUAGE
13487 # CDPATH.
13488 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13491 # as_fn_error ERROR [LINENO LOG_FD]
13492 # ---------------------------------
13493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13495 # script with status $?, using 1 if that was 0.
13496 as_fn_error ()
13498 as_status=$?; test $as_status -eq 0 && as_status=1
13499 if test "$3"; then
13500 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13501 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13503 $as_echo "$as_me: error: $1" >&2
13504 as_fn_exit $as_status
13505 } # as_fn_error
13508 # as_fn_set_status STATUS
13509 # -----------------------
13510 # Set $? to STATUS, without forking.
13511 as_fn_set_status ()
13513 return $1
13514 } # as_fn_set_status
13516 # as_fn_exit STATUS
13517 # -----------------
13518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13519 as_fn_exit ()
13521 set +e
13522 as_fn_set_status $1
13523 exit $1
13524 } # as_fn_exit
13526 # as_fn_unset VAR
13527 # ---------------
13528 # Portably unset VAR.
13529 as_fn_unset ()
13531 { eval $1=; unset $1;}
13533 as_unset=as_fn_unset
13534 # as_fn_append VAR VALUE
13535 # ----------------------
13536 # Append the text in VALUE to the end of the definition contained in VAR. Take
13537 # advantage of any shell optimizations that allow amortized linear growth over
13538 # repeated appends, instead of the typical quadratic growth present in naive
13539 # implementations.
13540 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13541 eval 'as_fn_append ()
13543 eval $1+=\$2
13545 else
13546 as_fn_append ()
13548 eval $1=\$$1\$2
13550 fi # as_fn_append
13552 # as_fn_arith ARG...
13553 # ------------------
13554 # Perform arithmetic evaluation on the ARGs, and store the result in the
13555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13556 # must be portable across $(()) and expr.
13557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13558 eval 'as_fn_arith ()
13560 as_val=$(( $* ))
13562 else
13563 as_fn_arith ()
13565 as_val=`expr "$@" || test $? -eq 1`
13567 fi # as_fn_arith
13570 if expr a : '\(a\)' >/dev/null 2>&1 &&
13571 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13572 as_expr=expr
13573 else
13574 as_expr=false
13577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13578 as_basename=basename
13579 else
13580 as_basename=false
13583 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13584 as_dirname=dirname
13585 else
13586 as_dirname=false
13589 as_me=`$as_basename -- "$0" ||
13590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13591 X"$0" : 'X\(//\)$' \| \
13592 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13593 $as_echo X/"$0" |
13594 sed '/^.*\/\([^/][^/]*\)\/*$/{
13595 s//\1/
13598 /^X\/\(\/\/\)$/{
13599 s//\1/
13602 /^X\/\(\/\).*/{
13603 s//\1/
13606 s/.*/./; q'`
13608 # Avoid depending upon Character Ranges.
13609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13612 as_cr_digits='0123456789'
13613 as_cr_alnum=$as_cr_Letters$as_cr_digits
13615 ECHO_C= ECHO_N= ECHO_T=
13616 case `echo -n x` in #(((((
13617 -n*)
13618 case `echo 'xy\c'` in
13619 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13620 xy) ECHO_C='\c';;
13621 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13622 ECHO_T=' ';;
13623 esac;;
13625 ECHO_N='-n';;
13626 esac
13628 rm -f conf$$ conf$$.exe conf$$.file
13629 if test -d conf$$.dir; then
13630 rm -f conf$$.dir/conf$$.file
13631 else
13632 rm -f conf$$.dir
13633 mkdir conf$$.dir 2>/dev/null
13635 if (echo >conf$$.file) 2>/dev/null; then
13636 if ln -s conf$$.file conf$$ 2>/dev/null; then
13637 as_ln_s='ln -s'
13638 # ... but there are two gotchas:
13639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13641 # In both cases, we have to default to `cp -p'.
13642 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13643 as_ln_s='cp -p'
13644 elif ln conf$$.file conf$$ 2>/dev/null; then
13645 as_ln_s=ln
13646 else
13647 as_ln_s='cp -p'
13649 else
13650 as_ln_s='cp -p'
13652 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13653 rmdir conf$$.dir 2>/dev/null
13656 # as_fn_mkdir_p
13657 # -------------
13658 # Create "$as_dir" as a directory, including parents if necessary.
13659 as_fn_mkdir_p ()
13662 case $as_dir in #(
13663 -*) as_dir=./$as_dir;;
13664 esac
13665 test -d "$as_dir" || eval $as_mkdir_p || {
13666 as_dirs=
13667 while :; do
13668 case $as_dir in #(
13669 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13670 *) as_qdir=$as_dir;;
13671 esac
13672 as_dirs="'$as_qdir' $as_dirs"
13673 as_dir=`$as_dirname -- "$as_dir" ||
13674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13675 X"$as_dir" : 'X\(//\)[^/]' \| \
13676 X"$as_dir" : 'X\(//\)$' \| \
13677 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13678 $as_echo X"$as_dir" |
13679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13680 s//\1/
13683 /^X\(\/\/\)[^/].*/{
13684 s//\1/
13687 /^X\(\/\/\)$/{
13688 s//\1/
13691 /^X\(\/\).*/{
13692 s//\1/
13695 s/.*/./; q'`
13696 test -d "$as_dir" && break
13697 done
13698 test -z "$as_dirs" || eval "mkdir $as_dirs"
13699 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13702 } # as_fn_mkdir_p
13703 if mkdir -p . 2>/dev/null; then
13704 as_mkdir_p='mkdir -p "$as_dir"'
13705 else
13706 test -d ./-p && rmdir ./-p
13707 as_mkdir_p=false
13710 if test -x / >/dev/null 2>&1; then
13711 as_test_x='test -x'
13712 else
13713 if ls -dL / >/dev/null 2>&1; then
13714 as_ls_L_option=L
13715 else
13716 as_ls_L_option=
13718 as_test_x='
13719 eval sh -c '\''
13720 if test -d "$1"; then
13721 test -d "$1/.";
13722 else
13723 case $1 in #(
13724 -*)set "./$1";;
13725 esac;
13726 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13727 ???[sx]*):;;*)false;;esac;fi
13728 '\'' sh
13731 as_executable_p=$as_test_x
13733 # Sed expression to map a string onto a valid CPP name.
13734 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13736 # Sed expression to map a string onto a valid variable name.
13737 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13740 exec 6>&1
13741 ## ----------------------------------- ##
13742 ## Main body of $CONFIG_STATUS script. ##
13743 ## ----------------------------------- ##
13744 _ASEOF
13745 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13748 # Save the log message, to keep $0 and so on meaningful, and to
13749 # report actual input values of CONFIG_FILES etc. instead of their
13750 # values after options handling.
13751 ac_log="
13752 This file was extended by llvm $as_me 2.9svn, which was
13753 generated by GNU Autoconf 2.65. Invocation command line was
13755 CONFIG_FILES = $CONFIG_FILES
13756 CONFIG_HEADERS = $CONFIG_HEADERS
13757 CONFIG_LINKS = $CONFIG_LINKS
13758 CONFIG_COMMANDS = $CONFIG_COMMANDS
13759 $ $0 $@
13761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13764 _ACEOF
13766 case $ac_config_files in *"
13767 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13768 esac
13770 case $ac_config_headers in *"
13771 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13772 esac
13775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13776 # Files that config.status was made for.
13777 config_files="$ac_config_files"
13778 config_headers="$ac_config_headers"
13779 config_commands="$ac_config_commands"
13781 _ACEOF
13783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13784 ac_cs_usage="\
13785 \`$as_me' instantiates files and other configuration actions
13786 from templates according to the current configuration. Unless the files
13787 and actions are specified as TAGs, all are instantiated by default.
13789 Usage: $0 [OPTION]... [TAG]...
13791 -h, --help print this help, then exit
13792 -V, --version print version number and configuration settings, then exit
13793 --config print configuration, then exit
13794 -q, --quiet, --silent
13795 do not print progress messages
13796 -d, --debug don't remove temporary files
13797 --recheck update $as_me by reconfiguring in the same conditions
13798 --file=FILE[:TEMPLATE]
13799 instantiate the configuration file FILE
13800 --header=FILE[:TEMPLATE]
13801 instantiate the configuration header FILE
13803 Configuration files:
13804 $config_files
13806 Configuration headers:
13807 $config_headers
13809 Configuration commands:
13810 $config_commands
13812 Report bugs to <llvmbugs@cs.uiuc.edu>."
13814 _ACEOF
13815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13817 ac_cs_version="\\
13818 llvm config.status 2.9svn
13819 configured by $0, generated by GNU Autoconf 2.65,
13820 with options \\"\$ac_cs_config\\"
13822 Copyright (C) 2009 Free Software Foundation, Inc.
13823 This config.status script is free software; the Free Software Foundation
13824 gives unlimited permission to copy, distribute and modify it."
13826 ac_pwd='$ac_pwd'
13827 srcdir='$srcdir'
13828 INSTALL='$INSTALL'
13829 test -n "\$AWK" || AWK=awk
13830 _ACEOF
13832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13833 # The default lists apply if the user does not specify any file.
13834 ac_need_defaults=:
13835 while test $# != 0
13837 case $1 in
13838 --*=*)
13839 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13840 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13841 ac_shift=:
13844 ac_option=$1
13845 ac_optarg=$2
13846 ac_shift=shift
13848 esac
13850 case $ac_option in
13851 # Handling of the options.
13852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13853 ac_cs_recheck=: ;;
13854 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13855 $as_echo "$ac_cs_version"; exit ;;
13856 --config | --confi | --conf | --con | --co | --c )
13857 $as_echo "$ac_cs_config"; exit ;;
13858 --debug | --debu | --deb | --de | --d | -d )
13859 debug=: ;;
13860 --file | --fil | --fi | --f )
13861 $ac_shift
13862 case $ac_optarg in
13863 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13864 esac
13865 as_fn_append CONFIG_FILES " '$ac_optarg'"
13866 ac_need_defaults=false;;
13867 --header | --heade | --head | --hea )
13868 $ac_shift
13869 case $ac_optarg in
13870 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13871 esac
13872 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13873 ac_need_defaults=false;;
13874 --he | --h)
13875 # Conflict between --help and --header
13876 as_fn_error "ambiguous option: \`$1'
13877 Try \`$0 --help' for more information.";;
13878 --help | --hel | -h )
13879 $as_echo "$ac_cs_usage"; exit ;;
13880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13881 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13882 ac_cs_silent=: ;;
13884 # This is an error.
13885 -*) as_fn_error "unrecognized option: \`$1'
13886 Try \`$0 --help' for more information." ;;
13888 *) as_fn_append ac_config_targets " $1"
13889 ac_need_defaults=false ;;
13891 esac
13892 shift
13893 done
13895 ac_configure_extra_args=
13897 if $ac_cs_silent; then
13898 exec 6>/dev/null
13899 ac_configure_extra_args="$ac_configure_extra_args --silent"
13902 _ACEOF
13903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13904 if \$ac_cs_recheck; then
13905 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13906 shift
13907 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13908 CONFIG_SHELL='$SHELL'
13909 export CONFIG_SHELL
13910 exec "\$@"
13913 _ACEOF
13914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13915 exec 5>>config.log
13917 echo
13918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13919 ## Running $as_me. ##
13920 _ASBOX
13921 $as_echo "$ac_log"
13922 } >&5
13924 _ACEOF
13925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13927 # INIT-COMMANDS
13929 llvm_src="${srcdir}"
13931 _ACEOF
13933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13935 # Handling of arguments.
13936 for ac_config_target in $ac_config_targets
13938 case $ac_config_target in
13939 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
13940 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
13941 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
13942 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
13943 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
13944 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
13945 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
13946 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
13947 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
13948 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
13949 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
13950 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
13951 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13952 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
13953 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
13954 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
13955 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
13956 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
13957 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
13958 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
13959 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
13960 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
13961 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
13962 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
13963 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
13965 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13966 esac
13967 done
13970 # If the user did not use the arguments to specify the items to instantiate,
13971 # then the envvar interface is used. Set only those that are not.
13972 # We use the long form for the default assignment because of an extremely
13973 # bizarre bug on SunOS 4.1.3.
13974 if $ac_need_defaults; then
13975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13976 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13977 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13980 # Have a temporary directory for convenience. Make it in the build tree
13981 # simply because there is no reason against having it here, and in addition,
13982 # creating and moving files from /tmp can sometimes cause problems.
13983 # Hook for its removal unless debugging.
13984 # Note that there is a small window in which the directory will not be cleaned:
13985 # after its creation but before its name has been assigned to `$tmp'.
13986 $debug ||
13988 tmp=
13989 trap 'exit_status=$?
13990 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13992 trap 'as_fn_exit 1' 1 2 13 15
13994 # Create a (secure) tmp directory for tmp files.
13997 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13998 test -n "$tmp" && test -d "$tmp"
13999 } ||
14001 tmp=./conf$$-$RANDOM
14002 (umask 077 && mkdir "$tmp")
14003 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14005 # Set up the scripts for CONFIG_FILES section.
14006 # No need to generate them if there are no CONFIG_FILES.
14007 # This happens for instance with `./config.status config.h'.
14008 if test -n "$CONFIG_FILES"; then
14011 ac_cr=`echo X | tr X '\015'`
14012 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14013 # But we know of no other shell where ac_cr would be empty at this
14014 # point, so we can use a bashism as a fallback.
14015 if test "x$ac_cr" = x; then
14016 eval ac_cr=\$\'\\r\'
14018 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14019 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14020 ac_cs_awk_cr='\r'
14021 else
14022 ac_cs_awk_cr=$ac_cr
14025 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14026 _ACEOF
14030 echo "cat >conf$$subs.awk <<_ACEOF" &&
14031 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14032 echo "_ACEOF"
14033 } >conf$$subs.sh ||
14034 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14035 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14036 ac_delim='%!_!# '
14037 for ac_last_try in false false false false false :; do
14038 . ./conf$$subs.sh ||
14039 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14041 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14042 if test $ac_delim_n = $ac_delim_num; then
14043 break
14044 elif $ac_last_try; then
14045 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14046 else
14047 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14049 done
14050 rm -f conf$$subs.sh
14052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14053 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14054 _ACEOF
14055 sed -n '
14057 s/^/S["/; s/!.*/"]=/
14060 s/^[^!]*!//
14061 :repl
14062 t repl
14063 s/'"$ac_delim"'$//
14064 t delim
14067 s/\(.\{148\}\)..*/\1/
14068 t more1
14069 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14072 b repl
14073 :more1
14074 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14077 s/.\{148\}//
14078 t nl
14079 :delim
14081 s/\(.\{148\}\)..*/\1/
14082 t more2
14083 s/["\\]/\\&/g; s/^/"/; s/$/"/
14086 :more2
14087 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14090 s/.\{148\}//
14091 t delim
14092 ' <conf$$subs.awk | sed '
14093 /^[^""]/{
14095 s/\n//
14097 ' >>$CONFIG_STATUS || ac_write_fail=1
14098 rm -f conf$$subs.awk
14099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14100 _ACAWK
14101 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14102 for (key in S) S_is_set[key] = 1
14103 FS = "\a"
14107 line = $ 0
14108 nfields = split(line, field, "@")
14109 substed = 0
14110 len = length(field[1])
14111 for (i = 2; i < nfields; i++) {
14112 key = field[i]
14113 keylen = length(key)
14114 if (S_is_set[key]) {
14115 value = S[key]
14116 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14117 len += length(value) + length(field[++i])
14118 substed = 1
14119 } else
14120 len += 1 + keylen
14123 print line
14126 _ACAWK
14127 _ACEOF
14128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14129 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14130 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14131 else
14133 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14134 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14135 _ACEOF
14137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14139 # trailing colons and then remove the whole line if VPATH becomes empty
14140 # (actually we leave an empty line to preserve line numbers).
14141 if test "x$srcdir" = x.; then
14142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14143 s/:*\$(srcdir):*/:/
14144 s/:*\${srcdir}:*/:/
14145 s/:*@srcdir@:*/:/
14146 s/^\([^=]*=[ ]*\):*/\1/
14147 s/:*$//
14148 s/^[^=]*=[ ]*$//
14152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14153 fi # test -n "$CONFIG_FILES"
14155 # Set up the scripts for CONFIG_HEADERS section.
14156 # No need to generate them if there are no CONFIG_HEADERS.
14157 # This happens for instance with `./config.status Makefile'.
14158 if test -n "$CONFIG_HEADERS"; then
14159 cat >"$tmp/defines.awk" <<\_ACAWK ||
14160 BEGIN {
14161 _ACEOF
14163 # Transform confdefs.h into an awk script `defines.awk', embedded as
14164 # here-document in config.status, that substitutes the proper values into
14165 # config.h.in to produce config.h.
14167 # Create a delimiter string that does not exist in confdefs.h, to ease
14168 # handling of long lines.
14169 ac_delim='%!_!# '
14170 for ac_last_try in false false :; do
14171 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14172 if test -z "$ac_t"; then
14173 break
14174 elif $ac_last_try; then
14175 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14176 else
14177 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14179 done
14181 # For the awk script, D is an array of macro values keyed by name,
14182 # likewise P contains macro parameters if any. Preserve backslash
14183 # newline sequences.
14185 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14186 sed -n '
14187 s/.\{148\}/&'"$ac_delim"'/g
14188 t rset
14189 :rset
14190 s/^[ ]*#[ ]*define[ ][ ]*/ /
14191 t def
14193 :def
14194 s/\\$//
14195 t bsnl
14196 s/["\\]/\\&/g
14197 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14198 D["\1"]=" \3"/p
14199 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14201 :bsnl
14202 s/["\\]/\\&/g
14203 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14204 D["\1"]=" \3\\\\\\n"\\/p
14205 t cont
14206 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14207 t cont
14209 :cont
14211 s/.\{148\}/&'"$ac_delim"'/g
14212 t clear
14213 :clear
14214 s/\\$//
14215 t bsnlc
14216 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14218 :bsnlc
14219 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14220 b cont
14221 ' <confdefs.h | sed '
14222 s/'"$ac_delim"'/"\\\
14223 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14226 for (key in D) D_is_set[key] = 1
14227 FS = "\a"
14229 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14230 line = \$ 0
14231 split(line, arg, " ")
14232 if (arg[1] == "#") {
14233 defundef = arg[2]
14234 mac1 = arg[3]
14235 } else {
14236 defundef = substr(arg[1], 2)
14237 mac1 = arg[2]
14239 split(mac1, mac2, "(") #)
14240 macro = mac2[1]
14241 prefix = substr(line, 1, index(line, defundef) - 1)
14242 if (D_is_set[macro]) {
14243 # Preserve the white space surrounding the "#".
14244 print prefix "define", macro P[macro] D[macro]
14245 next
14246 } else {
14247 # Replace #undef with comments. This is necessary, for example,
14248 # in the case of _POSIX_SOURCE, which is predefined and required
14249 # on some systems where configure will not decide to define it.
14250 if (defundef == "undef") {
14251 print "/*", prefix defundef, macro, "*/"
14252 next
14256 { print }
14257 _ACAWK
14258 _ACEOF
14259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14260 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14261 fi # test -n "$CONFIG_HEADERS"
14264 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14265 shift
14266 for ac_tag
14268 case $ac_tag in
14269 :[FHLC]) ac_mode=$ac_tag; continue;;
14270 esac
14271 case $ac_mode$ac_tag in
14272 :[FHL]*:*);;
14273 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14274 :[FH]-) ac_tag=-:-;;
14275 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14276 esac
14277 ac_save_IFS=$IFS
14278 IFS=:
14279 set x $ac_tag
14280 IFS=$ac_save_IFS
14281 shift
14282 ac_file=$1
14283 shift
14285 case $ac_mode in
14286 :L) ac_source=$1;;
14287 :[FH])
14288 ac_file_inputs=
14289 for ac_f
14291 case $ac_f in
14292 -) ac_f="$tmp/stdin";;
14293 *) # Look for the file first in the build tree, then in the source tree
14294 # (if the path is not absolute). The absolute path cannot be DOS-style,
14295 # because $ac_f cannot contain `:'.
14296 test -f "$ac_f" ||
14297 case $ac_f in
14298 [\\/$]*) false;;
14299 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14300 esac ||
14301 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14302 esac
14303 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14304 as_fn_append ac_file_inputs " '$ac_f'"
14305 done
14307 # Let's still pretend it is `configure' which instantiates (i.e., don't
14308 # use $as_me), people would be surprised to read:
14309 # /* config.h. Generated by config.status. */
14310 configure_input='Generated from '`
14311 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14312 `' by configure.'
14313 if test x"$ac_file" != x-; then
14314 configure_input="$ac_file. $configure_input"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14316 $as_echo "$as_me: creating $ac_file" >&6;}
14318 # Neutralize special characters interpreted by sed in replacement strings.
14319 case $configure_input in #(
14320 *\&* | *\|* | *\\* )
14321 ac_sed_conf_input=`$as_echo "$configure_input" |
14322 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14323 *) ac_sed_conf_input=$configure_input;;
14324 esac
14326 case $ac_tag in
14327 *:-:* | *:-) cat >"$tmp/stdin" \
14328 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14329 esac
14331 esac
14333 ac_dir=`$as_dirname -- "$ac_file" ||
14334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14335 X"$ac_file" : 'X\(//\)[^/]' \| \
14336 X"$ac_file" : 'X\(//\)$' \| \
14337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14338 $as_echo X"$ac_file" |
14339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14340 s//\1/
14343 /^X\(\/\/\)[^/].*/{
14344 s//\1/
14347 /^X\(\/\/\)$/{
14348 s//\1/
14351 /^X\(\/\).*/{
14352 s//\1/
14355 s/.*/./; q'`
14356 as_dir="$ac_dir"; as_fn_mkdir_p
14357 ac_builddir=.
14359 case "$ac_dir" in
14360 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14362 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14363 # A ".." for each directory in $ac_dir_suffix.
14364 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14365 case $ac_top_builddir_sub in
14366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14368 esac ;;
14369 esac
14370 ac_abs_top_builddir=$ac_pwd
14371 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14372 # for backward compatibility:
14373 ac_top_builddir=$ac_top_build_prefix
14375 case $srcdir in
14376 .) # We are building in place.
14377 ac_srcdir=.
14378 ac_top_srcdir=$ac_top_builddir_sub
14379 ac_abs_top_srcdir=$ac_pwd ;;
14380 [\\/]* | ?:[\\/]* ) # Absolute name.
14381 ac_srcdir=$srcdir$ac_dir_suffix;
14382 ac_top_srcdir=$srcdir
14383 ac_abs_top_srcdir=$srcdir ;;
14384 *) # Relative name.
14385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14386 ac_top_srcdir=$ac_top_build_prefix$srcdir
14387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14388 esac
14389 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14392 case $ac_mode in
14395 # CONFIG_FILE
14398 case $INSTALL in
14399 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14400 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14401 esac
14402 _ACEOF
14404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14405 # If the template does not know about datarootdir, expand it.
14406 # FIXME: This hack should be removed a few years after 2.60.
14407 ac_datarootdir_hack=; ac_datarootdir_seen=
14408 ac_sed_dataroot='
14409 /datarootdir/ {
14413 /@datadir@/p
14414 /@docdir@/p
14415 /@infodir@/p
14416 /@localedir@/p
14417 /@mandir@/p'
14418 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14419 *datarootdir*) ac_datarootdir_seen=yes;;
14420 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14422 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14423 _ACEOF
14424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14425 ac_datarootdir_hack='
14426 s&@datadir@&$datadir&g
14427 s&@docdir@&$docdir&g
14428 s&@infodir@&$infodir&g
14429 s&@localedir@&$localedir&g
14430 s&@mandir@&$mandir&g
14431 s&\\\${datarootdir}&$datarootdir&g' ;;
14432 esac
14433 _ACEOF
14435 # Neutralize VPATH when `$srcdir' = `.'.
14436 # Shell code in configure.ac might set extrasub.
14437 # FIXME: do we really want to maintain this feature?
14438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14439 ac_sed_extra="$ac_vpsub
14440 $extrasub
14441 _ACEOF
14442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14445 s|@configure_input@|$ac_sed_conf_input|;t t
14446 s&@top_builddir@&$ac_top_builddir_sub&;t t
14447 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14448 s&@srcdir@&$ac_srcdir&;t t
14449 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14450 s&@top_srcdir@&$ac_top_srcdir&;t t
14451 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14452 s&@builddir@&$ac_builddir&;t t
14453 s&@abs_builddir@&$ac_abs_builddir&;t t
14454 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14455 s&@INSTALL@&$ac_INSTALL&;t t
14456 $ac_datarootdir_hack
14458 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14459 || as_fn_error "could not create $ac_file" "$LINENO" 5
14461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14465 which seems to be undefined. Please make sure it is defined." >&5
14466 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14467 which seems to be undefined. Please make sure it is defined." >&2;}
14469 rm -f "$tmp/stdin"
14470 case $ac_file in
14471 -) cat "$tmp/out" && rm -f "$tmp/out";;
14472 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14473 esac \
14474 || as_fn_error "could not create $ac_file" "$LINENO" 5
14478 # CONFIG_HEADER
14480 if test x"$ac_file" != x-; then
14482 $as_echo "/* $configure_input */" \
14483 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14484 } >"$tmp/config.h" \
14485 || as_fn_error "could not create $ac_file" "$LINENO" 5
14486 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14488 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14489 else
14490 rm -f "$ac_file"
14491 mv "$tmp/config.h" "$ac_file" \
14492 || as_fn_error "could not create $ac_file" "$LINENO" 5
14494 else
14495 $as_echo "/* $configure_input */" \
14496 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14497 || as_fn_error "could not create -" "$LINENO" 5
14501 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14502 $as_echo "$as_me: executing $ac_file commands" >&6;}
14504 esac
14507 case $ac_file$ac_mode in
14508 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
14509 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
14510 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
14511 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
14512 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
14513 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
14514 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
14515 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
14516 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
14517 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
14518 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
14519 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
14520 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
14521 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
14522 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
14523 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
14524 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
14525 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
14526 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
14527 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
14528 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
14529 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
14530 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
14531 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
14532 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
14533 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
14535 esac
14536 done # for ac_tag
14539 as_fn_exit 0
14540 _ACEOF
14541 ac_clean_files=$ac_clean_files_save
14543 test $ac_write_fail = 0 ||
14544 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14547 # configure is writing to config.log, and then calls config.status.
14548 # config.status does its own redirection, appending to config.log.
14549 # Unfortunately, on DOS this fails, as config.log is still kept open
14550 # by configure, so config.status won't be able to write to it; its
14551 # output is simply discarded. So we exec the FD to /dev/null,
14552 # effectively closing config.log, so it can be properly (re)opened and
14553 # appended to by config.status. When coming back to configure, we
14554 # need to make the FD available again.
14555 if test "$no_create" != yes; then
14556 ac_cs_success=:
14557 ac_config_status_args=
14558 test "$silent" = yes &&
14559 ac_config_status_args="$ac_config_status_args --quiet"
14560 exec 5>/dev/null
14561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14562 exec 5>>config.log
14563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14564 # would make configure fail if this is the last instruction.
14565 $ac_cs_success || as_fn_exit $?
14569 # CONFIG_SUBDIRS section.
14571 if test "$no_recursion" != yes; then
14573 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14574 # so they do not pile up.
14575 ac_sub_configure_args=
14576 ac_prev=
14577 eval "set x $ac_configure_args"
14578 shift
14579 for ac_arg
14581 if test -n "$ac_prev"; then
14582 ac_prev=
14583 continue
14585 case $ac_arg in
14586 -cache-file | --cache-file | --cache-fil | --cache-fi \
14587 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14588 ac_prev=cache_file ;;
14589 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14590 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14591 | --c=*)
14593 --config-cache | -C)
14595 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14596 ac_prev=srcdir ;;
14597 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14599 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14600 ac_prev=prefix ;;
14601 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14603 --disable-option-checking)
14606 case $ac_arg in
14607 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14608 esac
14609 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14610 esac
14611 done
14613 # Always prepend --prefix to ensure using the same prefix
14614 # in subdir configurations.
14615 ac_arg="--prefix=$prefix"
14616 case $ac_arg in
14617 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14618 esac
14619 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14621 # Pass --silent
14622 if test "$silent" = yes; then
14623 ac_sub_configure_args="--silent $ac_sub_configure_args"
14626 # Always prepend --disable-option-checking to silence warnings, since
14627 # different subdirs can have different --enable and --with options.
14628 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14630 ac_popdir=`pwd`
14631 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14633 # Do not complain, so a configure script can configure whichever
14634 # parts of a large source tree are present.
14635 test -d "$srcdir/$ac_dir" || continue
14637 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14639 $as_echo "$ac_msg" >&6
14640 as_dir="$ac_dir"; as_fn_mkdir_p
14641 ac_builddir=.
14643 case "$ac_dir" in
14644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14647 # A ".." for each directory in $ac_dir_suffix.
14648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14649 case $ac_top_builddir_sub in
14650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14652 esac ;;
14653 esac
14654 ac_abs_top_builddir=$ac_pwd
14655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14656 # for backward compatibility:
14657 ac_top_builddir=$ac_top_build_prefix
14659 case $srcdir in
14660 .) # We are building in place.
14661 ac_srcdir=.
14662 ac_top_srcdir=$ac_top_builddir_sub
14663 ac_abs_top_srcdir=$ac_pwd ;;
14664 [\\/]* | ?:[\\/]* ) # Absolute name.
14665 ac_srcdir=$srcdir$ac_dir_suffix;
14666 ac_top_srcdir=$srcdir
14667 ac_abs_top_srcdir=$srcdir ;;
14668 *) # Relative name.
14669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14670 ac_top_srcdir=$ac_top_build_prefix$srcdir
14671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14672 esac
14673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14676 cd "$ac_dir"
14678 # Check for guested configure; otherwise get Cygnus style configure.
14679 if test -f "$ac_srcdir/configure.gnu"; then
14680 ac_sub_configure=$ac_srcdir/configure.gnu
14681 elif test -f "$ac_srcdir/configure"; then
14682 ac_sub_configure=$ac_srcdir/configure
14683 elif test -f "$ac_srcdir/configure.in"; then
14684 # This should be Cygnus configure.
14685 ac_sub_configure=$ac_aux_dir/configure
14686 else
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14689 ac_sub_configure=
14692 # The recursion is here.
14693 if test -n "$ac_sub_configure"; then
14694 # Make the cache file name correct relative to the subdirectory.
14695 case $cache_file in
14696 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14697 *) # Relative name.
14698 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14699 esac
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14702 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14703 # The eval makes quoting arguments work.
14704 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14705 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14706 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14709 cd "$ac_popdir"
14710 done
14712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}