configure revision 1.1.4.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for LLVM 4.0.0svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev/null; then :
205 as_have_required=yes
206 else
207 as_have_required=no
208 fi
209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210
211 else
212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213 as_found=false
214 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 do
216 IFS=$as_save_IFS
217 test -z "$as_dir" && as_dir=.
218 as_found=:
219 case $as_dir in #(
220 /*)
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir/$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
228 break 2
229 fi
230 fi
231 done;;
232 esac
233 as_found=false
234 done
235 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
237 CONFIG_SHELL=$SHELL as_have_required=yes
238 fi; }
239 IFS=$as_save_IFS
240
241
242 if test "x$CONFIG_SHELL" != x; then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
262 fi
263
264 if test x$as_have_required = xno; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x${ZSH_VERSION+set} = xset ; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
272 $0: http://llvm.org/bugs/ about your system, including any
273 $0: error possibly output before this message. Then install
274 $0: a modern shell, or manually run the script under such a
275 $0: shell if you do have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
321 {
322
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\).*/{
353 s//\1/
354 q
355 }
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
362
363 } # as_fn_mkdir_p
364
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
369 {
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379 eval 'as_fn_append ()
380 {
381 eval $1+=\$2
382 }'
383 else
384 as_fn_append ()
385 {
386 eval $1=\$$1\$2
387 }
388 fi # as_fn_append
389
390 # as_fn_arith ARG...
391 # ------------------
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
396 eval 'as_fn_arith ()
397 {
398 as_val=$(( $* ))
399 }'
400 else
401 as_fn_arith ()
402 {
403 as_val=`expr "$@" || test $? -eq 1`
404 }
405 fi # as_fn_arith
406
407
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
413 as_fn_error ()
414 {
415 as_status=$1; test $as_status -eq 0 && as_status=1
416 if test "$4"; then
417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 fi
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit $as_status
422 } # as_fn_error
423
424 if expr a : '\(a\)' >/dev/null 2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 as_expr=expr
427 else
428 as_expr=false
429 fi
430
431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 as_basename=basename
433 else
434 as_basename=false
435 fi
436
437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_dirname=dirname
439 else
440 as_dirname=false
441 fi
442
443 as_me=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 $as_echo X/"$0" |
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
449 s//\1/
450 q
451 }
452 /^X\/\(\/\/\)$/{
453 s//\1/
454 q
455 }
456 /^X\/\(\/\).*/{
457 s//\1/
458 q
459 }
460 s/.*/./; q'`
461
462 # Avoid depending upon Character Ranges.
463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits='0123456789'
467 as_cr_alnum=$as_cr_Letters$as_cr_digits
468
469
470 as_lineno_1=$LINENO as_lineno_1a=$LINENO
471 as_lineno_2=$LINENO as_lineno_2a=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
475 sed -n '
476 p
477 /[$]LINENO/=
478 ' <$as_myself |
479 sed '
480 s/[$]LINENO.*/&-/
481 t lineno
482 b
483 :lineno
484 N
485 :loop
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487 t loop
488 s/-\n.*//
489 ' >$as_me.lineno &&
490 chmod +x "$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec=no; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
500 . "./$as_me.lineno"
501 # Exit status is that of the last command.
502 exit
503 }
504
505 ECHO_C= ECHO_N= ECHO_T=
506 case `echo -n x` in #(((((
507 -n*)
508 case `echo 'xy\c'` in
509 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
510 xy) ECHO_C='\c';;
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
512 ECHO_T=' ';;
513 esac;;
514 *)
515 ECHO_N='-n';;
516 esac
517
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
521 else
522 rm -f conf$$.dir
523 mkdir conf$$.dir 2>/dev/null
524 fi
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
527 as_ln_s='ln -s'
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
533 as_ln_s='cp -pR'
534 elif ln conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s=ln
536 else
537 as_ln_s='cp -pR'
538 fi
539 else
540 as_ln_s='cp -pR'
541 fi
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
544
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
547 else
548 test -d ./-p && rmdir ./-p
549 as_mkdir_p=false
550 fi
551
552 as_test_x='test -x'
553 as_executable_p=as_fn_executable_p
554
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560
561
562 test -n "$DJDIR" || exec 7<&0 </dev/null
563 exec 6>&1
564
565 # Name of the host.
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569
570 #
571 # Initializations.
572 #
573 ac_default_prefix=/usr/local
574 ac_clean_files=
575 ac_config_libobj_dir=.
576 LIBOBJS=
577 cross_compiling=no
578 subdirs=
579 MFLAGS=
580 MAKEFLAGS=
581
582 # Identity of this package.
583 PACKAGE_NAME='LLVM'
584 PACKAGE_TARNAME='llvm'
585 PACKAGE_VERSION='4.0.0svn'
586 PACKAGE_STRING='LLVM 4.0.0svn'
587 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
588 PACKAGE_URL=''
589
590 enable_option_checking=no
591 # Factoring default headers for most tests.
592 ac_includes_default="\
593 #include <stdio.h>
594 #ifdef HAVE_SYS_TYPES_H
595 # include <sys/types.h>
596 #endif
597 #ifdef HAVE_SYS_STAT_H
598 # include <sys/stat.h>
599 #endif
600 #ifdef STDC_HEADERS
601 # include <stdlib.h>
602 # include <stddef.h>
603 #else
604 # ifdef HAVE_STDLIB_H
605 # include <stdlib.h>
606 # endif
607 #endif
608 #ifdef HAVE_STRING_H
609 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 # include <memory.h>
611 # endif
612 # include <string.h>
613 #endif
614 #ifdef HAVE_STRINGS_H
615 # include <strings.h>
616 #endif
617 #ifdef HAVE_INTTYPES_H
618 # include <inttypes.h>
619 #endif
620 #ifdef HAVE_STDINT_H
621 # include <stdint.h>
622 #endif
623 #ifdef HAVE_UNISTD_H
624 # include <unistd.h>
625 #endif"
626
627 ac_subst_vars='LTLIBOBJS
628 LIBOBJS
629 RDYNAMIC
630 RPATH
631 ENABLE_VISIBILITY_INLINES_HIDDEN
632 OCAML_LIBDIR
633 HAVE_OCAML_OUNIT
634 HAVE_OCAMLOPT
635 BINDINGS_TO_BUILD
636 SHLIBEXT
637 HUGE_VAL_SANITY
638 HAVE_LIBZ
639 HAVE_PTHREAD
640 USE_INTEL_JITEVENTS
641 USE_OPROFILE
642 HAVE_TERMINFO
643 HAVE_DLOPEN
644 NO_COMMENT
645 NO_UNINITIALIZED
646 NO_MAYBE_UNINITIALIZED
647 COVERED_SWITCH_DEFAULT
648 MISSING_FIELD_INITIALIZERS
649 NO_VARIADIC_MACROS
650 EGREP
651 HAVE_LINK_VERSION_SCRIPT
652 GAS
653 OCAMLFIND
654 GO
655 ZIP
656 PDFROFF
657 GZIPBIN
658 GROFF
659 DOXYGEN
660 CAT
661 BZIP2
662 INSTALL_DATA
663 INSTALL_SCRIPT
664 INSTALL_PROGRAM
665 DOT
666 BINPWD
667 TAR
668 SED
669 RM
670 AR
671 RANLIB
672 MV
673 MKDIR
674 GREP
675 FIND
676 DATE
677 CP
678 CMP
679 NM
680 LN_S
681 ifGNUmake
682 INTERNAL_PREFIX
683 ENABLE_TERMINFO
684 BINUTILS_INCDIR
685 CLANG_SRC_ROOT
686 EXTRA_LD_OPTIONS
687 EXTRA_OPTIONS
688 OPTIMIZE_OPTION
689 LLVM_ENUM_DISASSEMBLERS
690 LLVM_ENUM_ASM_PARSERS
691 LLVM_ENUM_ASM_PRINTERS
692 LLVM_ENUM_TARGETS
693 TARGETS_TO_BUILD
694 ALL_TARGETS
695 ENABLE_EMBED_STDCXX
696 ENABLE_SHARED
697 LLVM_ENABLE_ZLIB
698 ENABLE_PTHREADS
699 LLVM_ENABLE_THREADS
700 clang_doxygen_qhp_cust_filter_attrs
701 clang_doxygen_qhp_cust_filter_name
702 clang_doxygen_qhelpgenerator_path
703 clang_doxygen_qhp_namespace
704 clang_doxygen_qch_filename
705 clang_doxygen_generate_qhp
706 llvm_doxygen_qhp_cust_filter_attrs
707 llvm_doxygen_qhp_cust_filter_name
708 llvm_doxygen_qhelpgenerator_path
709 llvm_doxygen_qhp_namespace
710 llvm_doxygen_qch_filename
711 llvm_doxygen_generate_qhp
712 QHELPGENERATOR
713 extra_search_mappings
714 searchengine_url
715 enable_server_based_search
716 enable_external_search
717 enable_searchengine
718 ENABLE_DOXYGEN
719 ENABLE_DOCS
720 TARGETS_WITH_JIT
721 TARGET_HAS_JIT
722 JIT
723 KEEP_SYMBOLS
724 DEBUG_SYMBOLS
725 DEBUG_RUNTIME
726 ENABLE_ABI_BREAKING_CHECKS
727 EXPENSIVE_CHECKS
728 ENABLE_EXPENSIVE_CHECKS
729 ENABLE_WERROR
730 DISABLE_ASSERTIONS
731 ENABLE_PROFILING
732 ENABLE_OPTIMIZED
733 ENABLE_CLANG_STATIC_ANALYZER
734 CLANG_PLUGIN_SUPPORT
735 ENABLE_CLANG_ARCMT
736 ENABLE_SPLIT_DWARF
737 ENABLE_CXX1Y
738 ENABLE_LIBCPP
739 CVSBUILD
740 BUILD_CXX
741 BUILD_EXEEXT
742 BUILD_CC
743 LLVM_CROSS_COMPILING
744 HOST_ARCH
745 LLVM_NATIVE_ARCH
746 ARCH
747 LLVM_ON_WIN32
748 LLVM_ON_UNIX
749 NOLINKALL
750 LINKALL
751 TARGET_OS
752 HOST_OS
753 OS
754 target_os
755 target_vendor
756 target_cpu
757 target
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 subdirs
767 LLVM_HAS_POLLY
768 ENABLE_POLLY
769 CXX_COMPILER
770 CPP
771 ac_ct_CXX
772 CXXFLAGS
773 CXX
774 OBJEXT
775 EXEEXT
776 ac_ct_CC
777 CPPFLAGS
778 LDFLAGS
779 CFLAGS
780 CC
781 LLVM_COPYRIGHT
782 LLVM_VERSION_SUFFIX
783 LLVM_VERSION_PATCH
784 LLVM_VERSION_MINOR
785 LLVM_VERSION_MAJOR
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL'
824 ac_subst_files=''
825 ac_user_opts='
826 enable_option_checking
827 with_llvm_srcdir
828 enable_polly
829 enable_libcpp
830 enable_compiler_version_checks
831 enable_cxx1y
832 enable_split_dwarf
833 enable_clang_arcmt
834 enable_clang_plugin_support
835 enable_clang_static_analyzer
836 enable_optimized
837 enable_profiling
838 enable_assertions
839 enable_werror
840 enable_expensive_checks
841 enable_abi_breaking_checks
842 enable_debug_runtime
843 enable_debug_symbols
844 enable_keep_symbols
845 enable_jit
846 enable_docs
847 enable_doxygen
848 enable_doxygen_search
849 enable_doxygen_external_search
850 with_doxygen_search_engine_url
851 with_doxygen_search_mappings
852 enable_doxygen_qt_help
853 enable_threads
854 enable_pthreads
855 enable_zlib
856 enable_shared
857 enable_embed_stdcxx
858 enable_backtraces
859 enable_crash_overrides
860 enable_targets
861 enable_experimental_targets
862 with_optimize_option
863 with_extra_options
864 with_extra_ld_options
865 enable_bindings
866 with_ocaml_libdir
867 with_clang_srcdir
868 with_clang_resource_dir
869 with_c_include_dirs
870 with_clang_default_openmp_runtime
871 with_binutils_include
872 with_bug_report_url
873 enable_terminfo
874 enable_libedit
875 enable_libffi
876 with_internal_prefix
877 with_oprofile
878 with_intel_jitevents
879 '
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CXX
889 CXXFLAGS
890 CCC
891 CPP'
892 ac_subdirs_all='tools/polly'
893
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 ac_unrecognized_opts=
898 ac_unrecognized_sep=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *=) ac_optarg= ;;
956 *) ac_optarg=yes ;;
957 esac
958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
969
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
984
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
989
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1012
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1017
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1022
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1058
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1063
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1093
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1167
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1276
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1290
1291 *)
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297 ;;
1298
1299 esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1305 fi
1306
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1313 fi
1314
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1320 do
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350 fi
1351
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355 test "$silent" = yes && exec 6>/dev/null
1356
1357
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1364
1365
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1396 fi
1397 else
1398 ac_srcdir_defaulted=no
1399 fi
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407 pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432 \`configure' configures LLVM 4.0.0svn to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1485 _ACEOF
1486
1487 cat <<\_ACEOF
1488
1489 System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 --target=TARGET configure for building compilers for TARGET [HOST]
1493 _ACEOF
1494 fi
1495
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive ) echo "Configuration of LLVM 4.0.0svn:";;
1499 esac
1500 cat <<\_ACEOF
1501
1502 Optional Features:
1503 --disable-option-checking ignore unrecognized --enable/--with options
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-polly Use polly if available (default is YES)
1507 --enable-libcpp Use libc++ if available (default is NO)
1508 --enable-compiler-version-checks
1509 Check the version of the host compiler (default is
1510 YES)
1511 --enable-cxx1y Use c++1y if available (default is NO)
1512 --enable-split-dwarf Use split-dwarf if available (default is NO)
1513 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1514 --enable-clang-plugin-support
1515 Enable plugin support in clang (default is YES)
1516 --enable-clang-static-analyzer
1517 Enable building of clang Static Analyzer (default is
1518 YES)
1519 --enable-optimized Compile with optimizations enabled (default is NO)
1520 --enable-profiling Compile with profiling enabled (default is NO)
1521 --enable-assertions Compile with assertion checks enabled (default is
1522 YES)
1523 --enable-werror Compile with -Werror enabled (default is NO)
1524 --enable-expensive-checks
1525 Compile with expensive debug checks enabled (default
1526 is NO)
1527 --enable-abi-breaking-checks
1528 Compile with abi-breaking asserts support (default
1529 is with-asserts)
1530 --enable-debug-runtime Build runtime libs with debug symbols (default is
1531 NO)
1532 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1533 optimization is on and YES if it's off)
1534 --enable-keep-symbols Do not strip installed executables)
1535 --enable-jit Enable Just In Time Compiling (default is YES)
1536 --enable-docs Build documents (default is YES)
1537 --enable-doxygen Build doxygen documentation (default is NO)
1538 --enable-doxygen-search Enable doxygen search support (default is NO)
1539 --enable-doxygen-external-search
1540 Enable doxygen exteranl search (default is NO)
1541 --enable-doxygen-qt-help
1542 Build Qt help files (default is NO)
1543 --enable-threads Use threads if available (default is YES)
1544 --enable-pthreads Use pthreads if available (default is YES)
1545 --enable-zlib Use zlib for compression/decompression if available
1546 (default is YES)
1547 --enable-shared Build a shared library and link tools against it
1548 (default is NO)
1549 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1550 Win32 DLL (default is NO)
1551 --enable-backtraces Enable embedding backtraces on crash (default is
1552 YES)
1553 --enable-crash-overrides
1554 Enable crash handling overrides (default is YES)
1555 --enable-targets Build specific host targets: all or
1556 target1,target2,... Valid targets are: host, x86,
1557 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1558 hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1559 wasm, and cpp (default=all)
1560 --enable-experimental-targets
1561 Build experimental host targets: disable or
1562 target1,target2,... (default=disable)
1563 --enable-bindings Build specific language bindings:
1564 all,auto,none,{binding-name} (default=auto)
1565 --enable-terminfo Query the terminfo database if available (default is
1566 YES)
1567 --enable-libedit Use libedit if available (default is YES)
1568 --enable-libffi Check for the presence of libffi (default is NO)
1569
1570 Optional Packages:
1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1573 --with-llvm-srcdir Directory to the out-of-tree LLVM source
1574 --with-doxygen-search-engine-url
1575 Specify the external search engine for doxygen
1576 --with-doxygen-search-mappings
1577 Specify the extra search mapping for doxygen
1578 --with-optimize-option Select the compiler options to use for optimized
1579 builds
1580 --with-extra-options Specify additional options to compile LLVM with
1581 --with-extra-ld-options Specify additional options to link LLVM with
1582 --with-ocaml-libdir Specify install location for ocaml bindings (default
1583 is stdlib)
1584 --with-clang-srcdir Directory to the out-of-tree Clang source
1585 --with-clang-resource-dir
1586 Relative directory from the Clang binary for
1587 resource files
1588 --with-c-include-dirs Colon separated list of directories clang will
1589 search for headers
1590 --with-clang-default-openmp-runtime
1591 The default OpenMP runtime for Clang.
1592 --with-binutils-include Specify path to binutils/include/ containing
1593 plugin-api.h file for gold plugin.
1594 --with-bug-report-url Specify the URL where bug reports should be
1595 submitted (default=http://llvm.org/bugs/)
1596 --with-internal-prefix Installation directory for internal files
1597 --with-oprofile=<prefix>
1598 Tell OProfile >= 0.9.4 how to symbolize JIT output
1599 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1600
1601
1602 Some influential environment variables:
1603 CC C compiler command
1604 CFLAGS C compiler flags
1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1606 nonstandard directory <lib dir>
1607 LIBS libraries to pass to the linker, e.g. -l<library>
1608 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1609 you have headers in a nonstandard directory <include dir>
1610 CXX C++ compiler command
1611 CXXFLAGS C++ compiler flags
1612 CPP C preprocessor
1613
1614 Use these variables to override the choices made by `configure' or to help
1615 it to find libraries and programs with nonstandard names/locations.
1616
1617 Report bugs to <http://llvm.org/bugs/>.
1618 _ACEOF
1619 ac_status=$?
1620 fi
1621
1622 if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625 test -d "$ac_dir" ||
1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 continue
1628 ac_builddir=.
1629
1630 case "$ac_dir" in
1631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *)
1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1634 # A ".." for each directory in $ac_dir_suffix.
1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1636 case $ac_top_builddir_sub in
1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 esac ;;
1640 esac
1641 ac_abs_top_builddir=$ac_pwd
1642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643 # for backward compatibility:
1644 ac_top_builddir=$ac_top_build_prefix
1645
1646 case $srcdir in
1647 .) # We are building in place.
1648 ac_srcdir=.
1649 ac_top_srcdir=$ac_top_builddir_sub
1650 ac_abs_top_srcdir=$ac_pwd ;;
1651 [\\/]* | ?:[\\/]* ) # Absolute name.
1652 ac_srcdir=$srcdir$ac_dir_suffix;
1653 ac_top_srcdir=$srcdir
1654 ac_abs_top_srcdir=$srcdir ;;
1655 *) # Relative name.
1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657 ac_top_srcdir=$ac_top_build_prefix$srcdir
1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 esac
1660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661
1662 cd "$ac_dir" || { ac_status=$?; continue; }
1663 # Check for guested configure.
1664 if test -f "$ac_srcdir/configure.gnu"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1667 elif test -f "$ac_srcdir/configure"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure" --help=recursive
1670 else
1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 fi || ac_status=$?
1673 cd "$ac_pwd" || { ac_status=$?; break; }
1674 done
1675 fi
1676
1677 test -n "$ac_init_help" && exit $ac_status
1678 if $ac_init_version; then
1679 cat <<\_ACEOF
1680 LLVM configure 4.0.0svn
1681 generated by GNU Autoconf 2.69
1682
1683 Copyright (C) 2012 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1686
1687 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1688 _ACEOF
1689 exit
1690 fi
1691
1692 ## ------------------------ ##
1693 ## Autoconf initialization. ##
1694 ## ------------------------ ##
1695
1696 # ac_fn_c_try_compile LINENO
1697 # --------------------------
1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_compile ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext
1703 if { { ac_try="$ac_compile"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_compile") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1716 fi
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest.$ac_objext; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1
1728 fi
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_compile
1733
1734 # ac_fn_cxx_try_compile LINENO
1735 # ----------------------------
1736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_cxx_try_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext
1741 if { { ac_try="$ac_compile"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_cxx_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.$ac_objext; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766 fi
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_cxx_try_compile
1771
1772 # ac_fn_c_try_cpp LINENO
1773 # ----------------------
1774 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_cpp ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_cpp conftest.$ac_ext"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } > conftest.i && {
1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803 fi
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_cpp
1808
1809 # ac_fn_cxx_try_link LINENO
1810 # -------------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_cxx_try_link ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext conftest$ac_exeext
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_cxx_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest$ac_exeext && {
1835 test "$cross_compiling" = yes ||
1836 test -x conftest$ac_exeext
1837 }; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847 # interfere with the next link command; also delete a directory that is
1848 # left behind by Apple's compiler. We do this before executing the actions.
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_cxx_try_link
1854
1855 # ac_fn_c_try_link LINENO
1856 # -----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_link ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext conftest$ac_exeext
1862 if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest$ac_exeext && {
1881 test "$cross_compiling" = yes ||
1882 test -x conftest$ac_exeext
1883 }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=1
1890 fi
1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893 # interfere with the next link command; also delete a directory that is
1894 # left behind by Apple's compiler. We do this before executing the actions.
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1898
1899 } # ac_fn_c_try_link
1900
1901 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1904 # the include files in INCLUDES and setting the cache variable VAR
1905 # accordingly.
1906 ac_fn_c_check_header_mongrel ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if eval \${$3+:} false; then :
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 else
1919 # Is the header compilable?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1921 $as_echo_n "checking $2 usability... " >&6; }
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_header_compiler=yes
1929 else
1930 ac_header_compiler=no
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1934 $as_echo "$ac_header_compiler" >&6; }
1935
1936 # Is the header present?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1938 $as_echo_n "checking $2 presence... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_cpp "$LINENO"; then :
1944 ac_header_preproc=yes
1945 else
1946 ac_header_preproc=no
1947 fi
1948 rm -f conftest.err conftest.i conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1950 $as_echo "$ac_header_preproc" >&6; }
1951
1952 # So? What about this header?
1953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954 yes:no: )
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1956 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 ;;
1960 no:yes:* )
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1962 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1964 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1966 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1968 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 ( $as_echo "## ------------------------------------ ##
1972 ## Report this to http://llvm.org/bugs/ ##
1973 ## ------------------------------------ ##"
1974 ) | sed "s/^/$as_me: WARNING: /" >&2
1975 ;;
1976 esac
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 eval "$3=\$ac_header_compiler"
1983 fi
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 fi
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_header_mongrel
1991
1992 # ac_fn_c_try_run LINENO
1993 # ----------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1995 # that executables *can* be run.
1996 ac_fn_c_try_run ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if { { ac_try="$ac_link"
2000 case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>&5
2007 ac_status=$?
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2010 { { case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_try") 2>&5
2017 ac_status=$?
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; }; }; then :
2020 ac_retval=0
2021 else
2022 $as_echo "$as_me: program exited with status $ac_status" >&5
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=$ac_status
2027 fi
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2031
2032 } # ac_fn_c_try_run
2033
2034 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2035 # -------------------------------------------------------
2036 # Tests whether HEADER exists and can be compiled using the include files in
2037 # INCLUDES, setting the cache variable VAR accordingly.
2038 ac_fn_c_check_header_compile ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2045 else
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 $4
2049 #include <$2>
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 eval "$3=yes"
2053 else
2054 eval "$3=no"
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063 } # ac_fn_c_check_header_compile
2064
2065 # ac_fn_c_check_func LINENO FUNC VAR
2066 # ----------------------------------
2067 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2068 ac_fn_c_check_func ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2080 #define $2 innocuous_$2
2081
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char $2 (); below.
2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085 <limits.h> exists even on freestanding compilers. */
2086
2087 #ifdef __STDC__
2088 # include <limits.h>
2089 #else
2090 # include <assert.h>
2091 #endif
2092
2093 #undef $2
2094
2095 /* Override any GCC internal prototype to avoid an error.
2096 Use char because int might match the return type of a GCC
2097 builtin and then its argument prototype would still apply. */
2098 #ifdef __cplusplus
2099 extern "C"
2100 #endif
2101 char $2 ();
2102 /* The GNU C library defines this for functions which it implements
2103 to always fail with ENOSYS. Some functions are actually named
2104 something starting with __ and the normal name is an alias. */
2105 #if defined __stub_$2 || defined __stub___$2
2106 choke me
2107 #endif
2108
2109 int
2110 main ()
2111 {
2112 return $2 ();
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_link "$LINENO"; then :
2118 eval "$3=yes"
2119 else
2120 eval "$3=no"
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext \
2123 conftest$ac_exeext conftest.$ac_ext
2124 fi
2125 eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129
2130 } # ac_fn_c_check_func
2131
2132 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2133 # ---------------------------------------------
2134 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2135 # accordingly.
2136 ac_fn_c_check_decl ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 as_decl_name=`echo $2|sed 's/ *(.*//'`
2140 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2142 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2143 if eval \${$3+:} false; then :
2144 $as_echo_n "(cached) " >&6
2145 else
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2148 $4
2149 int
2150 main ()
2151 {
2152 #ifndef $as_decl_name
2153 #ifdef __cplusplus
2154 (void) $as_decl_use;
2155 #else
2156 (void) $as_decl_name;
2157 #endif
2158 #endif
2159
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 eval "$3=yes"
2166 else
2167 eval "$3=no"
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 fi
2171 eval ac_res=\$$3
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175
2176 } # ac_fn_c_check_decl
2177
2178 # ac_fn_cxx_try_run LINENO
2179 # ------------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2181 # that executables *can* be run.
2182 ac_fn_cxx_try_run ()
2183 {
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if { { ac_try="$ac_link"
2186 case "(($ac_try" in
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2189 esac
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_link") 2>&5
2193 ac_status=$?
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2196 { { case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_try") 2>&5
2203 ac_status=$?
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; }; }; then :
2206 ac_retval=0
2207 else
2208 $as_echo "$as_me: program exited with status $ac_status" >&5
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212 ac_retval=$ac_status
2213 fi
2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2217
2218 } # ac_fn_cxx_try_run
2219
2220 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2221 # -------------------------------------------
2222 # Tests whether TYPE exists after having included INCLUDES, setting cache
2223 # variable VAR accordingly.
2224 ac_fn_c_check_type ()
2225 {
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 eval "$3=no"
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2235 $4
2236 int
2237 main ()
2238 {
2239 if (sizeof ($2))
2240 return 0;
2241 ;
2242 return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 $4
2249 int
2250 main ()
2251 {
2252 if (sizeof (($2)))
2253 return 0;
2254 ;
2255 return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259
2260 else
2261 eval "$3=yes"
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 eval ac_res=\$$3
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271
2272 } # ac_fn_c_check_type
2273
2274 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2275 # ----------------------------------------------------
2276 # Tries to find if the field MEMBER exists in type AGGR, after including
2277 # INCLUDES, setting cache variable VAR accordingly.
2278 ac_fn_c_check_member ()
2279 {
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2282 $as_echo_n "checking for $2.$3... " >&6; }
2283 if eval \${$4+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 $5
2289 int
2290 main ()
2291 {
2292 static $2 ac_aggr;
2293 if (ac_aggr.$3)
2294 return 0;
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300 eval "$4=yes"
2301 else
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 $5
2305 int
2306 main ()
2307 {
2308 static $2 ac_aggr;
2309 if (sizeof ac_aggr.$3)
2310 return 0;
2311 ;
2312 return 0;
2313 }
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 eval "$4=yes"
2317 else
2318 eval "$4=no"
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 fi
2324 eval ac_res=\$$4
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328
2329 } # ac_fn_c_check_member
2330 cat >config.log <<_ACEOF
2331 This file contains any messages produced by compilers while
2332 running configure, to aid debugging if configure makes a mistake.
2333
2334 It was created by LLVM $as_me 4.0.0svn, which was
2335 generated by GNU Autoconf 2.69. Invocation command line was
2336
2337 $ $0 $@
2338
2339 _ACEOF
2340 exec 5>>config.log
2341 {
2342 cat <<_ASUNAME
2343 ## --------- ##
2344 ## Platform. ##
2345 ## --------- ##
2346
2347 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2348 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2349 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2350 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2351 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2352
2353 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2354 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2355
2356 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2357 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2358 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2359 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2360 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2361 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2362 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2363
2364 _ASUNAME
2365
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 $as_echo "PATH: $as_dir"
2372 done
2373 IFS=$as_save_IFS
2374
2375 } >&5
2376
2377 cat >&5 <<_ACEOF
2378
2379
2380 ## ----------- ##
2381 ## Core tests. ##
2382 ## ----------- ##
2383
2384 _ACEOF
2385
2386
2387 # Keep a trace of the command line.
2388 # Strip out --no-create and --no-recursion so they do not pile up.
2389 # Strip out --silent because we don't want to record it for future runs.
2390 # Also quote any args containing shell meta-characters.
2391 # Make two passes to allow for proper duplicate-argument suppression.
2392 ac_configure_args=
2393 ac_configure_args0=
2394 ac_configure_args1=
2395 ac_must_keep_next=false
2396 for ac_pass in 1 2
2397 do
2398 for ac_arg
2399 do
2400 case $ac_arg in
2401 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2403 | -silent | --silent | --silen | --sile | --sil)
2404 continue ;;
2405 *\'*)
2406 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2407 esac
2408 case $ac_pass in
2409 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2410 2)
2411 as_fn_append ac_configure_args1 " '$ac_arg'"
2412 if test $ac_must_keep_next = true; then
2413 ac_must_keep_next=false # Got value, back to normal.
2414 else
2415 case $ac_arg in
2416 *=* | --config-cache | -C | -disable-* | --disable-* \
2417 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2418 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2419 | -with-* | --with-* | -without-* | --without-* | --x)
2420 case "$ac_configure_args0 " in
2421 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2422 esac
2423 ;;
2424 -* ) ac_must_keep_next=true ;;
2425 esac
2426 fi
2427 as_fn_append ac_configure_args " '$ac_arg'"
2428 ;;
2429 esac
2430 done
2431 done
2432 { ac_configure_args0=; unset ac_configure_args0;}
2433 { ac_configure_args1=; unset ac_configure_args1;}
2434
2435 # When interrupted or exit'd, cleanup temporary files, and complete
2436 # config.log. We remove comments because anyway the quotes in there
2437 # would cause problems or look ugly.
2438 # WARNING: Use '\'' to represent an apostrophe within the trap.
2439 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2440 trap 'exit_status=$?
2441 # Save into config.log some information that might help in debugging.
2442 {
2443 echo
2444
2445 $as_echo "## ---------------- ##
2446 ## Cache variables. ##
2447 ## ---------------- ##"
2448 echo
2449 # The following way of writing the cache mishandles newlines in values,
2450 (
2451 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2452 eval ac_val=\$$ac_var
2453 case $ac_val in #(
2454 *${as_nl}*)
2455 case $ac_var in #(
2456 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2457 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2458 esac
2459 case $ac_var in #(
2460 _ | IFS | as_nl) ;; #(
2461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2462 *) { eval $ac_var=; unset $ac_var;} ;;
2463 esac ;;
2464 esac
2465 done
2466 (set) 2>&1 |
2467 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2468 *${as_nl}ac_space=\ *)
2469 sed -n \
2470 "s/'\''/'\''\\\\'\'''\''/g;
2471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2472 ;; #(
2473 *)
2474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2475 ;;
2476 esac |
2477 sort
2478 )
2479 echo
2480
2481 $as_echo "## ----------------- ##
2482 ## Output variables. ##
2483 ## ----------------- ##"
2484 echo
2485 for ac_var in $ac_subst_vars
2486 do
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 $as_echo "$ac_var='\''$ac_val'\''"
2492 done | sort
2493 echo
2494
2495 if test -n "$ac_subst_files"; then
2496 $as_echo "## ------------------- ##
2497 ## File substitutions. ##
2498 ## ------------------- ##"
2499 echo
2500 for ac_var in $ac_subst_files
2501 do
2502 eval ac_val=\$$ac_var
2503 case $ac_val in
2504 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505 esac
2506 $as_echo "$ac_var='\''$ac_val'\''"
2507 done | sort
2508 echo
2509 fi
2510
2511 if test -s confdefs.h; then
2512 $as_echo "## ----------- ##
2513 ## confdefs.h. ##
2514 ## ----------- ##"
2515 echo
2516 cat confdefs.h
2517 echo
2518 fi
2519 test "$ac_signal" != 0 &&
2520 $as_echo "$as_me: caught signal $ac_signal"
2521 $as_echo "$as_me: exit $exit_status"
2522 } >&5
2523 rm -f core *.core core.conftest.* &&
2524 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2525 exit $exit_status
2526 ' 0
2527 for ac_signal in 1 2 13 15; do
2528 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2529 done
2530 ac_signal=0
2531
2532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2533 rm -f -r conftest* confdefs.h
2534
2535 $as_echo "/* confdefs.h */" > confdefs.h
2536
2537 # Predefined preprocessor variables.
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_NAME "$PACKAGE_NAME"
2541 _ACEOF
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2545 _ACEOF
2546
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2549 _ACEOF
2550
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_STRING "$PACKAGE_STRING"
2553 _ACEOF
2554
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2557 _ACEOF
2558
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_URL "$PACKAGE_URL"
2561 _ACEOF
2562
2563
2564 # Let the site file select an alternate cache file if it wants to.
2565 # Prefer an explicitly selected file to automatically selected ones.
2566 ac_site_file1=NONE
2567 ac_site_file2=NONE
2568 if test -n "$CONFIG_SITE"; then
2569 # We do not want a PATH search for config.site.
2570 case $CONFIG_SITE in #((
2571 -*) ac_site_file1=./$CONFIG_SITE;;
2572 */*) ac_site_file1=$CONFIG_SITE;;
2573 *) ac_site_file1=./$CONFIG_SITE;;
2574 esac
2575 elif test "x$prefix" != xNONE; then
2576 ac_site_file1=$prefix/share/config.site
2577 ac_site_file2=$prefix/etc/config.site
2578 else
2579 ac_site_file1=$ac_default_prefix/share/config.site
2580 ac_site_file2=$ac_default_prefix/etc/config.site
2581 fi
2582 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2583 do
2584 test "x$ac_site_file" = xNONE && continue
2585 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2587 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2588 sed 's/^/| /' "$ac_site_file" >&5
2589 . "$ac_site_file" \
2590 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 as_fn_error $? "failed to load site script $ac_site_file
2593 See \`config.log' for more details" "$LINENO" 5; }
2594 fi
2595 done
2596
2597 if test -r "$cache_file"; then
2598 # Some versions of bash will fail to source /dev/null (special files
2599 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2600 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2602 $as_echo "$as_me: loading cache $cache_file" >&6;}
2603 case $cache_file in
2604 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2605 *) . "./$cache_file";;
2606 esac
2607 fi
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2610 $as_echo "$as_me: creating cache $cache_file" >&6;}
2611 >$cache_file
2612 fi
2613
2614 # Check that the precious variables saved in the cache have kept the same
2615 # value.
2616 ac_cache_corrupted=false
2617 for ac_var in $ac_precious_vars; do
2618 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2619 eval ac_new_set=\$ac_env_${ac_var}_set
2620 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2621 eval ac_new_val=\$ac_env_${ac_var}_value
2622 case $ac_old_set,$ac_new_set in
2623 set,)
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2625 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2627 ,set)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2629 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2631 ,);;
2632 *)
2633 if test "x$ac_old_val" != "x$ac_new_val"; then
2634 # differences in whitespace do not lead to failure.
2635 ac_old_val_w=`echo x $ac_old_val`
2636 ac_new_val_w=`echo x $ac_new_val`
2637 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2639 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2640 ac_cache_corrupted=:
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2643 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2644 eval $ac_var=\$ac_old_val
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2647 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2649 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2650 fi;;
2651 esac
2652 # Pass precious variables to config.status.
2653 if test "$ac_new_set" = set; then
2654 case $ac_new_val in
2655 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2656 *) ac_arg=$ac_var=$ac_new_val ;;
2657 esac
2658 case " $ac_configure_args " in
2659 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2660 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2661 esac
2662 fi
2663 done
2664 if $ac_cache_corrupted; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2668 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2669 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2670 fi
2671 ## -------------------- ##
2672 ## Main body of script. ##
2673 ## -------------------- ##
2674
2675 ac_ext=c
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680
2681
2682
2683 LLVM_VERSION_MAJOR=4
2684 LLVM_VERSION_MINOR=0
2685 LLVM_VERSION_PATCH=0
2686 LLVM_VERSION_SUFFIX=svn
2687
2688
2689 cat >>confdefs.h <<_ACEOF
2690 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
2691 _ACEOF
2692
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
2696 _ACEOF
2697
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
2701 _ACEOF
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
2706 _ACEOF
2707
2708 if false; then
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define LLVM_VERSION_INFO /**/
2712 _ACEOF
2713
2714 fi
2715
2716
2717
2718
2719
2720
2721 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
2722
2723
2724
2725
2726
2727 ac_aux_dir=
2728 for ac_dir in autoconf "$srcdir"/autoconf; do
2729 if test -f "$ac_dir/install-sh"; then
2730 ac_aux_dir=$ac_dir
2731 ac_install_sh="$ac_aux_dir/install-sh -c"
2732 break
2733 elif test -f "$ac_dir/install.sh"; then
2734 ac_aux_dir=$ac_dir
2735 ac_install_sh="$ac_aux_dir/install.sh -c"
2736 break
2737 elif test -f "$ac_dir/shtool"; then
2738 ac_aux_dir=$ac_dir
2739 ac_install_sh="$ac_aux_dir/shtool install -c"
2740 break
2741 fi
2742 done
2743 if test -z "$ac_aux_dir"; then
2744 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2745 fi
2746
2747 # These three variables are undocumented and unsupported,
2748 # and are intended to be withdrawn in a future Autoconf release.
2749 # They can cause serious problems if a builder's source tree is in a directory
2750 # whose full name contains unusual characters.
2751 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2752 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2753 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2754
2755
2756
2757
2758 # Check whether --with-llvm-srcdir was given.
2759 if test "${with_llvm_srcdir+set}" = set; then :
2760 withval=$with_llvm_srcdir;
2761 else
2762 withval="-"
2763 fi
2764
2765 case "$withval" in
2766 -) llvm_srcdir="$srcdir" ;;
2767 /* | [A-Za-z]:[\\/]*) llvm_srcdir="$withval" ;;
2768 *) llvm_srcdir="$ac_pwd/$withval" ;;
2769 esac
2770
2771 if test ${srcdir} != "." ; then
2772 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2773 as_fn_error $? "Already configured in ${srcdir}" "$LINENO" 5
2774 fi
2775 fi
2776
2777 if test ${srcdir} = "." ; then
2778 as_fn_error $? "In-source builds are not allowed. Please configure from a separate build directory!" "$LINENO" 5
2779 fi
2780
2781 : ${CFLAGS=}
2782 : ${CXXFLAGS=}
2783
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in clang gcc
2791 do
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829 test -n "$CC" && break
2830 done
2831 fi
2832 if test -z "$CC"; then
2833 ac_ct_CC=$CC
2834 for ac_prog in clang gcc
2835 do
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_ac_ct_CC="$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2866 $as_echo "$ac_ct_CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 test -n "$ac_ct_CC" && break
2874 done
2875
2876 if test "x$ac_ct_CC" = x; then
2877 CC=""
2878 else
2879 case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883 ac_tool_warned=yes ;;
2884 esac
2885 CC=$ac_ct_CC
2886 fi
2887 fi
2888
2889
2890 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892 as_fn_error $? "no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details" "$LINENO" 5; }
2894
2895 # Provide some information about the compiler.
2896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2897 set X $ac_compile
2898 ac_compiler=$2
2899 for ac_option in --version -v -V -qversion; do
2900 { { ac_try="$ac_compiler $ac_option >&5"
2901 case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904 esac
2905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2906 $as_echo "$ac_try_echo"; } >&5
2907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2908 ac_status=$?
2909 if test -s conftest.err; then
2910 sed '10a\
2911 ... rest of stderr output deleted ...
2912 10q' conftest.err >conftest.er1
2913 cat conftest.er1 >&5
2914 fi
2915 rm -f conftest.er1 conftest.err
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }
2918 done
2919
2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2922
2923 int
2924 main ()
2925 {
2926
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 ac_clean_files_save=$ac_clean_files
2932 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2933 # Try to create an executable without -o first, disregard a.out.
2934 # It will help us diagnose broken compilers, and finding out an intuition
2935 # of exeext.
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2937 $as_echo_n "checking whether the C compiler works... " >&6; }
2938 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2939
2940 # The possible output files:
2941 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2942
2943 ac_rmfiles=
2944 for ac_file in $ac_files
2945 do
2946 case $ac_file in
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2948 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2949 esac
2950 done
2951 rm -f $ac_rmfiles
2952
2953 if { { ac_try="$ac_link_default"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_link_default") 2>&5
2961 ac_status=$?
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }; then :
2964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2965 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2966 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2967 # so that the user can short-circuit this test for compilers unknown to
2968 # Autoconf.
2969 for ac_file in $ac_files ''
2970 do
2971 test -f "$ac_file" || continue
2972 case $ac_file in
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2974 ;;
2975 [ab].out )
2976 # We found the default executable, but exeext='' is most
2977 # certainly right.
2978 break;;
2979 *.* )
2980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2981 then :; else
2982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 fi
2984 # We set ac_cv_exeext here because the later test for it is not
2985 # safe: cross compilers may not add the suffix if given an `-o'
2986 # argument, so we may need to know it at that point already.
2987 # Even if this section looks crufty: it has the advantage of
2988 # actually working.
2989 break;;
2990 * )
2991 break;;
2992 esac
2993 done
2994 test "$ac_cv_exeext" = no && ac_cv_exeext=
2995
2996 else
2997 ac_file=''
2998 fi
2999 if test -z "$ac_file"; then :
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 $as_echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 as_fn_error 77 "C compiler cannot create executables
3008 See \`config.log' for more details" "$LINENO" 5; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011 $as_echo "yes" >&6; }
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3014 $as_echo_n "checking for C compiler default output file name... " >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3016 $as_echo "$ac_file" >&6; }
3017 ac_exeext=$ac_cv_exeext
3018
3019 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3020 ac_clean_files=$ac_clean_files_save
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3022 $as_echo_n "checking for suffix of executables... " >&6; }
3023 if { { ac_try="$ac_link"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_link") 2>&5
3031 ac_status=$?
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; then :
3034 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3035 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3036 # work properly (i.e., refer to `conftest.exe'), while it won't with
3037 # `rm'.
3038 for ac_file in conftest.exe conftest conftest.*; do
3039 test -f "$ac_file" || continue
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3043 break;;
3044 * ) break;;
3045 esac
3046 done
3047 else
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3051 See \`config.log' for more details" "$LINENO" 5; }
3052 fi
3053 rm -f conftest conftest$ac_cv_exeext
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3055 $as_echo "$ac_cv_exeext" >&6; }
3056
3057 rm -f conftest.$ac_ext
3058 EXEEXT=$ac_cv_exeext
3059 ac_exeext=$EXEEXT
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3062 #include <stdio.h>
3063 int
3064 main ()
3065 {
3066 FILE *f = fopen ("conftest.out", "w");
3067 return ferror (f) || fclose (f) != 0;
3068
3069 ;
3070 return 0;
3071 }
3072 _ACEOF
3073 ac_clean_files="$ac_clean_files conftest.out"
3074 # Check that the compiler produces executables we can run. If not, either
3075 # the compiler is broken, or we cross compile.
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3077 $as_echo_n "checking whether we are cross compiling... " >&6; }
3078 if test "$cross_compiling" != yes; then
3079 { { ac_try="$ac_link"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_link") 2>&5
3087 ac_status=$?
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }
3090 if { ac_try='./conftest$ac_cv_exeext'
3091 { { case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_try") 2>&5
3098 ac_status=$?
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }; }; then
3101 cross_compiling=no
3102 else
3103 if test "$cross_compiling" = maybe; then
3104 cross_compiling=yes
3105 else
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error $? "cannot run C compiled programs.
3109 If you meant to cross compile, use \`--host'.
3110 See \`config.log' for more details" "$LINENO" 5; }
3111 fi
3112 fi
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3115 $as_echo "$cross_compiling" >&6; }
3116
3117 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3118 ac_clean_files=$ac_clean_files_save
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3120 $as_echo_n "checking for suffix of object files... " >&6; }
3121 if ${ac_cv_objext+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3126
3127 int
3128 main ()
3129 {
3130
3131 ;
3132 return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.o conftest.obj
3136 if { { ac_try="$ac_compile"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compile") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 for ac_file in conftest.o conftest.obj conftest.*; do
3148 test -f "$ac_file" || continue;
3149 case $ac_file in
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3152 break;;
3153 esac
3154 done
3155 else
3156 $as_echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "cannot compute suffix of object files: cannot compile
3162 See \`config.log' for more details" "$LINENO" 5; }
3163 fi
3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3167 $as_echo "$ac_cv_objext" >&6; }
3168 OBJEXT=$ac_cv_objext
3169 ac_objext=$OBJEXT
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3171 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3172 if ${ac_cv_c_compiler_gnu+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3177
3178 int
3179 main ()
3180 {
3181 #ifndef __GNUC__
3182 choke me
3183 #endif
3184
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 if ac_fn_c_try_compile "$LINENO"; then :
3190 ac_compiler_gnu=yes
3191 else
3192 ac_compiler_gnu=no
3193 fi
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3196
3197 fi
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3199 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3200 if test $ac_compiler_gnu = yes; then
3201 GCC=yes
3202 else
3203 GCC=
3204 fi
3205 ac_test_CFLAGS=${CFLAGS+set}
3206 ac_save_CFLAGS=$CFLAGS
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3208 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3209 if ${ac_cv_prog_cc_g+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 ac_save_c_werror_flag=$ac_c_werror_flag
3213 ac_c_werror_flag=yes
3214 ac_cv_prog_cc_g=no
3215 CFLAGS="-g"
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3218
3219 int
3220 main ()
3221 {
3222
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 if ac_fn_c_try_compile "$LINENO"; then :
3228 ac_cv_prog_cc_g=yes
3229 else
3230 CFLAGS=""
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233
3234 int
3235 main ()
3236 {
3237
3238 ;
3239 return 0;
3240 }
3241 _ACEOF
3242 if ac_fn_c_try_compile "$LINENO"; then :
3243
3244 else
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3246 CFLAGS="-g"
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249
3250 int
3251 main ()
3252 {
3253
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_cv_prog_cc_g=yes
3260 fi
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 fi
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 fi
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267 fi
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3269 $as_echo "$ac_cv_prog_cc_g" >&6; }
3270 if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272 elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3274 CFLAGS="-g -O2"
3275 else
3276 CFLAGS="-g"
3277 fi
3278 else
3279 if test "$GCC" = yes; then
3280 CFLAGS="-O2"
3281 else
3282 CFLAGS=
3283 fi
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3286 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3287 if ${ac_cv_prog_cc_c89+:} false; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 ac_cv_prog_cc_c89=no
3291 ac_save_CC=$CC
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294 #include <stdarg.h>
3295 #include <stdio.h>
3296 struct stat;
3297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3298 struct buf { int x; };
3299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300 static char *e (p, i)
3301 char **p;
3302 int i;
3303 {
3304 return p[i];
3305 }
3306 static char *f (char * (*g) (char **, int), char **p, ...)
3307 {
3308 char *s;
3309 va_list v;
3310 va_start (v,p);
3311 s = g (p, va_arg (v,int));
3312 va_end (v);
3313 return s;
3314 }
3315
3316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3317 function prototypes and stuff, but not '\xHH' hex character constants.
3318 These don't provoke an error unfortunately, instead are silently treated
3319 as 'x'. The following induces an error, until -std is added to get
3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3321 array size at least. It's necessary to write '\x00'==0 to get something
3322 that's true only with -std. */
3323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324
3325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3326 inside strings and character constants. */
3327 #define FOO(x) 'x'
3328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3329
3330 int test (int i, double x);
3331 struct s1 {int (*f) (int a);};
3332 struct s2 {int (*f) (double a);};
3333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3334 int argc;
3335 char **argv;
3336 int
3337 main ()
3338 {
3339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3346 do
3347 CC="$ac_save_CC $ac_arg"
3348 if ac_fn_c_try_compile "$LINENO"; then :
3349 ac_cv_prog_cc_c89=$ac_arg
3350 fi
3351 rm -f core conftest.err conftest.$ac_objext
3352 test "x$ac_cv_prog_cc_c89" != "xno" && break
3353 done
3354 rm -f conftest.$ac_ext
3355 CC=$ac_save_CC
3356
3357 fi
3358 # AC_CACHE_VAL
3359 case "x$ac_cv_prog_cc_c89" in
3360 x)
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3362 $as_echo "none needed" >&6; } ;;
3363 xno)
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3365 $as_echo "unsupported" >&6; } ;;
3366 *)
3367 CC="$CC $ac_cv_prog_cc_c89"
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3369 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3370 esac
3371 if test "x$ac_cv_prog_cc_c89" != xno; then :
3372
3373 fi
3374
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380
3381 ac_ext=cpp
3382 ac_cpp='$CXXCPP $CPPFLAGS'
3383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3386 if test -z "$CXX"; then
3387 if test -n "$CCC"; then
3388 CXX=$CCC
3389 else
3390 if test -n "$ac_tool_prefix"; then
3391 for ac_prog in clang++ g++
3392 do
3393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CXX+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 if test -n "$CXX"; then
3401 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CXX=$ac_cv_prog_CXX
3421 if test -n "$CXX"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3423 $as_echo "$CXX" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430 test -n "$CXX" && break
3431 done
3432 fi
3433 if test -z "$CXX"; then
3434 ac_ct_CXX=$CXX
3435 for ac_prog in clang++ g++
3436 do
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$ac_ct_CXX"; then
3445 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_ac_ct_CXX="$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3465 if test -n "$ac_ct_CXX"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3467 $as_echo "$ac_ct_CXX" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473
3474 test -n "$ac_ct_CXX" && break
3475 done
3476
3477 if test "x$ac_ct_CXX" = x; then
3478 CXX="g++"
3479 else
3480 case $cross_compiling:$ac_tool_warned in
3481 yes:)
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484 ac_tool_warned=yes ;;
3485 esac
3486 CXX=$ac_ct_CXX
3487 fi
3488 fi
3489
3490 fi
3491 fi
3492 # Provide some information about the compiler.
3493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3494 set X $ac_compile
3495 ac_compiler=$2
3496 for ac_option in --version -v -V -qversion; do
3497 { { ac_try="$ac_compiler $ac_option >&5"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3505 ac_status=$?
3506 if test -s conftest.err; then
3507 sed '10a\
3508 ... rest of stderr output deleted ...
3509 10q' conftest.err >conftest.er1
3510 cat conftest.er1 >&5
3511 fi
3512 rm -f conftest.er1 conftest.err
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }
3515 done
3516
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3518 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3519 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529 choke me
3530 #endif
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_cxx_try_compile "$LINENO"; then :
3537 ac_compiler_gnu=yes
3538 else
3539 ac_compiler_gnu=no
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3543
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3546 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3547 if test $ac_compiler_gnu = yes; then
3548 GXX=yes
3549 else
3550 GXX=
3551 fi
3552 ac_test_CXXFLAGS=${CXXFLAGS+set}
3553 ac_save_CXXFLAGS=$CXXFLAGS
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3555 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3556 if ${ac_cv_prog_cxx_g+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3560 ac_cxx_werror_flag=yes
3561 ac_cv_prog_cxx_g=no
3562 CXXFLAGS="-g"
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565
3566 int
3567 main ()
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_cxx_try_compile "$LINENO"; then :
3575 ac_cv_prog_cxx_g=yes
3576 else
3577 CXXFLAGS=""
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_cxx_try_compile "$LINENO"; then :
3590
3591 else
3592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3593 CXXFLAGS="-g"
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 if ac_fn_cxx_try_compile "$LINENO"; then :
3606 ac_cv_prog_cxx_g=yes
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3616 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3617 if test "$ac_test_CXXFLAGS" = set; then
3618 CXXFLAGS=$ac_save_CXXFLAGS
3619 elif test $ac_cv_prog_cxx_g = yes; then
3620 if test "$GXX" = yes; then
3621 CXXFLAGS="-g -O2"
3622 else
3623 CXXFLAGS="-g"
3624 fi
3625 else
3626 if test "$GXX" = yes; then
3627 CXXFLAGS="-O2"
3628 else
3629 CXXFLAGS=
3630 fi
3631 fi
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3644 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3645 # On Suns, sometimes $CPP names a directory.
3646 if test -n "$CPP" && test -d "$CPP"; then
3647 CPP=
3648 fi
3649 if test -z "$CPP"; then
3650 if ${ac_cv_prog_CPP+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 # Double quotes because CPP needs to be expanded
3654 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3655 do
3656 ac_preproc_ok=false
3657 for ac_c_preproc_warn_flag in '' yes
3658 do
3659 # Use a header file that comes with gcc, so configuring glibc
3660 # with a fresh cross-compiler works.
3661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662 # <limits.h> exists even on freestanding compilers.
3663 # On the NeXT, cc -E runs the code through the compiler's parser,
3664 # not just through cpp. "Syntax error" is here to catch this case.
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 #ifdef __STDC__
3668 # include <limits.h>
3669 #else
3670 # include <assert.h>
3671 #endif
3672 Syntax error
3673 _ACEOF
3674 if ac_fn_c_try_cpp "$LINENO"; then :
3675
3676 else
3677 # Broken: fails on valid input.
3678 continue
3679 fi
3680 rm -f conftest.err conftest.i conftest.$ac_ext
3681
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 #include <ac_nonexistent.h>
3687 _ACEOF
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3689 # Broken: success on invalid input.
3690 continue
3691 else
3692 # Passes both tests.
3693 ac_preproc_ok=:
3694 break
3695 fi
3696 rm -f conftest.err conftest.i conftest.$ac_ext
3697
3698 done
3699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3700 rm -f conftest.i conftest.err conftest.$ac_ext
3701 if $ac_preproc_ok; then :
3702 break
3703 fi
3704
3705 done
3706 ac_cv_prog_CPP=$CPP
3707
3708 fi
3709 CPP=$ac_cv_prog_CPP
3710 else
3711 ac_cv_prog_CPP=$CPP
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3714 $as_echo "$CPP" >&6; }
3715 ac_preproc_ok=false
3716 for ac_c_preproc_warn_flag in '' yes
3717 do
3718 # Use a header file that comes with gcc, so configuring glibc
3719 # with a fresh cross-compiler works.
3720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3721 # <limits.h> exists even on freestanding compilers.
3722 # On the NeXT, cc -E runs the code through the compiler's parser,
3723 # not just through cpp. "Syntax error" is here to catch this case.
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726 #ifdef __STDC__
3727 # include <limits.h>
3728 #else
3729 # include <assert.h>
3730 #endif
3731 Syntax error
3732 _ACEOF
3733 if ac_fn_c_try_cpp "$LINENO"; then :
3734
3735 else
3736 # Broken: fails on valid input.
3737 continue
3738 fi
3739 rm -f conftest.err conftest.i conftest.$ac_ext
3740
3741 # OK, works on sane cases. Now check whether nonexistent headers
3742 # can be detected and how.
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745 #include <ac_nonexistent.h>
3746 _ACEOF
3747 if ac_fn_c_try_cpp "$LINENO"; then :
3748 # Broken: success on invalid input.
3749 continue
3750 else
3751 # Passes both tests.
3752 ac_preproc_ok=:
3753 break
3754 fi
3755 rm -f conftest.err conftest.i conftest.$ac_ext
3756
3757 done
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.i conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then :
3761
3762 else
3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details" "$LINENO" 5; }
3767 fi
3768
3769 ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
3775
3776 if test "$CXX" = "clang++" ; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clang works" >&5
3778 $as_echo_n "checking whether clang works... " >&6; }
3779 ac_ext=cpp
3780 ac_cpp='$CXXCPP $CPPFLAGS'
3781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3784
3785
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <limits>
3789 #if __has_include (<cxxabi.h>)
3790 #include <cxxabi.h>
3791 #endif
3792 #if __has_include (<unwind.h>)
3793 #include <unwind.h>
3794 #endif
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_cxx_try_compile "$LINENO"; then :
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3807 $as_echo "yes" >&6; }
3808
3809 else
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 as_fn_error $? "Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." "$LINENO" 5
3814
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ac_ext=c
3818 ac_cpp='$CPP $CPPFLAGS'
3819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822
3823 fi
3824
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC or Clang is our host compiler" >&5
3826 $as_echo_n "checking whether GCC or Clang is our host compiler... " >&6; }
3827 ac_ext=cpp
3828 ac_cpp='$CXXCPP $CPPFLAGS'
3829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3832
3833 llvm_cv_cxx_compiler=unknown
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #if ! __clang__
3837 #error
3838 #endif
3839
3840 _ACEOF
3841 if ac_fn_cxx_try_compile "$LINENO"; then :
3842 llvm_cv_cxx_compiler=clang
3843 else
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846 #if ! __GNUC__
3847 #error
3848 #endif
3849
3850 _ACEOF
3851 if ac_fn_cxx_try_compile "$LINENO"; then :
3852 llvm_cv_cxx_compiler=gcc
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${llvm_cv_cxx_compiler}" >&5
3864 $as_echo "${llvm_cv_cxx_compiler}" >&6; }
3865 CXX_COMPILER=$llvm_cv_cxx_compiler
3866
3867
3868 # Check whether --enable-polly was given.
3869 if test "${enable_polly+set}" = set; then :
3870 enableval=$enable_polly;
3871 else
3872 enableval=default
3873 fi
3874
3875 case "$enableval" in
3876 yes) ENABLE_POLLY=1
3877 ;;
3878 no) ENABLE_POLLY=0
3879 ;;
3880 default) ENABLE_POLLY=1
3881 ;;
3882 *) as_fn_error $? "Invalid setting for --enable-polly. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
3883 esac
3884
3885
3886 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3887 LLVM_HAS_POLLY=1
3888
3889
3890
3891 subdirs="$subdirs tools/polly"
3892
3893 fi
3894 if false; then
3895
3896 $as_echo "#define LINK_POLLY_INTO_TOOLS /**/" >>confdefs.h
3897
3898 fi
3899
3900
3901 # Make sure we can run config.sub.
3902 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3903 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3906 $as_echo_n "checking build system type... " >&6; }
3907 if ${ac_cv_build+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 ac_build_alias=$build_alias
3911 test "x$ac_build_alias" = x &&
3912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3913 test "x$ac_build_alias" = x &&
3914 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3915 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3917
3918 fi
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3920 $as_echo "$ac_cv_build" >&6; }
3921 case $ac_cv_build in
3922 *-*-*) ;;
3923 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3924 esac
3925 build=$ac_cv_build
3926 ac_save_IFS=$IFS; IFS='-'
3927 set x $ac_cv_build
3928 shift
3929 build_cpu=$1
3930 build_vendor=$2
3931 shift; shift
3932 # Remember, the first character of IFS is used to create $*,
3933 # except with old shells:
3934 build_os=$*
3935 IFS=$ac_save_IFS
3936 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3937
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3940 $as_echo_n "checking host system type... " >&6; }
3941 if ${ac_cv_host+:} false; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 if test "x$host_alias" = x; then
3945 ac_cv_host=$ac_cv_build
3946 else
3947 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3948 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3949 fi
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3953 $as_echo "$ac_cv_host" >&6; }
3954 case $ac_cv_host in
3955 *-*-*) ;;
3956 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3957 esac
3958 host=$ac_cv_host
3959 ac_save_IFS=$IFS; IFS='-'
3960 set x $ac_cv_host
3961 shift
3962 host_cpu=$1
3963 host_vendor=$2
3964 shift; shift
3965 # Remember, the first character of IFS is used to create $*,
3966 # except with old shells:
3967 host_os=$*
3968 IFS=$ac_save_IFS
3969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3970
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3973 $as_echo_n "checking target system type... " >&6; }
3974 if ${ac_cv_target+:} false; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test "x$target_alias" = x; then
3978 ac_cv_target=$ac_cv_host
3979 else
3980 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3981 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3982 fi
3983
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3986 $as_echo "$ac_cv_target" >&6; }
3987 case $ac_cv_target in
3988 *-*-*) ;;
3989 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3990 esac
3991 target=$ac_cv_target
3992 ac_save_IFS=$IFS; IFS='-'
3993 set x $ac_cv_target
3994 shift
3995 target_cpu=$1
3996 target_vendor=$2
3997 shift; shift
3998 # Remember, the first character of IFS is used to create $*,
3999 # except with old shells:
4000 target_os=$*
4001 IFS=$ac_save_IFS
4002 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4003
4004
4005 # The aliases save the names the user supplied, while $host etc.
4006 # will get canonicalized.
4007 test -n "$target_alias" &&
4008 test "$program_prefix$program_suffix$program_transform_name" = \
4009 NONENONEs,x,x, &&
4010 program_prefix=${target_alias}-
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5
4013 $as_echo_n "checking type of operating system we're going to host on... " >&6; }
4014 if ${llvm_cv_os_type+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 case $host in
4018 *-*-aix*)
4019 llvm_cv_link_all_option="-Wl,--whole-archive"
4020 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021 llvm_cv_os_type="AIX"
4022 llvm_cv_platform_type="Unix" ;;
4023 *-*-irix*)
4024 llvm_cv_link_all_option="-Wl,--whole-archive"
4025 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026 llvm_cv_os_type="IRIX"
4027 llvm_cv_platform_type="Unix" ;;
4028 *-*-cygwin*)
4029 llvm_cv_link_all_option="-Wl,--whole-archive"
4030 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031 llvm_cv_os_type="Cygwin"
4032 llvm_cv_platform_type="Unix" ;;
4033 *-*-darwin*)
4034 llvm_cv_link_all_option="-Wl,-all_load"
4035 llvm_cv_no_link_all_option="-Wl,-noall_load"
4036 llvm_cv_os_type="Darwin"
4037 llvm_cv_platform_type="Unix" ;;
4038 *-*-minix*)
4039 llvm_cv_link_all_option="-Wl,-all_load"
4040 llvm_cv_no_link_all_option="-Wl,-noall_load"
4041 llvm_cv_os_type="Minix"
4042 llvm_cv_platform_type="Unix" ;;
4043 *-*-freebsd*)
4044 llvm_cv_link_all_option="-Wl,--whole-archive"
4045 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046 llvm_cv_os_type="FreeBSD"
4047 llvm_cv_platform_type="Unix" ;;
4048 *-*-kfreebsd-gnu)
4049 llvm_cv_link_all_option="-Wl,--whole-archive"
4050 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4051 llvm_cv_os_type="GNU/kFreeBSD"
4052 llvm_cv_platform_type="Unix" ;;
4053 *-*-openbsd*)
4054 llvm_cv_link_all_option="-Wl,--whole-archive"
4055 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056 llvm_cv_os_type="OpenBSD"
4057 llvm_cv_platform_type="Unix" ;;
4058 *-*-netbsd*)
4059 llvm_cv_link_all_option="-Wl,--whole-archive"
4060 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061 llvm_cv_os_type="NetBSD"
4062 llvm_cv_platform_type="Unix" ;;
4063 *-*-dragonfly*)
4064 llvm_cv_link_all_option="-Wl,--whole-archive"
4065 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066 llvm_cv_os_type="DragonFly"
4067 llvm_cv_platform_type="Unix" ;;
4068 *-*-bitrig*)
4069 llvm_cv_link_all_option="-Wl,--whole-archive"
4070 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071 llvm_cv_os_type="Bitrig"
4072 llvm_cv_platform_type="Unix" ;;
4073 *-*-hpux*)
4074 llvm_cv_link_all_option="-Wl,--whole-archive"
4075 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076 llvm_cv_os_type="HP-UX"
4077 llvm_cv_platform_type="Unix" ;;
4078 *-*-interix*)
4079 llvm_cv_link_all_option="-Wl,--whole-archive"
4080 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4081 llvm_cv_os_type="Interix"
4082 llvm_cv_platform_type="Unix" ;;
4083 *-*-linux*)
4084 llvm_cv_link_all_option="-Wl,--whole-archive"
4085 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4086 llvm_cv_os_type="Linux"
4087 llvm_cv_platform_type="Unix" ;;
4088 *-*-gnu*)
4089 llvm_cv_link_all_option="-Wl,--whole-archive"
4090 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4091 llvm_cv_os_type="GNU"
4092 llvm_cv_platform_type="Unix" ;;
4093 *-*-solaris*)
4094 llvm_cv_link_all_option="-Wl,-z,allextract"
4095 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4096 llvm_cv_os_type="SunOS"
4097 llvm_cv_platform_type="Unix" ;;
4098 *-*-win32*)
4099 llvm_cv_link_all_option="-Wl,--whole-archive"
4100 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4101 llvm_cv_os_type="Win32"
4102 llvm_cv_platform_type="Win32" ;;
4103 *-*-mingw*)
4104 llvm_cv_link_all_option="-Wl,--whole-archive"
4105 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4106 llvm_cv_os_type="MingW"
4107 llvm_cv_platform_type="Win32" ;;
4108 *-*-haiku*)
4109 llvm_cv_link_all_option="-Wl,--whole-archive"
4110 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4111 llvm_cv_os_type="Haiku"
4112 llvm_cv_platform_type="Unix" ;;
4113 *-unknown-eabi*)
4114 llvm_cv_link_all_option="-Wl,--whole-archive"
4115 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4116 llvm_cv_os_type="Freestanding"
4117 llvm_cv_platform_type="Unix" ;;
4118 *-unknown-elf*)
4119 llvm_cv_link_all_option="-Wl,--whole-archive"
4120 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4121 llvm_cv_os_type="Freestanding"
4122 llvm_cv_platform_type="Unix" ;;
4123 *)
4124 llvm_cv_link_all_option=""
4125 llvm_cv_no_link_all_option=""
4126 llvm_cv_os_type="Unknown"
4127 llvm_cv_platform_type="Unknown" ;;
4128 esac
4129 fi
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5
4131 $as_echo "$llvm_cv_os_type" >&6; }
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5
4134 $as_echo_n "checking type of operating system we're going to target... " >&6; }
4135 if ${llvm_cv_target_os_type+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 case $target in
4139 *-*-aix*)
4140 llvm_cv_target_os_type="AIX" ;;
4141 *-*-irix*)
4142 llvm_cv_target_os_type="IRIX" ;;
4143 *-*-cygwin*)
4144 llvm_cv_target_os_type="Cygwin" ;;
4145 *-*-darwin*)
4146 llvm_cv_target_os_type="Darwin" ;;
4147 *-*-minix*)
4148 llvm_cv_target_os_type="Minix" ;;
4149 *-*-freebsd*)
4150 llvm_cv_target_os_type="FreeBSD" ;;
4151 *-*-kfreebsd-gnu)
4152 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4153 *-*-openbsd*)
4154 llvm_cv_target_os_type="OpenBSD" ;;
4155 *-*-netbsd*)
4156 llvm_cv_target_os_type="NetBSD" ;;
4157 *-*-dragonfly*)
4158 llvm_cv_target_os_type="DragonFly" ;;
4159 *-*-bitrig*)
4160 llvm_cv_target_os_type="Bitrig" ;;
4161 *-*-hpux*)
4162 llvm_cv_target_os_type="HP-UX" ;;
4163 *-*-interix*)
4164 llvm_cv_target_os_type="Interix" ;;
4165 *-*-linux*)
4166 llvm_cv_target_os_type="Linux" ;;
4167 *-*-gnu*)
4168 llvm_cv_target_os_type="GNU" ;;
4169 *-*-solaris*)
4170 llvm_cv_target_os_type="SunOS" ;;
4171 *-*-win32*)
4172 llvm_cv_target_os_type="Win32" ;;
4173 *-*-mingw*)
4174 llvm_cv_target_os_type="MingW" ;;
4175 *-*-haiku*)
4176 llvm_cv_target_os_type="Haiku" ;;
4177 *-*-rtems*)
4178 llvm_cv_target_os_type="RTEMS" ;;
4179 *-*-nacl*)
4180 llvm_cv_target_os_type="NativeClient" ;;
4181 *-unknown-eabi*)
4182 llvm_cv_target_os_type="Freestanding" ;;
4183 *-*-ps4)
4184 llvm_cv_target_os_type="PS4" ;;
4185 *)
4186 llvm_cv_target_os_type="Unknown" ;;
4187 esac
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5
4190 $as_echo "$llvm_cv_target_os_type" >&6; }
4191
4192 if test "$llvm_cv_os_type" = "Unknown" ; then
4193 as_fn_error $? "Operating system is unknown, configure can't continue" "$LINENO" 5
4194 fi
4195
4196 OS=$llvm_cv_os_type
4197
4198 HOST_OS=$llvm_cv_os_type
4199
4200 TARGET_OS=$llvm_cv_target_os_type
4201
4202
4203 LINKALL=$llvm_cv_link_all_option
4204
4205 NOLINKALL=$llvm_cv_no_link_all_option
4206
4207
4208 case $llvm_cv_platform_type in
4209 Unix)
4210
4211 $as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h
4212
4213 LLVM_ON_UNIX=1
4214
4215 LLVM_ON_WIN32=0
4216
4217 ;;
4218 Win32)
4219
4220 $as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h
4221
4222 LLVM_ON_UNIX=0
4223
4224 LLVM_ON_WIN32=1
4225
4226 ;;
4227 esac
4228
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5
4230 $as_echo_n "checking target architecture... " >&6; }
4231 if ${llvm_cv_target_arch+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 case $target in
4235 i?86-*) llvm_cv_target_arch="x86" ;;
4236 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4237 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4238 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4239 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4240 arm*-*) llvm_cv_target_arch="ARM" ;;
4241 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4242 avr-*) llvm_cv_target_arch="AVR" ;;
4243 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4244 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4245 xcore-*) llvm_cv_target_arch="XCore" ;;
4246 msp430-*) llvm_cv_target_arch="MSP430" ;;
4247 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4248 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4249 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4250 wasm*-*) llvm_cv_target_arch="WebAssembly" ;;
4251 *) llvm_cv_target_arch="Unknown" ;;
4252 esac
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5
4255 $as_echo "$llvm_cv_target_arch" >&6; }
4256
4257 if test "$llvm_cv_target_arch" = "Unknown" ; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5
4259 $as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4260 fi
4261
4262 case "$llvm_cv_target_arch" in
4263 x86) LLVM_NATIVE_ARCH="X86" ;;
4264 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4265 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4266 esac
4267
4268 ARCH=$llvm_cv_target_arch
4269
4270 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4271
4272
4273 case $host in
4274 i?86-*) host_arch="x86" ;;
4275 amd64-* | x86_64-*) host_arch="x86_64" ;;
4276 sparc*-*) host_arch="Sparc" ;;
4277 powerpc*-*) host_arch="PowerPC" ;;
4278 arm64*-*) host_arch="AArch64" ;;
4279 arm*-*) host_arch="ARM" ;;
4280 aarch64*-*) host_arch="AArch64" ;;
4281 avr-*) host_arch="AVR" ;;
4282 mips-* | mips64-*) host_arch="Mips" ;;
4283 mipsel-* | mips64el-*) host_arch="Mips" ;;
4284 xcore-*) host_arch="XCore" ;;
4285 msp430-*) host_arch="MSP430" ;;
4286 hexagon-*) host_arch="Hexagon" ;;
4287 s390x-*) host_arch="SystemZ" ;;
4288 wasm*-*) host_arch="WebAssembly" ;;
4289 *) host_arch="Unknown" ;;
4290 esac
4291
4292 if test "$host_arch" = "Unknown" ; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown host archicture" >&5
4294 $as_echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4295 fi
4296
4297 HOST_ARCH=$host_arch
4298
4299
4300 if test "$cross_compiling" = yes; then
4301 LLVM_CROSS_COMPILING=1
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5
4305 $as_echo_n "checking for executable suffix on build platform... " >&6; }
4306 if ${ac_cv_build_exeext+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4310 ac_cv_build_exeext=.exe
4311 else
4312 ac_build_prefix=${build_alias}-
4313
4314 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4315 set dummy ${ac_build_prefix}gcc; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_BUILD_CC+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$BUILD_CC"; then
4322 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 BUILD_CC=$ac_cv_prog_BUILD_CC
4342 if test -n "$BUILD_CC"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4344 $as_echo "$BUILD_CC" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351 if test -z "$BUILD_CC"; then
4352 # Extract the first word of "gcc", so it can be a program name with args.
4353 set dummy gcc; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_prog_BUILD_CC+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 if test -n "$BUILD_CC"; then
4360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_BUILD_CC="gcc"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4372 fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 BUILD_CC=$ac_cv_prog_BUILD_CC
4380 if test -n "$BUILD_CC"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4382 $as_echo "$BUILD_CC" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 fi
4387
4388
4389 if test -z "$BUILD_CC"; then
4390 # Extract the first word of "cc", so it can be a program name with args.
4391 set dummy cc; ac_word=$2
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if ${ac_cv_prog_BUILD_CC+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 else
4400 ac_prog_rejected=no
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4409 ac_prog_rejected=yes
4410 continue
4411 fi
4412 ac_cv_prog_BUILD_CC="cc"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 if test $ac_prog_rejected = yes; then
4421 # We found a bogon in the path, so make sure we never use it.
4422 set dummy $ac_cv_prog_BUILD_CC
4423 shift
4424 if test $# != 0; then
4425 # We chose a different compiler from the bogus one.
4426 # However, it has the same basename, so the bogon will be chosen
4427 # first if we set BUILD_CC to just the basename; use the full file name.
4428 shift
4429 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4430 fi
4431 fi
4432 fi
4433 fi
4434 BUILD_CC=$ac_cv_prog_BUILD_CC
4435 if test -n "$BUILD_CC"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4437 $as_echo "$BUILD_CC" >&6; }
4438 else
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442
4443
4444 fi
4445 fi
4446 test -z "$BUILD_CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
4447 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4448 rm -f conftest*
4449 echo 'int main () { return 0; }' > conftest.$ac_ext
4450 ac_cv_build_exeext=
4451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5
4452 (eval $ac_build_link) 2>&5
4453 ac_status=$?
4454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455 test $ac_status = 0; }; then
4456 for file in conftest.*; do
4457 case $file in
4458 *.c | *.o | *.obj | *.dSYM) ;;
4459 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4460 esac
4461 done
4462 else
4463 as_fn_error $? "installation or configuration problem: compiler cannot create executables." "$LINENO" 5
4464 fi
4465 rm -f conftest*
4466 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4467 fi
4468 fi
4469
4470 BUILD_EXEEXT=""
4471 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5
4473 $as_echo "${ac_cv_build_exeext}" >&6; }
4474 ac_build_exeext=$BUILD_EXEEXT
4475
4476 ac_build_prefix=${build_alias}-
4477 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4478 set dummy ${ac_build_prefix}g++; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if ${ac_cv_prog_BUILD_CXX+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -n "$BUILD_CXX"; then
4485 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498 done
4499 done
4500 IFS=$as_save_IFS
4501
4502 fi
4503 fi
4504 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4505 if test -n "$BUILD_CXX"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4507 $as_echo "$BUILD_CXX" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4511 fi
4512
4513
4514 if test -z "$BUILD_CXX"; then
4515 # Extract the first word of "g++", so it can be a program name with args.
4516 set dummy g++; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if ${ac_cv_prog_BUILD_CXX+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -n "$BUILD_CXX"; then
4523 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_BUILD_CXX="g++"
4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4535 fi
4536 done
4537 done
4538 IFS=$as_save_IFS
4539
4540 fi
4541 fi
4542 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4543 if test -n "$BUILD_CXX"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4545 $as_echo "$BUILD_CXX" >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4549 fi
4550
4551
4552 if test -z "$BUILD_CXX"; then
4553 # Extract the first word of "c++", so it can be a program name with args.
4554 set dummy c++; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_prog_BUILD_CXX+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$BUILD_CXX"; then
4561 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4562 else
4563 ac_prog_rejected=no
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4572 ac_prog_rejected=yes
4573 continue
4574 fi
4575 ac_cv_prog_BUILD_CXX="c++"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 if test $ac_prog_rejected = yes; then
4584 # We found a bogon in the path, so make sure we never use it.
4585 set dummy $ac_cv_prog_BUILD_CXX
4586 shift
4587 if test $# != 0; then
4588 # We chose a different compiler from the bogus one.
4589 # However, it has the same basename, so the bogon will be chosen
4590 # first if we set BUILD_CXX to just the basename; use the full file name.
4591 shift
4592 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4593 fi
4594 fi
4595 fi
4596 fi
4597 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4598 if test -n "$BUILD_CXX"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4600 $as_echo "$BUILD_CXX" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4604 fi
4605
4606
4607 fi
4608 fi
4609 else
4610 LLVM_CROSS_COMPILING=0
4611
4612 fi
4613
4614 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4615 cvsbuild="yes"
4616 optimize="no"
4617 CVSBUILD=CVSBUILD=1
4618
4619 else
4620 cvsbuild="no"
4621 optimize="yes"
4622 fi
4623
4624
4625 # Check whether --enable-libcpp was given.
4626 if test "${enable_libcpp+set}" = set; then :
4627 enableval=$enable_libcpp;
4628 else
4629 enableval=default
4630 fi
4631
4632 case "$enableval" in
4633 yes) ENABLE_LIBCPP=1
4634 ;;
4635 no) ENABLE_LIBCPP=0
4636 ;;
4637 default) ENABLE_LIBCPP=0
4638 ;;
4639 *) as_fn_error $? "Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4640 esac
4641
4642 # Check whether --enable-compiler-version-checks was given.
4643 if test "${enable_compiler_version_checks+set}" = set; then :
4644 enableval=$enable_compiler_version_checks;
4645 else
4646 enableval=default
4647 fi
4648
4649 case "$enableval" in
4650 no)
4651 ;;
4652 yes|default)
4653 ac_ext=cpp
4654 ac_cpp='$CXXCPP $CPPFLAGS'
4655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4658
4659 case "$llvm_cv_cxx_compiler" in
4660 clang)
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang is new enough" >&5
4662 $as_echo_n "checking whether Clang is new enough... " >&6; }
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665
4666 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4667 #error This version of Clang is too old to build LLVM
4668 #endif
4669
4670 _ACEOF
4671 if ac_fn_cxx_try_compile "$LINENO"; then :
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673 $as_echo "yes" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 as_fn_error $? "
4678 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4679 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4680 bypass these sanity checks." "$LINENO" 5
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683
4684 if test "$ENABLE_LIBCPP" -eq 0 ; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang will select a modern C++ standard library" >&5
4686 $as_echo_n "checking whether Clang will select a modern C++ standard library... " >&6; }
4687 llvm_cv_old_cxxflags="$CXXFLAGS"
4688 CXXFLAGS="$CXXFLAGS -std=c++0x"
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691
4692 #include <atomic>
4693 std::atomic<float> x(0.0f);
4694 int main() { return (float)x; }
4695
4696 _ACEOF
4697 if ac_fn_cxx_try_link "$LINENO"; then :
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4699 $as_echo "yes" >&6; }
4700 else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4703 as_fn_error $? "
4704 We detected a missing feature in the standard C++ library that was known to be
4705 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4706 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4707 than 4.7. You will need to update your system and ensure Clang uses the newer
4708 standard library.
4709
4710 If this error is incorrect or you need to force things to work, you may pass
4711 '--disable-compiler-version-checks' to configure to bypass this test." "$LINENO" 5
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext \
4714 conftest$ac_exeext conftest.$ac_ext
4715 CXXFLAGS="$llvm_cv_old_cxxflags"
4716 fi
4717 ;;
4718 gcc)
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC is new enough" >&5
4720 $as_echo_n "checking whether GCC is new enough... " >&6; }
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723
4724 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4725 #error This version of GCC is too old to build LLVM
4726 #endif
4727
4728 _ACEOF
4729 if ac_fn_cxx_try_compile "$LINENO"; then :
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 as_fn_error $? "
4736 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4737 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4738 bypass these sanity checks." "$LINENO" 5
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 ;;
4742 unknown)
4743 ;;
4744 esac
4745 ac_ext=c
4746 ac_cpp='$CPP $CPPFLAGS'
4747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750
4751 ;;
4752 *)
4753 as_fn_error $? "Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" "$LINENO" 5
4754 ;;
4755 esac
4756
4757 # Check whether --enable-cxx1y was given.
4758 if test "${enable_cxx1y+set}" = set; then :
4759 enableval=$enable_cxx1y;
4760 else
4761 enableval=default
4762 fi
4763
4764 case "$enableval" in
4765 yes) ENABLE_CXX1Y=1
4766 ;;
4767 no) ENABLE_CXX1Y=0
4768 ;;
4769 default) ENABLE_CXX1Y=0
4770 ;;
4771 *) as_fn_error $? "Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4772 esac
4773
4774 # Check whether --enable-split-dwarf was given.
4775 if test "${enable_split_dwarf+set}" = set; then :
4776 enableval=$enable_split_dwarf;
4777 else
4778 enableval=default
4779 fi
4780
4781 case "$enableval" in
4782 yes) ENABLE_SPLIT_DWARF=1
4783 ;;
4784 no) ENABLE_SPLIT_DWARF=0
4785 ;;
4786 default) ENABLE_SPLIT_DWARF=0
4787 ;;
4788 *) as_fn_error $? "Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4789 esac
4790
4791 clang_arcmt="yes"
4792 # Check whether --enable-clang-arcmt was given.
4793 if test "${enable_clang_arcmt+set}" = set; then :
4794 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4795 else
4796 enableval="yes"
4797 fi
4798
4799 case "$enableval" in
4800 yes) ENABLE_CLANG_ARCMT=1
4801 ;;
4802 no) ENABLE_CLANG_ARCMT=0
4803 ;;
4804 default) ENABLE_CLANG_ARCMT=1
4805 ;;
4806 *) as_fn_error $? "Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4807 esac
4808
4809 clang_plugin_support="yes"
4810 # Check whether --enable-clang-plugin-support was given.
4811 if test "${enable_clang_plugin_support+set}" = set; then :
4812 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4813 else
4814 enableval="yes"
4815 fi
4816
4817 case "$enableval" in
4818 yes) CLANG_PLUGIN_SUPPORT=1
4819 ;;
4820 no) CLANG_PLUGIN_SUPPORT=0
4821 ;;
4822 default) CLANG_PLUGIN_SUPPORT=1
4823 ;;
4824 *) as_fn_error $? "Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4825 esac
4826
4827 clang_static_analyzer="yes"
4828 # Check whether --enable-clang-static-analyzer was given.
4829 if test "${enable_clang_static_analyzer+set}" = set; then :
4830 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4831 else
4832 enableval="yes"
4833 fi
4834
4835 case "$enableval" in
4836 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4837 ;;
4838 no)
4839 if test ${clang_arcmt} != "no" ; then
4840 as_fn_error $? "Cannot enable clang ARC Migration Tool while disabling static analyzer." "$LINENO" 5
4841 fi
4842 ENABLE_CLANG_STATIC_ANALYZER=0
4843
4844 ;;
4845 default) ENABLE_CLANG_STATIC_ANALYZER=1
4846 ;;
4847 *) as_fn_error $? "Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4848 esac
4849
4850 # Check whether --enable-optimized was given.
4851 if test "${enable_optimized+set}" = set; then :
4852 enableval=$enable_optimized;
4853 else
4854 enableval=$optimize
4855 fi
4856
4857 if test ${enableval} = "no" ; then
4858 ENABLE_OPTIMIZED=
4859
4860 else
4861 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4862
4863 fi
4864
4865 # Check whether --enable-profiling was given.
4866 if test "${enable_profiling+set}" = set; then :
4867 enableval=$enable_profiling;
4868 else
4869 enableval="no"
4870 fi
4871
4872 if test ${enableval} = "no" ; then
4873 ENABLE_PROFILING=
4874
4875 else
4876 ENABLE_PROFILING=ENABLE_PROFILING=1
4877
4878 fi
4879
4880 # Check whether --enable-assertions was given.
4881 if test "${enable_assertions+set}" = set; then :
4882 enableval=$enable_assertions;
4883 else
4884 enableval="yes"
4885 fi
4886
4887 if test ${enableval} = "yes" ; then
4888 DISABLE_ASSERTIONS=
4889
4890 assertions_enabled="yes"
4891 else
4892 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4893
4894 assertions_enabled="no"
4895 fi
4896
4897 # Check whether --enable-werror was given.
4898 if test "${enable_werror+set}" = set; then :
4899 enableval=$enable_werror;
4900 else
4901 enableval="no"
4902 fi
4903
4904 case "$enableval" in
4905 yes) ENABLE_WERROR=1
4906 ;;
4907 no) ENABLE_WERROR=0
4908 ;;
4909 default) ENABLE_WERROR=0
4910 ;;
4911 *) as_fn_error $? "Invalid setting for --enable-werror. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4912 esac
4913
4914 # Check whether --enable-expensive-checks was given.
4915 if test "${enable_expensive_checks+set}" = set; then :
4916 enableval=$enable_expensive_checks;
4917 else
4918 enableval="no"
4919 fi
4920
4921 if test ${enableval} = "yes" ; then
4922 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4923
4924 EXPENSIVE_CHECKS=yes
4925
4926 else
4927 ENABLE_EXPENSIVE_CHECKS=
4928
4929 EXPENSIVE_CHECKS=no
4930
4931 fi
4932
4933 # Check whether --enable-abi-breaking-checks was given.
4934 if test "${enable_abi_breaking_checks+set}" = set; then :
4935 enableval=$enable_abi_breaking_checks;
4936 else
4937 enableval="with-asserts"
4938 fi
4939
4940 case "$enableval" in
4941 with-asserts) if test ${assertions_enabled} = "yes" ; then
4942 ENABLE_ABI_BREAKING_CHECKS=1
4943 else
4944 ENABLE_ABI_BREAKING_CHECKS=0
4945 fi ;;
4946 yes)
4947 ENABLE_ABI_BREAKING_CHECKS=1
4948 ;;
4949 no)
4950 ENABLE_ABI_BREAKING_CHECKS=0
4951 ;;
4952 *) as_fn_error $? "Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" "$LINENO" 5
4953 esac
4954 ENABLE_ABI_BREAKING_CHECKS=$ENABLE_ABI_BREAKING_CHECKS
4955
4956
4957 cat >>confdefs.h <<_ACEOF
4958 #define LLVM_ENABLE_ABI_BREAKING_CHECKS $ENABLE_ABI_BREAKING_CHECKS
4959 _ACEOF
4960
4961
4962 # Check whether --enable-debug-runtime was given.
4963 if test "${enable_debug_runtime+set}" = set; then :
4964 enableval=$enable_debug_runtime;
4965 else
4966 enableval=no
4967 fi
4968
4969 if test ${enableval} = "no" ; then
4970 DEBUG_RUNTIME=
4971
4972 else
4973 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4974
4975 fi
4976
4977 # Check whether --enable-debug-symbols was given.
4978 if test "${enable_debug_symbols+set}" = set; then :
4979 enableval=$enable_debug_symbols;
4980 else
4981 enableval=no
4982 fi
4983
4984 if test ${enableval} = "no" ; then
4985 DEBUG_SYMBOLS=
4986
4987 else
4988 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4989
4990 fi
4991
4992 # Check whether --enable-keep-symbols was given.
4993 if test "${enable_keep_symbols+set}" = set; then :
4994 enableval=$enable_keep_symbols;
4995 else
4996 enableval=no
4997 fi
4998
4999 if test ${enableval} = "no" ; then
5000 KEEP_SYMBOLS=
5001
5002 else
5003 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5004
5005 fi
5006
5007 # Check whether --enable-jit was given.
5008 if test "${enable_jit+set}" = set; then :
5009 enableval=$enable_jit;
5010 else
5011 enableval=default
5012 fi
5013
5014 if test ${enableval} = "no"
5015 then
5016 JIT=
5017
5018 else
5019 case "$llvm_cv_target_arch" in
5020 x86) TARGET_HAS_JIT=1
5021 ;;
5022 Sparc) TARGET_HAS_JIT=0
5023 ;;
5024 PowerPC) TARGET_HAS_JIT=1
5025 ;;
5026 x86_64) TARGET_HAS_JIT=1
5027 ;;
5028 ARM) TARGET_HAS_JIT=1
5029 ;;
5030 AVR) TARGET_HAS_JIT=0
5031 ;;
5032 Mips) TARGET_HAS_JIT=1
5033 ;;
5034 XCore) TARGET_HAS_JIT=0
5035 ;;
5036 MSP430) TARGET_HAS_JIT=0
5037 ;;
5038 Hexagon) TARGET_HAS_JIT=0
5039 ;;
5040 NVPTX) TARGET_HAS_JIT=0
5041 ;;
5042 SystemZ) TARGET_HAS_JIT=1
5043 ;;
5044 WebAssembly) TARGET_HAS_JIT=0
5045 ;;
5046 *) TARGET_HAS_JIT=0
5047 ;;
5048 esac
5049 fi
5050
5051 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5052 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5053
5054
5055 # Check whether --enable-docs was given.
5056 if test "${enable_docs+set}" = set; then :
5057 enableval=$enable_docs;
5058 else
5059 enableval=default
5060 fi
5061
5062 case "$enableval" in
5063 yes) ENABLE_DOCS=1
5064 ;;
5065 no) ENABLE_DOCS=0
5066 ;;
5067 default) ENABLE_DOCS=1
5068 ;;
5069 *) as_fn_error $? "Invalid setting for --enable-docs. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5070 esac
5071
5072 # Check whether --enable-doxygen was given.
5073 if test "${enable_doxygen+set}" = set; then :
5074 enableval=$enable_doxygen;
5075 else
5076 enableval=default
5077 fi
5078
5079 case "$enableval" in
5080 yes) ENABLE_DOXYGEN=1
5081 ;;
5082 no|default) ENABLE_DOXYGEN=0
5083 ;;
5084 *) as_fn_error $? "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5085 esac
5086
5087 # Check whether --enable-doxygen-search was given.
5088 if test "${enable_doxygen_search+set}" = set; then :
5089 enableval=$enable_doxygen_search;
5090 else
5091 enableval=default
5092 fi
5093
5094 ENABLE_DOXYGEN_SEARCH="$enableval"
5095
5096 case "$enableval" in
5097 yes|no|default) ;;
5098 *) as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5099 esac
5100
5101 # Check whether --enable-doxygen-external-search was given.
5102 if test "${enable_doxygen_external_search+set}" = set; then :
5103 enableval=$enable_doxygen_external_search;
5104 else
5105 enableval=default
5106 fi
5107
5108 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5109
5110 case "$enableval" in
5111 yes)
5112 case "$ENABLE_DOXYGEN_SEARCH" in
5113 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5114 no) as_fn_error $? "The option --enable-doxygen-external-search requires --enable-doxygen-search" "$LINENO" 5 ;;
5115 esac
5116 ;;
5117 no|default) ;;
5118 *) as_fn_error $? "Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5119 esac
5120
5121
5122 # Check whether --with-doxygen-search-engine-url was given.
5123 if test "${with_doxygen_search_engine_url+set}" = set; then :
5124 withval=$with_doxygen_search_engine_url;
5125 fi
5126
5127 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5128
5129
5130 # Check whether --with-doxygen-search-mappings was given.
5131 if test "${with_doxygen_search_mappings+set}" = set; then :
5132 withval=$with_doxygen_search_mappings;
5133 fi
5134
5135 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5136
5137 case "$ENABLE_DOXYGEN_SEARCH" in
5138 yes)
5139 if test "$ENABLE_DOXYGEN" = "0" ; then
5140 as_fn_error $? "The option --enable-doxygen-search requires --enable-doxygen." "$LINENO" 5
5141 fi
5142
5143 enable_searchengine=YES
5144
5145
5146 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5147 yes)
5148 enable_external_search=YES
5149
5150 enable_server_based_search=YES
5151
5152 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5153
5154 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5155
5156 ;;
5157
5158 no|default)
5159 enable_external_search=NO
5160
5161 enable_server_based_search=NO
5162
5163
5164
5165 ;;
5166 esac
5167 ;;
5168
5169 no|default)
5170 enable_searchengine=NO
5171
5172
5173 enable_server_based_search=NO
5174
5175 enable_external_search=NO
5176
5177
5178 ;;
5179
5180 *)
5181 as_fn_error $? "Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" "$LINENO" 5
5182 ;;
5183 esac
5184
5185 # Check whether --enable-doxygen-qt-help was given.
5186 if test "${enable_doxygen_qt_help+set}" = set; then :
5187 enableval=$enable_doxygen_qt_help;
5188 else
5189 enableval=default
5190 fi
5191
5192 case "$enableval" in
5193 yes)
5194 if test "$ENABLE_DOXYGEN" = "0" ; then
5195 as_fn_error $? "The option --enable-doxygen-qt-help requires --enable-doxygen." "$LINENO" 5
5196 fi
5197
5198 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5199 set dummy qhelpgenerator; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_path_QHELPGENERATOR+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 case $QHELPGENERATOR in
5206 [\\/]* | ?:[\\/]*)
5207 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5208 ;;
5209 *)
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5226 ;;
5227 esac
5228 fi
5229 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5230 if test -n "$QHELPGENERATOR"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QHELPGENERATOR" >&5
5232 $as_echo "$QHELPGENERATOR" >&6; }
5233 else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5236 fi
5237
5238
5239
5240 llvm_doxygen_generate_qhp=YES
5241
5242 llvm_doxygen_qch_filename=org.llvm.qch
5243
5244 llvm_doxygen_qhp_namespace=org.llvm
5245
5246 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5247
5248 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5249
5250 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5251
5252
5253 clang_doxygen_generate_qhp=YES
5254
5255 clang_doxygen_qch_filename=org.llvm.clang.qch
5256
5257 clang_doxygen_qhp_namespace=org.llvm.clang
5258
5259 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5260
5261 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5262
5263 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5264
5265 ;;
5266
5267 no|default)
5268 llvm_doxygen_generate_qhp=NO
5269
5270
5271
5272
5273
5274
5275
5276 clang_doxygen_generate_qhp=NO
5277
5278
5279
5280
5281 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5282
5283 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5284
5285 ;;
5286
5287 *)
5288 as_fn_error $? "Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5289 esac
5290
5291 # Check whether --enable-threads was given.
5292 if test "${enable_threads+set}" = set; then :
5293 enableval=$enable_threads;
5294 else
5295 enableval=default
5296 fi
5297
5298 case "$enableval" in
5299 yes) LLVM_ENABLE_THREADS=1
5300 ;;
5301 no) LLVM_ENABLE_THREADS=0
5302 ;;
5303 default) LLVM_ENABLE_THREADS=1
5304 ;;
5305 *) as_fn_error $? "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5306 esac
5307
5308 cat >>confdefs.h <<_ACEOF
5309 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5310 _ACEOF
5311
5312
5313 # Check whether --enable-pthreads was given.
5314 if test "${enable_pthreads+set}" = set; then :
5315 enableval=$enable_pthreads;
5316 else
5317 enableval=default
5318 fi
5319
5320 case "$enableval" in
5321 yes) ENABLE_PTHREADS=1
5322 ;;
5323 no) ENABLE_PTHREADS=0
5324 ;;
5325 default) ENABLE_PTHREADS=1
5326 ;;
5327 *) as_fn_error $? "Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5328 esac
5329
5330 # Check whether --enable-zlib was given.
5331 if test "${enable_zlib+set}" = set; then :
5332 enableval=$enable_zlib;
5333 else
5334 enableval=default
5335 fi
5336
5337 case "$enableval" in
5338 yes) LLVM_ENABLE_ZLIB=1
5339 ;;
5340 no) LLVM_ENABLE_ZLIB=0
5341 ;;
5342 default) LLVM_ENABLE_ZLIB=1
5343 ;;
5344 *) as_fn_error $? "Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5345 esac
5346
5347 cat >>confdefs.h <<_ACEOF
5348 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5349 _ACEOF
5350
5351
5352 # Check whether --enable-shared was given.
5353 if test "${enable_shared+set}" = set; then :
5354 enableval=$enable_shared;
5355 else
5356 enableval=default
5357 fi
5358
5359 case "$enableval" in
5360 yes) ENABLE_SHARED=1
5361 ;;
5362 no) ENABLE_SHARED=0
5363 ;;
5364 default) ENABLE_SHARED=0
5365 ;;
5366 *) as_fn_error $? "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5367 esac
5368
5369 # Check whether --enable-embed-stdcxx was given.
5370 if test "${enable_embed_stdcxx+set}" = set; then :
5371 enableval=$enable_embed_stdcxx;
5372 else
5373 enableval=default
5374 fi
5375
5376 case "$enableval" in
5377 yes) ENABLE_EMBED_STDCXX=1
5378 ;;
5379 no) ENABLE_EMBED_STDCXX=0
5380 ;;
5381 default) ENABLE_EMBED_STDCXX=0
5382 ;;
5383 *) as_fn_error $? "Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5384 esac
5385
5386 # Check whether --enable-backtraces was given.
5387 if test "${enable_backtraces+set}" = set; then :
5388 enableval=$enable_backtraces; case "$enableval" in
5389 yes) llvm_cv_enable_backtraces="yes" ;;
5390 no) llvm_cv_enable_backtraces="no" ;;
5391 *) as_fn_error $? "Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5392 esac
5393 else
5394 llvm_cv_enable_backtraces="yes"
5395 fi
5396
5397 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5398
5399 $as_echo "#define ENABLE_BACKTRACES 1" >>confdefs.h
5400
5401 fi
5402
5403 # Check whether --enable-crash-overrides was given.
5404 if test "${enable_crash_overrides+set}" = set; then :
5405 enableval=$enable_crash_overrides; case "$enableval" in
5406 yes) llvm_cv_enable_crash_overrides="yes" ;;
5407 no) llvm_cv_enable_crash_overrides="no" ;;
5408 *) as_fn_error $? "Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5409 esac
5410 else
5411 llvm_cv_enable_crash_overrides="yes"
5412 fi
5413
5414 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5415
5416 $as_echo "#define ENABLE_CRASH_OVERRIDES 1" >>confdefs.h
5417
5418 fi
5419
5420 ALL_TARGETS="AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 NVPTX PowerPC Sparc SystemZ X86 XCore"
5421 ALL_TARGETS=$ALL_TARGETS
5422
5423
5424 TARGETS_TO_BUILD=""
5425 # Check whether --enable-targets was given.
5426 if test "${enable_targets+set}" = set; then :
5427 enableval=$enable_targets;
5428 else
5429 enableval=all
5430 fi
5431
5432 if test "$enableval" = host-only ; then
5433 enableval=host
5434 fi
5435 case "$enableval" in
5436 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5437 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5438 case "$a_target" in
5439 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5440 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5441 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5442 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5443 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5444 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5445 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5446 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5447 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5448 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5449 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5450 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5451 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5452 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5453 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5454 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5455 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5456 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5457 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5458 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5459 wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5460 host) case "$llvm_cv_target_arch" in
5461 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5462 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5463 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5464 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5465 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5466 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5467 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5468 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5469 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5470 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5471 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5472 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5473 WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5474 *) as_fn_error $? "Can not set target to build" "$LINENO" 5 ;;
5475 esac ;;
5476 *) as_fn_error $? "Unrecognized target $a_target" "$LINENO" 5 ;;
5477 esac
5478 done
5479 ;;
5480 esac
5481
5482 # Check whether --enable-experimental-targets was given.
5483 if test "${enable_experimental_targets+set}" = set; then :
5484 enableval=$enable_experimental_targets;
5485 else
5486 enableval=disable
5487 fi
5488
5489
5490 if test ${enableval} != "disable"
5491 then
5492 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5493 fi
5494
5495 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5496
5497
5498 for a_target in $TARGETS_TO_BUILD; do
5499 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5503 _ACEOF
5504
5505 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5506 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5507 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5508 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5509 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then
5510 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5511 fi
5512 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then
5513 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5514 fi
5515
5516 cat >>confdefs.h <<_ACEOF
5517 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5518 _ACEOF
5519
5520
5521 cat >>confdefs.h <<_ACEOF
5522 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5523 _ACEOF
5524
5525
5526 cat >>confdefs.h <<_ACEOF
5527 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5528 _ACEOF
5529
5530
5531 cat >>confdefs.h <<_ACEOF
5532 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5533 _ACEOF
5534
5535 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt ; then
5536
5537 cat >>confdefs.h <<_ACEOF
5538 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5539 _ACEOF
5540
5541 fi
5542 if test -f ${llvm_srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt ; then
5543
5544 cat >>confdefs.h <<_ACEOF
5545 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5546 _ACEOF
5547
5548 fi
5549 fi
5550 done
5551
5552 LLVM_ENUM_TARGETS=""
5553 LLVM_ENUM_ASM_PRINTERS=""
5554 LLVM_ENUM_ASM_PARSERS=""
5555 LLVM_ENUM_DISASSEMBLERS=""
5556 for target_to_build in $TARGETS_TO_BUILD; do
5557 LLVM_ENUM_TARGETS="$LLVM_ENUM_TARGETS${as_nl}LLVM_TARGET($target_to_build)"
5558 has_asm_printer=0
5559 for asm_printer in ${llvm_srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp; do
5560 if test -f "$asm_printer"; then
5561 has_asm_printer=1
5562 fi
5563 done
5564 if test "$has_asm_printer" = 1; then
5565 LLVM_ENUM_ASM_PRINTERS="$LLVM_ENUM_ASM_PRINTERS${as_nl}LLVM_ASM_PRINTER($target_to_build)";
5566 fi
5567 if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/AsmParser/CMakeLists.txt ; then
5568 LLVM_ENUM_ASM_PARSERS="$LLVM_ENUM_ASM_PARSERS${as_nl}LLVM_ASM_PARSER($target_to_build)";
5569 fi
5570 if test -f ${llvm_srcdir}/lib/Target/${target_to_build}/Disassembler/CMakeLists.txt ; then
5571 LLVM_ENUM_DISASSEMBLERS="$LLVM_ENUM_DISASSEMBLERS${as_nl}LLVM_DISASSEMBLER($target_to_build)";
5572 fi
5573 done
5574 LLVM_ENUM_TARGETS="${LLVM_ENUM_TARGETS#${as_nl}}${as_nl}"
5575 LLVM_ENUM_ASM_PRINTERS="${LLVM_ENUM_ASM_PRINTERS#${as_nl}}${as_nl}"
5576 LLVM_ENUM_ASM_PARSERS="${LLVM_ENUM_ASM_PARSERS#${as_nl}}${as_nl}"
5577 LLVM_ENUM_DISASSEMBLERS="${LLVM_ENUM_DISASSEMBLERS#${as_nl}}${as_nl}"
5578
5579
5580
5581
5582
5583
5584 # Check whether --with-optimize-option was given.
5585 if test "${with_optimize_option+set}" = set; then :
5586 withval=$with_optimize_option;
5587 else
5588 withval=default
5589 fi
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5
5592 $as_echo_n "checking optimization flags... " >&6; }
5593 case "$withval" in
5594 default)
5595 case "$llvm_cv_os_type" in
5596 FreeBSD) optimize_option=-O2 ;;
5597 MingW) optimize_option=-O2 ;;
5598 *) optimize_option=-O3 ;;
5599 esac ;;
5600 *) optimize_option="$withval" ;;
5601 esac
5602 OPTIMIZE_OPTION=$optimize_option
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5
5605 $as_echo "$optimize_option" >&6; }
5606
5607
5608 # Check whether --with-extra-options was given.
5609 if test "${with_extra_options+set}" = set; then :
5610 withval=$with_extra_options;
5611 else
5612 withval=default
5613 fi
5614
5615 case "$withval" in
5616 default) EXTRA_OPTIONS= ;;
5617 *) EXTRA_OPTIONS=$withval ;;
5618 esac
5619 EXTRA_OPTIONS=$EXTRA_OPTIONS
5620
5621
5622
5623 # Check whether --with-extra-ld-options was given.
5624 if test "${with_extra_ld_options+set}" = set; then :
5625 withval=$with_extra_ld_options;
5626 else
5627 withval=default
5628 fi
5629
5630 case "$withval" in
5631 default) EXTRA_LD_OPTIONS= ;;
5632 *) EXTRA_LD_OPTIONS=$withval ;;
5633 esac
5634 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5635
5636
5637 # Check whether --enable-bindings was given.
5638 if test "${enable_bindings+set}" = set; then :
5639 enableval=$enable_bindings;
5640 else
5641 enableval=default
5642 fi
5643
5644 BINDINGS_TO_BUILD=""
5645 case "$enableval" in
5646 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5647 all ) BINDINGS_TO_BUILD="ocaml" ;;
5648 none | no) BINDINGS_TO_BUILD="" ;;
5649 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5650 case "$a_binding" in
5651 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5652 *) as_fn_error $? "Unrecognized binding $a_binding" "$LINENO" 5 ;;
5653 esac
5654 done
5655 ;;
5656 esac
5657
5658
5659 # Check whether --with-ocaml-libdir was given.
5660 if test "${with_ocaml_libdir+set}" = set; then :
5661 withval=$with_ocaml_libdir;
5662 else
5663 withval=auto
5664 fi
5665
5666 case "$withval" in
5667 auto) with_ocaml_libdir="$withval" ;;
5668 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5669 *) as_fn_error $? "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
5670 esac
5671
5672
5673 # Check whether --with-clang-srcdir was given.
5674 if test "${with_clang_srcdir+set}" = set; then :
5675 withval=$with_clang_srcdir;
5676 else
5677 withval="-"
5678 fi
5679
5680 case "$withval" in
5681 -) clang_src_root="" ;;
5682 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5683 *) clang_src_root="$ac_pwd/$withval" ;;
5684 esac
5685 CLANG_SRC_ROOT=$clang_src_root
5686
5687
5688
5689 # Check whether --with-clang-resource-dir was given.
5690 if test "${with_clang_resource_dir+set}" = set; then :
5691 withval=$with_clang_resource_dir;
5692 else
5693 withval=""
5694 fi
5695
5696
5697 cat >>confdefs.h <<_ACEOF
5698 #define CLANG_RESOURCE_DIR "$withval"
5699 _ACEOF
5700
5701
5702
5703 # Check whether --with-c-include-dirs was given.
5704 if test "${with_c_include_dirs+set}" = set; then :
5705 withval=$with_c_include_dirs;
5706 else
5707 withval=""
5708 fi
5709
5710
5711 cat >>confdefs.h <<_ACEOF
5712 #define C_INCLUDE_DIRS "$withval"
5713 _ACEOF
5714
5715
5716
5717 # Check whether --with-clang-default-openmp-runtime was given.
5718 if test "${with_clang_default_openmp_runtime+set}" = set; then :
5719 withval=$with_clang_default_openmp_runtime;
5720 else
5721 withval="libomp"
5722 fi
5723
5724
5725
5726 cat >>confdefs.h <<_ACEOF
5727 #define CLANG_ENABLE_ARCMT 1
5728 _ACEOF
5729
5730
5731 cat >>confdefs.h <<_ACEOF
5732 #define CLANG_ENABLE_OBJC_REWRITER 1
5733 _ACEOF
5734
5735
5736 cat >>confdefs.h <<_ACEOF
5737 #define CLANG_ENABLE_STATIC_ANALYZER 1
5738 _ACEOF
5739
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define CLANG_SPAWN_CC1 1
5743 _ACEOF
5744
5745
5746
5747 cat >>confdefs.h <<_ACEOF
5748 #define ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER 0
5749 _ACEOF
5750
5751
5752 cat >>confdefs.h <<_ACEOF
5753 #define CLANG_OPENMP_NVPTX_DEFAULT_ARCH "sm_35"
5754 _ACEOF
5755
5756
5757
5758 cat >>confdefs.h <<_ACEOF
5759 #define ENABLE_X86_RELAX_RELOCATIONS 0
5760 _ACEOF
5761
5762
5763 cat >>confdefs.h <<_ACEOF
5764 #define CLANG_DEFAULT_CXX_STDLIB ""
5765 _ACEOF
5766
5767
5768 cat >>confdefs.h <<_ACEOF
5769 #define CLANG_DEFAULT_LINKER ""
5770 _ACEOF
5771
5772
5773 cat >>confdefs.h <<_ACEOF
5774 #define CLANG_DEFAULT_OBJCOPY "objcopy"
5775 _ACEOF
5776
5777
5778 cat >>confdefs.h <<_ACEOF
5779 #define CLANG_DEFAULT_RTLIB ""
5780 _ACEOF
5781
5782
5783 cat >>confdefs.h <<_ACEOF
5784 #define CLANG_DEFAULT_UNWINDLIB "none"
5785 _ACEOF
5786
5787
5788 cat >>confdefs.h <<_ACEOF
5789 #define CLANG_DEFAULT_OPENMP_RUNTIME "libomp"
5790 _ACEOF
5791
5792
5793 cat >>confdefs.h <<_ACEOF
5794 #define CLANG_SYSTEMZ_DEFAULT_ARCH "z10"
5795 _ACEOF
5796
5797
5798 cat >>confdefs.h <<_ACEOF
5799 #define CLANG_LIBDIR_SUFFIX ""
5800 _ACEOF
5801
5802
5803 cat >>confdefs.h <<_ACEOF
5804 #define DEFAULT_SYSROOT ""
5805 _ACEOF
5806
5807
5808 cat >>confdefs.h <<_ACEOF
5809 #define GCC_INSTALL_PREFIX ""
5810 _ACEOF
5811
5812
5813
5814 # Check whether --with-binutils-include was given.
5815 if test "${with_binutils_include+set}" = set; then :
5816 withval=$with_binutils_include;
5817 else
5818 withval=default
5819 fi
5820
5821 case "$withval" in
5822 default) WITH_BINUTILS_INCDIR=default ;;
5823 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5824 *) as_fn_error $? "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
5825 esac
5826 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5827 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5828
5829 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5830 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5831 as_fn_error $? "Invalid path to directory containing plugin-api.h." "$LINENO" 5;
5832 fi
5833 fi
5834
5835
5836 # Check whether --with-bug-report-url was given.
5837 if test "${with_bug_report_url+set}" = set; then :
5838 withval=$with_bug_report_url;
5839 else
5840 withval="http://llvm.org/bugs/"
5841 fi
5842
5843
5844 cat >>confdefs.h <<_ACEOF
5845 #define BUG_REPORT_URL "$withval"
5846 _ACEOF
5847
5848
5849 # Check whether --enable-terminfo was given.
5850 if test "${enable_terminfo+set}" = set; then :
5851 enableval=$enable_terminfo; case "$enableval" in
5852 yes) llvm_cv_enable_terminfo="yes" ;;
5853 no) llvm_cv_enable_terminfo="no" ;;
5854 *) as_fn_error $? "Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5855 esac
5856 else
5857 llvm_cv_enable_terminfo="yes"
5858 fi
5859
5860 case "$llvm_cv_enable_terminfo" in
5861 yes) ENABLE_TERMINFO=1
5862 ;;
5863 no) ENABLE_TERMINFO=0
5864 ;;
5865 esac
5866
5867 # Check whether --enable-libedit was given.
5868 if test "${enable_libedit+set}" = set; then :
5869 enableval=$enable_libedit; case "$enableval" in
5870 yes) llvm_cv_enable_libedit="yes" ;;
5871 no) llvm_cv_enable_libedit="no" ;;
5872 *) as_fn_error $? "Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5873 esac
5874 else
5875 llvm_cv_enable_libedit="yes"
5876 fi
5877
5878
5879 # Check whether --enable-libffi was given.
5880 if test "${enable_libffi+set}" = set; then :
5881 enableval=$enable_libffi; case "$enableval" in
5882 yes) llvm_cv_enable_libffi="yes" ;;
5883 no) llvm_cv_enable_libffi="no" ;;
5884 *) as_fn_error $? "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5885 esac
5886 else
5887 llvm_cv_enable_libffi=no
5888 fi
5889
5890
5891
5892 # Check whether --with-internal-prefix was given.
5893 if test "${with_internal_prefix+set}" = set; then :
5894 withval=$with_internal_prefix;
5895 else
5896 withval=""
5897 fi
5898
5899 INTERNAL_PREFIX=$withval
5900
5901
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
5904 $as_echo_n "checking for GNU make... " >&6; }
5905 if ${llvm_cv_gnu_make_command+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 llvm_cv_gnu_make_command=''
5909 for a in "$MAKE" make gmake gnumake ; do
5910 if test -z "$a" ; then continue ; fi ;
5911 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5912 then
5913 llvm_cv_gnu_make_command=$a ;
5914 break;
5915 fi
5916 done
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
5919 $as_echo "$llvm_cv_gnu_make_command" >&6; }
5920 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5921 ifGNUmake='' ;
5922 else
5923 ifGNUmake='#' ;
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
5925 $as_echo "\"Not found\"" >&6; };
5926 fi
5927
5928
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5930 $as_echo_n "checking whether ln -s works... " >&6; }
5931 LN_S=$as_ln_s
5932 if test "$LN_S" = "ln -s"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5934 $as_echo "yes" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5937 $as_echo "no, using $LN_S" >&6; }
5938 fi
5939
5940 # Extract the first word of "nm", so it can be a program name with args.
5941 set dummy nm; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if ${ac_cv_path_NM+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 case $NM in
5948 [\\/]* | ?:[\\/]*)
5949 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5950 ;;
5951 *)
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5968 ;;
5969 esac
5970 fi
5971 NM=$ac_cv_path_NM
5972 if test -n "$NM"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5974 $as_echo "$NM" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980
5981 # Extract the first word of "cmp", so it can be a program name with args.
5982 set dummy cmp; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_path_CMP+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 case $CMP in
5989 [\\/]* | ?:[\\/]*)
5990 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5991 ;;
5992 *)
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6003 fi
6004 done
6005 done
6006 IFS=$as_save_IFS
6007
6008 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6009 ;;
6010 esac
6011 fi
6012 CMP=$ac_cv_path_CMP
6013 if test -n "$CMP"; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6015 $as_echo "$CMP" >&6; }
6016 else
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6019 fi
6020
6021
6022 # Extract the first word of "cp", so it can be a program name with args.
6023 set dummy cp; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_path_CP+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 case $CP in
6030 [\\/]* | ?:[\\/]*)
6031 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6032 ;;
6033 *)
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6044 fi
6045 done
6046 done
6047 IFS=$as_save_IFS
6048
6049 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6050 ;;
6051 esac
6052 fi
6053 CP=$ac_cv_path_CP
6054 if test -n "$CP"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6056 $as_echo "$CP" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6060 fi
6061
6062
6063 # Extract the first word of "date", so it can be a program name with args.
6064 set dummy date; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_path_DATE+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 case $DATE in
6071 [\\/]* | ?:[\\/]*)
6072 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6073 ;;
6074 *)
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6091 ;;
6092 esac
6093 fi
6094 DATE=$ac_cv_path_DATE
6095 if test -n "$DATE"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6097 $as_echo "$DATE" >&6; }
6098 else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 fi
6102
6103
6104 # Extract the first word of "find", so it can be a program name with args.
6105 set dummy find; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_path_FIND+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 case $FIND in
6112 [\\/]* | ?:[\\/]*)
6113 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6114 ;;
6115 *)
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6126 fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6132 ;;
6133 esac
6134 fi
6135 FIND=$ac_cv_path_FIND
6136 if test -n "$FIND"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
6138 $as_echo "$FIND" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144
6145 # Extract the first word of "grep", so it can be a program name with args.
6146 set dummy grep; ac_word=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if ${ac_cv_path_GREP+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 case $GREP in
6153 [\\/]* | ?:[\\/]*)
6154 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6155 ;;
6156 *)
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6173 ;;
6174 esac
6175 fi
6176 GREP=$ac_cv_path_GREP
6177 if test -n "$GREP"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
6179 $as_echo "$GREP" >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184
6185
6186 # Extract the first word of "mkdir", so it can be a program name with args.
6187 set dummy mkdir; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_path_MKDIR+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 case $MKDIR in
6194 [\\/]* | ?:[\\/]*)
6195 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6196 ;;
6197 *)
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6214 ;;
6215 esac
6216 fi
6217 MKDIR=$ac_cv_path_MKDIR
6218 if test -n "$MKDIR"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
6220 $as_echo "$MKDIR" >&6; }
6221 else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223 $as_echo "no" >&6; }
6224 fi
6225
6226
6227 # Extract the first word of "mv", so it can be a program name with args.
6228 set dummy mv; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_path_MV+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 case $MV in
6235 [\\/]* | ?:[\\/]*)
6236 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6237 ;;
6238 *)
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6249 fi
6250 done
6251 done
6252 IFS=$as_save_IFS
6253
6254 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6255 ;;
6256 esac
6257 fi
6258 MV=$ac_cv_path_MV
6259 if test -n "$MV"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
6261 $as_echo "$MV" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267
6268 if test -n "$ac_tool_prefix"; then
6269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6270 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if ${ac_cv_prog_RANLIB+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 if test -n "$RANLIB"; then
6277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 break 2
6289 fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294 fi
6295 fi
6296 RANLIB=$ac_cv_prog_RANLIB
6297 if test -n "$RANLIB"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6299 $as_echo "$RANLIB" >&6; }
6300 else
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6303 fi
6304
6305
6306 fi
6307 if test -z "$ac_cv_prog_RANLIB"; then
6308 ac_ct_RANLIB=$RANLIB
6309 # Extract the first word of "ranlib", so it can be a program name with args.
6310 set dummy ranlib; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if test -n "$ac_ct_RANLIB"; then
6317 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_ac_ct_RANLIB="ranlib"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334 fi
6335 fi
6336 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6337 if test -n "$ac_ct_RANLIB"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6339 $as_echo "$ac_ct_RANLIB" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6343 fi
6344
6345 if test "x$ac_ct_RANLIB" = x; then
6346 RANLIB=":"
6347 else
6348 case $cross_compiling:$ac_tool_warned in
6349 yes:)
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352 ac_tool_warned=yes ;;
6353 esac
6354 RANLIB=$ac_ct_RANLIB
6355 fi
6356 else
6357 RANLIB="$ac_cv_prog_RANLIB"
6358 fi
6359
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}ar; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_AR+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 if test -n "$AR"; then
6369 ac_cv_prog_AR="$AR" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_AR="${ac_tool_prefix}ar"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6381 fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 AR=$ac_cv_prog_AR
6389 if test -n "$AR"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6391 $as_echo "$AR" >&6; }
6392 else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397
6398 fi
6399 if test -z "$ac_cv_prog_AR"; then
6400 ac_ct_AR=$AR
6401 # Extract the first word of "ar", so it can be a program name with args.
6402 set dummy ar; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 if test -n "$ac_ct_AR"; then
6409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418 ac_cv_prog_ac_ct_AR="ar"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6421 fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426 fi
6427 fi
6428 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6429 if test -n "$ac_ct_AR"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6431 $as_echo "$ac_ct_AR" >&6; }
6432 else
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436
6437 if test "x$ac_ct_AR" = x; then
6438 AR="false"
6439 else
6440 case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6445 esac
6446 AR=$ac_ct_AR
6447 fi
6448 else
6449 AR="$ac_cv_prog_AR"
6450 fi
6451
6452 # Extract the first word of "rm", so it can be a program name with args.
6453 set dummy rm; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_path_RM+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 case $RM in
6460 [\\/]* | ?:[\\/]*)
6461 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6462 ;;
6463 *)
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6480 ;;
6481 esac
6482 fi
6483 RM=$ac_cv_path_RM
6484 if test -n "$RM"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6486 $as_echo "$RM" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492
6493 # Extract the first word of "sed", so it can be a program name with args.
6494 set dummy sed; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_path_SED+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 case $SED in
6501 [\\/]* | ?:[\\/]*)
6502 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6503 ;;
6504 *)
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516 done
6517 done
6518 IFS=$as_save_IFS
6519
6520 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6521 ;;
6522 esac
6523 fi
6524 SED=$ac_cv_path_SED
6525 if test -n "$SED"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6527 $as_echo "$SED" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533
6534 # Extract the first word of "tar", so it can be a program name with args.
6535 set dummy tar; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_path_TAR+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 case $TAR in
6542 [\\/]* | ?:[\\/]*)
6543 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6544 ;;
6545 *)
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6553 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6562 ;;
6563 esac
6564 fi
6565 TAR=$ac_cv_path_TAR
6566 if test -n "$TAR"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6568 $as_echo "$TAR" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574
6575 # Extract the first word of "pwd", so it can be a program name with args.
6576 set dummy pwd; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_path_BINPWD+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 case $BINPWD in
6583 [\\/]* | ?:[\\/]*)
6584 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6585 ;;
6586 *)
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6594 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6603 ;;
6604 esac
6605 fi
6606 BINPWD=$ac_cv_path_BINPWD
6607 if test -n "$BINPWD"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5
6609 $as_echo "$BINPWD" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615
6616
6617 # Extract the first word of "dot", so it can be a program name with args.
6618 set dummy dot; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_path_DOT+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 case $DOT in
6625 [\\/]* | ?:[\\/]*)
6626 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6627 ;;
6628 *)
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6645 ;;
6646 esac
6647 fi
6648 DOT=$ac_cv_path_DOT
6649 if test -n "$DOT"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
6651 $as_echo "$DOT" >&6; }
6652 else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6655 fi
6656
6657
6658 if test "$DOT" != "echo dot" ; then
6659 if test "$llvm_cv_os_type" = "MingW" ; then
6660 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6661 fi
6662 fi
6663
6664 # Find a good install program. We prefer a C program (faster),
6665 # so one script is as good as another. But avoid the broken or
6666 # incompatible versions:
6667 # SysV /etc/install, /usr/sbin/install
6668 # SunOS /usr/etc/install
6669 # IRIX /sbin/install
6670 # AIX /bin/install
6671 # AmigaOS /C/install, which installs bootblocks on floppy discs
6672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6675 # OS/2's system install, which has a completely different semantic
6676 # ./install, which can be erroneously created by make from ./install.sh.
6677 # Reject install programs that cannot install multiple files.
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6679 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6680 if test -z "$INSTALL"; then
6681 if ${ac_cv_path_install+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 # Account for people who put trailing slashes in PATH elements.
6690 case $as_dir/ in #((
6691 ./ | .// | /[cC]/* | \
6692 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6693 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6694 /usr/ucb/* ) ;;
6695 *)
6696 # OSF1 and SCO ODT 3.0 have their own names for install.
6697 # Don't use installbsd from OSF since it installs stuff as root
6698 # by default.
6699 for ac_prog in ginstall scoinst install; do
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6702 if test $ac_prog = install &&
6703 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6704 # AIX install. It has an incompatible calling convention.
6705 :
6706 elif test $ac_prog = install &&
6707 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6708 # program-specific install script used by HP pwplus--don't use.
6709 :
6710 else
6711 rm -rf conftest.one conftest.two conftest.dir
6712 echo one > conftest.one
6713 echo two > conftest.two
6714 mkdir conftest.dir
6715 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6716 test -s conftest.one && test -s conftest.two &&
6717 test -s conftest.dir/conftest.one &&
6718 test -s conftest.dir/conftest.two
6719 then
6720 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6721 break 3
6722 fi
6723 fi
6724 fi
6725 done
6726 done
6727 ;;
6728 esac
6729
6730 done
6731 IFS=$as_save_IFS
6732
6733 rm -rf conftest.one conftest.two conftest.dir
6734
6735 fi
6736 if test "${ac_cv_path_install+set}" = set; then
6737 INSTALL=$ac_cv_path_install
6738 else
6739 # As a last resort, use the slow shell script. Don't cache a
6740 # value for INSTALL within a source directory, because that will
6741 # break other packages using the cache if that directory is
6742 # removed, or if the value is a relative name.
6743 INSTALL=$ac_install_sh
6744 fi
6745 fi
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6747 $as_echo "$INSTALL" >&6; }
6748
6749 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6750 # It thinks the first close brace ends the variable substitution.
6751 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6752
6753 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6754
6755 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6756
6757 case "$INSTALL" in
6758 [\\/$]* | ?:[\\/]* ) ;;
6759 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6760 esac
6761
6762 # Extract the first word of "bzip2", so it can be a program name with args.
6763 set dummy bzip2; 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 ${ac_cv_path_BZIP2+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 case $BZIP2 in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6772 ;;
6773 *)
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_path_BZIP2="$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
6784 fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789 ;;
6790 esac
6791 fi
6792 BZIP2=$ac_cv_path_BZIP2
6793 if test -n "$BZIP2"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
6795 $as_echo "$BZIP2" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801
6802 # Extract the first word of "cat", so it can be a program name with args.
6803 set dummy cat; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_path_CAT+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 case $CAT in
6810 [\\/]* | ?:[\\/]*)
6811 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6812 ;;
6813 *)
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 ;;
6830 esac
6831 fi
6832 CAT=$ac_cv_path_CAT
6833 if test -n "$CAT"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
6835 $as_echo "$CAT" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841
6842 # Extract the first word of "doxygen", so it can be a program name with args.
6843 set dummy doxygen; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if ${ac_cv_path_DOXYGEN+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 case $DOXYGEN in
6850 [\\/]* | ?:[\\/]*)
6851 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6852 ;;
6853 *)
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 ;;
6870 esac
6871 fi
6872 DOXYGEN=$ac_cv_path_DOXYGEN
6873 if test -n "$DOXYGEN"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
6875 $as_echo "$DOXYGEN" >&6; }
6876 else
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881
6882 # Extract the first word of "groff", so it can be a program name with args.
6883 set dummy groff; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_path_GROFF+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 case $GROFF in
6890 [\\/]* | ?:[\\/]*)
6891 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6892 ;;
6893 *)
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 ;;
6910 esac
6911 fi
6912 GROFF=$ac_cv_path_GROFF
6913 if test -n "$GROFF"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
6915 $as_echo "$GROFF" >&6; }
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921
6922 # Extract the first word of "gzip", so it can be a program name with args.
6923 set dummy gzip; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if ${ac_cv_path_GZIPBIN+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 case $GZIPBIN in
6930 [\\/]* | ?:[\\/]*)
6931 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6932 ;;
6933 *)
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 ;;
6950 esac
6951 fi
6952 GZIPBIN=$ac_cv_path_GZIPBIN
6953 if test -n "$GZIPBIN"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIPBIN" >&5
6955 $as_echo "$GZIPBIN" >&6; }
6956 else
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960
6961
6962 # Extract the first word of "pdfroff", so it can be a program name with args.
6963 set dummy pdfroff; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_path_PDFROFF+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 case $PDFROFF in
6970 [\\/]* | ?:[\\/]*)
6971 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6972 ;;
6973 *)
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6981 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989 ;;
6990 esac
6991 fi
6992 PDFROFF=$ac_cv_path_PDFROFF
6993 if test -n "$PDFROFF"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFROFF" >&5
6995 $as_echo "$PDFROFF" >&6; }
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 fi
7000
7001
7002 # Extract the first word of "zip", so it can be a program name with args.
7003 set dummy zip; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_path_ZIP+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 case $ZIP in
7010 [\\/]* | ?:[\\/]*)
7011 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7012 ;;
7013 *)
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029 ;;
7030 esac
7031 fi
7032 ZIP=$ac_cv_path_ZIP
7033 if test -n "$ZIP"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7035 $as_echo "$ZIP" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 # Extract the first word of "go", so it can be a program name with args.
7043 set dummy go; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_path_GO+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 case $GO in
7050 [\\/]* | ?:[\\/]*)
7051 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7052 ;;
7053 *)
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7061 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069 ;;
7070 esac
7071 fi
7072 GO=$ac_cv_path_GO
7073 if test -n "$GO"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5
7075 $as_echo "$GO" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081
7082 for ac_prog in ocamlfind
7083 do
7084 # Extract the first word of "$ac_prog", so it can be a program name with args.
7085 set dummy $ac_prog; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if ${ac_cv_path_OCAMLFIND+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 case $OCAMLFIND in
7092 [\\/]* | ?:[\\/]*)
7093 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7094 ;;
7095 *)
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 ;;
7112 esac
7113 fi
7114 OCAMLFIND=$ac_cv_path_OCAMLFIND
7115 if test -n "$OCAMLFIND"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
7117 $as_echo "$OCAMLFIND" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124 test -n "$OCAMLFIND" && break
7125 done
7126
7127 for ac_prog in gas as
7128 do
7129 # Extract the first word of "$ac_prog", so it can be a program name with args.
7130 set dummy $ac_prog; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_path_GAS+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 case $GAS in
7137 [\\/]* | ?:[\\/]*)
7138 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7139 ;;
7140 *)
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 ;;
7157 esac
7158 fi
7159 GAS=$ac_cv_path_GAS
7160 if test -n "$GAS"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5
7162 $as_echo "$GAS" >&6; }
7163 else
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166 fi
7167
7168
7169 test -n "$GAS" && break
7170 done
7171
7172
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version" >&5
7174 $as_echo_n "checking for linker version... " >&6; }
7175 if ${llvm_cv_link_version+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178
7179 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7180
7181 # Check for ld64.
7182 if (echo "$version_string" | grep -q "ld64"); then
7183 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7184 else
7185 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7186 fi
7187
7188 fi
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_version" >&5
7190 $as_echo "$llvm_cv_link_version" >&6; }
7191
7192 cat >>confdefs.h <<_ACEOF
7193 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7194 _ACEOF
7195
7196
7197
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,--version-script option" >&5
7200 $as_echo_n "checking for compiler -Wl,--version-script option... " >&6; }
7201 if ${llvm_cv_link_use_version_script+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 ac_ext=c
7205 ac_cpp='$CPP $CPPFLAGS'
7206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209
7210 oldcflags="$CFLAGS"
7211
7212 # The following code is from the autoconf manual,
7213 # "11.13: Limitations of Usual Tools".
7214 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7215 # Use mktemp if possible; otherwise fall back on mkdir,
7216 # with $RANDOM to make collisions less likely.
7217 : ${TMPDIR=/tmp}
7218 {
7219 tmp=`
7220 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7221 ` &&
7222 test -n "$tmp" && test -d "$tmp"
7223 } || {
7224 tmp=$TMPDIR/foo$$-$RANDOM
7225 (umask 077 && mkdir "$tmp")
7226 } || exit $?
7227
7228 echo "{" > "$tmp/export.map"
7229 echo " global: main;" >> "$tmp/export.map"
7230 echo " local: *;" >> "$tmp/export.map"
7231 echo "};" >> "$tmp/export.map"
7232
7233 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236
7237 int
7238 main ()
7239 {
7240
7241 ;
7242 return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_link "$LINENO"; then :
7246 llvm_cv_link_use_version_script=yes
7247 else
7248 llvm_cv_link_use_version_script=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7252 rm "$tmp/export.map"
7253 rmdir "$tmp"
7254 CFLAGS="$oldcflags"
7255 ac_ext=c
7256 ac_cpp='$CPP $CPPFLAGS'
7257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260
7261
7262 fi
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_version_script" >&5
7264 $as_echo "$llvm_cv_link_use_version_script" >&6; }
7265 if test "$llvm_cv_link_use_version_script" = yes ; then
7266 HAVE_LINK_VERSION_SCRIPT=1
7267
7268 fi
7269
7270
7271
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7273 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7274 if ${ac_cv_path_GREP+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 if test -z "$GREP"; then
7278 ac_path_GREP_found=false
7279 # Loop through the user's path and test for each of PROGNAME-LIST
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7282 do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_prog in grep ggrep; do
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7288 as_fn_executable_p "$ac_path_GREP" || continue
7289 # Check for GNU ac_path_GREP and select it if it is found.
7290 # Check for GNU $ac_path_GREP
7291 case `"$ac_path_GREP" --version 2>&1` in
7292 *GNU*)
7293 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7294 *)
7295 ac_count=0
7296 $as_echo_n 0123456789 >"conftest.in"
7297 while :
7298 do
7299 cat "conftest.in" "conftest.in" >"conftest.tmp"
7300 mv "conftest.tmp" "conftest.in"
7301 cp "conftest.in" "conftest.nl"
7302 $as_echo 'GREP' >> "conftest.nl"
7303 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7305 as_fn_arith $ac_count + 1 && ac_count=$as_val
7306 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7307 # Best one so far, save it but keep looking for a better one
7308 ac_cv_path_GREP="$ac_path_GREP"
7309 ac_path_GREP_max=$ac_count
7310 fi
7311 # 10*(2^10) chars as input seems more than enough
7312 test $ac_count -gt 10 && break
7313 done
7314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7315 esac
7316
7317 $ac_path_GREP_found && break 3
7318 done
7319 done
7320 done
7321 IFS=$as_save_IFS
7322 if test -z "$ac_cv_path_GREP"; then
7323 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7324 fi
7325 else
7326 ac_cv_path_GREP=$GREP
7327 fi
7328
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7331 $as_echo "$ac_cv_path_GREP" >&6; }
7332 GREP="$ac_cv_path_GREP"
7333
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7336 $as_echo_n "checking for egrep... " >&6; }
7337 if ${ac_cv_path_EGREP+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7341 then ac_cv_path_EGREP="$GREP -E"
7342 else
7343 if test -z "$EGREP"; then
7344 ac_path_EGREP_found=false
7345 # Loop through the user's path and test for each of PROGNAME-LIST
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7348 do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_prog in egrep; do
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7354 as_fn_executable_p "$ac_path_EGREP" || continue
7355 # Check for GNU ac_path_EGREP and select it if it is found.
7356 # Check for GNU $ac_path_EGREP
7357 case `"$ac_path_EGREP" --version 2>&1` in
7358 *GNU*)
7359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7360 *)
7361 ac_count=0
7362 $as_echo_n 0123456789 >"conftest.in"
7363 while :
7364 do
7365 cat "conftest.in" "conftest.in" >"conftest.tmp"
7366 mv "conftest.tmp" "conftest.in"
7367 cp "conftest.in" "conftest.nl"
7368 $as_echo 'EGREP' >> "conftest.nl"
7369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7371 as_fn_arith $ac_count + 1 && ac_count=$as_val
7372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7373 # Best one so far, save it but keep looking for a better one
7374 ac_cv_path_EGREP="$ac_path_EGREP"
7375 ac_path_EGREP_max=$ac_count
7376 fi
7377 # 10*(2^10) chars as input seems more than enough
7378 test $ac_count -gt 10 && break
7379 done
7380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7381 esac
7382
7383 $ac_path_EGREP_found && break 3
7384 done
7385 done
7386 done
7387 IFS=$as_save_IFS
7388 if test -z "$ac_cv_path_EGREP"; then
7389 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7390 fi
7391 else
7392 ac_cv_path_EGREP=$EGREP
7393 fi
7394
7395 fi
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7398 $as_echo "$ac_cv_path_EGREP" >&6; }
7399 EGREP="$ac_cv_path_EGREP"
7400
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7403 $as_echo_n "checking for ANSI C header files... " >&6; }
7404 if ${ac_cv_header_stdc+:} false; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409 #include <stdlib.h>
7410 #include <stdarg.h>
7411 #include <string.h>
7412 #include <float.h>
7413
7414 int
7415 main ()
7416 {
7417
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 if ac_fn_c_try_compile "$LINENO"; then :
7423 ac_cv_header_stdc=yes
7424 else
7425 ac_cv_header_stdc=no
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428
7429 if test $ac_cv_header_stdc = yes; then
7430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 #include <string.h>
7434
7435 _ACEOF
7436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7437 $EGREP "memchr" >/dev/null 2>&1; then :
7438
7439 else
7440 ac_cv_header_stdc=no
7441 fi
7442 rm -f conftest*
7443
7444 fi
7445
7446 if test $ac_cv_header_stdc = yes; then
7447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 #include <stdlib.h>
7451
7452 _ACEOF
7453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7454 $EGREP "free" >/dev/null 2>&1; then :
7455
7456 else
7457 ac_cv_header_stdc=no
7458 fi
7459 rm -f conftest*
7460
7461 fi
7462
7463 if test $ac_cv_header_stdc = yes; then
7464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7465 if test "$cross_compiling" = yes; then :
7466 :
7467 else
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 #include <ctype.h>
7471 #include <stdlib.h>
7472 #if ((' ' & 0x0FF) == 0x020)
7473 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7474 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7475 #else
7476 # define ISLOWER(c) \
7477 (('a' <= (c) && (c) <= 'i') \
7478 || ('j' <= (c) && (c) <= 'r') \
7479 || ('s' <= (c) && (c) <= 'z'))
7480 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7481 #endif
7482
7483 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7484 int
7485 main ()
7486 {
7487 int i;
7488 for (i = 0; i < 256; i++)
7489 if (XOR (islower (i), ISLOWER (i))
7490 || toupper (i) != TOUPPER (i))
7491 return 2;
7492 return 0;
7493 }
7494 _ACEOF
7495 if ac_fn_c_try_run "$LINENO"; then :
7496
7497 else
7498 ac_cv_header_stdc=no
7499 fi
7500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7501 conftest.$ac_objext conftest.beam conftest.$ac_ext
7502 fi
7503
7504 fi
7505 fi
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7507 $as_echo "$ac_cv_header_stdc" >&6; }
7508 if test $ac_cv_header_stdc = yes; then
7509
7510 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7511
7512 fi
7513
7514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7515 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7516 inttypes.h stdint.h unistd.h
7517 do :
7518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7519 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7520 "
7521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7522 cat >>confdefs.h <<_ACEOF
7523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7524 _ACEOF
7525
7526 fi
7527
7528 done
7529
7530
7531 for ac_header in errno.h
7532 do :
7533 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
7534 if test "x$ac_cv_header_errno_h" = xyes; then :
7535 cat >>confdefs.h <<_ACEOF
7536 #define HAVE_ERRNO_H 1
7537 _ACEOF
7538
7539 fi
7540
7541 done
7542
7543
7544 case "$llvm_cv_os_type" in
7545 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7546 Darwin) llvm_shlib_ext=.dylib ;;
7547 *) llvm_shlib_ext=.so ;;
7548 esac
7549
7550
7551 cat >>confdefs.h <<_ACEOF
7552 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7553 _ACEOF
7554
7555
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5
7557 $as_echo_n "checking tool compatibility... " >&6; }
7558
7559 ICC=no
7560 IXX=no
7561 case $CC in
7562 icc*|icpc*)
7563 ICC=yes
7564 IXX=yes
7565 ;;
7566 *)
7567 ;;
7568 esac
7569
7570 if test "$GCC" != "yes" && test "$ICC" != "yes"
7571 then
7572 as_fn_error $? "gcc|icc required but not found" "$LINENO" 5
7573 fi
7574
7575 if test "$GXX" != "yes" && test "$IXX" != "yes"
7576 then
7577 as_fn_error $? "g++|clang++|icc required but not found" "$LINENO" 5
7578 fi
7579
7580 if test "$GCC" = "yes"
7581 then
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7584
7585
7586 #if !defined(__GNUC__) || __GNUC__ < 3
7587 #error Unsupported GCC version
7588 #endif
7589
7590
7591 _ACEOF
7592 if ac_fn_c_try_compile "$LINENO"; then :
7593
7594 else
7595 as_fn_error $? "gcc 3.x required, but you have a lower version" "$LINENO" 5
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 fi
7599
7600 if test -z "$llvm_cv_gnu_make_command"
7601 then
7602 as_fn_error $? "GNU Make required but not found" "$LINENO" 5
7603 fi
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7606 $as_echo "ok" >&6; }
7607
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
7609 $as_echo_n "checking optional compiler flags... " >&6; }
7610 case "$llvm_cv_cxx_compiler" in
7611 clang)
7612 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
7613
7614 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wmissing-field-initializers`
7615
7616 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
7617
7618 ;;
7619 gcc)
7620 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
7621
7622 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
7623
7624 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
7625
7626 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
7627
7628 if test -z "$NO_MAYBE_UNINITIALIZED"
7629 then
7630 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
7631
7632 fi
7633 ;;
7634 unknown)
7635 ;;
7636 esac
7637
7638 no_comment=
7639 llvm_cv_old_cxxflags="$CXXFLAGS"
7640 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643
7644 // Comment \o\
7645 // Another comment
7646 int main() { return 0; }
7647
7648
7649 _ACEOF
7650 if ac_fn_c_try_compile "$LINENO"; then :
7651
7652 no_comment=-Wno-comment
7653
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 NO_COMMENT=$no_comment
7657
7658 CXXFLAGS="$llvm_cv_old_cxxflags"
7659
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
7661 $as_echo "$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
7662
7663
7664 if test "$llvm_cv_os_type" = "MingW" ; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
7666 $as_echo_n "checking for main in -lpsapi... " >&6; }
7667 if ${ac_cv_lib_psapi_main+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 ac_check_lib_save_LIBS=$LIBS
7671 LIBS="-lpsapi $LIBS"
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674
7675
7676 int
7677 main ()
7678 {
7679 return main ();
7680 ;
7681 return 0;
7682 }
7683 _ACEOF
7684 if ac_fn_c_try_link "$LINENO"; then :
7685 ac_cv_lib_psapi_main=yes
7686 else
7687 ac_cv_lib_psapi_main=no
7688 fi
7689 rm -f core conftest.err conftest.$ac_objext \
7690 conftest$ac_exeext conftest.$ac_ext
7691 LIBS=$ac_check_lib_save_LIBS
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5
7694 $as_echo "$ac_cv_lib_psapi_main" >&6; }
7695 if test "x$ac_cv_lib_psapi_main" = xyes; then :
7696 cat >>confdefs.h <<_ACEOF
7697 #define HAVE_LIBPSAPI 1
7698 _ACEOF
7699
7700 LIBS="-lpsapi $LIBS"
7701
7702 fi
7703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lshell32" >&5
7705 $as_echo_n "checking for main in -lshell32... " >&6; }
7706 if ${ac_cv_lib_shell32_main+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 ac_check_lib_save_LIBS=$LIBS
7710 LIBS="-lshell32 $LIBS"
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713
7714
7715 int
7716 main ()
7717 {
7718 return main ();
7719 ;
7720 return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 ac_cv_lib_shell32_main=yes
7725 else
7726 ac_cv_lib_shell32_main=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LIBS=$ac_check_lib_save_LIBS
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shell32_main" >&5
7733 $as_echo "$ac_cv_lib_shell32_main" >&6; }
7734 if test "x$ac_cv_lib_shell32_main" = xyes; then :
7735 cat >>confdefs.h <<_ACEOF
7736 #define HAVE_LIBSHELL32 1
7737 _ACEOF
7738
7739 LIBS="-lshell32 $LIBS"
7740
7741 fi
7742
7743 fi
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7746 $as_echo_n "checking for library containing dlopen... " >&6; }
7747 if ${ac_cv_search_dlopen+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 ac_func_search_save_LIBS=$LIBS
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753
7754 /* Override any GCC internal prototype to avoid an error.
7755 Use char because int might match the return type of a GCC
7756 builtin and then its argument prototype would still apply. */
7757 #ifdef __cplusplus
7758 extern "C"
7759 #endif
7760 char dlopen ();
7761 int
7762 main ()
7763 {
7764 return dlopen ();
7765 ;
7766 return 0;
7767 }
7768 _ACEOF
7769 for ac_lib in '' dl; do
7770 if test -z "$ac_lib"; then
7771 ac_res="none required"
7772 else
7773 ac_res=-l$ac_lib
7774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7775 fi
7776 if ac_fn_c_try_link "$LINENO"; then :
7777 ac_cv_search_dlopen=$ac_res
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext
7781 if ${ac_cv_search_dlopen+:} false; then :
7782 break
7783 fi
7784 done
7785 if ${ac_cv_search_dlopen+:} false; then :
7786
7787 else
7788 ac_cv_search_dlopen=no
7789 fi
7790 rm conftest.$ac_ext
7791 LIBS=$ac_func_search_save_LIBS
7792 fi
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7794 $as_echo "$ac_cv_search_dlopen" >&6; }
7795 ac_res=$ac_cv_search_dlopen
7796 if test "$ac_res" != no; then :
7797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7798
7799
7800 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
7801
7802 HAVE_DLOPEN='1'
7803
7804
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5
7807 $as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
7808 fi
7809
7810
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7812 $as_echo_n "checking for library containing clock_gettime... " >&6; }
7813 if ${ac_cv_search_clock_gettime+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 ac_func_search_save_LIBS=$LIBS
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819
7820 /* Override any GCC internal prototype to avoid an error.
7821 Use char because int might match the return type of a GCC
7822 builtin and then its argument prototype would still apply. */
7823 #ifdef __cplusplus
7824 extern "C"
7825 #endif
7826 char clock_gettime ();
7827 int
7828 main ()
7829 {
7830 return clock_gettime ();
7831 ;
7832 return 0;
7833 }
7834 _ACEOF
7835 for ac_lib in '' rt; do
7836 if test -z "$ac_lib"; then
7837 ac_res="none required"
7838 else
7839 ac_res=-l$ac_lib
7840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7841 fi
7842 if ac_fn_c_try_link "$LINENO"; then :
7843 ac_cv_search_clock_gettime=$ac_res
7844 fi
7845 rm -f core conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext
7847 if ${ac_cv_search_clock_gettime+:} false; then :
7848 break
7849 fi
7850 done
7851 if ${ac_cv_search_clock_gettime+:} false; then :
7852
7853 else
7854 ac_cv_search_clock_gettime=no
7855 fi
7856 rm conftest.$ac_ext
7857 LIBS=$ac_func_search_save_LIBS
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7860 $as_echo "$ac_cv_search_clock_gettime" >&6; }
7861 ac_res=$ac_cv_search_clock_gettime
7862 if test "$ac_res" != no; then :
7863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7864
7865 fi
7866
7867
7868 if test "$llvm_cv_enable_terminfo" = "yes" ; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setupterm" >&5
7870 $as_echo_n "checking for library containing setupterm... " >&6; }
7871 if ${ac_cv_search_setupterm+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 ac_func_search_save_LIBS=$LIBS
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877
7878 /* Override any GCC internal prototype to avoid an error.
7879 Use char because int might match the return type of a GCC
7880 builtin and then its argument prototype would still apply. */
7881 #ifdef __cplusplus
7882 extern "C"
7883 #endif
7884 char setupterm ();
7885 int
7886 main ()
7887 {
7888 return setupterm ();
7889 ;
7890 return 0;
7891 }
7892 _ACEOF
7893 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
7894 if test -z "$ac_lib"; then
7895 ac_res="none required"
7896 else
7897 ac_res=-l$ac_lib
7898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7899 fi
7900 if ac_fn_c_try_link "$LINENO"; then :
7901 ac_cv_search_setupterm=$ac_res
7902 fi
7903 rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext
7905 if ${ac_cv_search_setupterm+:} false; then :
7906 break
7907 fi
7908 done
7909 if ${ac_cv_search_setupterm+:} false; then :
7910
7911 else
7912 ac_cv_search_setupterm=no
7913 fi
7914 rm conftest.$ac_ext
7915 LIBS=$ac_func_search_save_LIBS
7916 fi
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setupterm" >&5
7918 $as_echo "$ac_cv_search_setupterm" >&6; }
7919 ac_res=$ac_cv_search_setupterm
7920 if test "$ac_res" != no; then :
7921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7922
7923
7924 $as_echo "#define HAVE_TERMINFO 1" >>confdefs.h
7925
7926 HAVE_TERMINFO='1'
7927
7928
7929 fi
7930
7931 fi
7932
7933 if test "$llvm_cv_enable_libedit" = "yes" ; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing el_init" >&5
7935 $as_echo_n "checking for library containing el_init... " >&6; }
7936 if ${ac_cv_search_el_init+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 ac_func_search_save_LIBS=$LIBS
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942
7943 /* Override any GCC internal prototype to avoid an error.
7944 Use char because int might match the return type of a GCC
7945 builtin and then its argument prototype would still apply. */
7946 #ifdef __cplusplus
7947 extern "C"
7948 #endif
7949 char el_init ();
7950 int
7951 main ()
7952 {
7953 return el_init ();
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 for ac_lib in '' edit; do
7959 if test -z "$ac_lib"; then
7960 ac_res="none required"
7961 else
7962 ac_res=-l$ac_lib
7963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7964 fi
7965 if ac_fn_c_try_link "$LINENO"; then :
7966 ac_cv_search_el_init=$ac_res
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext
7970 if ${ac_cv_search_el_init+:} false; then :
7971 break
7972 fi
7973 done
7974 if ${ac_cv_search_el_init+:} false; then :
7975
7976 else
7977 ac_cv_search_el_init=no
7978 fi
7979 rm conftest.$ac_ext
7980 LIBS=$ac_func_search_save_LIBS
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_el_init" >&5
7983 $as_echo "$ac_cv_search_el_init" >&6; }
7984 ac_res=$ac_cv_search_el_init
7985 if test "$ac_res" != no; then :
7986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7987
7988 $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
7989
7990 fi
7991
7992 fi
7993
7994 if test "$llvm_cv_enable_libffi" = "yes" ; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
7996 $as_echo_n "checking for library containing ffi_call... " >&6; }
7997 if ${ac_cv_search_ffi_call+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 ac_func_search_save_LIBS=$LIBS
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003
8004 /* Override any GCC internal prototype to avoid an error.
8005 Use char because int might match the return type of a GCC
8006 builtin and then its argument prototype would still apply. */
8007 #ifdef __cplusplus
8008 extern "C"
8009 #endif
8010 char ffi_call ();
8011 int
8012 main ()
8013 {
8014 return ffi_call ();
8015 ;
8016 return 0;
8017 }
8018 _ACEOF
8019 for ac_lib in '' ffi; do
8020 if test -z "$ac_lib"; then
8021 ac_res="none required"
8022 else
8023 ac_res=-l$ac_lib
8024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8025 fi
8026 if ac_fn_c_try_link "$LINENO"; then :
8027 ac_cv_search_ffi_call=$ac_res
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext
8031 if ${ac_cv_search_ffi_call+:} false; then :
8032 break
8033 fi
8034 done
8035 if ${ac_cv_search_ffi_call+:} false; then :
8036
8037 else
8038 ac_cv_search_ffi_call=no
8039 fi
8040 rm conftest.$ac_ext
8041 LIBS=$ac_func_search_save_LIBS
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
8044 $as_echo "$ac_cv_search_ffi_call" >&6; }
8045 ac_res=$ac_cv_search_ffi_call
8046 if test "$ac_res" != no; then :
8047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8048
8049 $as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h
8050
8051 else
8052 as_fn_error $? "libffi not found - configure without --enable-libffi to compile without it" "$LINENO" 5
8053 fi
8054
8055 fi
8056
8057 for ac_func in mallinfo mallctl
8058 do :
8059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8060 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8061 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8062 cat >>confdefs.h <<_ACEOF
8063 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8064 _ACEOF
8065
8066 fi
8067 done
8068
8069
8070 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
8072 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
8073 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 ac_check_lib_save_LIBS=$LIBS
8077 LIBS="-lpthread $LIBS"
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080
8081 /* Override any GCC internal prototype to avoid an error.
8082 Use char because int might match the return type of a GCC
8083 builtin and then its argument prototype would still apply. */
8084 #ifdef __cplusplus
8085 extern "C"
8086 #endif
8087 char pthread_mutex_init ();
8088 int
8089 main ()
8090 {
8091 return pthread_mutex_init ();
8092 ;
8093 return 0;
8094 }
8095 _ACEOF
8096 if ac_fn_c_try_link "$LINENO"; then :
8097 ac_cv_lib_pthread_pthread_mutex_init=yes
8098 else
8099 ac_cv_lib_pthread_pthread_mutex_init=no
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103 LIBS=$ac_check_lib_save_LIBS
8104 fi
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
8106 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
8107 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
8108 cat >>confdefs.h <<_ACEOF
8109 #define HAVE_LIBPTHREAD 1
8110 _ACEOF
8111
8112 LIBS="-lpthread $LIBS"
8113
8114 fi
8115
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5
8117 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
8118 if ${ac_cv_search_pthread_mutex_lock+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 ac_func_search_save_LIBS=$LIBS
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124
8125 /* Override any GCC internal prototype to avoid an error.
8126 Use char because int might match the return type of a GCC
8127 builtin and then its argument prototype would still apply. */
8128 #ifdef __cplusplus
8129 extern "C"
8130 #endif
8131 char pthread_mutex_lock ();
8132 int
8133 main ()
8134 {
8135 return pthread_mutex_lock ();
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 for ac_lib in '' pthread; do
8141 if test -z "$ac_lib"; then
8142 ac_res="none required"
8143 else
8144 ac_res=-l$ac_lib
8145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8146 fi
8147 if ac_fn_c_try_link "$LINENO"; then :
8148 ac_cv_search_pthread_mutex_lock=$ac_res
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext \
8151 conftest$ac_exeext
8152 if ${ac_cv_search_pthread_mutex_lock+:} false; then :
8153 break
8154 fi
8155 done
8156 if ${ac_cv_search_pthread_mutex_lock+:} false; then :
8157
8158 else
8159 ac_cv_search_pthread_mutex_lock=no
8160 fi
8161 rm conftest.$ac_ext
8162 LIBS=$ac_func_search_save_LIBS
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5
8165 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
8166 ac_res=$ac_cv_search_pthread_mutex_lock
8167 if test "$ac_res" != no; then :
8168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8169
8170 $as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h
8171
8172 fi
8173
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5
8175 $as_echo_n "checking for library containing pthread_rwlock_init... " >&6; }
8176 if ${ac_cv_search_pthread_rwlock_init+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 ac_func_search_save_LIBS=$LIBS
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182
8183 /* Override any GCC internal prototype to avoid an error.
8184 Use char because int might match the return type of a GCC
8185 builtin and then its argument prototype would still apply. */
8186 #ifdef __cplusplus
8187 extern "C"
8188 #endif
8189 char pthread_rwlock_init ();
8190 int
8191 main ()
8192 {
8193 return pthread_rwlock_init ();
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 for ac_lib in '' pthread; do
8199 if test -z "$ac_lib"; then
8200 ac_res="none required"
8201 else
8202 ac_res=-l$ac_lib
8203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8204 fi
8205 if ac_fn_c_try_link "$LINENO"; then :
8206 ac_cv_search_pthread_rwlock_init=$ac_res
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext
8210 if ${ac_cv_search_pthread_rwlock_init+:} false; then :
8211 break
8212 fi
8213 done
8214 if ${ac_cv_search_pthread_rwlock_init+:} false; then :
8215
8216 else
8217 ac_cv_search_pthread_rwlock_init=no
8218 fi
8219 rm conftest.$ac_ext
8220 LIBS=$ac_func_search_save_LIBS
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5
8223 $as_echo "$ac_cv_search_pthread_rwlock_init" >&6; }
8224 ac_res=$ac_cv_search_pthread_rwlock_init
8225 if test "$ac_res" != no; then :
8226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8227
8228 $as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
8229
8230 fi
8231
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5
8233 $as_echo_n "checking for library containing pthread_getspecific... " >&6; }
8234 if ${ac_cv_search_pthread_getspecific+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 ac_func_search_save_LIBS=$LIBS
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240
8241 /* Override any GCC internal prototype to avoid an error.
8242 Use char because int might match the return type of a GCC
8243 builtin and then its argument prototype would still apply. */
8244 #ifdef __cplusplus
8245 extern "C"
8246 #endif
8247 char pthread_getspecific ();
8248 int
8249 main ()
8250 {
8251 return pthread_getspecific ();
8252 ;
8253 return 0;
8254 }
8255 _ACEOF
8256 for ac_lib in '' pthread; do
8257 if test -z "$ac_lib"; then
8258 ac_res="none required"
8259 else
8260 ac_res=-l$ac_lib
8261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8262 fi
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 ac_cv_search_pthread_getspecific=$ac_res
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext \
8267 conftest$ac_exeext
8268 if ${ac_cv_search_pthread_getspecific+:} false; then :
8269 break
8270 fi
8271 done
8272 if ${ac_cv_search_pthread_getspecific+:} false; then :
8273
8274 else
8275 ac_cv_search_pthread_getspecific=no
8276 fi
8277 rm conftest.$ac_ext
8278 LIBS=$ac_func_search_save_LIBS
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5
8281 $as_echo "$ac_cv_search_pthread_getspecific" >&6; }
8282 ac_res=$ac_cv_search_pthread_getspecific
8283 if test "$ac_res" != no; then :
8284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8285
8286 $as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h
8287
8288 fi
8289
8290 fi
8291
8292 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
8294 $as_echo_n "checking for compress2 in -lz... " >&6; }
8295 if ${ac_cv_lib_z_compress2+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 ac_check_lib_save_LIBS=$LIBS
8299 LIBS="-lz $LIBS"
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302
8303 /* Override any GCC internal prototype to avoid an error.
8304 Use char because int might match the return type of a GCC
8305 builtin and then its argument prototype would still apply. */
8306 #ifdef __cplusplus
8307 extern "C"
8308 #endif
8309 char compress2 ();
8310 int
8311 main ()
8312 {
8313 return compress2 ();
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 if ac_fn_c_try_link "$LINENO"; then :
8319 ac_cv_lib_z_compress2=yes
8320 else
8321 ac_cv_lib_z_compress2=no
8322 fi
8323 rm -f core conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext conftest.$ac_ext
8325 LIBS=$ac_check_lib_save_LIBS
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
8328 $as_echo "$ac_cv_lib_z_compress2" >&6; }
8329 if test "x$ac_cv_lib_z_compress2" = xyes; then :
8330 cat >>confdefs.h <<_ACEOF
8331 #define HAVE_LIBZ 1
8332 _ACEOF
8333
8334 LIBS="-lz $LIBS"
8335
8336 fi
8337
8338 fi
8339
8340 USE_OPROFILE=0
8341
8342 # Check whether --with-oprofile was given.
8343 if test "${with_oprofile+set}" = set; then :
8344 withval=$with_oprofile;
8345 case "$withval" in
8346 no) ;;
8347 *)
8348 USE_OPROFILE=1
8349 ;;
8350 esac
8351 case "$withval" in
8352 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
8353 no) llvm_cv_oppath= ;;
8354 *) llvm_cv_oppath="${withval}/lib/oprofile"
8355 CPPFLAGS="-I${withval}/include";;
8356 esac
8357 case $llvm_cv_os_type in
8358 Linux)
8359 if test -n "$llvm_cv_oppath" ; then
8360 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
8362 $as_echo_n "checking for library containing bfd_init... " >&6; }
8363 if ${ac_cv_search_bfd_init+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 ac_func_search_save_LIBS=$LIBS
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369
8370 /* Override any GCC internal prototype to avoid an error.
8371 Use char because int might match the return type of a GCC
8372 builtin and then its argument prototype would still apply. */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 char bfd_init ();
8377 int
8378 main ()
8379 {
8380 return bfd_init ();
8381 ;
8382 return 0;
8383 }
8384 _ACEOF
8385 for ac_lib in '' bfd; do
8386 if test -z "$ac_lib"; then
8387 ac_res="none required"
8388 else
8389 ac_res=-l$ac_lib
8390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8391 fi
8392 if ac_fn_c_try_link "$LINENO"; then :
8393 ac_cv_search_bfd_init=$ac_res
8394 fi
8395 rm -f core conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext
8397 if ${ac_cv_search_bfd_init+:} false; then :
8398 break
8399 fi
8400 done
8401 if ${ac_cv_search_bfd_init+:} false; then :
8402
8403 else
8404 ac_cv_search_bfd_init=no
8405 fi
8406 rm conftest.$ac_ext
8407 LIBS=$ac_func_search_save_LIBS
8408 fi
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
8410 $as_echo "$ac_cv_search_bfd_init" >&6; }
8411 ac_res=$ac_cv_search_bfd_init
8412 if test "$ac_res" != no; then :
8413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8414
8415 fi
8416
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5
8418 $as_echo_n "checking for library containing op_open_agent... " >&6; }
8419 if ${ac_cv_search_op_open_agent+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 ac_func_search_save_LIBS=$LIBS
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425
8426 /* Override any GCC internal prototype to avoid an error.
8427 Use char because int might match the return type of a GCC
8428 builtin and then its argument prototype would still apply. */
8429 #ifdef __cplusplus
8430 extern "C"
8431 #endif
8432 char op_open_agent ();
8433 int
8434 main ()
8435 {
8436 return op_open_agent ();
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 for ac_lib in '' opagent; do
8442 if test -z "$ac_lib"; then
8443 ac_res="none required"
8444 else
8445 ac_res=-l$ac_lib
8446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8447 fi
8448 if ac_fn_c_try_link "$LINENO"; then :
8449 ac_cv_search_op_open_agent=$ac_res
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext
8453 if ${ac_cv_search_op_open_agent+:} false; then :
8454 break
8455 fi
8456 done
8457 if ${ac_cv_search_op_open_agent+:} false; then :
8458
8459 else
8460 ac_cv_search_op_open_agent=no
8461 fi
8462 rm conftest.$ac_ext
8463 LIBS=$ac_func_search_save_LIBS
8464 fi
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5
8466 $as_echo "$ac_cv_search_op_open_agent" >&6; }
8467 ac_res=$ac_cv_search_op_open_agent
8468 if test "$ac_res" != no; then :
8469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8470
8471 else
8472
8473 echo "Error! You need to have libopagent around."
8474 exit 1
8475
8476 fi
8477
8478 ac_fn_c_check_header_mongrel "$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default"
8479 if test "x$ac_cv_header_opagent_h" = xyes; then :
8480
8481 else
8482
8483 echo "Error! You need to have opagent.h around."
8484 exit 1
8485
8486 fi
8487
8488
8489 fi ;;
8490 *)
8491 as_fn_error $? "OProfile support is available on Linux only." "$LINENO" 5 ;;
8492 esac
8493
8494 fi
8495
8496 USE_OPROFILE=$USE_OPROFILE
8497
8498
8499 cat >>confdefs.h <<_ACEOF
8500 #define LLVM_USE_OPROFILE $USE_OPROFILE
8501 _ACEOF
8502
8503
8504
8505 # Check whether --with-intel-jitevents was given.
8506 if test "${with_intel_jitevents+set}" = set; then :
8507 withval=$with_intel_jitevents;
8508 case "$withval" in
8509 yes) USE_INTEL_JITEVENTS=1
8510 ;;
8511 no) USE_INTEL_JITEVENTS=0
8512 ;;
8513 *) as_fn_error $? "Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" "$LINENO" 5;;
8514 esac
8515
8516 case $llvm_cv_os_type in
8517 Linux|Win32|Cygwin|MingW) ;;
8518 *) as_fn_error $? "Intel JIT API support is available on Linux and Windows only." "$LINENO" 5;;
8519 esac
8520
8521 case "$llvm_cv_target_arch" in
8522 x86|x86_64) ;;
8523 *) as_fn_error $? "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." "$LINENO" 5;;
8524 esac
8525
8526 else
8527
8528 USE_INTEL_JITEVENTS=0
8529
8530
8531 fi
8532
8533
8534 cat >>confdefs.h <<_ACEOF
8535 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
8536 _ACEOF
8537
8538
8539
8540 ac_header_dirent=no
8541 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8542 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8544 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8545 if eval \${$as_ac_Header+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #include <sys/types.h>
8551 #include <$ac_hdr>
8552
8553 int
8554 main ()
8555 {
8556 if ((DIR *) 0)
8557 return 0;
8558 ;
8559 return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 eval "$as_ac_Header=yes"
8564 else
8565 eval "$as_ac_Header=no"
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 fi
8569 eval ac_res=\$$as_ac_Header
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8571 $as_echo "$ac_res" >&6; }
8572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8573 cat >>confdefs.h <<_ACEOF
8574 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8575 _ACEOF
8576
8577 ac_header_dirent=$ac_hdr; break
8578 fi
8579
8580 done
8581 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8582 if test $ac_header_dirent = dirent.h; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8584 $as_echo_n "checking for library containing opendir... " >&6; }
8585 if ${ac_cv_search_opendir+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 ac_func_search_save_LIBS=$LIBS
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591
8592 /* Override any GCC internal prototype to avoid an error.
8593 Use char because int might match the return type of a GCC
8594 builtin and then its argument prototype would still apply. */
8595 #ifdef __cplusplus
8596 extern "C"
8597 #endif
8598 char opendir ();
8599 int
8600 main ()
8601 {
8602 return opendir ();
8603 ;
8604 return 0;
8605 }
8606 _ACEOF
8607 for ac_lib in '' dir; do
8608 if test -z "$ac_lib"; then
8609 ac_res="none required"
8610 else
8611 ac_res=-l$ac_lib
8612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8613 fi
8614 if ac_fn_c_try_link "$LINENO"; then :
8615 ac_cv_search_opendir=$ac_res
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext
8619 if ${ac_cv_search_opendir+:} false; then :
8620 break
8621 fi
8622 done
8623 if ${ac_cv_search_opendir+:} false; then :
8624
8625 else
8626 ac_cv_search_opendir=no
8627 fi
8628 rm conftest.$ac_ext
8629 LIBS=$ac_func_search_save_LIBS
8630 fi
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8632 $as_echo "$ac_cv_search_opendir" >&6; }
8633 ac_res=$ac_cv_search_opendir
8634 if test "$ac_res" != no; then :
8635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8636
8637 fi
8638
8639 else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8641 $as_echo_n "checking for library containing opendir... " >&6; }
8642 if ${ac_cv_search_opendir+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 ac_func_search_save_LIBS=$LIBS
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648
8649 /* Override any GCC internal prototype to avoid an error.
8650 Use char because int might match the return type of a GCC
8651 builtin and then its argument prototype would still apply. */
8652 #ifdef __cplusplus
8653 extern "C"
8654 #endif
8655 char opendir ();
8656 int
8657 main ()
8658 {
8659 return opendir ();
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 for ac_lib in '' x; do
8665 if test -z "$ac_lib"; then
8666 ac_res="none required"
8667 else
8668 ac_res=-l$ac_lib
8669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8670 fi
8671 if ac_fn_c_try_link "$LINENO"; then :
8672 ac_cv_search_opendir=$ac_res
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext
8676 if ${ac_cv_search_opendir+:} false; then :
8677 break
8678 fi
8679 done
8680 if ${ac_cv_search_opendir+:} false; then :
8681
8682 else
8683 ac_cv_search_opendir=no
8684 fi
8685 rm conftest.$ac_ext
8686 LIBS=$ac_func_search_save_LIBS
8687 fi
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8689 $as_echo "$ac_cv_search_opendir" >&6; }
8690 ac_res=$ac_cv_search_opendir
8691 if test "$ac_res" != no; then :
8692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8693
8694 fi
8695
8696 fi
8697
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8699 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8700 if ${ac_cv_header_stat_broken+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 #include <sys/types.h>
8706 #include <sys/stat.h>
8707
8708 #if defined S_ISBLK && defined S_IFDIR
8709 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8710 #endif
8711
8712 #if defined S_ISBLK && defined S_IFCHR
8713 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8714 #endif
8715
8716 #if defined S_ISLNK && defined S_IFREG
8717 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8718 #endif
8719
8720 #if defined S_ISSOCK && defined S_IFREG
8721 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8722 #endif
8723
8724 _ACEOF
8725 if ac_fn_c_try_compile "$LINENO"; then :
8726 ac_cv_header_stat_broken=no
8727 else
8728 ac_cv_header_stat_broken=yes
8729 fi
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 fi
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8733 $as_echo "$ac_cv_header_stat_broken" >&6; }
8734 if test $ac_cv_header_stat_broken = yes; then
8735
8736 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8737
8738 fi
8739
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8741 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8742 if ${ac_cv_header_time+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 #include <sys/types.h>
8748 #include <sys/time.h>
8749 #include <time.h>
8750
8751 int
8752 main ()
8753 {
8754 if ((struct tm *) 0)
8755 return 0;
8756 ;
8757 return 0;
8758 }
8759 _ACEOF
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761 ac_cv_header_time=yes
8762 else
8763 ac_cv_header_time=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8768 $as_echo "$ac_cv_header_time" >&6; }
8769 if test $ac_cv_header_time = yes; then
8770
8771 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8772
8773 fi
8774
8775
8776 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
8777 do :
8778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8779 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8781 cat >>confdefs.h <<_ACEOF
8782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8783 _ACEOF
8784
8785 fi
8786
8787 done
8788
8789 for ac_header in signal.h stdint.h sysexits.h termios.h unistd.h
8790 do :
8791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8794 cat >>confdefs.h <<_ACEOF
8795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8796 _ACEOF
8797
8798 fi
8799
8800 done
8801
8802 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
8803 do :
8804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8805 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8807 cat >>confdefs.h <<_ACEOF
8808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8809 _ACEOF
8810
8811 fi
8812
8813 done
8814
8815 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
8816 do :
8817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8818 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8820 cat >>confdefs.h <<_ACEOF
8821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8822 _ACEOF
8823
8824 fi
8825
8826 done
8827
8828 for ac_header in valgrind/valgrind.h
8829 do :
8830 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
8831 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
8832 cat >>confdefs.h <<_ACEOF
8833 #define HAVE_VALGRIND_VALGRIND_H 1
8834 _ACEOF
8835
8836 fi
8837
8838 done
8839
8840 for ac_header in fenv.h
8841 do :
8842 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
8843 if test "x$ac_cv_header_fenv_h" = xyes; then :
8844 cat >>confdefs.h <<_ACEOF
8845 #define HAVE_FENV_H 1
8846 _ACEOF
8847
8848 fi
8849
8850 done
8851
8852 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "#include <stdlib.h>
8853 "
8854 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
8855 ac_have_decl=1
8856 else
8857 ac_have_decl=0
8858 fi
8859
8860 cat >>confdefs.h <<_ACEOF
8861 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
8862 _ACEOF
8863
8864 ac_fn_c_check_decl "$LINENO" "FE_ALL_EXCEPT" "ac_cv_have_decl_FE_ALL_EXCEPT" "#include <fenv.h>
8865 "
8866 if test "x$ac_cv_have_decl_FE_ALL_EXCEPT" = xyes; then :
8867 ac_have_decl=1
8868 else
8869 ac_have_decl=0
8870 fi
8871
8872 cat >>confdefs.h <<_ACEOF
8873 #define HAVE_DECL_FE_ALL_EXCEPT $ac_have_decl
8874 _ACEOF
8875 ac_fn_c_check_decl "$LINENO" "FE_INEXACT" "ac_cv_have_decl_FE_INEXACT" "#include <fenv.h>
8876 "
8877 if test "x$ac_cv_have_decl_FE_INEXACT" = xyes; then :
8878 ac_have_decl=1
8879 else
8880 ac_have_decl=0
8881 fi
8882
8883 cat >>confdefs.h <<_ACEOF
8884 #define HAVE_DECL_FE_INEXACT $ac_have_decl
8885 _ACEOF
8886
8887 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
8888 for ac_header in pthread.h
8889 do :
8890 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8891 if test "x$ac_cv_header_pthread_h" = xyes; then :
8892 cat >>confdefs.h <<_ACEOF
8893 #define HAVE_PTHREAD_H 1
8894 _ACEOF
8895 HAVE_PTHREAD=1
8896
8897 else
8898 HAVE_PTHREAD=0
8899
8900 fi
8901
8902 done
8903
8904 else
8905 HAVE_PTHREAD=0
8906
8907 fi
8908 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
8909 for ac_header in zlib.h
8910 do :
8911 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8912 if test "x$ac_cv_header_zlib_h" = xyes; then :
8913 cat >>confdefs.h <<_ACEOF
8914 #define HAVE_ZLIB_H 1
8915 _ACEOF
8916 HAVE_LIBZ=1
8917
8918 else
8919 HAVE_LIBZ=0
8920
8921 fi
8922
8923 done
8924
8925 else
8926 HAVE_LIBZ=0
8927
8928 fi
8929
8930 if test "$llvm_cv_enable_libffi" = "yes" ; then
8931 for ac_header in ffi.h ffi/ffi.h
8932 do :
8933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8934 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8935 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8936 cat >>confdefs.h <<_ACEOF
8937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8938 _ACEOF
8939
8940 fi
8941
8942 done
8943
8944 fi
8945
8946 for ac_header in CrashReporterClient.h
8947 do :
8948 ac_fn_c_check_header_mongrel "$LINENO" "CrashReporterClient.h" "ac_cv_header_CrashReporterClient_h" "$ac_includes_default"
8949 if test "x$ac_cv_header_CrashReporterClient_h" = xyes; then :
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_CRASHREPORTERCLIENT_H 1
8952 _ACEOF
8953
8954 fi
8955
8956 done
8957
8958
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __crashreporter_info__" >&5
8960 $as_echo_n "checking __crashreporter_info__... " >&6; }
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963
8964
8965 extern const char *__crashreporter_info__;
8966 int main() {
8967 __crashreporter_info__ = "test";
8968 return 0;
8969 }
8970
8971
8972 _ACEOF
8973 if ac_fn_c_try_link "$LINENO"; then :
8974
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8976 $as_echo "yes" >&6; }
8977
8978 $as_echo "#define HAVE_CRASHREPORTER_INFO 1" >>confdefs.h
8979
8980
8981 else
8982
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8985
8986 $as_echo "#define HAVE_CRASHREPORTER_INFO 0" >>confdefs.h
8987
8988
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992
8993
8994 $as_echo "#define HAVE_DIA_SDK 0" >>confdefs.h
8995
8996
8997
8998
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5
9000 $as_echo_n "checking for HUGE_VAL sanity... " >&6; }
9001 if ${ac_cv_huge_val_sanity+:} false; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004
9005 ac_ext=cpp
9006 ac_cpp='$CXXCPP $CPPFLAGS'
9007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9010
9011 ac_save_CXXFLAGS=$CXXFLAGS
9012 CXXFLAGS="$CXXFLAGS -pedantic"
9013 if test "$cross_compiling" = yes; then :
9014 ac_cv_huge_val_sanity=yes
9015 else
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018 #include <math.h>
9019 int
9020 main ()
9021 {
9022 double x = HUGE_VAL; return x != x;
9023 ;
9024 return 0;
9025 }
9026 _ACEOF
9027 if ac_fn_cxx_try_run "$LINENO"; then :
9028 ac_cv_huge_val_sanity=yes
9029 else
9030 ac_cv_huge_val_sanity=no
9031 fi
9032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9033 conftest.$ac_objext conftest.beam conftest.$ac_ext
9034 fi
9035
9036 CXXFLAGS=$ac_save_CXXFLAGS
9037 ac_ext=c
9038 ac_cpp='$CPP $CPPFLAGS'
9039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9042
9043
9044 fi
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5
9046 $as_echo "$ac_cv_huge_val_sanity" >&6; }
9047 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
9048
9049
9050 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9051 if test "x$ac_cv_type_pid_t" = xyes; then :
9052
9053 else
9054
9055 cat >>confdefs.h <<_ACEOF
9056 #define pid_t int
9057 _ACEOF
9058
9059 fi
9060
9061 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9062 if test "x$ac_cv_type_size_t" = xyes; then :
9063
9064 else
9065
9066 cat >>confdefs.h <<_ACEOF
9067 #define size_t unsigned int
9068 _ACEOF
9069
9070 fi
9071
9072
9073 cat >>confdefs.h <<_ACEOF
9074 #define RETSIGTYPE void
9075 _ACEOF
9076
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9078 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9079 if ${ac_cv_struct_tm+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9084 #include <sys/types.h>
9085 #include <time.h>
9086
9087 int
9088 main ()
9089 {
9090 struct tm tm;
9091 int *p = &tm.tm_sec;
9092 return !p;
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098 ac_cv_struct_tm=time.h
9099 else
9100 ac_cv_struct_tm=sys/time.h
9101 fi
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9105 $as_echo "$ac_cv_struct_tm" >&6; }
9106 if test $ac_cv_struct_tm = sys/time.h; then
9107
9108 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9109
9110 fi
9111
9112 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
9113 if test "x$ac_cv_type_int64_t" = xyes; then :
9114
9115 cat >>confdefs.h <<_ACEOF
9116 #define HAVE_INT64_T 1
9117 _ACEOF
9118
9119
9120 else
9121 as_fn_error $? "Type int64_t required but not found" "$LINENO" 5
9122 fi
9123
9124 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
9125 if test "x$ac_cv_type_uint64_t" = xyes; then :
9126
9127 cat >>confdefs.h <<_ACEOF
9128 #define HAVE_UINT64_T 1
9129 _ACEOF
9130
9131
9132 else
9133 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
9134 if test "x$ac_cv_type_u_int64_t" = xyes; then :
9135
9136 cat >>confdefs.h <<_ACEOF
9137 #define HAVE_U_INT64_T 1
9138 _ACEOF
9139
9140
9141 else
9142 as_fn_error $? "Type uint64_t or u_int64_t required but not found" "$LINENO" 5
9143 fi
9144
9145 fi
9146
9147
9148 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec.tv_nsec" "ac_cv_member_struct_stat_st_mtimensec_tv_nsec" "#include <sys/stat.h>
9149 "
9150 if test "x$ac_cv_member_struct_stat_st_mtimensec_tv_nsec" = xyes; then :
9151
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_STRUCT_STAT_ST_MTIMENSEC_TV_NSEC 1
9154 _ACEOF
9155
9156
9157 fi
9158 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/stat.h>
9159 "
9160 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
9161
9162 cat >>confdefs.h <<_ACEOF
9163 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
9164 _ACEOF
9165
9166
9167 fi
9168
9169
9170
9171 for ac_func in _Unwind_Backtrace backtrace getcwd
9172 do :
9173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9175 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9176 cat >>confdefs.h <<_ACEOF
9177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9178 _ACEOF
9179
9180 fi
9181 done
9182
9183 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
9184 do :
9185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9187 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9188 cat >>confdefs.h <<_ACEOF
9189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9190 _ACEOF
9191
9192 fi
9193 done
9194
9195 for ac_func in isatty mkdtemp mkstemp
9196 do :
9197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9198 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9199 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9200 cat >>confdefs.h <<_ACEOF
9201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9202 _ACEOF
9203
9204 fi
9205 done
9206
9207 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
9208 do :
9209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9211 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9212 cat >>confdefs.h <<_ACEOF
9213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9214 _ACEOF
9215
9216 fi
9217 done
9218
9219 for ac_func in strerror strerror_r setenv
9220 do :
9221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9223 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9224 cat >>confdefs.h <<_ACEOF
9225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9226 _ACEOF
9227
9228 fi
9229 done
9230
9231 for ac_func in strtoll sysconf malloc_zone_statistics
9232 do :
9233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9235 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9236 cat >>confdefs.h <<_ACEOF
9237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9238 _ACEOF
9239
9240 fi
9241 done
9242
9243 for ac_func in sigaltstack writev posix_fallocate
9244 do :
9245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9247 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9248 cat >>confdefs.h <<_ACEOF
9249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9250 _ACEOF
9251
9252 fi
9253 done
9254
9255 for ac_func in futimes futimens _chsize_s
9256 do :
9257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9259 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9260 cat >>confdefs.h <<_ACEOF
9261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9262 _ACEOF
9263
9264 fi
9265 done
9266
9267
9268 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
9269 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
9270 ac_have_decl=1
9271 else
9272 ac_have_decl=0
9273 fi
9274
9275 cat >>confdefs.h <<_ACEOF
9276 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
9277 _ACEOF
9278
9279
9280 ac_fn_c_check_decl "$LINENO" "strerror_s" "ac_cv_have_decl_strerror_s" "$ac_includes_default"
9281 if test "x$ac_cv_have_decl_strerror_s" = xyes; then :
9282 ac_have_decl=1
9283 else
9284 ac_have_decl=0
9285 fi
9286
9287 cat >>confdefs.h <<_ACEOF
9288 #define HAVE_DECL_STRERROR_S $ac_have_decl
9289 _ACEOF
9290
9291
9292 if test "$llvm_cv_os_type" = "MingW" ; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _alloca in -lgcc" >&5
9294 $as_echo_n "checking for _alloca in -lgcc... " >&6; }
9295 if ${ac_cv_lib_gcc__alloca+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 ac_check_lib_save_LIBS=$LIBS
9299 LIBS="-lgcc $LIBS"
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302
9303 /* Override any GCC internal prototype to avoid an error.
9304 Use char because int might match the return type of a GCC
9305 builtin and then its argument prototype would still apply. */
9306 #ifdef __cplusplus
9307 extern "C"
9308 #endif
9309 char _alloca ();
9310 int
9311 main ()
9312 {
9313 return _alloca ();
9314 ;
9315 return 0;
9316 }
9317 _ACEOF
9318 if ac_fn_c_try_link "$LINENO"; then :
9319 ac_cv_lib_gcc__alloca=yes
9320 else
9321 ac_cv_lib_gcc__alloca=no
9322 fi
9323 rm -f core conftest.err conftest.$ac_objext \
9324 conftest$ac_exeext conftest.$ac_ext
9325 LIBS=$ac_check_lib_save_LIBS
9326 fi
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__alloca" >&5
9328 $as_echo "$ac_cv_lib_gcc__alloca" >&6; }
9329 if test "x$ac_cv_lib_gcc__alloca" = xyes; then :
9330
9331 $as_echo "#define HAVE__ALLOCA 1" >>confdefs.h
9332
9333 fi
9334
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __alloca in -lgcc" >&5
9336 $as_echo_n "checking for __alloca in -lgcc... " >&6; }
9337 if ${ac_cv_lib_gcc___alloca+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 ac_check_lib_save_LIBS=$LIBS
9341 LIBS="-lgcc $LIBS"
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344
9345 /* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9348 #ifdef __cplusplus
9349 extern "C"
9350 #endif
9351 char __alloca ();
9352 int
9353 main ()
9354 {
9355 return __alloca ();
9356 ;
9357 return 0;
9358 }
9359 _ACEOF
9360 if ac_fn_c_try_link "$LINENO"; then :
9361 ac_cv_lib_gcc___alloca=yes
9362 else
9363 ac_cv_lib_gcc___alloca=no
9364 fi
9365 rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
9367 LIBS=$ac_check_lib_save_LIBS
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___alloca" >&5
9370 $as_echo "$ac_cv_lib_gcc___alloca" >&6; }
9371 if test "x$ac_cv_lib_gcc___alloca" = xyes; then :
9372
9373 $as_echo "#define HAVE___ALLOCA 1" >>confdefs.h
9374
9375 fi
9376
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk in -lgcc" >&5
9378 $as_echo_n "checking for __chkstk in -lgcc... " >&6; }
9379 if ${ac_cv_lib_gcc___chkstk+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 ac_check_lib_save_LIBS=$LIBS
9383 LIBS="-lgcc $LIBS"
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386
9387 /* Override any GCC internal prototype to avoid an error.
9388 Use char because int might match the return type of a GCC
9389 builtin and then its argument prototype would still apply. */
9390 #ifdef __cplusplus
9391 extern "C"
9392 #endif
9393 char __chkstk ();
9394 int
9395 main ()
9396 {
9397 return __chkstk ();
9398 ;
9399 return 0;
9400 }
9401 _ACEOF
9402 if ac_fn_c_try_link "$LINENO"; then :
9403 ac_cv_lib_gcc___chkstk=yes
9404 else
9405 ac_cv_lib_gcc___chkstk=no
9406 fi
9407 rm -f core conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9409 LIBS=$ac_check_lib_save_LIBS
9410 fi
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk" >&5
9412 $as_echo "$ac_cv_lib_gcc___chkstk" >&6; }
9413 if test "x$ac_cv_lib_gcc___chkstk" = xyes; then :
9414
9415 $as_echo "#define HAVE___CHKSTK 1" >>confdefs.h
9416
9417 fi
9418
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __chkstk_ms in -lgcc" >&5
9420 $as_echo_n "checking for __chkstk_ms in -lgcc... " >&6; }
9421 if ${ac_cv_lib_gcc___chkstk_ms+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-lgcc $LIBS"
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428
9429 /* Override any GCC internal prototype to avoid an error.
9430 Use char because int might match the return type of a GCC
9431 builtin and then its argument prototype would still apply. */
9432 #ifdef __cplusplus
9433 extern "C"
9434 #endif
9435 char __chkstk_ms ();
9436 int
9437 main ()
9438 {
9439 return __chkstk_ms ();
9440 ;
9441 return 0;
9442 }
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 ac_cv_lib_gcc___chkstk_ms=yes
9446 else
9447 ac_cv_lib_gcc___chkstk_ms=no
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 LIBS=$ac_check_lib_save_LIBS
9452 fi
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___chkstk_ms" >&5
9454 $as_echo "$ac_cv_lib_gcc___chkstk_ms" >&6; }
9455 if test "x$ac_cv_lib_gcc___chkstk_ms" = xyes; then :
9456
9457 $as_echo "#define HAVE___CHKSTK_MS 1" >>confdefs.h
9458
9459 fi
9460
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk in -lgcc" >&5
9462 $as_echo_n "checking for ___chkstk in -lgcc... " >&6; }
9463 if ${ac_cv_lib_gcc____chkstk+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-lgcc $LIBS"
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470
9471 /* Override any GCC internal prototype to avoid an error.
9472 Use char because int might match the return type of a GCC
9473 builtin and then its argument prototype would still apply. */
9474 #ifdef __cplusplus
9475 extern "C"
9476 #endif
9477 char ___chkstk ();
9478 int
9479 main ()
9480 {
9481 return ___chkstk ();
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487 ac_cv_lib_gcc____chkstk=yes
9488 else
9489 ac_cv_lib_gcc____chkstk=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493 LIBS=$ac_check_lib_save_LIBS
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk" >&5
9496 $as_echo "$ac_cv_lib_gcc____chkstk" >&6; }
9497 if test "x$ac_cv_lib_gcc____chkstk" = xyes; then :
9498
9499 $as_echo "#define HAVE____CHKSTK 1" >>confdefs.h
9500
9501 fi
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ___chkstk_ms in -lgcc" >&5
9504 $as_echo_n "checking for ___chkstk_ms in -lgcc... " >&6; }
9505 if ${ac_cv_lib_gcc____chkstk_ms+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-lgcc $LIBS"
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char ___chkstk_ms ();
9520 int
9521 main ()
9522 {
9523 return ___chkstk_ms ();
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 if ac_fn_c_try_link "$LINENO"; then :
9529 ac_cv_lib_gcc____chkstk_ms=yes
9530 else
9531 ac_cv_lib_gcc____chkstk_ms=no
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_lib_save_LIBS
9536 fi
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc____chkstk_ms" >&5
9538 $as_echo "$ac_cv_lib_gcc____chkstk_ms" >&6; }
9539 if test "x$ac_cv_lib_gcc____chkstk_ms" = xyes; then :
9540
9541 $as_echo "#define HAVE____CHKSTK_MS 1" >>confdefs.h
9542
9543 fi
9544
9545
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashldi3 in -lgcc" >&5
9547 $as_echo_n "checking for __ashldi3 in -lgcc... " >&6; }
9548 if ${ac_cv_lib_gcc___ashldi3+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lgcc $LIBS"
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char __ashldi3 ();
9563 int
9564 main ()
9565 {
9566 return __ashldi3 ();
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 if ac_fn_c_try_link "$LINENO"; then :
9572 ac_cv_lib_gcc___ashldi3=yes
9573 else
9574 ac_cv_lib_gcc___ashldi3=no
9575 fi
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578 LIBS=$ac_check_lib_save_LIBS
9579 fi
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashldi3" >&5
9581 $as_echo "$ac_cv_lib_gcc___ashldi3" >&6; }
9582 if test "x$ac_cv_lib_gcc___ashldi3" = xyes; then :
9583
9584 $as_echo "#define HAVE___ASHLDI3 1" >>confdefs.h
9585
9586 fi
9587
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ashrdi3 in -lgcc" >&5
9589 $as_echo_n "checking for __ashrdi3 in -lgcc... " >&6; }
9590 if ${ac_cv_lib_gcc___ashrdi3+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 ac_check_lib_save_LIBS=$LIBS
9594 LIBS="-lgcc $LIBS"
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597
9598 /* Override any GCC internal prototype to avoid an error.
9599 Use char because int might match the return type of a GCC
9600 builtin and then its argument prototype would still apply. */
9601 #ifdef __cplusplus
9602 extern "C"
9603 #endif
9604 char __ashrdi3 ();
9605 int
9606 main ()
9607 {
9608 return __ashrdi3 ();
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"; then :
9614 ac_cv_lib_gcc___ashrdi3=yes
9615 else
9616 ac_cv_lib_gcc___ashrdi3=no
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620 LIBS=$ac_check_lib_save_LIBS
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___ashrdi3" >&5
9623 $as_echo "$ac_cv_lib_gcc___ashrdi3" >&6; }
9624 if test "x$ac_cv_lib_gcc___ashrdi3" = xyes; then :
9625
9626 $as_echo "#define HAVE___ASHRDI3 1" >>confdefs.h
9627
9628 fi
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __divdi3 in -lgcc" >&5
9631 $as_echo_n "checking for __divdi3 in -lgcc... " >&6; }
9632 if ${ac_cv_lib_gcc___divdi3+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 ac_check_lib_save_LIBS=$LIBS
9636 LIBS="-lgcc $LIBS"
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9639
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char __divdi3 ();
9647 int
9648 main ()
9649 {
9650 return __divdi3 ();
9651 ;
9652 return 0;
9653 }
9654 _ACEOF
9655 if ac_fn_c_try_link "$LINENO"; then :
9656 ac_cv_lib_gcc___divdi3=yes
9657 else
9658 ac_cv_lib_gcc___divdi3=no
9659 fi
9660 rm -f core conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9663 fi
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___divdi3" >&5
9665 $as_echo "$ac_cv_lib_gcc___divdi3" >&6; }
9666 if test "x$ac_cv_lib_gcc___divdi3" = xyes; then :
9667
9668 $as_echo "#define HAVE___DIVDI3 1" >>confdefs.h
9669
9670 fi
9671
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixdfdi in -lgcc" >&5
9673 $as_echo_n "checking for __fixdfdi in -lgcc... " >&6; }
9674 if ${ac_cv_lib_gcc___fixdfdi+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-lgcc $LIBS"
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681
9682 /* Override any GCC internal prototype to avoid an error.
9683 Use char because int might match the return type of a GCC
9684 builtin and then its argument prototype would still apply. */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 char __fixdfdi ();
9689 int
9690 main ()
9691 {
9692 return __fixdfdi ();
9693 ;
9694 return 0;
9695 }
9696 _ACEOF
9697 if ac_fn_c_try_link "$LINENO"; then :
9698 ac_cv_lib_gcc___fixdfdi=yes
9699 else
9700 ac_cv_lib_gcc___fixdfdi=no
9701 fi
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 LIBS=$ac_check_lib_save_LIBS
9705 fi
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixdfdi" >&5
9707 $as_echo "$ac_cv_lib_gcc___fixdfdi" >&6; }
9708 if test "x$ac_cv_lib_gcc___fixdfdi" = xyes; then :
9709
9710 $as_echo "#define HAVE___FIXDFDI 1" >>confdefs.h
9711
9712 fi
9713
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fixsfdi in -lgcc" >&5
9715 $as_echo_n "checking for __fixsfdi in -lgcc... " >&6; }
9716 if ${ac_cv_lib_gcc___fixsfdi+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 ac_check_lib_save_LIBS=$LIBS
9720 LIBS="-lgcc $LIBS"
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723
9724 /* Override any GCC internal prototype to avoid an error.
9725 Use char because int might match the return type of a GCC
9726 builtin and then its argument prototype would still apply. */
9727 #ifdef __cplusplus
9728 extern "C"
9729 #endif
9730 char __fixsfdi ();
9731 int
9732 main ()
9733 {
9734 return __fixsfdi ();
9735 ;
9736 return 0;
9737 }
9738 _ACEOF
9739 if ac_fn_c_try_link "$LINENO"; then :
9740 ac_cv_lib_gcc___fixsfdi=yes
9741 else
9742 ac_cv_lib_gcc___fixsfdi=no
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_lib_save_LIBS
9747 fi
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___fixsfdi" >&5
9749 $as_echo "$ac_cv_lib_gcc___fixsfdi" >&6; }
9750 if test "x$ac_cv_lib_gcc___fixsfdi" = xyes; then :
9751
9752 $as_echo "#define HAVE___FIXSFDI 1" >>confdefs.h
9753
9754 fi
9755
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __floatdidf in -lgcc" >&5
9757 $as_echo_n "checking for __floatdidf in -lgcc... " >&6; }
9758 if ${ac_cv_lib_gcc___floatdidf+:} false; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 ac_check_lib_save_LIBS=$LIBS
9762 LIBS="-lgcc $LIBS"
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765
9766 /* Override any GCC internal prototype to avoid an error.
9767 Use char because int might match the return type of a GCC
9768 builtin and then its argument prototype would still apply. */
9769 #ifdef __cplusplus
9770 extern "C"
9771 #endif
9772 char __floatdidf ();
9773 int
9774 main ()
9775 {
9776 return __floatdidf ();
9777 ;
9778 return 0;
9779 }
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"; then :
9782 ac_cv_lib_gcc___floatdidf=yes
9783 else
9784 ac_cv_lib_gcc___floatdidf=no
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788 LIBS=$ac_check_lib_save_LIBS
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___floatdidf" >&5
9791 $as_echo "$ac_cv_lib_gcc___floatdidf" >&6; }
9792 if test "x$ac_cv_lib_gcc___floatdidf" = xyes; then :
9793
9794 $as_echo "#define HAVE___FLOATDIDF 1" >>confdefs.h
9795
9796 fi
9797
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __lshrdi3 in -lgcc" >&5
9799 $as_echo_n "checking for __lshrdi3 in -lgcc... " >&6; }
9800 if ${ac_cv_lib_gcc___lshrdi3+:} false; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 ac_check_lib_save_LIBS=$LIBS
9804 LIBS="-lgcc $LIBS"
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811 #ifdef __cplusplus
9812 extern "C"
9813 #endif
9814 char __lshrdi3 ();
9815 int
9816 main ()
9817 {
9818 return __lshrdi3 ();
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 if ac_fn_c_try_link "$LINENO"; then :
9824 ac_cv_lib_gcc___lshrdi3=yes
9825 else
9826 ac_cv_lib_gcc___lshrdi3=no
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___lshrdi3" >&5
9833 $as_echo "$ac_cv_lib_gcc___lshrdi3" >&6; }
9834 if test "x$ac_cv_lib_gcc___lshrdi3" = xyes; then :
9835
9836 $as_echo "#define HAVE___LSHRDI3 1" >>confdefs.h
9837
9838 fi
9839
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __moddi3 in -lgcc" >&5
9841 $as_echo_n "checking for __moddi3 in -lgcc... " >&6; }
9842 if ${ac_cv_lib_gcc___moddi3+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 ac_check_lib_save_LIBS=$LIBS
9846 LIBS="-lgcc $LIBS"
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849
9850 /* Override any GCC internal prototype to avoid an error.
9851 Use char because int might match the return type of a GCC
9852 builtin and then its argument prototype would still apply. */
9853 #ifdef __cplusplus
9854 extern "C"
9855 #endif
9856 char __moddi3 ();
9857 int
9858 main ()
9859 {
9860 return __moddi3 ();
9861 ;
9862 return 0;
9863 }
9864 _ACEOF
9865 if ac_fn_c_try_link "$LINENO"; then :
9866 ac_cv_lib_gcc___moddi3=yes
9867 else
9868 ac_cv_lib_gcc___moddi3=no
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_check_lib_save_LIBS
9873 fi
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___moddi3" >&5
9875 $as_echo "$ac_cv_lib_gcc___moddi3" >&6; }
9876 if test "x$ac_cv_lib_gcc___moddi3" = xyes; then :
9877
9878 $as_echo "#define HAVE___MODDI3 1" >>confdefs.h
9879
9880 fi
9881
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __udivdi3 in -lgcc" >&5
9883 $as_echo_n "checking for __udivdi3 in -lgcc... " >&6; }
9884 if ${ac_cv_lib_gcc___udivdi3+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 ac_check_lib_save_LIBS=$LIBS
9888 LIBS="-lgcc $LIBS"
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891
9892 /* Override any GCC internal prototype to avoid an error.
9893 Use char because int might match the return type of a GCC
9894 builtin and then its argument prototype would still apply. */
9895 #ifdef __cplusplus
9896 extern "C"
9897 #endif
9898 char __udivdi3 ();
9899 int
9900 main ()
9901 {
9902 return __udivdi3 ();
9903 ;
9904 return 0;
9905 }
9906 _ACEOF
9907 if ac_fn_c_try_link "$LINENO"; then :
9908 ac_cv_lib_gcc___udivdi3=yes
9909 else
9910 ac_cv_lib_gcc___udivdi3=no
9911 fi
9912 rm -f core conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9915 fi
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___udivdi3" >&5
9917 $as_echo "$ac_cv_lib_gcc___udivdi3" >&6; }
9918 if test "x$ac_cv_lib_gcc___udivdi3" = xyes; then :
9919
9920 $as_echo "#define HAVE___UDIVDI3 1" >>confdefs.h
9921
9922 fi
9923
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __umoddi3 in -lgcc" >&5
9925 $as_echo_n "checking for __umoddi3 in -lgcc... " >&6; }
9926 if ${ac_cv_lib_gcc___umoddi3+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 ac_check_lib_save_LIBS=$LIBS
9930 LIBS="-lgcc $LIBS"
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9933
9934 /* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char __umoddi3 ();
9941 int
9942 main ()
9943 {
9944 return __umoddi3 ();
9945 ;
9946 return 0;
9947 }
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"; then :
9950 ac_cv_lib_gcc___umoddi3=yes
9951 else
9952 ac_cv_lib_gcc___umoddi3=no
9953 fi
9954 rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___umoddi3" >&5
9959 $as_echo "$ac_cv_lib_gcc___umoddi3" >&6; }
9960 if test "x$ac_cv_lib_gcc___umoddi3" = xyes; then :
9961
9962 $as_echo "#define HAVE___UMODDI3 1" >>confdefs.h
9963
9964 fi
9965
9966
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __main in -lgcc" >&5
9968 $as_echo_n "checking for __main in -lgcc... " >&6; }
9969 if ${ac_cv_lib_gcc___main+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 ac_check_lib_save_LIBS=$LIBS
9973 LIBS="-lgcc $LIBS"
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char __main ();
9984 int
9985 main ()
9986 {
9987 return __main ();
9988 ;
9989 return 0;
9990 }
9991 _ACEOF
9992 if ac_fn_c_try_link "$LINENO"; then :
9993 ac_cv_lib_gcc___main=yes
9994 else
9995 ac_cv_lib_gcc___main=no
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10000 fi
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___main" >&5
10002 $as_echo "$ac_cv_lib_gcc___main" >&6; }
10003 if test "x$ac_cv_lib_gcc___main" = xyes; then :
10004
10005 $as_echo "#define HAVE___MAIN 1" >>confdefs.h
10006
10007 fi
10008
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cmpdi2 in -lgcc" >&5
10010 $as_echo_n "checking for __cmpdi2 in -lgcc... " >&6; }
10011 if ${ac_cv_lib_gcc___cmpdi2+:} false; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 ac_check_lib_save_LIBS=$LIBS
10015 LIBS="-lgcc $LIBS"
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018
10019 /* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 char __cmpdi2 ();
10026 int
10027 main ()
10028 {
10029 return __cmpdi2 ();
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 if ac_fn_c_try_link "$LINENO"; then :
10035 ac_cv_lib_gcc___cmpdi2=yes
10036 else
10037 ac_cv_lib_gcc___cmpdi2=no
10038 fi
10039 rm -f core conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10042 fi
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___cmpdi2" >&5
10044 $as_echo "$ac_cv_lib_gcc___cmpdi2" >&6; }
10045 if test "x$ac_cv_lib_gcc___cmpdi2" = xyes; then :
10046
10047 $as_echo "#define HAVE___CMPDI2 1" >>confdefs.h
10048
10049 fi
10050
10051 fi
10052
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
10054 $as_echo_n "checking for GCC atomic builtins... " >&6; }
10055 ac_ext=cpp
10056 ac_cpp='$CXXCPP $CPPFLAGS'
10057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10060
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063
10064
10065 int main() {
10066 volatile unsigned long val = 1;
10067 __sync_synchronize();
10068 __sync_val_compare_and_swap(&val, 1, 0);
10069 __sync_add_and_fetch(&val, 1);
10070 __sync_sub_and_fetch(&val, 1);
10071 return 0;
10072 }
10073
10074
10075 _ACEOF
10076 if ac_fn_cxx_try_link "$LINENO"; then :
10077
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10079 $as_echo "yes" >&6; }
10080
10081 $as_echo "#define LLVM_HAS_ATOMICS 1" >>confdefs.h
10082
10083
10084 else
10085
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088
10089 $as_echo "#define LLVM_HAS_ATOMICS 0" >>confdefs.h
10090
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
10092 $as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
10093
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 ac_ext=c
10098 ac_cpp='$CPP $CPPFLAGS'
10099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10102
10103
10104 ac_ext=cpp
10105 ac_cpp='$CXXCPP $CPPFLAGS'
10106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10109
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10112
10113
10114 #include <type_traits>
10115 struct T { int val; };
10116 static_assert(std::is_trivially_copyable<T>::value, "ok");
10117 int main() { return 0; }
10118
10119
10120 _ACEOF
10121 if ac_fn_cxx_try_link "$LINENO"; then :
10122
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10124 $as_echo "yes" >&6; }
10125
10126 $as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 1" >>confdefs.h
10127
10128
10129 else
10130
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132 $as_echo "no" >&6; }
10133
10134 $as_echo "#define HAVE_STD_IS_TRIVIALLY_COPYABLE 0" >>confdefs.h
10135
10136
10137 fi
10138 rm -f core conftest.err conftest.$ac_objext \
10139 conftest$ac_exeext conftest.$ac_ext
10140 ac_ext=c
10141 ac_cpp='$CPP $CPPFLAGS'
10142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10145
10146
10147
10148 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5
10150 $as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; }
10151 if ${llvm_cv_linux_mixed+:} false; then :
10152 $as_echo_n "(cached) " >&6
10153 else
10154 ac_ext=c
10155 ac_cpp='$CPP $CPPFLAGS'
10156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10159
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162 #ifndef __x86_64__
10163 error: Not x86-64 even if uname says so!
10164 #endif
10165
10166 int
10167 main ()
10168 {
10169
10170 ;
10171 return 0;
10172 }
10173 _ACEOF
10174 if ac_fn_c_try_compile "$LINENO"; then :
10175 llvm_cv_linux_mixed=no
10176 else
10177 llvm_cv_linux_mixed=yes
10178 fi
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10180 ac_ext=c
10181 ac_cpp='$CPP $CPPFLAGS'
10182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10185
10186
10187 fi
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5
10189 $as_echo "$llvm_cv_linux_mixed" >&6; }
10190
10191 if test "$llvm_cv_linux_mixed" = "yes"; then
10192 llvm_cv_target_arch="x86"
10193 ARCH="x86"
10194 fi
10195 fi
10196
10197 SHLIBEXT=$llvm_shlib_ext
10198
10199
10200 if test "${prefix}" = "NONE" ; then
10201 prefix="/usr/local"
10202 fi
10203 eval LLVM_PREFIX="${prefix}";
10204
10205
10206 cat >>confdefs.h <<_ACEOF
10207 #define LLVM_PREFIX "$LLVM_PREFIX"
10208 _ACEOF
10209
10210
10211 cat >>confdefs.h <<_ACEOF
10212 #define LLVM_HOST_TRIPLE "$host"
10213 _ACEOF
10214
10215
10216 cat >>confdefs.h <<_ACEOF
10217 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
10218 _ACEOF
10219
10220
10221 if test "$BINDINGS_TO_BUILD" = auto ; then
10222 BINDINGS_TO_BUILD=""
10223 if test "x$OCAMLFIND" != x ; then
10224 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
10225 fi
10226 if test "x$GO" != x ; then
10227 if $GO run ${srcdir}/bindings/go/conftest.go ; then
10228 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
10229 fi
10230 fi
10231 fi
10232 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
10233
10234
10235 binding_prereqs_failed=0
10236 for a_binding in $BINDINGS_TO_BUILD ; do
10237 case "$a_binding" in
10238 ocaml)
10239 if test "x$OCAMLFIND" = x ; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
10241 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
10242 binding_prereqs_failed=1
10243 fi
10244
10245 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
10246 HAVE_OCAMLOPT=1
10247 else
10248 HAVE_OCAMLOPT=0
10249 fi
10250
10251
10252 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
10254 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
10255 binding_prereqs_failed=1
10256 fi
10257
10258 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
10259 HAVE_OCAML_OUNIT=1
10260 else
10261 HAVE_OCAML_OUNIT=0
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
10263 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
10264 fi
10265
10266
10267 if test "x$with_ocaml_libdir" != xauto ; then
10268 OCAML_LIBDIR=$with_ocaml_libdir
10269
10270 else
10271 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
10272 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
10273 then
10274 # ocaml stdlib is beneath our prefix; use stdlib
10275 OCAML_LIBDIR=$ocaml_stdlib
10276
10277 else
10278 # ocaml stdlib is outside our prefix; use libdir/ocaml
10279 OCAML_LIBDIR=${prefix}/lib/ocaml
10280
10281 fi
10282 fi
10283 ;;
10284 go)
10285 if test "x$GO" = x ; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
10287 $as_echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
10288 binding_prereqs_failed=1
10289 else
10290 if $GO run ${srcdir}/bindings/go/conftest.go ; then
10291 :
10292 else
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
10294 $as_echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
10295 binding_prereqs_failed=1
10296 fi
10297 fi
10298 ;;
10299 esac
10300 done
10301 if test "$binding_prereqs_failed" = 1 ; then
10302 as_fn_error $? "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
10303 fi
10304
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
10306 $as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; }
10307 if ${llvm_cv_cxx_visibility_inlines_hidden+:} false; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 ac_ext=cpp
10311 ac_cpp='$CXXCPP $CPPFLAGS'
10312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10315
10316 oldcxxflags="$CXXFLAGS"
10317 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320 template <typename T> struct X { void __attribute__((noinline)) f() {} };
10321 int
10322 main ()
10323 {
10324 X<int>().f();
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 if ac_fn_cxx_try_compile "$LINENO"; then :
10330 llvm_cv_cxx_visibility_inlines_hidden=yes
10331 else
10332 llvm_cv_cxx_visibility_inlines_hidden=no
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335 CXXFLAGS="$oldcxxflags"
10336 ac_ext=c
10337 ac_cpp='$CPP $CPPFLAGS'
10338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10341
10342
10343 fi
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
10345 $as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
10346 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
10347 ENABLE_VISIBILITY_INLINES_HIDDEN=1
10348
10349 else
10350 ENABLE_VISIBILITY_INLINES_HIDDEN=0
10351
10352 fi
10353
10354
10355 if test "$llvm_cv_link_use_r" = "yes" ; then
10356 RPATH="-Wl,-R"
10357 else
10358 RPATH="-Wl,-rpath"
10359 fi
10360
10361
10362 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
10363 RDYNAMIC="-rdynamic"
10364 else
10365 RDYNAMIC=""
10366 fi
10367
10368
10369
10370 $as_echo "#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0" >>confdefs.h
10371
10372
10373 cat >>confdefs.h <<_ACEOF
10374 #define BACKTRACE_HEADER <execinfo.h>
10375 _ACEOF
10376
10377
10378
10379 $as_echo "#define LLVM_ENABLE_CRASH_DUMPS 0" >>confdefs.h
10380
10381
10382 $as_echo "#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0" >>confdefs.h
10383
10384
10385
10386 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h include/llvm/Config/abi-breaking.h"
10387
10388
10389
10390
10391 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
10392
10393 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
10394
10395 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
10396
10397 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
10398
10399 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
10400
10401
10402 if test "${clang_src_root}" = ""; then
10403 clang_src_root="$srcdir/tools/clang"
10404 fi
10405 if test -f ${clang_src_root}/README.txt; then
10406 ac_config_headers="$ac_config_headers include/clang/Config/config.h"
10407
10408 fi
10409
10410 cat >confcache <<\_ACEOF
10411 # This file is a shell script that caches the results of configure
10412 # tests run on this system so they can be shared between configure
10413 # scripts and configure runs, see configure's option --config-cache.
10414 # It is not useful on other systems. If it contains results you don't
10415 # want to keep, you may remove or edit it.
10416 #
10417 # config.status only pays attention to the cache file if you give it
10418 # the --recheck option to rerun configure.
10419 #
10420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10422 # following values.
10423
10424 _ACEOF
10425
10426 # The following way of writing the cache mishandles newlines in values,
10427 # but we know of no workaround that is simple, portable, and efficient.
10428 # So, we kill variables containing newlines.
10429 # Ultrix sh set writes to stderr and can't be redirected directly,
10430 # and sets the high bit in the cache file unless we assign to the vars.
10431 (
10432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10433 eval ac_val=\$$ac_var
10434 case $ac_val in #(
10435 *${as_nl}*)
10436 case $ac_var in #(
10437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10439 esac
10440 case $ac_var in #(
10441 _ | IFS | as_nl) ;; #(
10442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10443 *) { eval $ac_var=; unset $ac_var;} ;;
10444 esac ;;
10445 esac
10446 done
10447
10448 (set) 2>&1 |
10449 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10450 *${as_nl}ac_space=\ *)
10451 # `set' does not quote correctly, so add quotes: double-quote
10452 # substitution turns \\\\ into \\, and sed turns \\ into \.
10453 sed -n \
10454 "s/'/'\\\\''/g;
10455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10456 ;; #(
10457 *)
10458 # `set' quotes correctly as required by POSIX, so do not add quotes.
10459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10460 ;;
10461 esac |
10462 sort
10463 ) |
10464 sed '
10465 /^ac_cv_env_/b end
10466 t clear
10467 :clear
10468 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10469 t end
10470 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10471 :end' >>confcache
10472 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10473 if test -w "$cache_file"; then
10474 if test "x$cache_file" != "x/dev/null"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10476 $as_echo "$as_me: updating cache $cache_file" >&6;}
10477 if test ! -f "$cache_file" || test -h "$cache_file"; then
10478 cat confcache >"$cache_file"
10479 else
10480 case $cache_file in #(
10481 */* | ?:*)
10482 mv -f confcache "$cache_file"$$ &&
10483 mv -f "$cache_file"$$ "$cache_file" ;; #(
10484 *)
10485 mv -f confcache "$cache_file" ;;
10486 esac
10487 fi
10488 fi
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10491 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10492 fi
10493 fi
10494 rm -f confcache
10495
10496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10497 # Let make expand exec_prefix.
10498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10499
10500 DEFS=-DHAVE_CONFIG_H
10501
10502 ac_libobjs=
10503 ac_ltlibobjs=
10504 U=
10505 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10506 # 1. Remove the extension, and $U if already installed.
10507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10508 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10510 # will be set to the directory where LIBOBJS objects are built.
10511 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10512 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10513 done
10514 LIBOBJS=$ac_libobjs
10515
10516 LTLIBOBJS=$ac_ltlibobjs
10517
10518
10519
10520 : "${CONFIG_STATUS=./config.status}"
10521 ac_write_fail=0
10522 ac_clean_files_save=$ac_clean_files
10523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10525 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10526 as_write_fail=0
10527 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10528 #! $SHELL
10529 # Generated by $as_me.
10530 # Run this file to recreate the current configuration.
10531 # Compiler output produced by configure, useful for debugging
10532 # configure, is in config.log if it exists.
10533
10534 debug=false
10535 ac_cs_recheck=false
10536 ac_cs_silent=false
10537
10538 SHELL=\${CONFIG_SHELL-$SHELL}
10539 export SHELL
10540 _ASEOF
10541 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10542 ## -------------------- ##
10543 ## M4sh Initialization. ##
10544 ## -------------------- ##
10545
10546 # Be more Bourne compatible
10547 DUALCASE=1; export DUALCASE # for MKS sh
10548 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10549 emulate sh
10550 NULLCMD=:
10551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10552 # is contrary to our usage. Disable this feature.
10553 alias -g '${1+"$@"}'='"$@"'
10554 setopt NO_GLOB_SUBST
10555 else
10556 case `(set -o) 2>/dev/null` in #(
10557 *posix*) :
10558 set -o posix ;; #(
10559 *) :
10560 ;;
10561 esac
10562 fi
10563
10564
10565 as_nl='
10566 '
10567 export as_nl
10568 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10569 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10572 # Prefer a ksh shell builtin over an external printf program on Solaris,
10573 # but without wasting forks for bash or zsh.
10574 if test -z "$BASH_VERSION$ZSH_VERSION" \
10575 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10576 as_echo='print -r --'
10577 as_echo_n='print -rn --'
10578 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10579 as_echo='printf %s\n'
10580 as_echo_n='printf %s'
10581 else
10582 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10583 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10584 as_echo_n='/usr/ucb/echo -n'
10585 else
10586 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10587 as_echo_n_body='eval
10588 arg=$1;
10589 case $arg in #(
10590 *"$as_nl"*)
10591 expr "X$arg" : "X\\(.*\\)$as_nl";
10592 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10593 esac;
10594 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10595 '
10596 export as_echo_n_body
10597 as_echo_n='sh -c $as_echo_n_body as_echo'
10598 fi
10599 export as_echo_body
10600 as_echo='sh -c $as_echo_body as_echo'
10601 fi
10602
10603 # The user is always right.
10604 if test "${PATH_SEPARATOR+set}" != set; then
10605 PATH_SEPARATOR=:
10606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10607 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10608 PATH_SEPARATOR=';'
10609 }
10610 fi
10611
10612
10613 # IFS
10614 # We need space, tab and new line, in precisely that order. Quoting is
10615 # there to prevent editors from complaining about space-tab.
10616 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10617 # splitting by setting IFS to empty value.)
10618 IFS=" "" $as_nl"
10619
10620 # Find who we are. Look in the path if we contain no directory separator.
10621 as_myself=
10622 case $0 in #((
10623 *[\\/]* ) as_myself=$0 ;;
10624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10626 do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10630 done
10631 IFS=$as_save_IFS
10632
10633 ;;
10634 esac
10635 # We did not find ourselves, most probably we were run as `sh COMMAND'
10636 # in which case we are not to be found in the path.
10637 if test "x$as_myself" = x; then
10638 as_myself=$0
10639 fi
10640 if test ! -f "$as_myself"; then
10641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10642 exit 1
10643 fi
10644
10645 # Unset variables that we do not need and which cause bugs (e.g. in
10646 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10647 # suppresses any "Segmentation fault" message there. '((' could
10648 # trigger a bug in pdksh 5.2.14.
10649 for as_var in BASH_ENV ENV MAIL MAILPATH
10650 do eval test x\${$as_var+set} = xset \
10651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10652 done
10653 PS1='$ '
10654 PS2='> '
10655 PS4='+ '
10656
10657 # NLS nuisances.
10658 LC_ALL=C
10659 export LC_ALL
10660 LANGUAGE=C
10661 export LANGUAGE
10662
10663 # CDPATH.
10664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10665
10666
10667 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10668 # ----------------------------------------
10669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10671 # script with STATUS, using 1 if that was 0.
10672 as_fn_error ()
10673 {
10674 as_status=$1; test $as_status -eq 0 && as_status=1
10675 if test "$4"; then
10676 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10678 fi
10679 $as_echo "$as_me: error: $2" >&2
10680 as_fn_exit $as_status
10681 } # as_fn_error
10682
10683
10684 # as_fn_set_status STATUS
10685 # -----------------------
10686 # Set $? to STATUS, without forking.
10687 as_fn_set_status ()
10688 {
10689 return $1
10690 } # as_fn_set_status
10691
10692 # as_fn_exit STATUS
10693 # -----------------
10694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10695 as_fn_exit ()
10696 {
10697 set +e
10698 as_fn_set_status $1
10699 exit $1
10700 } # as_fn_exit
10701
10702 # as_fn_unset VAR
10703 # ---------------
10704 # Portably unset VAR.
10705 as_fn_unset ()
10706 {
10707 { eval $1=; unset $1;}
10708 }
10709 as_unset=as_fn_unset
10710 # as_fn_append VAR VALUE
10711 # ----------------------
10712 # Append the text in VALUE to the end of the definition contained in VAR. Take
10713 # advantage of any shell optimizations that allow amortized linear growth over
10714 # repeated appends, instead of the typical quadratic growth present in naive
10715 # implementations.
10716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10717 eval 'as_fn_append ()
10718 {
10719 eval $1+=\$2
10720 }'
10721 else
10722 as_fn_append ()
10723 {
10724 eval $1=\$$1\$2
10725 }
10726 fi # as_fn_append
10727
10728 # as_fn_arith ARG...
10729 # ------------------
10730 # Perform arithmetic evaluation on the ARGs, and store the result in the
10731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10732 # must be portable across $(()) and expr.
10733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10734 eval 'as_fn_arith ()
10735 {
10736 as_val=$(( $* ))
10737 }'
10738 else
10739 as_fn_arith ()
10740 {
10741 as_val=`expr "$@" || test $? -eq 1`
10742 }
10743 fi # as_fn_arith
10744
10745
10746 if expr a : '\(a\)' >/dev/null 2>&1 &&
10747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10748 as_expr=expr
10749 else
10750 as_expr=false
10751 fi
10752
10753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10754 as_basename=basename
10755 else
10756 as_basename=false
10757 fi
10758
10759 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10760 as_dirname=dirname
10761 else
10762 as_dirname=false
10763 fi
10764
10765 as_me=`$as_basename -- "$0" ||
10766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10767 X"$0" : 'X\(//\)$' \| \
10768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10769 $as_echo X/"$0" |
10770 sed '/^.*\/\([^/][^/]*\)\/*$/{
10771 s//\1/
10772 q
10773 }
10774 /^X\/\(\/\/\)$/{
10775 s//\1/
10776 q
10777 }
10778 /^X\/\(\/\).*/{
10779 s//\1/
10780 q
10781 }
10782 s/.*/./; q'`
10783
10784 # Avoid depending upon Character Ranges.
10785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10788 as_cr_digits='0123456789'
10789 as_cr_alnum=$as_cr_Letters$as_cr_digits
10790
10791 ECHO_C= ECHO_N= ECHO_T=
10792 case `echo -n x` in #(((((
10793 -n*)
10794 case `echo 'xy\c'` in
10795 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10796 xy) ECHO_C='\c';;
10797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10798 ECHO_T=' ';;
10799 esac;;
10800 *)
10801 ECHO_N='-n';;
10802 esac
10803
10804 rm -f conf$$ conf$$.exe conf$$.file
10805 if test -d conf$$.dir; then
10806 rm -f conf$$.dir/conf$$.file
10807 else
10808 rm -f conf$$.dir
10809 mkdir conf$$.dir 2>/dev/null
10810 fi
10811 if (echo >conf$$.file) 2>/dev/null; then
10812 if ln -s conf$$.file conf$$ 2>/dev/null; then
10813 as_ln_s='ln -s'
10814 # ... but there are two gotchas:
10815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10817 # In both cases, we have to default to `cp -pR'.
10818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10819 as_ln_s='cp -pR'
10820 elif ln conf$$.file conf$$ 2>/dev/null; then
10821 as_ln_s=ln
10822 else
10823 as_ln_s='cp -pR'
10824 fi
10825 else
10826 as_ln_s='cp -pR'
10827 fi
10828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10829 rmdir conf$$.dir 2>/dev/null
10830
10831
10832 # as_fn_mkdir_p
10833 # -------------
10834 # Create "$as_dir" as a directory, including parents if necessary.
10835 as_fn_mkdir_p ()
10836 {
10837
10838 case $as_dir in #(
10839 -*) as_dir=./$as_dir;;
10840 esac
10841 test -d "$as_dir" || eval $as_mkdir_p || {
10842 as_dirs=
10843 while :; do
10844 case $as_dir in #(
10845 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10846 *) as_qdir=$as_dir;;
10847 esac
10848 as_dirs="'$as_qdir' $as_dirs"
10849 as_dir=`$as_dirname -- "$as_dir" ||
10850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10851 X"$as_dir" : 'X\(//\)[^/]' \| \
10852 X"$as_dir" : 'X\(//\)$' \| \
10853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10854 $as_echo X"$as_dir" |
10855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10856 s//\1/
10857 q
10858 }
10859 /^X\(\/\/\)[^/].*/{
10860 s//\1/
10861 q
10862 }
10863 /^X\(\/\/\)$/{
10864 s//\1/
10865 q
10866 }
10867 /^X\(\/\).*/{
10868 s//\1/
10869 q
10870 }
10871 s/.*/./; q'`
10872 test -d "$as_dir" && break
10873 done
10874 test -z "$as_dirs" || eval "mkdir $as_dirs"
10875 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10876
10877
10878 } # as_fn_mkdir_p
10879 if mkdir -p . 2>/dev/null; then
10880 as_mkdir_p='mkdir -p "$as_dir"'
10881 else
10882 test -d ./-p && rmdir ./-p
10883 as_mkdir_p=false
10884 fi
10885
10886
10887 # as_fn_executable_p FILE
10888 # -----------------------
10889 # Test if FILE is an executable regular file.
10890 as_fn_executable_p ()
10891 {
10892 test -f "$1" && test -x "$1"
10893 } # as_fn_executable_p
10894 as_test_x='test -x'
10895 as_executable_p=as_fn_executable_p
10896
10897 # Sed expression to map a string onto a valid CPP name.
10898 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10899
10900 # Sed expression to map a string onto a valid variable name.
10901 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10902
10903
10904 exec 6>&1
10905 ## ----------------------------------- ##
10906 ## Main body of $CONFIG_STATUS script. ##
10907 ## ----------------------------------- ##
10908 _ASEOF
10909 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10910
10911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10912 # Save the log message, to keep $0 and so on meaningful, and to
10913 # report actual input values of CONFIG_FILES etc. instead of their
10914 # values after options handling.
10915 ac_log="
10916 This file was extended by LLVM $as_me 4.0.0svn, which was
10917 generated by GNU Autoconf 2.69. Invocation command line was
10918
10919 CONFIG_FILES = $CONFIG_FILES
10920 CONFIG_HEADERS = $CONFIG_HEADERS
10921 CONFIG_LINKS = $CONFIG_LINKS
10922 CONFIG_COMMANDS = $CONFIG_COMMANDS
10923 $ $0 $@
10924
10925 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10926 "
10927
10928 _ACEOF
10929
10930 case $ac_config_files in *"
10931 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10932 esac
10933
10934 case $ac_config_headers in *"
10935 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10936 esac
10937
10938
10939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10940 # Files that config.status was made for.
10941 config_files="$ac_config_files"
10942 config_headers="$ac_config_headers"
10943
10944 _ACEOF
10945
10946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10947 ac_cs_usage="\
10948 \`$as_me' instantiates files and other configuration actions
10949 from templates according to the current configuration. Unless the files
10950 and actions are specified as TAGs, all are instantiated by default.
10951
10952 Usage: $0 [OPTION]... [TAG]...
10953
10954 -h, --help print this help, then exit
10955 -V, --version print version number and configuration settings, then exit
10956 --config print configuration, then exit
10957 -q, --quiet, --silent
10958 do not print progress messages
10959 -d, --debug don't remove temporary files
10960 --recheck update $as_me by reconfiguring in the same conditions
10961 --file=FILE[:TEMPLATE]
10962 instantiate the configuration file FILE
10963 --header=FILE[:TEMPLATE]
10964 instantiate the configuration header FILE
10965
10966 Configuration files:
10967 $config_files
10968
10969 Configuration headers:
10970 $config_headers
10971
10972 Report bugs to <http://llvm.org/bugs/>."
10973
10974 _ACEOF
10975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10976 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10977 ac_cs_version="\\
10978 LLVM config.status 4.0.0svn
10979 configured by $0, generated by GNU Autoconf 2.69,
10980 with options \\"\$ac_cs_config\\"
10981
10982 Copyright (C) 2012 Free Software Foundation, Inc.
10983 This config.status script is free software; the Free Software Foundation
10984 gives unlimited permission to copy, distribute and modify it."
10985
10986 ac_pwd='$ac_pwd'
10987 srcdir='$srcdir'
10988 INSTALL='$INSTALL'
10989 test -n "\$AWK" || AWK=awk
10990 _ACEOF
10991
10992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10993 # The default lists apply if the user does not specify any file.
10994 ac_need_defaults=:
10995 while test $# != 0
10996 do
10997 case $1 in
10998 --*=?*)
10999 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11000 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11001 ac_shift=:
11002 ;;
11003 --*=)
11004 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11005 ac_optarg=
11006 ac_shift=:
11007 ;;
11008 *)
11009 ac_option=$1
11010 ac_optarg=$2
11011 ac_shift=shift
11012 ;;
11013 esac
11014
11015 case $ac_option in
11016 # Handling of the options.
11017 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11018 ac_cs_recheck=: ;;
11019 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11020 $as_echo "$ac_cs_version"; exit ;;
11021 --config | --confi | --conf | --con | --co | --c )
11022 $as_echo "$ac_cs_config"; exit ;;
11023 --debug | --debu | --deb | --de | --d | -d )
11024 debug=: ;;
11025 --file | --fil | --fi | --f )
11026 $ac_shift
11027 case $ac_optarg in
11028 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11029 '') as_fn_error $? "missing file argument" ;;
11030 esac
11031 as_fn_append CONFIG_FILES " '$ac_optarg'"
11032 ac_need_defaults=false;;
11033 --header | --heade | --head | --hea )
11034 $ac_shift
11035 case $ac_optarg in
11036 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11037 esac
11038 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11039 ac_need_defaults=false;;
11040 --he | --h)
11041 # Conflict between --help and --header
11042 as_fn_error $? "ambiguous option: \`$1'
11043 Try \`$0 --help' for more information.";;
11044 --help | --hel | -h )
11045 $as_echo "$ac_cs_usage"; exit ;;
11046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11047 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11048 ac_cs_silent=: ;;
11049
11050 # This is an error.
11051 -*) as_fn_error $? "unrecognized option: \`$1'
11052 Try \`$0 --help' for more information." ;;
11053
11054 *) as_fn_append ac_config_targets " $1"
11055 ac_need_defaults=false ;;
11056
11057 esac
11058 shift
11059 done
11060
11061 ac_configure_extra_args=
11062
11063 if $ac_cs_silent; then
11064 exec 6>/dev/null
11065 ac_configure_extra_args="$ac_configure_extra_args --silent"
11066 fi
11067
11068 _ACEOF
11069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11070 if \$ac_cs_recheck; then
11071 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11072 shift
11073 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11074 CONFIG_SHELL='$SHELL'
11075 export CONFIG_SHELL
11076 exec "\$@"
11077 fi
11078
11079 _ACEOF
11080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11081 exec 5>>config.log
11082 {
11083 echo
11084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11085 ## Running $as_me. ##
11086 _ASBOX
11087 $as_echo "$ac_log"
11088 } >&5
11089
11090 _ACEOF
11091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11092 _ACEOF
11093
11094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11095
11096 # Handling of arguments.
11097 for ac_config_target in $ac_config_targets
11098 do
11099 case $ac_config_target in
11100 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
11101 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
11102 "include/llvm/Config/abi-breaking.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/abi-breaking.h" ;;
11103 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
11104 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
11105 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
11106 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
11107 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
11108 "include/clang/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/clang/Config/config.h" ;;
11109
11110 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11111 esac
11112 done
11113
11114
11115 # If the user did not use the arguments to specify the items to instantiate,
11116 # then the envvar interface is used. Set only those that are not.
11117 # We use the long form for the default assignment because of an extremely
11118 # bizarre bug on SunOS 4.1.3.
11119 if $ac_need_defaults; then
11120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11122 fi
11123
11124 # Have a temporary directory for convenience. Make it in the build tree
11125 # simply because there is no reason against having it here, and in addition,
11126 # creating and moving files from /tmp can sometimes cause problems.
11127 # Hook for its removal unless debugging.
11128 # Note that there is a small window in which the directory will not be cleaned:
11129 # after its creation but before its name has been assigned to `$tmp'.
11130 $debug ||
11131 {
11132 tmp= ac_tmp=
11133 trap 'exit_status=$?
11134 : "${ac_tmp:=$tmp}"
11135 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11136 ' 0
11137 trap 'as_fn_exit 1' 1 2 13 15
11138 }
11139 # Create a (secure) tmp directory for tmp files.
11140
11141 {
11142 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11143 test -d "$tmp"
11144 } ||
11145 {
11146 tmp=./conf$$-$RANDOM
11147 (umask 077 && mkdir "$tmp")
11148 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11149 ac_tmp=$tmp
11150
11151 # Set up the scripts for CONFIG_FILES section.
11152 # No need to generate them if there are no CONFIG_FILES.
11153 # This happens for instance with `./config.status config.h'.
11154 if test -n "$CONFIG_FILES"; then
11155
11156
11157 ac_cr=`echo X | tr X '\015'`
11158 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11159 # But we know of no other shell where ac_cr would be empty at this
11160 # point, so we can use a bashism as a fallback.
11161 if test "x$ac_cr" = x; then
11162 eval ac_cr=\$\'\\r\'
11163 fi
11164 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11165 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11166 ac_cs_awk_cr='\\r'
11167 else
11168 ac_cs_awk_cr=$ac_cr
11169 fi
11170
11171 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11172 _ACEOF
11173
11174
11175 {
11176 echo "cat >conf$$subs.awk <<_ACEOF" &&
11177 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11178 echo "_ACEOF"
11179 } >conf$$subs.sh ||
11180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11181 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11182 ac_delim='%!_!# '
11183 for ac_last_try in false false false false false :; do
11184 . ./conf$$subs.sh ||
11185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11186
11187 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11188 if test $ac_delim_n = $ac_delim_num; then
11189 break
11190 elif $ac_last_try; then
11191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11192 else
11193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11194 fi
11195 done
11196 rm -f conf$$subs.sh
11197
11198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11199 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11200 _ACEOF
11201 sed -n '
11202 h
11203 s/^/S["/; s/!.*/"]=/
11204 p
11205 g
11206 s/^[^!]*!//
11207 :repl
11208 t repl
11209 s/'"$ac_delim"'$//
11210 t delim
11211 :nl
11212 h
11213 s/\(.\{148\}\)..*/\1/
11214 t more1
11215 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11216 p
11217 n
11218 b repl
11219 :more1
11220 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11221 p
11222 g
11223 s/.\{148\}//
11224 t nl
11225 :delim
11226 h
11227 s/\(.\{148\}\)..*/\1/
11228 t more2
11229 s/["\\]/\\&/g; s/^/"/; s/$/"/
11230 p
11231 b
11232 :more2
11233 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11234 p
11235 g
11236 s/.\{148\}//
11237 t delim
11238 ' <conf$$subs.awk | sed '
11239 /^[^""]/{
11240 N
11241 s/\n//
11242 }
11243 ' >>$CONFIG_STATUS || ac_write_fail=1
11244 rm -f conf$$subs.awk
11245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11246 _ACAWK
11247 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11248 for (key in S) S_is_set[key] = 1
11249 FS = ""
11250
11251 }
11252 {
11253 line = $ 0
11254 nfields = split(line, field, "@")
11255 substed = 0
11256 len = length(field[1])
11257 for (i = 2; i < nfields; i++) {
11258 key = field[i]
11259 keylen = length(key)
11260 if (S_is_set[key]) {
11261 value = S[key]
11262 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11263 len += length(value) + length(field[++i])
11264 substed = 1
11265 } else
11266 len += 1 + keylen
11267 }
11268
11269 print line
11270 }
11271
11272 _ACAWK
11273 _ACEOF
11274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11275 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11276 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11277 else
11278 cat
11279 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11280 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11281 _ACEOF
11282
11283 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11284 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11285 # trailing colons and then remove the whole line if VPATH becomes empty
11286 # (actually we leave an empty line to preserve line numbers).
11287 if test "x$srcdir" = x.; then
11288 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11289 h
11290 s///
11291 s/^/:/
11292 s/[ ]*$/:/
11293 s/:\$(srcdir):/:/g
11294 s/:\${srcdir}:/:/g
11295 s/:@srcdir@:/:/g
11296 s/^:*//
11297 s/:*$//
11298 x
11299 s/\(=[ ]*\).*/\1/
11300 G
11301 s/\n//
11302 s/^[^=]*=[ ]*$//
11303 }'
11304 fi
11305
11306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11307 fi # test -n "$CONFIG_FILES"
11308
11309 # Set up the scripts for CONFIG_HEADERS section.
11310 # No need to generate them if there are no CONFIG_HEADERS.
11311 # This happens for instance with `./config.status Makefile'.
11312 if test -n "$CONFIG_HEADERS"; then
11313 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11314 BEGIN {
11315 _ACEOF
11316
11317 # Transform confdefs.h into an awk script `defines.awk', embedded as
11318 # here-document in config.status, that substitutes the proper values into
11319 # config.h.in to produce config.h.
11320
11321 # Create a delimiter string that does not exist in confdefs.h, to ease
11322 # handling of long lines.
11323 ac_delim='%!_!# '
11324 for ac_last_try in false false :; do
11325 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11326 if test -z "$ac_tt"; then
11327 break
11328 elif $ac_last_try; then
11329 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11330 else
11331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11332 fi
11333 done
11334
11335 # For the awk script, D is an array of macro values keyed by name,
11336 # likewise P contains macro parameters if any. Preserve backslash
11337 # newline sequences.
11338
11339 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11340 sed -n '
11341 s/.\{148\}/&'"$ac_delim"'/g
11342 t rset
11343 :rset
11344 s/^[ ]*#[ ]*define[ ][ ]*/ /
11345 t def
11346 d
11347 :def
11348 s/\\$//
11349 t bsnl
11350 s/["\\]/\\&/g
11351 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11352 D["\1"]=" \3"/p
11353 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11354 d
11355 :bsnl
11356 s/["\\]/\\&/g
11357 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11358 D["\1"]=" \3\\\\\\n"\\/p
11359 t cont
11360 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11361 t cont
11362 d
11363 :cont
11364 n
11365 s/.\{148\}/&'"$ac_delim"'/g
11366 t clear
11367 :clear
11368 s/\\$//
11369 t bsnlc
11370 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11371 d
11372 :bsnlc
11373 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11374 b cont
11375 ' <confdefs.h | sed '
11376 s/'"$ac_delim"'/"\\\
11377 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11378
11379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11380 for (key in D) D_is_set[key] = 1
11381 FS = ""
11382 }
11383 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11384 line = \$ 0
11385 split(line, arg, " ")
11386 if (arg[1] == "#") {
11387 defundef = arg[2]
11388 mac1 = arg[3]
11389 } else {
11390 defundef = substr(arg[1], 2)
11391 mac1 = arg[2]
11392 }
11393 split(mac1, mac2, "(") #)
11394 macro = mac2[1]
11395 prefix = substr(line, 1, index(line, defundef) - 1)
11396 if (D_is_set[macro]) {
11397 # Preserve the white space surrounding the "#".
11398 print prefix "define", macro P[macro] D[macro]
11399 next
11400 } else {
11401 # Replace #undef with comments. This is necessary, for example,
11402 # in the case of _POSIX_SOURCE, which is predefined and required
11403 # on some systems where configure will not decide to define it.
11404 if (defundef == "undef") {
11405 print "/*", prefix defundef, macro, "*/"
11406 next
11407 }
11408 }
11409 }
11410 { print }
11411 _ACAWK
11412 _ACEOF
11413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11414 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11415 fi # test -n "$CONFIG_HEADERS"
11416
11417
11418 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11419 shift
11420 for ac_tag
11421 do
11422 case $ac_tag in
11423 :[FHLC]) ac_mode=$ac_tag; continue;;
11424 esac
11425 case $ac_mode$ac_tag in
11426 :[FHL]*:*);;
11427 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11428 :[FH]-) ac_tag=-:-;;
11429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11430 esac
11431 ac_save_IFS=$IFS
11432 IFS=:
11433 set x $ac_tag
11434 IFS=$ac_save_IFS
11435 shift
11436 ac_file=$1
11437 shift
11438
11439 case $ac_mode in
11440 :L) ac_source=$1;;
11441 :[FH])
11442 ac_file_inputs=
11443 for ac_f
11444 do
11445 case $ac_f in
11446 -) ac_f="$ac_tmp/stdin";;
11447 *) # Look for the file first in the build tree, then in the source tree
11448 # (if the path is not absolute). The absolute path cannot be DOS-style,
11449 # because $ac_f cannot contain `:'.
11450 test -f "$ac_f" ||
11451 case $ac_f in
11452 [\\/$]*) false;;
11453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11454 esac ||
11455 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11456 esac
11457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11458 as_fn_append ac_file_inputs " '$ac_f'"
11459 done
11460
11461 # Let's still pretend it is `configure' which instantiates (i.e., don't
11462 # use $as_me), people would be surprised to read:
11463 # /* config.h. Generated by config.status. */
11464 configure_input='Generated from '`
11465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11466 `' by configure.'
11467 if test x"$ac_file" != x-; then
11468 configure_input="$ac_file. $configure_input"
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11470 $as_echo "$as_me: creating $ac_file" >&6;}
11471 fi
11472 # Neutralize special characters interpreted by sed in replacement strings.
11473 case $configure_input in #(
11474 *\&* | *\|* | *\\* )
11475 ac_sed_conf_input=`$as_echo "$configure_input" |
11476 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11477 *) ac_sed_conf_input=$configure_input;;
11478 esac
11479
11480 case $ac_tag in
11481 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11483 esac
11484 ;;
11485 esac
11486
11487 ac_dir=`$as_dirname -- "$ac_file" ||
11488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11489 X"$ac_file" : 'X\(//\)[^/]' \| \
11490 X"$ac_file" : 'X\(//\)$' \| \
11491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11492 $as_echo X"$ac_file" |
11493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11494 s//\1/
11495 q
11496 }
11497 /^X\(\/\/\)[^/].*/{
11498 s//\1/
11499 q
11500 }
11501 /^X\(\/\/\)$/{
11502 s//\1/
11503 q
11504 }
11505 /^X\(\/\).*/{
11506 s//\1/
11507 q
11508 }
11509 s/.*/./; q'`
11510 as_dir="$ac_dir"; as_fn_mkdir_p
11511 ac_builddir=.
11512
11513 case "$ac_dir" in
11514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11515 *)
11516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11517 # A ".." for each directory in $ac_dir_suffix.
11518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11519 case $ac_top_builddir_sub in
11520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11522 esac ;;
11523 esac
11524 ac_abs_top_builddir=$ac_pwd
11525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11526 # for backward compatibility:
11527 ac_top_builddir=$ac_top_build_prefix
11528
11529 case $srcdir in
11530 .) # We are building in place.
11531 ac_srcdir=.
11532 ac_top_srcdir=$ac_top_builddir_sub
11533 ac_abs_top_srcdir=$ac_pwd ;;
11534 [\\/]* | ?:[\\/]* ) # Absolute name.
11535 ac_srcdir=$srcdir$ac_dir_suffix;
11536 ac_top_srcdir=$srcdir
11537 ac_abs_top_srcdir=$srcdir ;;
11538 *) # Relative name.
11539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11540 ac_top_srcdir=$ac_top_build_prefix$srcdir
11541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11542 esac
11543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11544
11545
11546 case $ac_mode in
11547 :F)
11548 #
11549 # CONFIG_FILE
11550 #
11551
11552 case $INSTALL in
11553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11555 esac
11556 _ACEOF
11557
11558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11559 # If the template does not know about datarootdir, expand it.
11560 # FIXME: This hack should be removed a few years after 2.60.
11561 ac_datarootdir_hack=; ac_datarootdir_seen=
11562 ac_sed_dataroot='
11563 /datarootdir/ {
11564 p
11565 q
11566 }
11567 /@datadir@/p
11568 /@docdir@/p
11569 /@infodir@/p
11570 /@localedir@/p
11571 /@mandir@/p'
11572 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11573 *datarootdir*) ac_datarootdir_seen=yes;;
11574 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11576 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11577 _ACEOF
11578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11579 ac_datarootdir_hack='
11580 s&@datadir@&$datadir&g
11581 s&@docdir@&$docdir&g
11582 s&@infodir@&$infodir&g
11583 s&@localedir@&$localedir&g
11584 s&@mandir@&$mandir&g
11585 s&\\\${datarootdir}&$datarootdir&g' ;;
11586 esac
11587 _ACEOF
11588
11589 # Neutralize VPATH when `$srcdir' = `.'.
11590 # Shell code in configure.ac might set extrasub.
11591 # FIXME: do we really want to maintain this feature?
11592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11593 ac_sed_extra="$ac_vpsub
11594 $extrasub
11595 _ACEOF
11596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11597 :t
11598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11599 s|@configure_input@|$ac_sed_conf_input|;t t
11600 s&@top_builddir@&$ac_top_builddir_sub&;t t
11601 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11602 s&@srcdir@&$ac_srcdir&;t t
11603 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11604 s&@top_srcdir@&$ac_top_srcdir&;t t
11605 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11606 s&@builddir@&$ac_builddir&;t t
11607 s&@abs_builddir@&$ac_abs_builddir&;t t
11608 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11609 s&@INSTALL@&$ac_INSTALL&;t t
11610 $ac_datarootdir_hack
11611 "
11612 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11613 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11614
11615 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11616 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11617 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11618 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11620 which seems to be undefined. Please make sure it is defined" >&5
11621 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11622 which seems to be undefined. Please make sure it is defined" >&2;}
11623
11624 rm -f "$ac_tmp/stdin"
11625 case $ac_file in
11626 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11627 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11628 esac \
11629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11630 ;;
11631 :H)
11632 #
11633 # CONFIG_HEADER
11634 #
11635 if test x"$ac_file" != x-; then
11636 {
11637 $as_echo "/* $configure_input */" \
11638 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11639 } >"$ac_tmp/config.h" \
11640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11641 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11643 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11644 else
11645 rm -f "$ac_file"
11646 mv "$ac_tmp/config.h" "$ac_file" \
11647 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11648 fi
11649 else
11650 $as_echo "/* $configure_input */" \
11651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11652 || as_fn_error $? "could not create -" "$LINENO" 5
11653 fi
11654 ;;
11655
11656
11657 esac
11658
11659 done # for ac_tag
11660
11661
11662 as_fn_exit 0
11663 _ACEOF
11664 ac_clean_files=$ac_clean_files_save
11665
11666 test $ac_write_fail = 0 ||
11667 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11668
11669
11670 # configure is writing to config.log, and then calls config.status.
11671 # config.status does its own redirection, appending to config.log.
11672 # Unfortunately, on DOS this fails, as config.log is still kept open
11673 # by configure, so config.status won't be able to write to it; its
11674 # output is simply discarded. So we exec the FD to /dev/null,
11675 # effectively closing config.log, so it can be properly (re)opened and
11676 # appended to by config.status. When coming back to configure, we
11677 # need to make the FD available again.
11678 if test "$no_create" != yes; then
11679 ac_cs_success=:
11680 ac_config_status_args=
11681 test "$silent" = yes &&
11682 ac_config_status_args="$ac_config_status_args --quiet"
11683 exec 5>/dev/null
11684 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11685 exec 5>>config.log
11686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11687 # would make configure fail if this is the last instruction.
11688 $ac_cs_success || as_fn_exit 1
11689 fi
11690
11691 #
11692 # CONFIG_SUBDIRS section.
11693 #
11694 if test "$no_recursion" != yes; then
11695
11696 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11697 # so they do not pile up.
11698 ac_sub_configure_args=
11699 ac_prev=
11700 eval "set x $ac_configure_args"
11701 shift
11702 for ac_arg
11703 do
11704 if test -n "$ac_prev"; then
11705 ac_prev=
11706 continue
11707 fi
11708 case $ac_arg in
11709 -cache-file | --cache-file | --cache-fil | --cache-fi \
11710 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11711 ac_prev=cache_file ;;
11712 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11713 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11714 | --c=*)
11715 ;;
11716 --config-cache | -C)
11717 ;;
11718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11719 ac_prev=srcdir ;;
11720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11721 ;;
11722 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11723 ac_prev=prefix ;;
11724 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11725 ;;
11726 --disable-option-checking)
11727 ;;
11728 *)
11729 case $ac_arg in
11730 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11731 esac
11732 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
11733 esac
11734 done
11735
11736 # Always prepend --prefix to ensure using the same prefix
11737 # in subdir configurations.
11738 ac_arg="--prefix=$prefix"
11739 case $ac_arg in
11740 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11741 esac
11742 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11743
11744 # Pass --silent
11745 if test "$silent" = yes; then
11746 ac_sub_configure_args="--silent $ac_sub_configure_args"
11747 fi
11748
11749 # Always prepend --disable-option-checking to silence warnings, since
11750 # different subdirs can have different --enable and --with options.
11751 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11752
11753 ac_popdir=`pwd`
11754 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11755
11756 # Do not complain, so a configure script can configure whichever
11757 # parts of a large source tree are present.
11758 test -d "$srcdir/$ac_dir" || continue
11759
11760 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11762 $as_echo "$ac_msg" >&6
11763 as_dir="$ac_dir"; as_fn_mkdir_p
11764 ac_builddir=.
11765
11766 case "$ac_dir" in
11767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11768 *)
11769 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11770 # A ".." for each directory in $ac_dir_suffix.
11771 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11772 case $ac_top_builddir_sub in
11773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11775 esac ;;
11776 esac
11777 ac_abs_top_builddir=$ac_pwd
11778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11779 # for backward compatibility:
11780 ac_top_builddir=$ac_top_build_prefix
11781
11782 case $srcdir in
11783 .) # We are building in place.
11784 ac_srcdir=.
11785 ac_top_srcdir=$ac_top_builddir_sub
11786 ac_abs_top_srcdir=$ac_pwd ;;
11787 [\\/]* | ?:[\\/]* ) # Absolute name.
11788 ac_srcdir=$srcdir$ac_dir_suffix;
11789 ac_top_srcdir=$srcdir
11790 ac_abs_top_srcdir=$srcdir ;;
11791 *) # Relative name.
11792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11793 ac_top_srcdir=$ac_top_build_prefix$srcdir
11794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11795 esac
11796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11797
11798
11799 cd "$ac_dir"
11800
11801 # Check for guested configure; otherwise get Cygnus style configure.
11802 if test -f "$ac_srcdir/configure.gnu"; then
11803 ac_sub_configure=$ac_srcdir/configure.gnu
11804 elif test -f "$ac_srcdir/configure"; then
11805 ac_sub_configure=$ac_srcdir/configure
11806 elif test -f "$ac_srcdir/configure.in"; then
11807 # This should be Cygnus configure.
11808 ac_sub_configure=$ac_aux_dir/configure
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11811 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11812 ac_sub_configure=
11813 fi
11814
11815 # The recursion is here.
11816 if test -n "$ac_sub_configure"; then
11817 # Make the cache file name correct relative to the subdirectory.
11818 case $cache_file in
11819 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11820 *) # Relative name.
11821 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11822 esac
11823
11824 { $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
11825 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11826 # The eval makes quoting arguments work.
11827 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11828 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11829 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11830 fi
11831
11832 cd "$ac_popdir"
11833 done
11834 fi
11835 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11837 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11838 fi
11839
11840