blob: 186524764ac8492124a115f736d4e0f066b34c1a [file] [log] [blame]
John Criswell3ef61af2003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tom Stellarde6ba81d2014-03-03 15:22:00 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.5.0svn.
John Criswell3ef61af2003-06-30 21:59:07 +00004#
Eric Christopherafbe7522011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00006#
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +000011#
NAKAMURA Takumid40d3872014-01-01 08:27:31 +000012# Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +000016
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3eaf0b42003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3eaf0b42003-09-10 15:17:25 +000027fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3eaf0b42003-09-10 15:17:25 +000030
John Criswell3eaf0b42003-09-10 15:17:25 +000031
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3eaf0b42003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000058fi
John Criswell3eaf0b42003-09-10 15:17:25 +000059
Reid Spencer0b52e2f2006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000071case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3eaf0b42003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell3eaf0b42003-09-10 15:17:25 +000081
Reid Spencer0b52e2f2006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwinaec06332010-01-26 08:50:50 +0000107do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwinaec06332010-01-26 08:50:50 +0000110 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000113done
Torok Edwinaec06332010-01-26 08:50:50 +0000114
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000152
153
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell3eaf0b42003-09-10 15:17:25 +0000440 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell3eaf0b42003-09-10 15:17:25 +0000445 N
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell3eaf0b42003-09-10 15:17:25 +0000448 t loop
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell3eaf0b42003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell3eaf0b42003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell3eaf0b42003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell3eaf0b42003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell3eaf0b42003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000494fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3eaf0b42003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell3eaf0b42003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +0000514else
Reid Spencerf184a862004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000528else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000530fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell3eaf0b42003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000538
539
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000542
John Criswell3ef61af2003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell3ef61af2003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell3eaf0b42003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell3ef61af2003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell3ef61af2003-06-30 21:59:07 +0000560
John Criswell3ef61af2003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherafbe7522011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Tom Stellarde6ba81d2014-03-03 15:22:00 +0000564PACKAGE_VERSION='3.5.0svn'
565PACKAGE_STRING='LLVM 3.5.0svn'
Eric Christopherafbe7522011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell3ef61af2003-06-30 21:59:07 +0000567
Chandler Carruthfbdae1f2013-01-02 09:22:59 +0000568ac_unique_file="lib/IR/Module.cpp"
John Criswell3ef61af2003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell3ef61af2003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell3ef61af2003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell3ef61af2003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell3ef61af2003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell3ef61af2003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell3ef61af2003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwinaec06332010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000642LLVM_VERSION_MAJOR
643LLVM_VERSION_MINOR
Tom Stellarde6ba81d2014-03-03 15:22:00 +0000644LLVM_VERSION_PATCH
645LLVM_VERSION_SUFFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000646LLVM_COPYRIGHT
Eric Christopher58839712011-09-16 20:36:25 +0000647CC
648CFLAGS
649LDFLAGS
650CPPFLAGS
651ac_ct_CC
652EXEEXT
653OBJEXT
654CXX
655CXXFLAGS
656ac_ct_CXX
657CPP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000658subdirs
Tobias Grosserea9dca42010-10-30 00:54:26 +0000659ENABLE_POLLY
660LLVM_HAS_POLLY
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000661build
662build_cpu
663build_vendor
664build_os
665host
666host_cpu
667host_vendor
668host_os
669target
670target_cpu
671target_vendor
672target_os
673OS
674HOST_OS
675TARGET_OS
676LINKALL
677NOLINKALL
678LLVM_ON_UNIX
679LLVM_ON_WIN32
680ARCH
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000681LLVM_NATIVE_ARCH
Danil Malyshev7c5db452012-05-17 21:07:47 +0000682HOST_ARCH
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000683LLVM_CROSS_COMPILING
684BUILD_CC
685BUILD_EXEEXT
686BUILD_CXX
687CVSBUILD
Eric Christopher1094ded2011-11-11 22:51:42 +0000688ENABLE_LIBCPP
Chandler Carruthbbae5122014-03-01 03:33:08 +0000689ENABLE_CXX1Y
Eric Christopherf1bd7702013-06-25 01:12:25 +0000690ENABLE_SPLIT_DWARF
Roman Divackyf2bb66b2012-12-13 16:07:19 +0000691ENABLE_CLANG_ARCMT
Rafael Espindolae33f06c2014-03-10 16:58:35 +0000692CLANG_PLUGIN_SUPPORT
Roman Divackyf2bb66b2012-12-13 16:07:19 +0000693ENABLE_CLANG_STATIC_ANALYZER
694ENABLE_CLANG_REWRITER
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000695ENABLE_OPTIMIZED
696ENABLE_PROFILING
697DISABLE_ASSERTIONS
Eric Christopher84864012012-08-03 19:58:20 +0000698ENABLE_WERROR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000699ENABLE_EXPENSIVE_CHECKS
700EXPENSIVE_CHECKS
701DEBUG_RUNTIME
702DEBUG_SYMBOLS
Daniel Dunbar39c04622012-08-14 18:14:22 +0000703KEEP_SYMBOLS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000704JIT
705TARGET_HAS_JIT
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000706TARGETS_WITH_JIT
Rafael Espindola7ac506d2010-11-12 19:24:06 +0000707ENABLE_DOCS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000708ENABLE_DOXYGEN
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +0000709LLVM_ENABLE_THREADS
NAKAMURA Takumic6fce172010-12-29 03:59:03 +0000710ENABLE_PTHREADS
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000711LLVM_ENABLE_ZLIB
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000712ENABLE_PIC
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000713ENABLE_SHARED
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +0000714ENABLE_EMBED_STDCXX
Daniel Dunbardac18242010-05-10 20:11:56 +0000715ENABLE_TIMESTAMPS
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000716ALL_TARGETS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000717TARGETS_TO_BUILD
718LLVM_ENUM_TARGETS
719LLVM_ENUM_ASM_PRINTERS
720LLVM_ENUM_ASM_PARSERS
721LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000722OPTIMIZE_OPTION
723EXTRA_OPTIONS
Daniel Dunbar3b95df82011-06-16 22:30:41 +0000724EXTRA_LD_OPTIONS
NAKAMURA Takumi914f1922011-10-16 02:54:26 +0000725CLANG_SRC_ROOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000726BINUTILS_INCDIR
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000727ENABLE_TERMINFO
Bob Wilson3f354702011-11-28 07:59:52 +0000728INTERNAL_PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000729ifGNUmake
730LN_S
Rafael Espindolafd1355a2014-02-28 18:17:54 +0000731NM
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000732CMP
733CP
734DATE
735FIND
Eric Christopherd7ed36b2014-01-09 01:09:57 +0000736GREP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000737MKDIR
738MV
739RANLIB
740AR
741RM
742SED
743TAR
744BINPWD
745GRAPHVIZ
746DOT
747FDP
748NEATO
749TWOPI
750CIRCO
751GV
752DOTTY
Matt Arsenaultfe56cc62013-07-08 20:24:54 +0000753XDOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000754INSTALL_PROGRAM
755INSTALL_SCRIPT
756INSTALL_DATA
757BZIP2
mike-me08af302010-05-06 23:45:43 +0000758CAT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000759DOXYGEN
Daniel Dunbard1888822012-05-08 18:26:07 +0000760GROFF
Eric Christopher77560892010-12-10 01:31:51 +0000761GZIPBIN
Daniel Dunbard1888822012-05-08 18:26:07 +0000762PDFROFF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000763ZIP
764OCAMLC
765OCAMLOPT
766OCAMLDEP
767OCAMLDOC
Daniel Dunbard1888822012-05-08 18:26:07 +0000768GAS
Dan Gohmanb7edb422010-06-01 14:56:56 +0000769HAVE_LINK_VERSION_SCRIPT
Eric Christopherd7ed36b2014-01-09 01:09:57 +0000770EGREP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000771NO_VARIADIC_MACROS
772NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola42e94d12012-02-28 23:32:06 +0000773COVERED_SWITCH_DEFAULT
David Greene9ff8d472013-01-09 22:11:13 +0000774NO_MAYBE_UNINITIALIZED
775NO_UNINITIALIZED
Saleem Abdulrasoola1665742013-01-30 04:44:17 +0000776PYTHON
NAKAMURA Takumi84e85302014-02-09 16:36:42 +0000777HAVE_DLOPEN
778HAVE_TERMINFO
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000779USE_UDIS86
780USE_OPROFILE
Eli Bendersky5262ad22012-03-13 08:33:15 +0000781USE_INTEL_JITEVENTS
Eric Christopherc807c532012-08-03 19:47:19 +0000782XML2CONFIG
783LIBXML2_LIBS
784LIBXML2_INC
Benjamin Kramer00622f72013-05-03 15:55:06 +0000785CXXCPP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000786HAVE_PTHREAD
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000787HAVE_LIBZ
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000788HUGE_VAL_SANITY
789MMAP_FILE
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000790SHLIBEXT
791LLVM_PREFIX
792LLVM_BINDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000793LLVM_DATADIR
794LLVM_DOCSDIR
795LLVM_ETCDIR
796LLVM_INCLUDEDIR
797LLVM_INFODIR
798LLVM_MANDIR
799LLVM_CONFIGTIME
800BINDINGS_TO_BUILD
801ALL_BINDINGS
802OCAML_LIBDIR
803ENABLE_VISIBILITY_INLINES_HIDDEN
804RPATH
805RDYNAMIC
Jordan Rose3c837ab2012-10-01 18:40:32 +0000806program_prefix
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000807LIBOBJS
808LTLIBOBJS'
John Criswell3eaf0b42003-09-10 15:17:25 +0000809ac_subst_files=''
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000810 ac_precious_vars='build_alias
811host_alias
812target_alias
813CC
814CFLAGS
815LDFLAGS
816CPPFLAGS
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000817CXX
818CXXFLAGS
Eric Christopher58839712011-09-16 20:36:25 +0000819CCC
Benjamin Kramer00622f72013-05-03 15:55:06 +0000820CPP
821CXXCPP'
Chandler Carruthaf968ed2014-01-14 04:01:01 +0000822ac_subdirs_all='projects/test-suite
John Criswellf369e772010-03-19 21:31:39 +0000823projects/llvm-test
824projects/poolalloc
825projects/llvm-poolalloc
John Criswell4d377d82010-02-25 22:57:19 +0000826projects/safecode
Tobias Grosserea9dca42010-10-30 00:54:26 +0000827tools/polly'
John Criswell3ef61af2003-06-30 21:59:07 +0000828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000854# (The list follows the same order as the GNU Coding Standards.)
John Criswell3ef61af2003-06-30 21:59:07 +0000855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
John Criswell3ef61af2003-06-30 21:59:07 +0000860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
John Criswell3ef61af2003-06-30 21:59:07 +0000863includedir='${prefix}/include'
864oldincludedir='/usr/include'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
John Criswell3ef61af2003-06-30 21:59:07 +0000874
875ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000876ac_dashdash=
John Criswell3ef61af2003-06-30 21:59:07 +0000877for ac_option
878do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000881 eval $ac_prev=\$ac_option
John Criswell3ef61af2003-06-30 21:59:07 +0000882 ac_prev=
883 continue
884 fi
885
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000886 case $ac_option in
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *) ac_optarg=yes ;;
889 esac
John Criswell3ef61af2003-06-30 21:59:07 +0000890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000917 -datadir | --datadir | --datadi | --datad)
John Criswell3ef61af2003-06-30 21:59:07 +0000918 ac_prev=datadir ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell3ef61af2003-06-30 21:59:07 +0000920 datadir=$ac_optarg ;;
921
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
John Criswell3ef61af2003-06-30 21:59:07 +0000929 -disable-* | --disable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000931 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934 { (exit 1); exit 1; }; }
935 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936 eval enable_$ac_feature=no ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000947
948 -enable-* | --enable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000950 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000956
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
965
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
969
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
976
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
981
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
987
John Criswell3ef61af2003-06-30 21:59:07 +0000988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
994
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
999
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1004
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1011
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1016
John Criswell3ef61af2003-06-30 21:59:07 +00001017 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001018 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell3ef61af2003-06-30 21:59:07 +00001019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell3ef61af2003-06-30 21:59:07 +00001022 localstatedir=$ac_optarg ;;
1023
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1028
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1032
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1036
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1040
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1049
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1054
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1061
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1068
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1085
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1090
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1095
John Criswell3ef61af2003-06-30 21:59:07 +00001096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package| sed 's/-/_/g'`
1152 eval with_$ac_package=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001153
1154 -without-* | --without-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001156 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/-/_/g'`
1161 eval with_$ac_package=no ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001181 -*) { echo "$as_me: error: unrecognized option: $ac_option
1182Try \`$0 --help' for more information." >&2
1183 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001184 ;;
1185
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001192 eval $ac_envvar=\$ac_optarg
John Criswell3ef61af2003-06-30 21:59:07 +00001193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201 ;;
1202
1203 esac
1204done
1205
1206if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001208 { echo "$as_me: error: missing argument to $ac_option" >&2
1209 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001210fi
1211
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001212# Be sure to have absolute directory names.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
John Criswell3ef61af2003-06-30 21:59:07 +00001217do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001218 eval ac_val=\$$ac_var
John Criswell3ef61af2003-06-30 21:59:07 +00001219 case $ac_val in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell3ef61af2003-06-30 21:59:07 +00001222 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001225done
1226
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell3ef61af2003-06-30 21:59:07 +00001239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001254 { echo "$as_me: error: Working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001257 { echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001259
1260
John Criswell3ef61af2003-06-30 21:59:07 +00001261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001264 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001265 ac_confdir=`$as_dirname -- "$0" ||
1266$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$0" : 'X\(//\)[^/]' \| \
1268 X"$0" : 'X\(//\)$' \| \
1269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270echo X"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
John Criswell3ef61af2003-06-30 21:59:07 +00001288 srcdir=$ac_confdir
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001289 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell3ef61af2003-06-30 21:59:07 +00001290 srcdir=..
1291 fi
1292else
1293 ac_srcdir_defaulted=no
1294fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001295if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001299fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001304 pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
John Criswell3ef61af2003-06-30 21:59:07 +00001321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001329\`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems.
John Criswell3ef61af2003-06-30 21:59:07 +00001330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
John Criswell3ef61af2003-06-30 21:59:07 +00001349Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001351 [$ac_default_prefix]
John Criswell3ef61af2003-06-30 21:59:07 +00001352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001353 [PREFIX]
John Criswell3ef61af2003-06-30 21:59:07 +00001354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherafbe7522011-12-21 00:52:44 +00001377 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
John Criswell3ef61af2003-06-30 21:59:07 +00001382_ACEOF
1383
1384 cat <<\_ACEOF
1385
1386System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394 case $ac_init_help in
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001395 short | recursive ) echo "Configuration of LLVM 3.5.0svn:";;
John Criswell3ef61af2003-06-30 21:59:07 +00001396 esac
1397 cat <<\_ACEOF
1398
1399Optional Features:
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chandler Carruth7206eae2014-01-15 19:19:13 +00001402 --enable-polly Use polly if available (default is YES)
1403 --enable-libcpp Use libc++ if available (default is NO)
Chandler Carruth75a65452014-01-14 05:02:38 +00001404 --enable-compiler-version-checks
1405 Check the version of the host compiler (default is
1406 YES)
Chandler Carruthbbae5122014-03-01 03:33:08 +00001407 --enable-cxx1y Use c++1y if available (default is NO)
Eric Christopherf1bd7702013-06-25 01:12:25 +00001408 --enable-split-dwarf Use split-dwarf if available (default is NO)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
Rafael Espindolae33f06c2014-03-10 16:58:35 +00001410 --enable-clang-plugin-support
1411 Enable plugin support in clang (default is YES)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001412 --enable-clang-static-analyzer
1413 Enable building of clang Static Analyzer (default is
1414 YES)
1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
Nick Lewycky86679902009-06-06 06:25:09 +00001416 --enable-optimized Compile with optimizations enabled (default is NO)
1417 --enable-profiling Compile with profiling enabled (default is NO)
1418 --enable-assertions Compile with assertion checks enabled (default is
1419 YES)
Eric Christopher84864012012-08-03 19:58:20 +00001420 --enable-werror Compile with -Werror enabled (default is NO)
David Greenecbc8ddf2007-06-28 19:36:08 +00001421 --enable-expensive-checks
Nick Lewycky86679902009-06-06 06:25:09 +00001422 Compile with expensive debug checks enabled (default
1423 is NO)
1424 --enable-debug-runtime Build runtime libs with debug symbols (default is
1425 NO)
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00001426 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1427 optimization is on and YES if it's off)
Daniel Dunbar39c04622012-08-14 18:14:22 +00001428 --enable-keep-symbols Do not strip installed executables)
Reid Spencer0241e382004-11-25 04:51:04 +00001429 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola7ac506d2010-11-12 19:24:06 +00001430 --enable-docs Build documents (default is YES)
Reid Spencer0194c9a2004-11-29 04:56:35 +00001431 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencerf85fabeb2005-08-24 10:07:20 +00001432 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00001433 --enable-pthreads Use pthreads if available (default is YES)
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00001434 --enable-zlib Use zlib for compression/decompression if available
1435 (default is YES)
Reid Spencer05a1fe52006-12-16 22:07:52 +00001436 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky38525192009-02-19 06:18:56 +00001437 is YES)
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00001438 --enable-shared Build a shared library and link tools against it
1439 (default is NO)
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00001440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00001441 Win32 DLL (default is NO)
Daniel Dunbardac18242010-05-10 20:11:56 +00001442 --enable-timestamps Enable embedding timestamp information in build
1443 (default is YES)
Eric Christopher9fafe072012-09-21 23:03:29 +00001444 --enable-backtraces Enable embedding backtraces on crash (default is
1445 YES)
Daniel Dunbareb6c7082013-08-30 20:39:21 +00001446 --enable-crash-overrides
1447 Enable crash handling overrides (default is YES)
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00001448 --enable-targets Build specific host targets: all or
1449 target1,target2,... Valid targets are: host, x86,
Tim Northovere0e3aef2013-01-31 12:12:40 +00001450 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
Rafael Espindolaf6474d22013-05-22 00:35:47 +00001451 xcore, msp430, nvptx, systemz, r600, and cpp
1452 (default=all)
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00001453 --enable-experimental-targets
1454 Build experimental host targets: disable or
1455 target1,target2,... (default=disable)
Gordon Henriksene61dd672007-10-02 09:50:32 +00001456 --enable-bindings Build specific language bindings:
1457 all,auto,none,{binding-name} (default=auto)
Chandler Carruthf11f1e42013-08-12 09:49:17 +00001458 --enable-terminfo Query the terminfo database if available (default is
1459 YES)
Peter Collingbournec7d437c2014-01-31 23:46:14 +00001460 --enable-libedit Use libedit if available (default is YES)
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00001461 --enable-libffi Check for the presence of libffi (default is NO)
John Criswell3ef61af2003-06-30 21:59:07 +00001462
1463Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00001466 --with-optimize-option Select the compiler options to use for optimized
1467 builds
Duncan Sandsef8c8ec2009-05-13 13:13:18 +00001468 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbar3b95df82011-06-16 22:30:41 +00001469 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00001470 --with-ocaml-libdir Specify install location for ocaml bindings (default
1471 is stdlib)
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00001472 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruthffae4a62010-10-19 08:21:25 +00001473 --with-clang-resource-dir
1474 Relative directory from the Clang binary for
1475 resource files
Rafael Espindolad95960b2009-11-12 05:46:09 +00001476 --with-c-include-dirs Colon separated list of directories clang will
1477 search for headers
Rafael Espindolaec217f62012-02-03 00:59:30 +00001478 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop5c9e1842012-04-16 04:11:45 +00001479 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00001480 --with-binutils-include Specify path to binutils/include/ containing
1481 plugin-api.h file for gold plugin.
Eric Christopher65080cc2011-07-20 17:04:49 +00001482 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00001483 submitted (default=http://llvm.org/bugs/)
Bob Wilson3f354702011-11-28 07:59:52 +00001484 --with-internal-prefix Installation directory for internal files
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00001485 --with-python path to python
Reid Spencere5f3de32007-01-19 17:41:47 +00001486 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00001487 --with-oprofile=<prefix>
1488 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor5808c7d2012-09-28 17:35:20 +00001489 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1490
John Criswell3ef61af2003-06-30 21:59:07 +00001491
1492Some influential environment variables:
Reid Spencer0241e382004-11-25 04:51:04 +00001493 CC C compiler command
1494 CFLAGS C compiler flags
John Criswell3ef61af2003-06-30 21:59:07 +00001495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001498 you have headers in a nonstandard directory <include dir>
Reid Spencer0241e382004-11-25 04:51:04 +00001499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
Eric Christopher58839712011-09-16 20:36:25 +00001501 CPP C preprocessor
Benjamin Kramer00622f72013-05-03 15:55:06 +00001502 CXXCPP C++ preprocessor
John Criswell3ef61af2003-06-30 21:59:07 +00001503
1504Use these variables to override the choices made by `configure' or to help
1505it to find libraries and programs with nonstandard names/locations.
1506
Eric Christopherafbe7522011-12-21 00:52:44 +00001507Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00001508_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001509ac_status=$?
John Criswell3ef61af2003-06-30 21:59:07 +00001510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
John Criswell3ef61af2003-06-30 21:59:07 +00001514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001515 test -d "$ac_dir" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00001516 ac_builddir=.
1517
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001522 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +00001533
1534case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001535 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +00001536 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +00001540 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001547esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +00001549
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell3ef61af2003-06-30 21:59:07 +00001558 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell3ef61af2003-06-30 21:59:07 +00001562 done
1563fi
1564
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001565test -n "$ac_init_help" && exit $ac_status
John Criswell3ef61af2003-06-30 21:59:07 +00001566if $ac_init_version; then
1567 cat <<\_ACEOF
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001568LLVM configure 3.5.0svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001569generated by GNU Autoconf 2.60
John Criswell3ef61af2003-06-30 21:59:07 +00001570
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001571Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00001573This configure script is free software; the Free Software Foundation
1574gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +00001575
NAKAMURA Takumid40d3872014-01-01 08:27:31 +00001576Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
John Criswell3ef61af2003-06-30 21:59:07 +00001577_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001578 exit
John Criswell3ef61af2003-06-30 21:59:07 +00001579fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001580cat >config.log <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00001581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001584It was created by LLVM $as_me 3.5.0svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001585generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +00001586
1587 $ $0 $@
1588
1589_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001590exec 5>>config.log
John Criswell3ef61af2003-06-30 21:59:07 +00001591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001609/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell3ef61af2003-06-30 21:59:07 +00001610/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001621 echo "PATH: $as_dir"
1622done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001623IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00001624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell3eaf0b42003-09-10 15:17:25 +00001639# Strip out --silent because we don't want to record it for future runs.
John Criswell3ef61af2003-06-30 21:59:07 +00001640# Also quote any args containing shell meta-characters.
John Criswell3eaf0b42003-09-10 15:17:25 +00001641# Make two passes to allow for proper duplicate-argument suppression.
John Criswell3ef61af2003-06-30 21:59:07 +00001642ac_configure_args=
John Criswell3eaf0b42003-09-10 15:17:25 +00001643ac_configure_args0=
1644ac_configure_args1=
John Criswell3eaf0b42003-09-10 15:17:25 +00001645ac_must_keep_next=false
1646for ac_pass in 1 2
John Criswell3ef61af2003-06-30 21:59:07 +00001647do
John Criswell3eaf0b42003-09-10 15:17:25 +00001648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001655 *\'*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001657 esac
1658 case $ac_pass in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001660 2)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001662 if test $ac_must_keep_next = true; then
Reid Spencerf184a862004-09-19 23:53:36 +00001663 ac_must_keep_next=false # Got value, back to normal.
John Criswell3eaf0b42003-09-10 15:17:25 +00001664 else
Reid Spencerf184a862004-09-19 23:53:36 +00001665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
John Criswell3eaf0b42003-09-10 15:17:25 +00001676 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001677 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001678 ;;
1679 esac
1680 done
John Criswell3ef61af2003-06-30 21:59:07 +00001681done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell3ef61af2003-06-30 21:59:07 +00001684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log. We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell3ef61af2003-06-30 21:59:07 +00001690trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001694
John Criswell3ef61af2003-06-30 21:59:07 +00001695 cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001702(
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001713 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001714 esac ;;
1715 esac
1716 done
John Criswell3ef61af2003-06-30 21:59:07 +00001717 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
John Criswell3ef61af2003-06-30 21:59:07 +00001720 sed -n \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +00001724 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +00001726 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001727 esac |
1728 sort
1729)
John Criswell3ef61af2003-06-30 21:59:07 +00001730 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001731
1732 cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001740 eval ac_val=\$$ac_var
1741 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001743 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001744 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +00001753_ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001757 eval ac_val=\$$ac_var
1758 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001760 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001761 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001762 done | sort
1763 echo
1764 fi
1765
John Criswell3ef61af2003-06-30 21:59:07 +00001766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772 echo
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001773 cat confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
John Criswell3ef61af2003-06-30 21:59:07 +00001779 } >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell3ef61af2003-06-30 21:59:07 +00001782 exit $exit_status
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001783' 0
John Criswell3ef61af2003-06-30 21:59:07 +00001784for ac_signal in 1 2 13 15; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell3ef61af2003-06-30 21:59:07 +00001786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001790rm -f -r conftest* confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001798
John Criswell3ef61af2003-06-30 21:59:07 +00001799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001803
John Criswell3ef61af2003-06-30 21:59:07 +00001804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001808
John Criswell3ef61af2003-06-30 21:59:07 +00001809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001813
John Criswell3ef61af2003-06-30 21:59:07 +00001814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001820# Prefer explicitly selected file to automatically selected ones.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001821if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001822 set x "$CONFIG_SITE"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001823elif test "x$prefix" != xNONE; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001825else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
John Criswell3ef61af2003-06-30 21:59:07 +00001828fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001829shift
1830for ac_site_file
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001831do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838done
1839
1840if test -r "$cache_file"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001846 case $cache_file in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
John Criswell3ef61af2003-06-30 21:59:07 +00001849 esac
1850 fi
1851else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001854 >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001860for ac_var in $ac_precious_vars; do
John Criswell3ef61af2003-06-30 21:59:07 +00001861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell3ef61af2003-06-30 21:59:07 +00001865 case $ac_old_set,$ac_new_set in
1866 set,)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001869 ac_cache_corrupted=: ;;
1870 ,set)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
John Criswell3ef61af2003-06-30 21:59:07 +00001884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001895 esac
1896 fi
1897done
1898if $ac_cache_corrupted; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001904fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001929
John Criswell3ef61af2003-06-30 21:59:07 +00001930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001938LLVM_VERSION_MAJOR=3
1939LLVM_VERSION_MINOR=5
1940LLVM_VERSION_PATCH=0
1941LLVM_VERSION_SUFFIX=svn
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00001942
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001943
1944cat >>confdefs.h <<_ACEOF
1945#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001946_ACEOF
1947
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00001948
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001949cat >>confdefs.h <<_ACEOF
1950#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001951_ACEOF
1952
Tom Stellarde6ba81d2014-03-03 15:22:00 +00001953
1954cat >>confdefs.h <<_ACEOF
1955#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1956_ACEOF
1957
1958
1959
1960
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00001961
1962
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001963
NAKAMURA Takumid40d3872014-01-01 08:27:31 +00001964LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
Reid Spencer0241e382004-11-25 04:51:04 +00001965
1966
1967
1968
1969
1970
1971
John Criswell3ef61af2003-06-30 21:59:07 +00001972ac_aux_dir=
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001973for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001974 if test -f "$ac_dir/install-sh"; then
1975 ac_aux_dir=$ac_dir
1976 ac_install_sh="$ac_aux_dir/install-sh -c"
1977 break
1978 elif test -f "$ac_dir/install.sh"; then
1979 ac_aux_dir=$ac_dir
1980 ac_install_sh="$ac_aux_dir/install.sh -c"
1981 break
1982 elif test -f "$ac_dir/shtool"; then
1983 ac_aux_dir=$ac_dir
1984 ac_install_sh="$ac_aux_dir/shtool install -c"
1985 break
1986 fi
John Criswell3ef61af2003-06-30 21:59:07 +00001987done
1988if test -z "$ac_aux_dir"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1990echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1991 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001992fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001993
1994# These three variables are undocumented and unsupported,
1995# and are intended to be withdrawn in a future Autoconf release.
1996# They can cause serious problems if a builder's source tree is in a directory
1997# whose full name contains unusual characters.
1998ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1999ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2000ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2001
John Criswell3ef61af2003-06-30 21:59:07 +00002002
John Criswellc933eeb2003-07-22 19:18:09 +00002003
Reid Spencerf184a862004-09-19 23:53:36 +00002004if test ${srcdir} != "." ; then
Reid Spencer0241e382004-11-25 04:51:04 +00002005 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002006 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2007echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2008 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00002009 fi
John Criswell22107a72003-09-15 17:04:06 +00002010fi
2011
Patrik Hagglund98578472013-09-24 11:38:45 +00002012: ${CFLAGS=}
2013: ${CXXFLAGS=}
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00002014
Nick Lewyckyc5975fc2009-09-29 05:48:51 +00002015ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +00002016ac_cpp='$CPP $CPPFLAGS'
2017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002020if test -n "$ac_tool_prefix"; then
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002021 for ac_prog in clang gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002022 do
2023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002029else
Reid Spencer0241e382004-11-25 04:51:04 +00002030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002032else
2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002042 break 2
2043 fi
2044done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002045done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002046IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002047
2048fi
2049fi
Reid Spencer0241e382004-11-25 04:51:04 +00002050CC=$ac_cv_prog_CC
2051if test -n "$CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002052 { echo "$as_me:$LINENO: result: $CC" >&5
2053echo "${ECHO_T}$CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002054else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002055 { echo "$as_me:$LINENO: result: no" >&5
2056echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002057fi
2058
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002059
Reid Spencer0241e382004-11-25 04:51:04 +00002060 test -n "$CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002061 done
2062fi
Reid Spencer0241e382004-11-25 04:51:04 +00002063if test -z "$CC"; then
2064 ac_ct_CC=$CC
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002065 for ac_prog in clang gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002066do
2067 # Extract the first word of "$ac_prog", so it can be a program name with args.
2068set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002073else
Reid Spencer0241e382004-11-25 04:51:04 +00002074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002076else
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002084 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002086 break 2
2087 fi
2088done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002089done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002090IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002091
2092fi
2093fi
Reid Spencer0241e382004-11-25 04:51:04 +00002094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002098else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002099 { echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002101fi
2102
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002103
Reid Spencer0241e382004-11-25 04:51:04 +00002104 test -n "$ac_ct_CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002105done
John Criswell3ef61af2003-06-30 21:59:07 +00002106
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002107 if test "x$ac_ct_CC" = x; then
2108 CC=""
2109 else
2110 case $cross_compiling:$ac_tool_warned in
2111yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002112{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2113whose name does not start with the host triplet. If you think this
2114configuration is useful to you, please write to autoconf@gnu.org." >&5
2115echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2116whose name does not start with the host triplet. If you think this
2117configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002118ac_tool_warned=yes ;;
2119esac
2120 CC=$ac_ct_CC
2121 fi
Reid Spencer0241e382004-11-25 04:51:04 +00002122fi
2123
John Criswell3ef61af2003-06-30 21:59:07 +00002124
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002125test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&5
2127echo "$as_me: error: no acceptable C compiler found in \$PATH
2128See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00002130
John Criswell3ef61af2003-06-30 21:59:07 +00002131# Provide some information about the compiler.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002132echo "$as_me:$LINENO: checking for C compiler version" >&5
2133ac_compiler=`set X $ac_compile; echo $2`
2134{ (ac_try="$ac_compiler --version >&5"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002135case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler --version >&5") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002141 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144{ (ac_try="$ac_compiler -v >&5"
2145case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148esac
2149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler -v >&5") 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154{ (ac_try="$ac_compiler -V >&5"
2155case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158esac
2159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_compiler -V >&5") 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
John Criswell3ef61af2003-06-30 21:59:07 +00002164
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002165cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h. */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002170/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002171
John Criswell3ef61af2003-06-30 21:59:07 +00002172int
2173main ()
2174{
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002181ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell3ef61af2003-06-30 21:59:07 +00002182# Try to create an executable without -o first, disregard a.out.
2183# It will help us diagnose broken compilers, and finding out an intuition
2184# of exeext.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002185{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2187ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188#
2189# List of possible output files, starting from the most likely.
2190# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2191# only as a last resort. b.out is created by i960 compilers.
2192ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2193#
2194# The IRIX 6 linker writes into existing files which may not be
2195# executable, retaining their permissions. Remove them first so a
2196# subsequent execution test works.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002197ac_rmfiles=
2198for ac_file in $ac_files
2199do
2200 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2203 esac
2204done
2205rm -f $ac_rmfiles
2206
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002207if { (ac_try="$ac_link_default"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002208case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002213 (eval "$ac_link_default") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002214 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2218# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2219# in a Makefile. We should not override ac_cv_exeext if it was cached,
2220# so that the user can short-circuit this test for compilers unknown to
2221# Autoconf.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002222for ac_file in $ac_files
John Criswell3eaf0b42003-09-10 15:17:25 +00002223do
2224 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002225 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencerf184a862004-09-19 23:53:36 +00002227 ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002228 [ab].out )
Reid Spencerf184a862004-09-19 23:53:36 +00002229 # We found the default executable, but exeext='' is most
2230 # certainly right.
2231 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002232 *.* )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002234 then :; else
2235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236 fi
2237 # We set ac_cv_exeext here because the later test for it is not
2238 # safe: cross compilers may not add the suffix if given an `-o'
2239 # argument, so we may need to know it at that point already.
2240 # Even if this section looks crufty: it has the advantage of
2241 # actually working.
Reid Spencerf184a862004-09-19 23:53:36 +00002242 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002243 * )
Reid Spencerf184a862004-09-19 23:53:36 +00002244 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002245 esac
2246done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002247test "$ac_cv_exeext" = no && ac_cv_exeext=
2248
John Criswell3ef61af2003-06-30 21:59:07 +00002249else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002250 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002251sed 's/^/| /' conftest.$ac_ext >&5
2252
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002253{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: C compiler cannot create executables
2256See \`config.log' for more details." >&2;}
2257 { (exit 77); exit 77; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002258fi
John Criswell3ef61af2003-06-30 21:59:07 +00002259
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002260ac_exeext=$ac_cv_exeext
2261{ echo "$as_me:$LINENO: result: $ac_file" >&5
2262echo "${ECHO_T}$ac_file" >&6; }
2263
2264# Check that the compiler produces executables we can run. If not, either
2265# the compiler is broken, or we cross compile.
2266{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269# If not cross compiling, check that we can run a simple program.
2270if test "$cross_compiling" != yes; then
2271 if { ac_try='./$ac_file'
2272 { (case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_try") 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 cross_compiling=no
2282 else
2283 if test "$cross_compiling" = maybe; then
2284 cross_compiling=yes
2285 else
2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287If you meant to cross compile, use \`--host'.
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2293 fi
2294 fi
2295fi
2296{ echo "$as_me:$LINENO: result: yes" >&5
2297echo "${ECHO_T}yes" >&6; }
2298
2299rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell3ef61af2003-06-30 21:59:07 +00002300ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002301# Check that the compiler produces executables we can run. If not, either
2302# the compiler is broken, or we cross compile.
2303{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306echo "${ECHO_T}$cross_compiling" >&6; }
2307
2308{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310if { (ac_try="$ac_link"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002311case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2314esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002316 (eval "$ac_link") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002317 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322# work properly (i.e., refer to `conftest.exe'), while it won't with
2323# `rm'.
John Criswell3eaf0b42003-09-10 15:17:25 +00002324for ac_file in conftest.exe conftest conftest.*; do
2325 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002326 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencerf184a862004-09-19 23:53:36 +00002329 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002330 * ) break;;
2331 esac
2332done
2333else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002339fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002340
2341rm -f conftest$ac_cv_exeext
2342{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002344
2345rm -f conftest.$ac_ext
2346EXEEXT=$ac_cv_exeext
2347ac_exeext=$EXEEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002348{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350if test "${ac_cv_objext+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00002352else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002353 cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002358/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002359
John Criswell3ef61af2003-06-30 21:59:07 +00002360int
2361main ()
2362{
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368rm -f conftest.o conftest.obj
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002369if { (ac_try="$ac_compile"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002370case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002375 (eval "$ac_compile") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002376 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002379 for ac_file in conftest.o conftest.obj conftest.*; do
2380 test -f "$ac_file" || continue;
John Criswell3ef61af2003-06-30 21:59:07 +00002381 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384 break;;
2385 esac
2386done
2387else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002388 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002389sed 's/^/| /' conftest.$ac_ext >&5
2390
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002391{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002396fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002397
John Criswell3ef61af2003-06-30 21:59:07 +00002398rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002400{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002402OBJEXT=$ac_cv_objext
2403ac_objext=$OBJEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002404{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002408else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002409 cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h. */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002414/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002415
John Criswell3ef61af2003-06-30 21:59:07 +00002416int
2417main ()
2418{
2419#ifndef __GNUC__
2420 choke me
2421#endif
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002427rm -f conftest.$ac_objext
2428if { (ac_try="$ac_compile"
2429case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432esac
2433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_compile") 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445esac
2446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455esac
2456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_try") 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002461 ac_compiler_gnu=yes
2462else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002463 echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466 ac_compiler_gnu=no
John Criswell3ef61af2003-06-30 21:59:07 +00002467fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002468
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002470ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002471
2472fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002473{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2474echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2475GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer0241e382004-11-25 04:51:04 +00002476ac_test_CFLAGS=${CFLAGS+set}
2477ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002478{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2479echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2480if test "${ac_cv_prog_cc_g+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002482else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002483 ac_save_c_werror_flag=$ac_c_werror_flag
2484 ac_c_werror_flag=yes
2485 ac_cv_prog_cc_g=no
2486 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002487 cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h. */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002492/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002493
John Criswell3ef61af2003-06-30 21:59:07 +00002494int
2495main ()
2496{
2497
2498 ;
2499 return 0;
2500}
2501_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002502rm -f conftest.$ac_objext
2503if { (ac_try="$ac_compile"
2504case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507esac
2508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>conftest.er1
2510 ac_status=$?
2511 grep -v '^ *+' conftest.er1 >conftest.err
2512 rm -f conftest.er1
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002536 ac_cv_prog_cc_g=yes
John Criswell3ef61af2003-06-30 21:59:07 +00002537else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002538 echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 CFLAGS=""
2542 cat >conftest.$ac_ext <<_ACEOF
2543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002547/* end confdefs.h. */
2548
2549int
2550main ()
2551{
2552
2553 ;
2554 return 0;
2555}
2556_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002557rm -f conftest.$ac_objext
2558if { (ac_try="$ac_compile"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575esac
2576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 :
Torok Edwinaec06332010-01-26 08:50:50 +00002592else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002593 echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002597 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002598 cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h. */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002603/* end confdefs.h. */
2604
2605int
2606main ()
2607{
2608
2609 ;
2610 return 0;
2611}
2612_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002613rm -f conftest.$ac_objext
2614if { (ac_try="$ac_compile"
2615case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618esac
2619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631esac
2632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_try") 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
2642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_try") 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002647 ac_cv_prog_cc_g=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002648else
2649 echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652
John Criswell3ef61af2003-06-30 21:59:07 +00002653fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002654
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00002656fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002657
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002660
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 ac_c_werror_flag=$ac_save_c_werror_flag
2663fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002664{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00002666if test "$ac_test_CFLAGS" = set; then
2667 CFLAGS=$ac_save_CFLAGS
2668elif test $ac_cv_prog_cc_g = yes; then
2669 if test "$GCC" = yes; then
2670 CFLAGS="-g -O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002671 else
Reid Spencer0241e382004-11-25 04:51:04 +00002672 CFLAGS="-g"
John Criswell3ef61af2003-06-30 21:59:07 +00002673 fi
2674else
Reid Spencer0241e382004-11-25 04:51:04 +00002675 if test "$GCC" = yes; then
2676 CFLAGS="-O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002677 else
Reid Spencer0241e382004-11-25 04:51:04 +00002678 CFLAGS=
John Criswell3ef61af2003-06-30 21:59:07 +00002679 fi
2680fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002681{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2683if test "${ac_cv_prog_cc_c89+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00002685else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002686 ac_cv_prog_cc_c89=no
Reid Spencer0241e382004-11-25 04:51:04 +00002687ac_save_CC=$CC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002688cat >conftest.$ac_ext <<_ACEOF
2689/* confdefs.h. */
2690_ACEOF
2691cat confdefs.h >>conftest.$ac_ext
2692cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00002693/* end confdefs.h. */
2694#include <stdarg.h>
2695#include <stdio.h>
2696#include <sys/types.h>
2697#include <sys/stat.h>
2698/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2699struct buf { int x; };
2700FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701static char *e (p, i)
2702 char **p;
2703 int i;
2704{
2705 return p[i];
2706}
2707static char *f (char * (*g) (char **, int), char **p, ...)
2708{
2709 char *s;
2710 va_list v;
2711 va_start (v,p);
2712 s = g (p, va_arg (v,int));
2713 va_end (v);
2714 return s;
2715}
2716
2717/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2718 function prototypes and stuff, but not '\xHH' hex character constants.
2719 These don't provoke an error unfortunately, instead are silently treated
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002720 as 'x'. The following induces an error, until -std is added to get
Reid Spencer0241e382004-11-25 04:51:04 +00002721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2722 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002723 that's true only with -std. */
Reid Spencer0241e382004-11-25 04:51:04 +00002724int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2725
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002726/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727 inside strings and character constants. */
2728#define FOO(x) 'x'
2729int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2730
Reid Spencer0241e382004-11-25 04:51:04 +00002731int test (int i, double x);
2732struct s1 {int (*f) (int a);};
2733struct s2 {int (*f) (double a);};
2734int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2735int argc;
2736char **argv;
2737int
2738main ()
2739{
2740return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2741 ;
2742 return 0;
2743}
2744_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002745for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer0241e382004-11-25 04:51:04 +00002747do
2748 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002749 rm -f conftest.$ac_objext
2750if { (ac_try="$ac_compile"
2751case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2754esac
2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compile") 2>conftest.er1
2757 ac_status=$?
2758 grep -v '^ *+' conftest.er1 >conftest.err
2759 rm -f conftest.er1
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2764 { (case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
2768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_try") 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
2778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_try") 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002783 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002784else
2785 echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788
Reid Spencer0241e382004-11-25 04:51:04 +00002789fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002790
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002791rm -f core conftest.err conftest.$ac_objext
2792 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer0241e382004-11-25 04:51:04 +00002793done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002794rm -f conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002795CC=$ac_save_CC
2796
2797fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002798# AC_CACHE_VAL
2799case "x$ac_cv_prog_cc_c89" in
2800 x)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002801 { echo "$as_me:$LINENO: result: none needed" >&5
2802echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002803 xno)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002804 { echo "$as_me:$LINENO: result: unsupported" >&5
2805echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002806 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002807 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2809echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002810esac
2811
John Criswell3eaf0b42003-09-10 15:17:25 +00002812
Reid Spencer0241e382004-11-25 04:51:04 +00002813ac_ext=c
2814ac_cpp='$CPP $CPPFLAGS'
2815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
Eric Christopher58839712011-09-16 20:36:25 +00002819ac_ext=cpp
2820ac_cpp='$CXXCPP $CPPFLAGS'
2821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2824if test -z "$CXX"; then
2825 if test -n "$CCC"; then
2826 CXX=$CCC
2827 else
2828 if test -n "$ac_tool_prefix"; then
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002829 for ac_prog in clang++ g++
Eric Christopher58839712011-09-16 20:36:25 +00002830 do
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835if test "${ac_cv_prog_CXX+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838 if test -n "$CXX"; then
2839 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852done
2853done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858CXX=$ac_cv_prog_CXX
2859if test -n "$CXX"; then
2860 { echo "$as_me:$LINENO: result: $CXX" >&5
2861echo "${ECHO_T}$CXX" >&6; }
2862else
2863 { echo "$as_me:$LINENO: result: no" >&5
2864echo "${ECHO_T}no" >&6; }
2865fi
2866
2867
2868 test -n "$CXX" && break
2869 done
2870fi
2871if test -z "$CXX"; then
2872 ac_ct_CXX=$CXX
Chandler Carruthb4dd3c62014-01-14 03:46:00 +00002873 for ac_prog in clang++ g++
Eric Christopher58839712011-09-16 20:36:25 +00002874do
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876set dummy $ac_prog; ac_word=$2
2877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 if test -n "$ac_ct_CXX"; then
2883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_ac_ct_CXX="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2903if test -n "$ac_ct_CXX"; then
2904 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2905echo "${ECHO_T}$ac_ct_CXX" >&6; }
2906else
2907 { echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6; }
2909fi
2910
2911
2912 test -n "$ac_ct_CXX" && break
2913done
2914
2915 if test "x$ac_ct_CXX" = x; then
2916 CXX="g++"
2917 else
2918 case $cross_compiling:$ac_tool_warned in
2919yes:)
2920{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2921whose name does not start with the host triplet. If you think this
2922configuration is useful to you, please write to autoconf@gnu.org." >&5
2923echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2924whose name does not start with the host triplet. If you think this
2925configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2926ac_tool_warned=yes ;;
2927esac
2928 CXX=$ac_ct_CXX
2929 fi
2930fi
2931
2932 fi
2933fi
2934# Provide some information about the compiler.
2935echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2936ac_compiler=`set X $ac_compile; echo $2`
2937{ (ac_try="$ac_compiler --version >&5"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler --version >&5") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947{ (ac_try="$ac_compiler -v >&5"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -v >&5") 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957{ (ac_try="$ac_compiler -V >&5"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compiler -V >&5") 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }
2967
2968{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2969echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2970if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973 cat >conftest.$ac_ext <<_ACEOF
2974/* confdefs.h. */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h. */
2979
2980int
2981main ()
2982{
2983#ifndef __GNUC__
2984 choke me
2985#endif
2986
2987 ;
2988 return 0;
2989}
2990_ACEOF
2991rm -f conftest.$ac_objext
2992if { (ac_try="$ac_compile"
2993case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009esac
3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; }; then
3025 ac_compiler_gnu=yes
3026else
3027 echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030 ac_compiler_gnu=no
3031fi
3032
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3035
3036fi
3037{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3038echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3039GXX=`test $ac_compiler_gnu = yes && echo yes`
3040ac_test_CXXFLAGS=${CXXFLAGS+set}
3041ac_save_CXXFLAGS=$CXXFLAGS
3042{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3043echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3044if test "${ac_cv_prog_cxx_g+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046else
3047 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3048 ac_cxx_werror_flag=yes
3049 ac_cv_prog_cxx_g=no
3050 CXXFLAGS="-g"
3051 cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
3057
3058int
3059main ()
3060{
3061
3062 ;
3063 return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext
3067if { (ac_try="$ac_compile"
3068case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_cv_prog_cxx_g=yes
3101else
3102 echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 CXXFLAGS=""
3106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 :
3156else
3157 echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3161 CXXFLAGS="-g"
3162 cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
3168
3169int
3170main ()
3171{
3172
3173 ;
3174 return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext
3178if { (ac_try="$ac_compile"
3179case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205esac
3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_try") 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 ac_cv_prog_cxx_g=yes
3212else
3213 echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216
3217fi
3218
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220fi
3221
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223fi
3224
3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3227fi
3228{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3229echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3230if test "$ac_test_CXXFLAGS" = set; then
3231 CXXFLAGS=$ac_save_CXXFLAGS
3232elif test $ac_cv_prog_cxx_g = yes; then
3233 if test "$GXX" = yes; then
3234 CXXFLAGS="-g -O2"
3235 else
3236 CXXFLAGS="-g"
3237 fi
3238else
3239 if test "$GXX" = yes; then
3240 CXXFLAGS="-O2"
3241 else
3242 CXXFLAGS=
3243 fi
3244fi
3245ac_ext=c
3246ac_cpp='$CPP $CPPFLAGS'
3247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer0241e382004-11-25 04:51:04 +00003250
Reid Spencer0241e382004-11-25 04:51:04 +00003251ac_ext=c
3252ac_cpp='$CPP $CPPFLAGS'
3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003256{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3257echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003258# On Suns, sometimes $CPP names a directory.
3259if test -n "$CPP" && test -d "$CPP"; then
3260 CPP=
3261fi
3262if test -z "$CPP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003263 if test "${ac_cv_prog_CPP+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00003265else
3266 # Double quotes because CPP needs to be expanded
3267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3268 do
3269 ac_preproc_ok=false
3270for ac_c_preproc_warn_flag in '' yes
3271do
3272 # Use a header file that comes with gcc, so configuring glibc
3273 # with a fresh cross-compiler works.
3274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3275 # <limits.h> exists even on freestanding compilers.
3276 # On the NeXT, cc -E runs the code through the compiler's parser,
3277 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003278 cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h. */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003283/* end confdefs.h. */
3284#ifdef __STDC__
3285# include <limits.h>
3286#else
3287# include <assert.h>
3288#endif
3289 Syntax error
3290_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003291if { (ac_try="$ac_cpp conftest.$ac_ext"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307 else
3308 ac_cpp_err=
3309 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003310else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003311 ac_cpp_err=yes
3312fi
3313if test -z "$ac_cpp_err"; then
3314 :
3315else
3316 echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
Reid Spencer0241e382004-11-25 04:51:04 +00003319 # Broken: fails on valid input.
3320continue
3321fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003322
Reid Spencer0241e382004-11-25 04:51:04 +00003323rm -f conftest.err conftest.$ac_ext
3324
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003325 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003326 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003327 cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003332/* end confdefs.h. */
3333#include <ac_nonexistent.h>
3334_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003335if { (ac_try="$ac_cpp conftest.$ac_ext"
3336case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351 else
3352 ac_cpp_err=
3353 fi
3354else
3355 ac_cpp_err=yes
3356fi
3357if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003358 # Broken: success on invalid input.
3359continue
3360else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003361 echo "$as_me: failed program was:" >&5
3362sed 's/^/| /' conftest.$ac_ext >&5
3363
Reid Spencer0241e382004-11-25 04:51:04 +00003364 # Passes both tests.
3365ac_preproc_ok=:
3366break
3367fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003368
Reid Spencer0241e382004-11-25 04:51:04 +00003369rm -f conftest.err conftest.$ac_ext
3370
3371done
3372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003374if $ac_preproc_ok; then
Reid Spencer0241e382004-11-25 04:51:04 +00003375 break
3376fi
3377
3378 done
3379 ac_cv_prog_CPP=$CPP
3380
3381fi
3382 CPP=$ac_cv_prog_CPP
3383else
3384 ac_cv_prog_CPP=$CPP
3385fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003386{ echo "$as_me:$LINENO: result: $CPP" >&5
3387echo "${ECHO_T}$CPP" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003388ac_preproc_ok=false
3389for ac_c_preproc_warn_flag in '' yes
3390do
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003397 cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003402/* end confdefs.h. */
3403#ifdef __STDC__
3404# include <limits.h>
3405#else
3406# include <assert.h>
3407#endif
3408 Syntax error
3409_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003410if { (ac_try="$ac_cpp conftest.$ac_ext"
3411case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414esac
3415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426 else
3427 ac_cpp_err=
3428 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003429else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003430 ac_cpp_err=yes
3431fi
3432if test -z "$ac_cpp_err"; then
3433 :
3434else
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
Reid Spencer0241e382004-11-25 04:51:04 +00003438 # Broken: fails on valid input.
3439continue
3440fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003441
Reid Spencer0241e382004-11-25 04:51:04 +00003442rm -f conftest.err conftest.$ac_ext
3443
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003444 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003445 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003446 cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003451/* end confdefs.h. */
3452#include <ac_nonexistent.h>
3453_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003454if { (ac_try="$ac_cpp conftest.$ac_ext"
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
3459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470 else
3471 ac_cpp_err=
3472 fi
3473else
3474 ac_cpp_err=yes
3475fi
3476if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003477 # Broken: success on invalid input.
3478continue
3479else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003480 echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
Reid Spencer0241e382004-11-25 04:51:04 +00003483 # Passes both tests.
3484ac_preproc_ok=:
3485break
3486fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003487
Reid Spencer0241e382004-11-25 04:51:04 +00003488rm -f conftest.err conftest.$ac_ext
3489
3490done
3491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003493if $ac_preproc_ok; then
3494 :
Reid Spencer0241e382004-11-25 04:51:04 +00003495else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003496 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3497See \`config.log' for more details." >&5
3498echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3499See \`config.log' for more details." >&2;}
3500 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00003501fi
3502
John Criswell3ef61af2003-06-30 21:59:07 +00003503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
John Criswell3ef61af2003-06-30 21:59:07 +00003509
Dmitri Gribenko06358bd2013-01-09 15:25:30 +00003510if test "$CXX" = "clang++" ; then
3511 { echo "$as_me:$LINENO: checking whether clang works" >&5
3512echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3513 ac_ext=cpp
3514ac_cpp='$CXXCPP $CPPFLAGS'
3515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3518
3519
3520cat >conftest.$ac_ext <<_ACEOF
3521/* confdefs.h. */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h. */
3526#include <limits>
3527#if __has_include (<cxxabi.h>)
3528#include <cxxabi.h>
3529#endif
3530#if __has_include (<unwind.h>)
3531#include <unwind.h>
3532#endif
3533
3534int
3535main ()
3536{
3537
3538 ;
3539 return 0;
3540}
3541_ACEOF
3542rm -f conftest.$ac_objext
3543if { (ac_try="$ac_compile"
3544case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547esac
3548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3550 ac_status=$?
3551 grep -v '^ *+' conftest.er1 >conftest.err
3552 rm -f conftest.er1
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } &&
3556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570esac
3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_try") 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576
3577 { echo "$as_me:$LINENO: result: yes" >&5
3578echo "${ECHO_T}yes" >&6; }
3579
3580else
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584
3585 { echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6; }
3587 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3588echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3589 { (exit 1); exit 1; }; }
3590
3591fi
3592
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 ac_ext=c
3595ac_cpp='$CPP $CPPFLAGS'
3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599
3600fi
3601
Chandler Carruth75a65452014-01-14 05:02:38 +00003602{ echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3603echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3604ac_ext=cpp
3605ac_cpp='$CXXCPP $CPPFLAGS'
3606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3609
3610llvm_cv_cxx_compiler=unknown
3611cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h. */
3617#if ! __clang__
Chandler Carruthf8c6ccf2014-01-15 10:31:15 +00003618 #error
3619 #endif
Chandler Carruth75a65452014-01-14 05:02:38 +00003620
Chandler Carruth75a65452014-01-14 05:02:38 +00003621_ACEOF
3622rm -f conftest.$ac_objext
3623if { (ac_try="$ac_compile"
3624case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627esac
3628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640esac
3641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650esac
3651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652 (eval "$ac_try") 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 llvm_cv_cxx_compiler=clang
3657else
3658 echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
3667#if ! __GNUC__
Chandler Carruthf8c6ccf2014-01-15 10:31:15 +00003668 #error
3669 #endif
Chandler Carruth75a65452014-01-14 05:02:38 +00003670
Chandler Carruth75a65452014-01-14 05:02:38 +00003671_ACEOF
3672rm -f conftest.$ac_objext
3673if { (ac_try="$ac_compile"
3674case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677esac
3678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3680 ac_status=$?
3681 grep -v '^ *+' conftest.er1 >conftest.err
3682 rm -f conftest.er1
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } &&
3686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3687 { (case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690esac
3691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; } &&
3696 { ac_try='test -s conftest.$ac_objext'
3697 { (case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700esac
3701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_try") 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 llvm_cv_cxx_compiler=gcc
3707else
3708 echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711
3712fi
3713
3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715fi
3716
3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724{ echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3725echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3726
Eric Christopher58839712011-09-16 20:36:25 +00003727
3728
Eric Christopher58839712011-09-16 20:36:25 +00003729if test -d ${srcdir}/projects/test-suite ; then
3730 subdirs="$subdirs projects/test-suite"
3731
3732fi
3733
3734if test -d ${srcdir}/projects/llvm-test ; then
3735 subdirs="$subdirs projects/llvm-test"
3736
3737fi
3738
3739if test -d ${srcdir}/projects/poolalloc ; then
3740 subdirs="$subdirs projects/poolalloc"
3741
3742fi
3743
3744if test -d ${srcdir}/projects/llvm-poolalloc ; then
3745 subdirs="$subdirs projects/llvm-poolalloc"
3746
3747fi
3748
3749for i in `ls ${srcdir}/projects`
3750do
3751 if test -d ${srcdir}/projects/${i} ; then
3752 case ${i} in
Eric Christopher58839712011-09-16 20:36:25 +00003753 safecode) subdirs="$subdirs projects/safecode"
3754 ;;
Daniel Dunbar7ce849d2011-12-07 22:07:03 +00003755 compiler-rt) ;;
Eric Christopher58839712011-09-16 20:36:25 +00003756 test-suite) ;;
3757 llvm-test) ;;
3758 poolalloc) ;;
3759 llvm-poolalloc) ;;
3760 *)
3761 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3762echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3763 ;;
3764 esac
3765 fi
3766done
3767
3768# Check whether --enable-polly was given.
3769if test "${enable_polly+set}" = set; then
3770 enableval=$enable_polly;
3771else
3772 enableval=default
3773fi
3774
3775case "$enableval" in
3776 yes) ENABLE_POLLY=1
3777 ;;
3778 no) ENABLE_POLLY=0
3779 ;;
3780 default) ENABLE_POLLY=1
3781 ;;
3782 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3783echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3784 { (exit 1); exit 1; }; } ;;
3785esac
3786
3787
3788if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3789 LLVM_HAS_POLLY=1
3790
3791 subdirs="$subdirs tools/polly"
3792
3793fi
3794
3795
3796# Make sure we can run config.sub.
3797$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800 { (exit 1); exit 1; }; }
3801
3802{ echo "$as_me:$LINENO: checking build system type" >&5
3803echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804if test "${ac_cv_build+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 ac_build_alias=$build_alias
3808test "x$ac_build_alias" = x &&
3809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810test "x$ac_build_alias" = x &&
3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813 { (exit 1); exit 1; }; }
3814ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3818
3819fi
3820{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821echo "${ECHO_T}$ac_cv_build" >&6; }
3822case $ac_cv_build in
3823*-*-*) ;;
3824*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825echo "$as_me: error: invalid value of canonical build" >&2;}
3826 { (exit 1); exit 1; }; };;
3827esac
3828build=$ac_cv_build
3829ac_save_IFS=$IFS; IFS='-'
3830set x $ac_cv_build
3831shift
3832build_cpu=$1
3833build_vendor=$2
3834shift; shift
3835# Remember, the first character of IFS is used to create $*,
3836# except with old shells:
3837build_os=$*
3838IFS=$ac_save_IFS
3839case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3840
3841
3842{ echo "$as_me:$LINENO: checking host system type" >&5
3843echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847 if test "x$host_alias" = x; then
3848 ac_cv_host=$ac_cv_build
3849else
3850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3854fi
3855
3856fi
3857{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858echo "${ECHO_T}$ac_cv_host" >&6; }
3859case $ac_cv_host in
3860*-*-*) ;;
3861*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862echo "$as_me: error: invalid value of canonical host" >&2;}
3863 { (exit 1); exit 1; }; };;
3864esac
3865host=$ac_cv_host
3866ac_save_IFS=$IFS; IFS='-'
3867set x $ac_cv_host
3868shift
3869host_cpu=$1
3870host_vendor=$2
3871shift; shift
3872# Remember, the first character of IFS is used to create $*,
3873# except with old shells:
3874host_os=$*
3875IFS=$ac_save_IFS
3876case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879{ echo "$as_me:$LINENO: checking target system type" >&5
3880echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3881if test "${ac_cv_target+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 if test "x$target_alias" = x; then
3885 ac_cv_target=$ac_cv_host
3886else
3887 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3888 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3889echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3890 { (exit 1); exit 1; }; }
3891fi
3892
3893fi
3894{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3895echo "${ECHO_T}$ac_cv_target" >&6; }
3896case $ac_cv_target in
3897*-*-*) ;;
3898*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3899echo "$as_me: error: invalid value of canonical target" >&2;}
3900 { (exit 1); exit 1; }; };;
3901esac
3902target=$ac_cv_target
3903ac_save_IFS=$IFS; IFS='-'
3904set x $ac_cv_target
3905shift
3906target_cpu=$1
3907target_vendor=$2
3908shift; shift
3909# Remember, the first character of IFS is used to create $*,
3910# except with old shells:
3911target_os=$*
3912IFS=$ac_save_IFS
3913case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3914
3915
3916# The aliases save the names the user supplied, while $host etc.
3917# will get canonicalized.
3918test -n "$target_alias" &&
3919 test "$program_prefix$program_suffix$program_transform_name" = \
3920 NONENONEs,x,x, &&
3921 program_prefix=${target_alias}-
3922
3923{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3924echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3925if test "${llvm_cv_os_type+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928 case $host in
3929 *-*-aix*)
3930 llvm_cv_link_all_option="-Wl,--whole-archive"
3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932 llvm_cv_os_type="AIX"
3933 llvm_cv_platform_type="Unix" ;;
3934 *-*-irix*)
3935 llvm_cv_link_all_option="-Wl,--whole-archive"
3936 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937 llvm_cv_os_type="IRIX"
3938 llvm_cv_platform_type="Unix" ;;
3939 *-*-cygwin*)
3940 llvm_cv_link_all_option="-Wl,--whole-archive"
3941 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942 llvm_cv_os_type="Cygwin"
3943 llvm_cv_platform_type="Unix" ;;
3944 *-*-darwin*)
3945 llvm_cv_link_all_option="-Wl,-all_load"
3946 llvm_cv_no_link_all_option="-Wl,-noall_load"
3947 llvm_cv_os_type="Darwin"
3948 llvm_cv_platform_type="Unix" ;;
3949 *-*-minix*)
3950 llvm_cv_link_all_option="-Wl,-all_load"
3951 llvm_cv_no_link_all_option="-Wl,-noall_load"
3952 llvm_cv_os_type="Minix"
3953 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00003954 *-*-freebsd*)
Eric Christopher58839712011-09-16 20:36:25 +00003955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="FreeBSD"
3958 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00003959 *-*-kfreebsd-gnu)
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="GNU/kFreeBSD"
3963 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003964 *-*-openbsd*)
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="OpenBSD"
3968 llvm_cv_platform_type="Unix" ;;
3969 *-*-netbsd*)
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="NetBSD"
3973 llvm_cv_platform_type="Unix" ;;
3974 *-*-dragonfly*)
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="DragonFly"
3978 llvm_cv_platform_type="Unix" ;;
3979 *-*-hpux*)
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="HP-UX"
3983 llvm_cv_platform_type="Unix" ;;
3984 *-*-interix*)
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="Interix"
3988 llvm_cv_platform_type="Unix" ;;
3989 *-*-linux*)
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="Linux"
3993 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00003994 *-*-gnu*)
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="GNU"
3998 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003999 *-*-solaris*)
4000 llvm_cv_link_all_option="-Wl,-z,allextract"
4001 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4002 llvm_cv_os_type="SunOS"
4003 llvm_cv_platform_type="Unix" ;;
4004 *-*-auroraux*)
4005 llvm_cv_link_all_option="-Wl,-z,allextract"
4006 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4007 llvm_cv_os_type="AuroraUX"
4008 llvm_cv_platform_type="Unix" ;;
4009 *-*-win32*)
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Win32"
4013 llvm_cv_platform_type="Win32" ;;
4014 *-*-mingw*)
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="MingW"
4018 llvm_cv_platform_type="Win32" ;;
4019 *-*-haiku*)
4020 llvm_cv_link_all_option="-Wl,--whole-archive"
4021 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022 llvm_cv_os_type="Haiku"
4023 llvm_cv_platform_type="Unix" ;;
4024 *-unknown-eabi*)
4025 llvm_cv_link_all_option="-Wl,--whole-archive"
4026 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4027 llvm_cv_os_type="Freestanding"
4028 llvm_cv_platform_type="Unix" ;;
4029 *-unknown-elf*)
4030 llvm_cv_link_all_option="-Wl,--whole-archive"
4031 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032 llvm_cv_os_type="Freestanding"
4033 llvm_cv_platform_type="Unix" ;;
4034 *)
4035 llvm_cv_link_all_option=""
4036 llvm_cv_no_link_all_option=""
4037 llvm_cv_os_type="Unknown"
4038 llvm_cv_platform_type="Unknown" ;;
4039esac
4040fi
4041{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4042echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4043
4044{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4045echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4046if test "${llvm_cv_target_os_type+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049 case $target in
4050 *-*-aix*)
4051 llvm_cv_target_os_type="AIX" ;;
4052 *-*-irix*)
4053 llvm_cv_target_os_type="IRIX" ;;
4054 *-*-cygwin*)
4055 llvm_cv_target_os_type="Cygwin" ;;
4056 *-*-darwin*)
4057 llvm_cv_target_os_type="Darwin" ;;
4058 *-*-minix*)
4059 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00004060 *-*-freebsd*)
Eric Christopher58839712011-09-16 20:36:25 +00004061 llvm_cv_target_os_type="FreeBSD" ;;
Sylvestre Ledru93a491b2013-07-01 08:07:52 +00004062 *-*-kfreebsd-gnu)
4063 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004064 *-*-openbsd*)
4065 llvm_cv_target_os_type="OpenBSD" ;;
4066 *-*-netbsd*)
4067 llvm_cv_target_os_type="NetBSD" ;;
4068 *-*-dragonfly*)
4069 llvm_cv_target_os_type="DragonFly" ;;
4070 *-*-hpux*)
4071 llvm_cv_target_os_type="HP-UX" ;;
4072 *-*-interix*)
4073 llvm_cv_target_os_type="Interix" ;;
4074 *-*-linux*)
4075 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledrue8235fe2012-04-05 19:34:15 +00004076 *-*-gnu*)
4077 llvm_cv_target_os_type="GNU" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004078 *-*-solaris*)
4079 llvm_cv_target_os_type="SunOS" ;;
4080 *-*-auroraux*)
4081 llvm_cv_target_os_type="AuroraUX" ;;
4082 *-*-win32*)
4083 llvm_cv_target_os_type="Win32" ;;
4084 *-*-mingw*)
4085 llvm_cv_target_os_type="MingW" ;;
4086 *-*-haiku*)
4087 llvm_cv_target_os_type="Haiku" ;;
4088 *-*-rtems*)
4089 llvm_cv_target_os_type="RTEMS" ;;
4090 *-*-nacl*)
4091 llvm_cv_target_os_type="NativeClient" ;;
4092 *-unknown-eabi*)
4093 llvm_cv_target_os_type="Freestanding" ;;
4094 *)
4095 llvm_cv_target_os_type="Unknown" ;;
4096esac
4097fi
4098{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4099echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4100
4101if test "$llvm_cv_os_type" = "Unknown" ; then
4102 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4103echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4104 { (exit 1); exit 1; }; }
4105fi
4106
4107OS=$llvm_cv_os_type
4108
4109HOST_OS=$llvm_cv_os_type
4110
4111TARGET_OS=$llvm_cv_target_os_type
4112
4113
4114LINKALL=$llvm_cv_link_all_option
4115
4116NOLINKALL=$llvm_cv_no_link_all_option
4117
4118
4119case $llvm_cv_platform_type in
4120 Unix)
4121
4122cat >>confdefs.h <<\_ACEOF
4123#define LLVM_ON_UNIX 1
4124_ACEOF
4125
4126 LLVM_ON_UNIX=1
4127
4128 LLVM_ON_WIN32=0
4129
4130 ;;
4131 Win32)
4132
4133cat >>confdefs.h <<\_ACEOF
4134#define LLVM_ON_WIN32 1
4135_ACEOF
4136
4137 LLVM_ON_UNIX=0
4138
4139 LLVM_ON_WIN32=1
4140
4141 ;;
4142esac
4143
4144{ echo "$as_me:$LINENO: checking target architecture" >&5
4145echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4146if test "${llvm_cv_target_arch+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 case $target in
4150 i?86-*) llvm_cv_target_arch="x86" ;;
4151 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4152 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4153 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004154 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004155 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004156 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4157 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004158 xcore-*) llvm_cv_target_arch="XCore" ;;
4159 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00004160 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00004161 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004162 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004163 *) llvm_cv_target_arch="Unknown" ;;
4164esac
4165fi
4166{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4167echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4168
4169if test "$llvm_cv_target_arch" = "Unknown" ; then
4170 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4171echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4172fi
4173
Eric Christopher58839712011-09-16 20:36:25 +00004174case "$llvm_cv_target_arch" in
4175 x86) LLVM_NATIVE_ARCH="X86" ;;
4176 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4177 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4178esac
4179
4180ARCH=$llvm_cv_target_arch
4181
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00004182LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4183
Eric Christopher58839712011-09-16 20:36:25 +00004184
Danil Malyshev7c5db452012-05-17 21:07:47 +00004185case $host in
4186 i?86-*) host_arch="x86" ;;
4187 amd64-* | x86_64-*) host_arch="x86_64" ;;
4188 sparc*-*) host_arch="Sparc" ;;
4189 powerpc*-*) host_arch="PowerPC" ;;
4190 arm*-*) host_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004191 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004192 mips-* | mips64-*) host_arch="Mips" ;;
4193 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004194 xcore-*) host_arch="XCore" ;;
4195 msp430-*) host_arch="MSP430" ;;
4196 hexagon-*) host_arch="Hexagon" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004197 s390x-*) host_arch="SystemZ" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004198 *) host_arch="Unknown" ;;
4199esac
4200
4201if test "$host_arch" = "Unknown" ; then
4202 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4203echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4204fi
4205
4206HOST_ARCH=$host_arch
4207
4208
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004209if test "$cross_compiling" = yes; then
4210 LLVM_CROSS_COMPILING=1
4211
4212
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004213{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215if test "${ac_cv_build_exeext+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004217else
4218 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219 ac_cv_build_exeext=.exe
4220else
4221 ac_build_prefix=${build_alias}-
4222
4223 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004229else
4230 if test -n "$BUILD_CC"; then
4231 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4232else
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004240 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004242 break 2
4243 fi
4244done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004245done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004246IFS=$as_save_IFS
4247
4248fi
4249fi
4250BUILD_CC=$ac_cv_prog_BUILD_CC
4251if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004252 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004254else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004255 { echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004257fi
4258
4259
4260 if test -z "$BUILD_CC"; then
4261 # Extract the first word of "gcc", so it can be a program name with args.
4262set dummy gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004267else
4268 if test -n "$BUILD_CC"; then
4269 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004278 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004280 break 2
4281 fi
4282done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004283done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004284IFS=$as_save_IFS
4285
4286fi
4287fi
4288BUILD_CC=$ac_cv_prog_BUILD_CC
4289if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004290 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004292else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004293 { echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004295fi
4296
4297
4298 if test -z "$BUILD_CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300set dummy cc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004305else
4306 if test -n "$BUILD_CC"; then
4307 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4308else
4309 ac_prog_rejected=no
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318 ac_prog_rejected=yes
4319 continue
4320 fi
4321 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004323 break 2
4324 fi
4325done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004326done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004327IFS=$as_save_IFS
4328
4329if test $ac_prog_rejected = yes; then
4330 # We found a bogon in the path, so make sure we never use it.
4331 set dummy $ac_cv_prog_BUILD_CC
4332 shift
4333 if test $# != 0; then
4334 # We chose a different compiler from the bogus one.
4335 # However, it has the same basename, so the bogon will be chosen
4336 # first if we set BUILD_CC to just the basename; use the full file name.
4337 shift
4338 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4339 fi
4340fi
4341fi
4342fi
4343BUILD_CC=$ac_cv_prog_BUILD_CC
4344if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004345 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004347else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004348 { echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004350fi
4351
4352
4353 fi
4354 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004355 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004358 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4359 rm -f conftest*
4360 echo 'int main () { return 0; }' > conftest.$ac_ext
4361 ac_cv_build_exeext=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004362 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004363 (eval $ac_build_link) 2>&5
4364 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004367 for file in conftest.*; do
4368 case $file in
Jim Grosbachbfc70b02008-09-26 17:27:58 +00004369 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004370 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4371 esac
4372 done
4373 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004374 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004377 fi
4378 rm -f conftest*
4379 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4380fi
4381fi
4382
4383BUILD_EXEEXT=""
4384test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004385{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004387ac_build_exeext=$BUILD_EXEEXT
4388
Jim Grosbach009db892008-10-02 22:56:44 +00004389 ac_build_prefix=${build_alias}-
4390 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4391set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004396else
4397 if test -n "$BUILD_CXX"; then
4398 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00004407 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004409 break 2
4410 fi
4411done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004412done
Jim Grosbach009db892008-10-02 22:56:44 +00004413IFS=$as_save_IFS
4414
4415fi
4416fi
4417BUILD_CXX=$ac_cv_prog_BUILD_CXX
4418if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004419 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4420echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004421else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004422 { echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004424fi
4425
4426
4427 if test -z "$BUILD_CXX"; then
4428 # Extract the first word of "g++", so it can be a program name with args.
4429set dummy g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004434else
4435 if test -n "$BUILD_CXX"; then
4436 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00004445 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004447 break 2
4448 fi
4449done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004450done
Jim Grosbach009db892008-10-02 22:56:44 +00004451IFS=$as_save_IFS
4452
4453fi
4454fi
4455BUILD_CXX=$ac_cv_prog_BUILD_CXX
4456if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004457 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4458echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004459else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004460 { echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004462fi
4463
4464
4465 if test -z "$BUILD_CXX"; then
4466 # Extract the first word of "c++", so it can be a program name with args.
4467set dummy c++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004472else
4473 if test -n "$BUILD_CXX"; then
4474 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4475else
4476 ac_prog_rejected=no
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00004484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4485 ac_prog_rejected=yes
4486 continue
4487 fi
4488 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004490 break 2
4491 fi
4492done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004493done
Jim Grosbach009db892008-10-02 22:56:44 +00004494IFS=$as_save_IFS
4495
4496if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CXX
4499 shift
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CXX to just the basename; use the full file name.
4504 shift
4505 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4506 fi
4507fi
4508fi
4509fi
4510BUILD_CXX=$ac_cv_prog_BUILD_CXX
4511if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004512 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4513echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004514else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004515 { echo "$as_me:$LINENO: result: no" >&5
4516echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004517fi
4518
4519
4520 fi
4521 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004522else
4523 LLVM_CROSS_COMPILING=0
4524
4525fi
4526
Dan Gohmande75469c2010-08-04 16:25:01 +00004527if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004528 cvsbuild="yes"
4529 optimize="no"
4530 CVSBUILD=CVSBUILD=1
4531
4532else
4533 cvsbuild="no"
4534 optimize="yes"
4535fi
4536
4537
Eric Christopher1094ded2011-11-11 22:51:42 +00004538# Check whether --enable-libcpp was given.
4539if test "${enable_libcpp+set}" = set; then
4540 enableval=$enable_libcpp;
4541else
4542 enableval=default
4543fi
4544
4545case "$enableval" in
4546 yes) ENABLE_LIBCPP=1
4547 ;;
4548 no) ENABLE_LIBCPP=0
4549 ;;
4550 default) ENABLE_LIBCPP=0
4551;;
4552 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4553echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4554 { (exit 1); exit 1; }; } ;;
4555esac
4556
Chandler Carruth7206eae2014-01-15 19:19:13 +00004557# Check whether --enable-compiler-version-checks was given.
4558if test "${enable_compiler_version_checks+set}" = set; then
4559 enableval=$enable_compiler_version_checks;
4560else
4561 enableval=default
4562fi
4563
4564case "$enableval" in
4565 no)
4566 ;;
4567 yes|default)
4568 ac_ext=cpp
4569ac_cpp='$CXXCPP $CPPFLAGS'
4570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4573
4574 case "$llvm_cv_cxx_compiler" in
4575 clang)
4576 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4577echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4578 cat >conftest.$ac_ext <<_ACEOF
4579/* confdefs.h. */
4580_ACEOF
4581cat confdefs.h >>conftest.$ac_ext
4582cat >>conftest.$ac_ext <<_ACEOF
4583/* end confdefs.h. */
4584
4585#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4586#error This version of Clang is too old to build LLVM
4587#endif
4588
4589_ACEOF
4590rm -f conftest.$ac_objext
4591if { (ac_try="$ac_compile"
4592case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595esac
4596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_compile") 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608esac
4609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618esac
4619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 { echo "$as_me:$LINENO: result: yes" >&5
4625echo "${ECHO_T}yes" >&6; }
4626else
4627 echo "$as_me: failed program was:" >&5
4628sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 { echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6; }
4632 { { echo "$as_me:$LINENO: error:
4633The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4634Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4635bypass these sanity checks." >&5
4636echo "$as_me: error:
4637The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4638Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4639bypass these sanity checks." >&2;}
4640 { (exit 1); exit 1; }; }
4641fi
4642
4643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004645 if test "$ENABLE_LIBCPP" -eq 0 ; then
4646 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
Chandler Carruth7206eae2014-01-15 19:19:13 +00004647echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004648 llvm_cv_old_cxxflags="$CXXFLAGS"
4649 CXXFLAGS="$CXXFLAGS -std=c++0x"
4650 cat >conftest.$ac_ext <<_ACEOF
Chandler Carruth7206eae2014-01-15 19:19:13 +00004651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
4656
4657#include <atomic>
4658std::atomic<float> x(0.0f);
4659int main() { return (float)x; }
4660
4661_ACEOF
4662rm -f conftest.$ac_objext conftest$ac_exeext
4663if { (ac_try="$ac_link"
4664case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667esac
4668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669 (eval "$ac_link") 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680esac
4681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest$ac_exeext'
4687 { (case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690esac
4691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_try") 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 { echo "$as_me:$LINENO: result: yes" >&5
4697echo "${ECHO_T}yes" >&6; }
4698else
4699 echo "$as_me: failed program was:" >&5
4700sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 { echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004704 { { echo "$as_me:$LINENO: error:
Chandler Carruth7206eae2014-01-15 19:19:13 +00004705We detected a missing feature in the standard C++ library that was known to be
4706missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4707C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4708than 4.7. You will need to update your system and ensure Clang uses the newer
4709standard library.
4710
4711If this error is incorrect or you need to force things to work, you may pass
4712'--disable-compiler-version-checks' to configure to bypass this test." >&5
4713echo "$as_me: error:
4714We detected a missing feature in the standard C++ library that was known to be
4715missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4716C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4717than 4.7. You will need to update your system and ensure Clang uses the newer
4718standard library.
4719
4720If this error is incorrect or you need to force things to work, you may pass
4721'--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4722 { (exit 1); exit 1; }; }
4723fi
4724
4725rm -f core conftest.err conftest.$ac_objext \
4726 conftest$ac_exeext conftest.$ac_ext
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004727 CXXFLAGS="$llvm_cv_old_cxxflags"
4728 fi
Chandler Carruth7206eae2014-01-15 19:19:13 +00004729 ;;
4730 gcc)
4731 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4732echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4733 cat >conftest.$ac_ext <<_ACEOF
4734/* confdefs.h. */
4735_ACEOF
4736cat confdefs.h >>conftest.$ac_ext
4737cat >>conftest.$ac_ext <<_ACEOF
4738/* end confdefs.h. */
4739
4740#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4741#error This version of GCC is too old to build LLVM
4742#endif
4743
4744_ACEOF
4745rm -f conftest.$ac_objext
4746if { (ac_try="$ac_compile"
4747case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750esac
4751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752 (eval "$ac_compile") 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4760 { (case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4763esac
4764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_try") 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try='test -s conftest.$ac_objext'
4770 { (case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773esac
4774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_try") 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 { echo "$as_me:$LINENO: result: yes" >&5
4780echo "${ECHO_T}yes" >&6; }
4781else
4782 echo "$as_me: failed program was:" >&5
4783sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 { echo "$as_me:$LINENO: result: no" >&5
4786echo "${ECHO_T}no" >&6; }
4787 { { echo "$as_me:$LINENO: error:
4788The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4789to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4790bypass these sanity checks." >&5
4791echo "$as_me: error:
4792The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4793to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4794bypass these sanity checks." >&2;}
4795 { (exit 1); exit 1; }; }
4796fi
4797
4798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ;;
4800 unknown)
4801 ;;
4802 esac
4803 ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809 ;;
4810 *)
4811 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4812echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4813 { (exit 1); exit 1; }; }
4814 ;;
4815esac
4816
Chandler Carruthbbae5122014-03-01 03:33:08 +00004817# Check whether --enable-cxx1y was given.
4818if test "${enable_cxx1y+set}" = set; then
4819 enableval=$enable_cxx1y;
Eric Christopher04e35972012-08-03 19:47:14 +00004820else
4821 enableval=default
4822fi
4823
4824case "$enableval" in
Chandler Carruthbbae5122014-03-01 03:33:08 +00004825 yes) ENABLE_CXX1Y=1
Eric Christopher04e35972012-08-03 19:47:14 +00004826 ;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004827 no) ENABLE_CXX1Y=0
Eric Christopher04e35972012-08-03 19:47:14 +00004828 ;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004829 default) ENABLE_CXX1Y=0
Eric Christopher04e35972012-08-03 19:47:14 +00004830;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004831 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4832echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
Eric Christopher04e35972012-08-03 19:47:14 +00004833 { (exit 1); exit 1; }; } ;;
4834esac
4835
Eric Christopherf1bd7702013-06-25 01:12:25 +00004836# Check whether --enable-split-dwarf was given.
4837if test "${enable_split_dwarf+set}" = set; then
4838 enableval=$enable_split_dwarf;
4839else
4840 enableval=default
4841fi
4842
4843case "$enableval" in
4844 yes) ENABLE_SPLIT_DWARF=1
4845 ;;
4846 no) ENABLE_SPLIT_DWARF=0
4847 ;;
4848 default) ENABLE_SPLIT_DWARF=0
4849;;
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4851echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4853esac
4854
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004855clang_arcmt="yes"
4856# Check whether --enable-clang-arcmt was given.
4857if test "${enable_clang_arcmt+set}" = set; then
4858 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4859else
4860 enableval="yes"
4861fi
4862
4863case "$enableval" in
4864 yes) ENABLE_CLANG_ARCMT=1
4865 ;;
4866 no) ENABLE_CLANG_ARCMT=0
4867 ;;
4868 default) ENABLE_CLANG_ARCMT=1
4869;;
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4871echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4873esac
4874
Rafael Espindolae33f06c2014-03-10 16:58:35 +00004875clang_plugin_support="yes"
4876# Check whether --enable-clang-plugin-support was given.
4877if test "${enable_clang_plugin_support+set}" = set; then
4878 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4879else
4880 enableval="yes"
4881fi
4882
4883case "$enableval" in
4884 yes) CLANG_PLUGIN_SUPPORT=1
4885 ;;
4886 no) CLANG_PLUGIN_SUPPORT=0
4887 ;;
4888 default) CLANG_PLUGIN_SUPPORT=1
4889;;
4890 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4891echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4893esac
4894
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004895clang_static_analyzer="yes"
4896# Check whether --enable-clang-static-analyzer was given.
4897if test "${enable_clang_static_analyzer+set}" = set; then
4898 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4899else
4900 enableval="yes"
4901fi
4902
4903case "$enableval" in
4904 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4905 ;;
Jordan Rose23fc6f32013-08-22 15:49:53 +00004906 no)
4907 if test ${clang_arcmt} != "no" ; then
4908 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4909echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4910 { (exit 1); exit 1; }; }
4911 fi
4912 ENABLE_CLANG_STATIC_ANALYZER=0
NAKAMURA Takumi4cfe5542013-08-22 16:31:34 +00004913
Jordan Rose23fc6f32013-08-22 15:49:53 +00004914 ;;
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004915 default) ENABLE_CLANG_STATIC_ANALYZER=1
4916;;
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4918echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4920esac
4921
4922# Check whether --enable-clang-rewriter was given.
4923if test "${enable_clang_rewriter+set}" = set; then
4924 enableval=$enable_clang_rewriter;
4925else
4926 enableval="yes"
4927fi
4928
4929case "$enableval" in
4930 yes) ENABLE_CLANG_REWRITER=1
4931 ;;
4932 no)
Benjamin Kramerd14720d2012-12-26 10:48:49 +00004933 if test ${clang_arcmt} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004934 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4935echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4936 { (exit 1); exit 1; }; }
4937 fi
Benjamin Kramerd14720d2012-12-26 10:48:49 +00004938 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004939 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4940echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4941 { (exit 1); exit 1; }; }
4942 fi
4943 ENABLE_CLANG_REWRITER=0
4944
4945 ;;
4946 default) ENABLE_CLANG_REWRITER=1
4947;;
4948 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4949echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4950 { (exit 1); exit 1; }; } ;;
4951esac
4952
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004953# Check whether --enable-optimized was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004954if test "${enable_optimized+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004955 enableval=$enable_optimized;
4956else
4957 enableval=$optimize
4958fi
4959
4960if test ${enableval} = "no" ; then
4961 ENABLE_OPTIMIZED=
4962
4963else
4964 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4965
4966fi
4967
David Greenec0a34a072009-04-17 14:50:39 +00004968# Check whether --enable-profiling was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004969if test "${enable_profiling+set}" = set; then
David Greenec0a34a072009-04-17 14:50:39 +00004970 enableval=$enable_profiling;
4971else
4972 enableval="no"
4973fi
4974
4975if test ${enableval} = "no" ; then
4976 ENABLE_PROFILING=
4977
4978else
4979 ENABLE_PROFILING=ENABLE_PROFILING=1
4980
4981fi
4982
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004983# Check whether --enable-assertions was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004984if test "${enable_assertions+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004985 enableval=$enable_assertions;
4986else
4987 enableval="yes"
4988fi
4989
4990if test ${enableval} = "yes" ; then
4991 DISABLE_ASSERTIONS=
4992
4993else
4994 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4995
4996fi
4997
Eric Christopher84864012012-08-03 19:58:20 +00004998# Check whether --enable-werror was given.
4999if test "${enable_werror+set}" = set; then
5000 enableval=$enable_werror;
5001else
5002 enableval="no"
5003fi
5004
5005case "$enableval" in
5006 yes) ENABLE_WERROR=1
5007 ;;
5008 no) ENABLE_WERROR=0
5009 ;;
5010 default) ENABLE_WERROR=0
5011;;
5012 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5013echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5014 { (exit 1); exit 1; }; } ;;
5015esac
5016
David Greenecbc8ddf2007-06-28 19:36:08 +00005017# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005018if test "${enable_expensive_checks+set}" = set; then
David Greenecbc8ddf2007-06-28 19:36:08 +00005019 enableval=$enable_expensive_checks;
5020else
5021 enableval="no"
5022fi
5023
5024if test ${enableval} = "yes" ; then
5025 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5026
5027 EXPENSIVE_CHECKS=yes
5028
5029else
5030 ENABLE_EXPENSIVE_CHECKS=
5031
5032 EXPENSIVE_CHECKS=no
5033
5034fi
5035
Reid Spencer4b8067f2006-11-17 03:32:33 +00005036# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005037if test "${enable_debug_runtime+set}" = set; then
Reid Spencer4b8067f2006-11-17 03:32:33 +00005038 enableval=$enable_debug_runtime;
5039else
5040 enableval=no
5041fi
5042
5043if test ${enableval} = "no" ; then
5044 DEBUG_RUNTIME=
5045
5046else
5047 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5048
5049fi
5050
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005051# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005052if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005053 enableval=$enable_debug_symbols;
5054else
5055 enableval=no
5056fi
5057
5058if test ${enableval} = "no" ; then
5059 DEBUG_SYMBOLS=
5060
5061else
5062 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5063
5064fi
5065
Daniel Dunbar39c04622012-08-14 18:14:22 +00005066# Check whether --enable-keep-symbols was given.
5067if test "${enable_keep_symbols+set}" = set; then
5068 enableval=$enable_keep_symbols;
5069else
5070 enableval=no
5071fi
5072
5073if test ${enableval} = "no" ; then
5074 KEEP_SYMBOLS=
5075
5076else
5077 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5078
5079fi
5080
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005081# Check whether --enable-jit was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005082if test "${enable_jit+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005083 enableval=$enable_jit;
5084else
5085 enableval=default
5086fi
5087
5088if test ${enableval} = "no"
5089then
5090 JIT=
5091
5092else
5093 case "$llvm_cv_target_arch" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005094 x86) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005095 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005096 Sparc) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005097 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005098 PowerPC) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005099 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005100 x86_64) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005101 ;;
Eric Christopherd8530f32009-09-14 16:38:49 +00005102 ARM) TARGET_HAS_JIT=1
Reid Spencerd7c8b3c2007-01-21 06:32:59 +00005103 ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00005104 AArch64) TARGET_HAS_JIT=0
5105 ;;
Bruno Cardoso Lopesd1d9c782011-07-21 16:28:51 +00005106 Mips) TARGET_HAS_JIT=1
Tanya Lattnerbca16c82007-08-29 16:38:16 +00005107 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005108 XCore) TARGET_HAS_JIT=0
Richard Osborneca08e062008-11-07 10:59:00 +00005109 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005110 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov9173b492009-05-03 13:42:23 +00005111 ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005112 Hexagon) TARGET_HAS_JIT=0
5113 ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005114 NVPTX) TARGET_HAS_JIT=0
5115 ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005116 SystemZ) TARGET_HAS_JIT=1
5117 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005118 *) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005119 ;;
5120 esac
5121fi
5122
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005123TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5124TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5125
5126
Rafael Espindola7ac506d2010-11-12 19:24:06 +00005127# Check whether --enable-docs was given.
5128if test "${enable_docs+set}" = set; then
5129 enableval=$enable_docs;
5130else
5131 enableval=default
5132fi
5133
5134case "$enableval" in
5135 yes) ENABLE_DOCS=1
5136 ;;
5137 no) ENABLE_DOCS=0
5138 ;;
5139 default) ENABLE_DOCS=1
5140 ;;
5141 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5144esac
5145
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005146# Check whether --enable-doxygen was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005147if test "${enable_doxygen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005148 enableval=$enable_doxygen;
5149else
5150 enableval=default
5151fi
5152
5153case "$enableval" in
5154 yes) ENABLE_DOXYGEN=1
5155 ;;
5156 no) ENABLE_DOXYGEN=0
5157 ;;
5158 default) ENABLE_DOXYGEN=0
5159 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005163esac
5164
5165# Check whether --enable-threads was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005166if test "${enable_threads+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005167 enableval=$enable_threads;
5168else
Reid Spencerd549edc2006-11-05 17:08:18 +00005169 enableval=default
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005170fi
5171
5172case "$enableval" in
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005173 yes) LLVM_ENABLE_THREADS=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005174 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005175 no) LLVM_ENABLE_THREADS=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005176 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005177 default) LLVM_ENABLE_THREADS=1
Reid Spencerd549edc2006-11-05 17:08:18 +00005178 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005182esac
5183
Owen Andersonaf5db832009-05-19 22:18:56 +00005184cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005185#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersonaf5db832009-05-19 22:18:56 +00005186_ACEOF
5187
5188
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00005189# Check whether --enable-pthreads was given.
5190if test "${enable_pthreads+set}" = set; then
5191 enableval=$enable_pthreads;
5192else
5193 enableval=default
5194fi
5195
5196case "$enableval" in
5197 yes) ENABLE_PTHREADS=1
5198 ;;
5199 no) ENABLE_PTHREADS=0
5200 ;;
5201 default) ENABLE_PTHREADS=1
5202 ;;
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5206esac
5207
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00005208# Check whether --enable-zlib was given.
5209if test "${enable_zlib+set}" = set; then
5210 enableval=$enable_zlib;
5211else
5212 enableval=default
5213fi
5214
5215case "$enableval" in
5216 yes) LLVM_ENABLE_ZLIB=1
5217 ;;
5218 no) LLVM_ENABLE_ZLIB=0
5219 ;;
5220 default) LLVM_ENABLE_ZLIB=1
5221 ;;
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5223echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5225esac
5226
5227cat >>confdefs.h <<_ACEOF
5228#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5229_ACEOF
5230
5231
Reid Spencer05a1fe52006-12-16 22:07:52 +00005232# Check whether --enable-pic was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005233if test "${enable_pic+set}" = set; then
Reid Spencer05a1fe52006-12-16 22:07:52 +00005234 enableval=$enable_pic;
5235else
5236 enableval=default
5237fi
5238
5239case "$enableval" in
5240 yes) ENABLE_PIC=1
5241 ;;
5242 no) ENABLE_PIC=0
5243 ;;
Nick Lewycky38525192009-02-19 06:18:56 +00005244 default) ENABLE_PIC=1
Reid Spencer05a1fe52006-12-16 22:07:52 +00005245 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5247echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
Reid Spencer05a1fe52006-12-16 22:07:52 +00005249esac
5250
5251cat >>confdefs.h <<_ACEOF
5252#define ENABLE_PIC $ENABLE_PIC
5253_ACEOF
5254
5255
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00005256# Check whether --enable-shared was given.
5257if test "${enable_shared+set}" = set; then
5258 enableval=$enable_shared;
5259else
5260 enableval=default
5261fi
5262
5263case "$enableval" in
5264 yes) ENABLE_SHARED=1
5265 ;;
5266 no) ENABLE_SHARED=0
5267 ;;
5268 default) ENABLE_SHARED=0
5269 ;;
5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5271echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
5273esac
5274
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005275# Check whether --enable-embed-stdcxx was given.
5276if test "${enable_embed_stdcxx+set}" = set; then
5277 enableval=$enable_embed_stdcxx;
5278else
5279 enableval=default
5280fi
5281
5282case "$enableval" in
5283 yes) ENABLE_EMBED_STDCXX=1
5284 ;;
5285 no) ENABLE_EMBED_STDCXX=0
5286 ;;
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00005287 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005288 ;;
5289 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5290echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5291 { (exit 1); exit 1; }; } ;;
5292esac
5293
Daniel Dunbardac18242010-05-10 20:11:56 +00005294# Check whether --enable-timestamps was given.
5295if test "${enable_timestamps+set}" = set; then
5296 enableval=$enable_timestamps;
5297else
5298 enableval=default
5299fi
5300
5301case "$enableval" in
5302 yes) ENABLE_TIMESTAMPS=1
5303 ;;
5304 no) ENABLE_TIMESTAMPS=0
5305 ;;
5306 default) ENABLE_TIMESTAMPS=1
5307 ;;
5308 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5309echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5310 { (exit 1); exit 1; }; } ;;
5311esac
5312
5313cat >>confdefs.h <<_ACEOF
5314#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5315_ACEOF
5316
5317
Eric Christopher9fafe072012-09-21 23:03:29 +00005318# Check whether --enable-backtraces was given.
5319if test "${enable_backtraces+set}" = set; then
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005320 enableval=$enable_backtraces; case "$enableval" in
5321 yes) llvm_cv_enable_backtraces="yes" ;;
5322 no) llvm_cv_enable_backtraces="no" ;;
5323 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
Eric Christopher9fafe072012-09-21 23:03:29 +00005324echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5325 { (exit 1); exit 1; }; } ;;
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005326 esac
5327else
5328 llvm_cv_enable_backtraces="yes"
5329fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005330
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005331if test "$llvm_cv_enable_backtraces" = "yes" ; then
5332
5333cat >>confdefs.h <<\_ACEOF
5334#define ENABLE_BACKTRACES 1
Eric Christopher9fafe072012-09-21 23:03:29 +00005335_ACEOF
5336
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005337fi
5338
5339# Check whether --enable-crash-overrides was given.
5340if test "${enable_crash_overrides+set}" = set; then
5341 enableval=$enable_crash_overrides; case "$enableval" in
5342 yes) llvm_cv_enable_crash_overrides="yes" ;;
5343 no) llvm_cv_enable_crash_overrides="no" ;;
5344 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5345echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5346 { (exit 1); exit 1; }; } ;;
5347 esac
5348else
5349 llvm_cv_enable_crash_overrides="yes"
5350fi
5351
5352if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5353
5354cat >>confdefs.h <<\_ACEOF
5355#define ENABLE_CRASH_OVERRIDES 1
5356_ACEOF
5357
5358fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005359
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005360ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5361ALL_TARGETS=$ALL_TARGETS
5362
5363
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005364TARGETS_TO_BUILD=""
5365# Check whether --enable-targets was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005366if test "${enable_targets+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005367 enableval=$enable_targets;
5368else
5369 enableval=all
5370fi
5371
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005372if test "$enableval" = host-only ; then
5373 enableval=host
5374fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005375case "$enableval" in
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005376 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005377 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5378 case "$a_target" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005379 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5380 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5381 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5382 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Joerg Sonnenberger981e99d2013-02-03 17:06:49 +00005383 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00005384 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005385 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindolae46f0962011-12-28 17:08:00 +00005386 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00005387 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5388 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005389 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5390 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005391 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005392 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005393 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005394 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Rafael Espindolaf6474d22013-05-22 00:35:47 +00005395 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005396 host) case "$llvm_cv_target_arch" in
5397 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5398 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5399 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5400 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jia Liu43eb48e2013-04-22 16:26:15 +00005401 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005402 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5403 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005404 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5405 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005406 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005407 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005408 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005409 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5410echo "$as_me: error: Can not set target to build" >&2;}
5411 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005412 esac ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005413 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5414echo "$as_me: error: Unrecognized target $a_target" >&2;}
5415 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005416 esac
5417 done
5418 ;;
5419esac
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00005420
5421# Check whether --enable-experimental-targets was given.
5422if test "${enable_experimental_targets+set}" = set; then
5423 enableval=$enable_experimental_targets;
5424else
5425 enableval=disable
5426fi
5427
5428
5429if test ${enableval} != "disable"
5430then
5431 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5432fi
5433
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005434TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5435
5436
Douglas Gregor43613a22009-06-17 00:43:20 +00005437for a_target in $TARGETS_TO_BUILD; do
5438 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5439
5440cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005441#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5442_ACEOF
5443
5444 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5445 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng8c886a42011-07-22 21:58:54 +00005446 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christophere7a9db12010-08-30 18:34:48 +00005447 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005448 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5449 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5450 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005451 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5452 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5453 fi
Eric Christophere7a9db12010-08-30 18:34:48 +00005454
5455cat >>confdefs.h <<_ACEOF
5456#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbaredf7b8b2010-08-03 14:26:17 +00005457_ACEOF
5458
5459
5460cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005461#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5462_ACEOF
5463
5464
5465cat >>confdefs.h <<_ACEOF
Evan Cheng8c886a42011-07-22 21:58:54 +00005466#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng2129f592011-07-19 06:37:02 +00005467_ACEOF
5468
5469
5470cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005471#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor43613a22009-06-17 00:43:20 +00005472_ACEOF
5473
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005474 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödin27e07c32011-03-09 17:25:46 +00005475
5476cat >>confdefs.h <<_ACEOF
5477#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5478_ACEOF
5479
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005480 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005481 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5482
5483cat >>confdefs.h <<_ACEOF
5484#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5485_ACEOF
5486
5487 fi
Douglas Gregor43613a22009-06-17 00:43:20 +00005488 fi
5489done
5490
Douglas Gregor1b731d52009-06-16 20:12:29 +00005491LLVM_ENUM_TARGETS=""
5492LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005493LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar32027202009-11-25 04:37:28 +00005494LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1b731d52009-06-16 20:12:29 +00005495for target_to_build in $TARGETS_TO_BUILD; do
5496 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattner28776602010-11-14 19:10:47 +00005497 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach0e854f32010-10-01 22:39:28 +00005498 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5499 fi
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005500 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5501 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5502 fi
Daniel Dunbar32027202009-11-25 04:37:28 +00005503 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5504 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5505 fi
Douglas Gregor1b731d52009-06-16 20:12:29 +00005506done
5507
5508
5509
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005510
Daniel Dunbar32027202009-11-25 04:37:28 +00005511
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005512
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005513# Check whether --with-optimize-option was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005514if test "${with_optimize_option+set}" = set; then
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005515 withval=$with_optimize_option;
5516else
5517 withval=default
5518fi
5519
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005520{ echo "$as_me:$LINENO: checking optimization flags" >&5
5521echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005522case "$withval" in
5523 default)
5524 case "$llvm_cv_os_type" in
Daniel Dunbard411fcb2010-04-30 17:12:26 +00005525 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +00005526 MingW) optimize_option=-O2 ;;
5527 *) optimize_option=-O3 ;;
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005528 esac ;;
5529 *) optimize_option="$withval" ;;
5530esac
5531OPTIMIZE_OPTION=$optimize_option
5532
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005533{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5534echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005535
5536
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005537# Check whether --with-extra-options was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005538if test "${with_extra_options+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005539 withval=$with_extra_options;
5540else
5541 withval=default
5542fi
5543
5544case "$withval" in
5545 default) EXTRA_OPTIONS= ;;
5546 *) EXTRA_OPTIONS=$withval ;;
5547esac
5548EXTRA_OPTIONS=$EXTRA_OPTIONS
5549
5550
Daniel Dunbar3b95df82011-06-16 22:30:41 +00005551
5552# Check whether --with-extra-ld-options was given.
5553if test "${with_extra_ld_options+set}" = set; then
5554 withval=$with_extra_ld_options;
5555else
5556 withval=default
5557fi
5558
5559case "$withval" in
5560 default) EXTRA_LD_OPTIONS= ;;
5561 *) EXTRA_LD_OPTIONS=$withval ;;
5562esac
5563EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5564
5565
Gordon Henriksene61dd672007-10-02 09:50:32 +00005566# Check whether --enable-bindings was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005567if test "${enable_bindings+set}" = set; then
Gordon Henriksene61dd672007-10-02 09:50:32 +00005568 enableval=$enable_bindings;
5569else
5570 enableval=default
5571fi
5572
5573BINDINGS_TO_BUILD=""
5574case "$enableval" in
Gordon Henriksenacc2a832007-10-02 10:14:42 +00005575 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005576 all ) BINDINGS_TO_BUILD="ocaml" ;;
5577 none | no) BINDINGS_TO_BUILD="" ;;
5578 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5579 case "$a_binding" in
5580 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005581 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5582echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5583 { (exit 1); exit 1; }; } ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005584 esac
5585 done
5586 ;;
5587esac
5588
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005589
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005590# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005591if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005592 withval=$with_ocaml_libdir;
5593else
5594 withval=auto
5595fi
5596
5597case "$withval" in
5598 auto) with_ocaml_libdir="$withval" ;;
5599 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005600 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5601echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5602 { (exit 1); exit 1; }; } ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005603esac
5604
5605
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005606# Check whether --with-clang-srcdir was given.
5607if test "${with_clang_srcdir+set}" = set; then
5608 withval=$with_clang_srcdir;
5609else
5610 withval="-"
5611fi
5612
5613case "$withval" in
Eric Christopher7f977de2012-02-02 00:19:05 +00005614 -) clang_src_root="" ;;
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005615 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5616 *) clang_src_root="$ac_pwd/$withval" ;;
5617esac
5618CLANG_SRC_ROOT=$clang_src_root
5619
5620
5621
Chandler Carruthffae4a62010-10-19 08:21:25 +00005622# Check whether --with-clang-resource-dir was given.
5623if test "${with_clang_resource_dir+set}" = set; then
5624 withval=$with_clang_resource_dir;
5625else
5626 withval=""
5627fi
5628
5629
5630cat >>confdefs.h <<_ACEOF
5631#define CLANG_RESOURCE_DIR "$withval"
5632_ACEOF
5633
5634
5635
Rafael Espindola662908c2009-12-07 00:27:35 +00005636# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005637if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola662908c2009-12-07 00:27:35 +00005638 withval=$with_c_include_dirs;
Rafael Espindolad95960b2009-11-12 05:46:09 +00005639else
5640 withval=""
5641fi
5642
5643
5644cat >>confdefs.h <<_ACEOF
5645#define C_INCLUDE_DIRS "$withval"
5646_ACEOF
5647
5648
Rafael Espindolaec217f62012-02-03 00:59:30 +00005649# Clang normally uses the system c++ headers and libraries. With this option,
5650# clang will use the ones provided by a gcc installation instead. This option should
5651# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindolad95960b2009-11-12 05:46:09 +00005652
Rafael Espindolaec217f62012-02-03 00:59:30 +00005653# Check whether --with-gcc-toolchain was given.
5654if test "${with_gcc_toolchain+set}" = set; then
5655 withval=$with_gcc_toolchain;
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005656else
5657 withval=""
5658fi
5659
5660
5661cat >>confdefs.h <<_ACEOF
Rafael Espindolaec217f62012-02-03 00:59:30 +00005662#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005663_ACEOF
5664
5665
5666
Sebastian Pope29a6c72012-04-30 20:06:58 +00005667# Check whether --with-default-sysroot was given.
5668if test "${with_default_sysroot+set}" = set; then
5669 withval=$with_default_sysroot;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00005670else
5671 withval=""
5672fi
5673
5674
5675cat >>confdefs.h <<_ACEOF
5676#define DEFAULT_SYSROOT "$withval"
5677_ACEOF
5678
5679
5680
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005681# Check whether --with-binutils-include was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005682if test "${with_binutils_include+set}" = set; then
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005683 withval=$with_binutils_include;
5684else
5685 withval=default
5686fi
5687
5688case "$withval" in
5689 default) WITH_BINUTILS_INCDIR=default ;;
5690 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005691 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5692echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5693 { (exit 1); exit 1; }; } ;;
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005694esac
5695if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5696 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5697
5698 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5699 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005700 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5701echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5702 { (exit 1); exit 1; }; };
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005703 fi
5704fi
5705
Eric Christopher65080cc2011-07-20 17:04:49 +00005706
5707# Check whether --with-bug-report-url was given.
5708if test "${with_bug_report_url+set}" = set; then
5709 withval=$with_bug_report_url;
5710else
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00005711 withval="http://llvm.org/bugs/"
Eric Christopher65080cc2011-07-20 17:04:49 +00005712fi
5713
5714
5715cat >>confdefs.h <<_ACEOF
5716#define BUG_REPORT_URL "$withval"
5717_ACEOF
5718
5719
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005720# Check whether --enable-terminfo was given.
5721if test "${enable_terminfo+set}" = set; then
5722 enableval=$enable_terminfo; case "$enableval" in
5723 yes) llvm_cv_enable_terminfo="yes" ;;
5724 no) llvm_cv_enable_terminfo="no" ;;
5725 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5726echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005727 { (exit 1); exit 1; }; } ;;
5728 esac
5729else
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005730 llvm_cv_enable_terminfo="yes"
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005731fi
5732
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005733case "$llvm_cv_enable_terminfo" in
5734 yes) ENABLE_TERMINFO=1
5735 ;;
5736 no) ENABLE_TERMINFO=0
5737 ;;
5738esac
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005739
Peter Collingbournec7d437c2014-01-31 23:46:14 +00005740# Check whether --enable-libedit was given.
5741if test "${enable_libedit+set}" = set; then
5742 enableval=$enable_libedit; case "$enableval" in
5743 yes) llvm_cv_enable_libedit="yes" ;;
5744 no) llvm_cv_enable_libedit="no" ;;
5745 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5746echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5747 { (exit 1); exit 1; }; } ;;
5748 esac
5749else
5750 llvm_cv_enable_libedit="yes"
5751fi
5752
5753
Nick Lewycky86679902009-06-06 06:25:09 +00005754# Check whether --enable-libffi was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005755if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005756 enableval=$enable_libffi; case "$enableval" in
5757 yes) llvm_cv_enable_libffi="yes" ;;
5758 no) llvm_cv_enable_libffi="no" ;;
5759 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005760echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5761 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005762 esac
5763else
5764 llvm_cv_enable_libffi=no
5765fi
5766
Nick Lewycky86679902009-06-06 06:25:09 +00005767
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005768
Bob Wilson3f354702011-11-28 07:59:52 +00005769# Check whether --with-internal-prefix was given.
5770if test "${with_internal_prefix+set}" = set; then
5771 withval=$with_internal_prefix;
5772else
5773 withval=""
5774fi
5775
5776INTERNAL_PREFIX=$withval
5777
5778
5779
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005780{ echo "$as_me:$LINENO: checking for GNU make" >&5
5781echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5782if test "${llvm_cv_gnu_make_command+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005784else
5785 llvm_cv_gnu_make_command=''
5786 for a in "$MAKE" make gmake gnumake ; do
5787 if test -z "$a" ; then continue ; fi ;
5788 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5789 then
5790 llvm_cv_gnu_make_command=$a ;
5791 break;
5792 fi
5793 done
5794fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005795{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5796echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005797 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5798 ifGNUmake='' ;
5799 else
5800 ifGNUmake='#' ;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005801 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5802echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005803 fi
5804
5805
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005806{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5807echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005808LN_S=$as_ln_s
5809if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005810 { echo "$as_me:$LINENO: result: yes" >&5
5811echo "${ECHO_T}yes" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005812else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005813 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5814echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005815fi
5816
Rafael Espindolafd1355a2014-02-28 18:17:54 +00005817# Extract the first word of "nm", so it can be a program name with args.
5818set dummy nm; ac_word=$2
5819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5821if test "${ac_cv_path_NM+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 case $NM in
5825 [\\/]* | ?:[\\/]*)
5826 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5827 ;;
5828 *)
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841done
5842IFS=$as_save_IFS
5843
5844 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5845 ;;
5846esac
5847fi
5848NM=$ac_cv_path_NM
5849if test -n "$NM"; then
5850 { echo "$as_me:$LINENO: result: $NM" >&5
5851echo "${ECHO_T}$NM" >&6; }
5852else
5853 { echo "$as_me:$LINENO: result: no" >&5
5854echo "${ECHO_T}no" >&6; }
5855fi
5856
5857
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005858# Extract the first word of "cmp", so it can be a program name with args.
5859set dummy cmp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862if test "${ac_cv_path_CMP+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005864else
5865 case $CMP in
5866 [\\/]* | ?:[\\/]*)
5867 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5868 ;;
5869 *)
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005877 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005879 break 2
5880 fi
5881done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005882done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005883IFS=$as_save_IFS
5884
5885 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5886 ;;
5887esac
5888fi
5889CMP=$ac_cv_path_CMP
5890if test -n "$CMP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005891 { echo "$as_me:$LINENO: result: $CMP" >&5
5892echo "${ECHO_T}$CMP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005893else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005894 { echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005896fi
5897
5898
5899# Extract the first word of "cp", so it can be a program name with args.
5900set dummy cp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903if test "${ac_cv_path_CP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005905else
5906 case $CP in
5907 [\\/]* | ?:[\\/]*)
5908 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5909 ;;
5910 *)
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005918 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005920 break 2
5921 fi
5922done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005923done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005924IFS=$as_save_IFS
5925
5926 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5927 ;;
5928esac
5929fi
5930CP=$ac_cv_path_CP
5931if test -n "$CP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005932 { echo "$as_me:$LINENO: result: $CP" >&5
5933echo "${ECHO_T}$CP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005934else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005935 { echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005937fi
5938
5939
5940# Extract the first word of "date", so it can be a program name with args.
5941set dummy date; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944if test "${ac_cv_path_DATE+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005946else
5947 case $DATE in
5948 [\\/]* | ?:[\\/]*)
5949 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5950 ;;
5951 *)
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005959 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005961 break 2
5962 fi
5963done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005964done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005965IFS=$as_save_IFS
5966
5967 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5968 ;;
5969esac
5970fi
5971DATE=$ac_cv_path_DATE
5972if test -n "$DATE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005973 { echo "$as_me:$LINENO: result: $DATE" >&5
5974echo "${ECHO_T}$DATE" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005975else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005976 { echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005978fi
5979
5980
5981# Extract the first word of "find", so it can be a program name with args.
5982set dummy find; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985if test "${ac_cv_path_FIND+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005987else
5988 case $FIND in
5989 [\\/]* | ?:[\\/]*)
5990 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5991 ;;
5992 *)
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006000 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006002 break 2
6003 fi
6004done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006005done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006006IFS=$as_save_IFS
6007
6008 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6009 ;;
6010esac
6011fi
6012FIND=$ac_cv_path_FIND
6013if test -n "$FIND"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006014 { echo "$as_me:$LINENO: result: $FIND" >&5
6015echo "${ECHO_T}$FIND" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006016else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006017 { echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006019fi
6020
6021
6022# Extract the first word of "grep", so it can be a program name with args.
6023set dummy grep; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026if test "${ac_cv_path_GREP+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006028else
6029 case $GREP in
6030 [\\/]* | ?:[\\/]*)
6031 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6032 ;;
6033 *)
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006041 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006043 break 2
6044 fi
6045done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006046done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006047IFS=$as_save_IFS
6048
6049 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6050 ;;
6051esac
6052fi
6053GREP=$ac_cv_path_GREP
6054if test -n "$GREP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006055 { echo "$as_me:$LINENO: result: $GREP" >&5
6056echo "${ECHO_T}$GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006057else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006058 { echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006060fi
6061
6062
6063# Extract the first word of "mkdir", so it can be a program name with args.
6064set dummy mkdir; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067if test "${ac_cv_path_MKDIR+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006069else
6070 case $MKDIR in
6071 [\\/]* | ?:[\\/]*)
6072 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6073 ;;
6074 *)
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006082 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006084 break 2
6085 fi
6086done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006087done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006088IFS=$as_save_IFS
6089
6090 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6091 ;;
6092esac
6093fi
6094MKDIR=$ac_cv_path_MKDIR
6095if test -n "$MKDIR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006096 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6097echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006098else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006099 { echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006101fi
6102
6103
6104# Extract the first word of "mv", so it can be a program name with args.
6105set dummy mv; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108if test "${ac_cv_path_MV+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006110else
6111 case $MV in
6112 [\\/]* | ?:[\\/]*)
6113 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6114 ;;
6115 *)
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006123 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006125 break 2
6126 fi
6127done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006128done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006129IFS=$as_save_IFS
6130
6131 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6132 ;;
6133esac
6134fi
6135MV=$ac_cv_path_MV
6136if test -n "$MV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006137 { echo "$as_me:$LINENO: result: $MV" >&5
6138echo "${ECHO_T}$MV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006139else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006140 { echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006142fi
6143
6144
6145if test -n "$ac_tool_prefix"; then
6146 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6147set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150if test "${ac_cv_prog_RANLIB+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006152else
6153 if test -n "$RANLIB"; then
6154 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6155else
6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157for as_dir in $PATH
6158do
6159 IFS=$as_save_IFS
6160 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006163 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006165 break 2
6166 fi
6167done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006168done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006169IFS=$as_save_IFS
6170
6171fi
6172fi
6173RANLIB=$ac_cv_prog_RANLIB
6174if test -n "$RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006175 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6176echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006177else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006178 { echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006180fi
6181
6182
6183fi
6184if test -z "$ac_cv_prog_RANLIB"; then
6185 ac_ct_RANLIB=$RANLIB
6186 # Extract the first word of "ranlib", so it can be a program name with args.
6187set dummy ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006192else
6193 if test -n "$ac_ct_RANLIB"; then
6194 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6195else
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006203 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006205 break 2
6206 fi
6207done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006208done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006209IFS=$as_save_IFS
6210
6211fi
6212fi
6213ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6214if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006215 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6216echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006217else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006218 { echo "$as_me:$LINENO: result: no" >&5
6219echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006220fi
6221
6222 if test "x$ac_ct_RANLIB" = x; then
6223 RANLIB=":"
6224 else
6225 case $cross_compiling:$ac_tool_warned in
6226yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006227{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6228whose name does not start with the host triplet. If you think this
6229configuration is useful to you, please write to autoconf@gnu.org." >&5
6230echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6231whose name does not start with the host triplet. If you think this
6232configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006233ac_tool_warned=yes ;;
6234esac
6235 RANLIB=$ac_ct_RANLIB
6236 fi
6237else
6238 RANLIB="$ac_cv_prog_RANLIB"
6239fi
6240
Torok Edwinaec06332010-01-26 08:50:50 +00006241if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6243set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246if test "${ac_cv_prog_AR+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006248else
6249 if test -n "$AR"; then
6250 ac_cv_prog_AR="$AR" # Let the user override the test.
6251else
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwinaec06332010-01-26 08:50:50 +00006259 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006261 break 2
6262 fi
6263done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006264done
Torok Edwinaec06332010-01-26 08:50:50 +00006265IFS=$as_save_IFS
6266
6267fi
6268fi
6269AR=$ac_cv_prog_AR
6270if test -n "$AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006271 { echo "$as_me:$LINENO: result: $AR" >&5
6272echo "${ECHO_T}$AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006273else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006274 { echo "$as_me:$LINENO: result: no" >&5
6275echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006276fi
6277
6278
6279fi
6280if test -z "$ac_cv_prog_AR"; then
6281 ac_ct_AR=$AR
6282 # Extract the first word of "ar", so it can be a program name with args.
6283set dummy ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6286if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006288else
6289 if test -n "$ac_ct_AR"; then
6290 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwinaec06332010-01-26 08:50:50 +00006299 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006301 break 2
6302 fi
6303done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006304done
Torok Edwinaec06332010-01-26 08:50:50 +00006305IFS=$as_save_IFS
6306
6307fi
6308fi
6309ac_ct_AR=$ac_cv_prog_ac_ct_AR
6310if test -n "$ac_ct_AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006311 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6312echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006313else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006314 { echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006316fi
6317
6318 if test "x$ac_ct_AR" = x; then
6319 AR="false"
6320 else
6321 case $cross_compiling:$ac_tool_warned in
6322yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006323{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6324whose name does not start with the host triplet. If you think this
6325configuration is useful to you, please write to autoconf@gnu.org." >&5
6326echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6327whose name does not start with the host triplet. If you think this
6328configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwinaec06332010-01-26 08:50:50 +00006329ac_tool_warned=yes ;;
6330esac
6331 AR=$ac_ct_AR
6332 fi
6333else
6334 AR="$ac_cv_prog_AR"
6335fi
6336
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006337# Extract the first word of "rm", so it can be a program name with args.
6338set dummy rm; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341if test "${ac_cv_path_RM+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006343else
6344 case $RM in
6345 [\\/]* | ?:[\\/]*)
6346 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6347 ;;
6348 *)
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006356 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006358 break 2
6359 fi
6360done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006361done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006362IFS=$as_save_IFS
6363
6364 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6365 ;;
6366esac
6367fi
6368RM=$ac_cv_path_RM
6369if test -n "$RM"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006370 { echo "$as_me:$LINENO: result: $RM" >&5
6371echo "${ECHO_T}$RM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006372else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006373 { echo "$as_me:$LINENO: result: no" >&5
6374echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006375fi
6376
6377
6378# Extract the first word of "sed", so it can be a program name with args.
6379set dummy sed; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6382if test "${ac_cv_path_SED+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006384else
6385 case $SED in
6386 [\\/]* | ?:[\\/]*)
6387 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6388 ;;
6389 *)
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006397 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006399 break 2
6400 fi
6401done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006402done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006403IFS=$as_save_IFS
6404
6405 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6406 ;;
6407esac
6408fi
6409SED=$ac_cv_path_SED
6410if test -n "$SED"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006411 { echo "$as_me:$LINENO: result: $SED" >&5
6412echo "${ECHO_T}$SED" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006413else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006414 { echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006416fi
6417
6418
6419# Extract the first word of "tar", so it can be a program name with args.
6420set dummy tar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423if test "${ac_cv_path_TAR+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006425else
6426 case $TAR in
6427 [\\/]* | ?:[\\/]*)
6428 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6429 ;;
6430 *)
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006438 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006440 break 2
6441 fi
6442done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006443done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006444IFS=$as_save_IFS
6445
6446 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6447 ;;
6448esac
6449fi
6450TAR=$ac_cv_path_TAR
6451if test -n "$TAR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006452 { echo "$as_me:$LINENO: result: $TAR" >&5
6453echo "${ECHO_T}$TAR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006454else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006455 { echo "$as_me:$LINENO: result: no" >&5
6456echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006457fi
6458
6459
6460# Extract the first word of "pwd", so it can be a program name with args.
6461set dummy pwd; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464if test "${ac_cv_path_BINPWD+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006466else
6467 case $BINPWD in
6468 [\\/]* | ?:[\\/]*)
6469 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6470 ;;
6471 *)
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006479 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006481 break 2
6482 fi
6483done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006484done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006485IFS=$as_save_IFS
6486
6487 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6488 ;;
6489esac
6490fi
6491BINPWD=$ac_cv_path_BINPWD
6492if test -n "$BINPWD"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006493 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6494echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006495else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006496 { echo "$as_me:$LINENO: result: no" >&5
6497echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006498fi
6499
6500
6501
6502# Extract the first word of "Graphviz", so it can be a program name with args.
6503set dummy Graphviz; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006508else
6509 case $GRAPHVIZ in
6510 [\\/]* | ?:[\\/]*)
6511 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6512 ;;
6513 *)
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006521 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006523 break 2
6524 fi
6525done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006526done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006527IFS=$as_save_IFS
6528
6529 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6530 ;;
6531esac
6532fi
6533GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6534if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006535 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6536echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006537else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006538 { echo "$as_me:$LINENO: result: no" >&5
6539echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006540fi
6541
6542
6543if test "$GRAPHVIZ" != "echo Graphviz" ; then
6544
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006545cat >>confdefs.h <<\_ACEOF
6546#define HAVE_GRAPHVIZ 1
6547_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006548
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006549 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006550 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6551 fi
6552
6553cat >>confdefs.h <<_ACEOF
6554#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6555_ACEOF
6556
6557fi
6558# Extract the first word of "dot", so it can be a program name with args.
6559set dummy dot; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562if test "${ac_cv_path_DOT+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006564else
6565 case $DOT in
6566 [\\/]* | ?:[\\/]*)
6567 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6568 ;;
6569 *)
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006577 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006579 break 2
6580 fi
6581done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006582done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006583IFS=$as_save_IFS
6584
6585 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6586 ;;
6587esac
6588fi
6589DOT=$ac_cv_path_DOT
6590if test -n "$DOT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006591 { echo "$as_me:$LINENO: result: $DOT" >&5
6592echo "${ECHO_T}$DOT" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006593else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006594 { echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006596fi
6597
6598
6599if test "$DOT" != "echo dot" ; then
6600
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006601cat >>confdefs.h <<\_ACEOF
6602#define HAVE_DOT 1
6603_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006604
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006605 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006606 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6607 fi
6608
6609cat >>confdefs.h <<_ACEOF
6610#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6611_ACEOF
6612
6613fi
David Greened93c40b62009-07-09 17:16:26 +00006614# Extract the first word of "fdp", so it can be a program name with args.
6615set dummy fdp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618if test "${ac_cv_path_FDP+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006620else
6621 case $FDP in
6622 [\\/]* | ?:[\\/]*)
6623 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6624 ;;
6625 *)
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006633 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006635 break 2
6636 fi
6637done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006638done
David Greened93c40b62009-07-09 17:16:26 +00006639IFS=$as_save_IFS
6640
6641 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6642 ;;
6643esac
6644fi
6645FDP=$ac_cv_path_FDP
6646if test -n "$FDP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006647 { echo "$as_me:$LINENO: result: $FDP" >&5
6648echo "${ECHO_T}$FDP" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006649else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006650 { echo "$as_me:$LINENO: result: no" >&5
6651echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006652fi
6653
6654
6655if test "$FDP" != "echo fdp" ; then
6656
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006657cat >>confdefs.h <<\_ACEOF
6658#define HAVE_FDP 1
6659_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006660
6661 if test "$llvm_cv_os_type" = "MingW" ; then
6662 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6663 fi
6664
6665cat >>confdefs.h <<_ACEOF
6666#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6667_ACEOF
6668
6669fi
6670# Extract the first word of "neato", so it can be a program name with args.
6671set dummy neato; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674if test "${ac_cv_path_NEATO+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006676else
6677 case $NEATO in
6678 [\\/]* | ?:[\\/]*)
6679 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6680 ;;
6681 *)
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in $PATH
6684do
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006689 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006691 break 2
6692 fi
6693done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006694done
David Greened93c40b62009-07-09 17:16:26 +00006695IFS=$as_save_IFS
6696
6697 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6698 ;;
6699esac
6700fi
6701NEATO=$ac_cv_path_NEATO
6702if test -n "$NEATO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006703 { echo "$as_me:$LINENO: result: $NEATO" >&5
6704echo "${ECHO_T}$NEATO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006705else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006706 { echo "$as_me:$LINENO: result: no" >&5
6707echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006708fi
6709
6710
6711if test "$NEATO" != "echo neato" ; then
6712
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006713cat >>confdefs.h <<\_ACEOF
6714#define HAVE_NEATO 1
6715_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006716
6717 if test "$llvm_cv_os_type" = "MingW" ; then
6718 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6719 fi
6720
6721cat >>confdefs.h <<_ACEOF
6722#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6723_ACEOF
6724
6725fi
6726# Extract the first word of "twopi", so it can be a program name with args.
6727set dummy twopi; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730if test "${ac_cv_path_TWOPI+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006732else
6733 case $TWOPI in
6734 [\\/]* | ?:[\\/]*)
6735 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6736 ;;
6737 *)
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006745 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006747 break 2
6748 fi
6749done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006750done
David Greened93c40b62009-07-09 17:16:26 +00006751IFS=$as_save_IFS
6752
6753 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6754 ;;
6755esac
6756fi
6757TWOPI=$ac_cv_path_TWOPI
6758if test -n "$TWOPI"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006759 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6760echo "${ECHO_T}$TWOPI" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006761else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006762 { echo "$as_me:$LINENO: result: no" >&5
6763echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006764fi
6765
6766
6767if test "$TWOPI" != "echo twopi" ; then
6768
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006769cat >>confdefs.h <<\_ACEOF
6770#define HAVE_TWOPI 1
6771_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006772
6773 if test "$llvm_cv_os_type" = "MingW" ; then
6774 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6775 fi
6776
6777cat >>confdefs.h <<_ACEOF
6778#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6779_ACEOF
6780
6781fi
6782# Extract the first word of "circo", so it can be a program name with args.
6783set dummy circo; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786if test "${ac_cv_path_CIRCO+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006788else
6789 case $CIRCO in
6790 [\\/]* | ?:[\\/]*)
6791 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6792 ;;
6793 *)
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006801 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006803 break 2
6804 fi
6805done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006806done
David Greened93c40b62009-07-09 17:16:26 +00006807IFS=$as_save_IFS
6808
6809 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6810 ;;
6811esac
6812fi
6813CIRCO=$ac_cv_path_CIRCO
6814if test -n "$CIRCO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006815 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6816echo "${ECHO_T}$CIRCO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006817else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006818 { echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006820fi
6821
6822
6823if test "$CIRCO" != "echo circo" ; then
6824
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006825cat >>confdefs.h <<\_ACEOF
6826#define HAVE_CIRCO 1
6827_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006828
6829 if test "$llvm_cv_os_type" = "MingW" ; then
6830 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6831 fi
6832
6833cat >>confdefs.h <<_ACEOF
6834#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6835_ACEOF
6836
6837fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006838for ac_prog in gv gsview32
6839do
6840 # Extract the first word of "$ac_prog", so it can be a program name with args.
6841set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844if test "${ac_cv_path_GV+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006846else
6847 case $GV in
6848 [\\/]* | ?:[\\/]*)
6849 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6850 ;;
6851 *)
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006859 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006861 break 2
6862 fi
6863done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006864done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006865IFS=$as_save_IFS
6866
6867 ;;
6868esac
6869fi
6870GV=$ac_cv_path_GV
6871if test -n "$GV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006872 { echo "$as_me:$LINENO: result: $GV" >&5
6873echo "${ECHO_T}$GV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006874else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006877fi
6878
6879
6880 test -n "$GV" && break
6881done
6882test -n "$GV" || GV="echo gv"
6883
6884if test "$GV" != "echo gv" ; then
6885
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006886cat >>confdefs.h <<\_ACEOF
6887#define HAVE_GV 1
6888_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006889
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006890 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006891 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6892 fi
6893
6894cat >>confdefs.h <<_ACEOF
6895#define LLVM_PATH_GV "$GV${EXEEXT}"
6896_ACEOF
6897
6898fi
6899# Extract the first word of "dotty", so it can be a program name with args.
6900set dummy dotty; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903if test "${ac_cv_path_DOTTY+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006905else
6906 case $DOTTY in
6907 [\\/]* | ?:[\\/]*)
6908 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6909 ;;
6910 *)
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006918 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006920 break 2
6921 fi
6922done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006923done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006924IFS=$as_save_IFS
6925
6926 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6927 ;;
6928esac
6929fi
6930DOTTY=$ac_cv_path_DOTTY
6931if test -n "$DOTTY"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006932 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6933echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006934else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006935 { echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006937fi
6938
6939
6940if test "$DOTTY" != "echo dotty" ; then
6941
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006942cat >>confdefs.h <<\_ACEOF
6943#define HAVE_DOTTY 1
6944_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006945
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006946 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006947 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6948 fi
6949
6950cat >>confdefs.h <<_ACEOF
6951#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6952_ACEOF
6953
6954fi
Eric Christopher72ebead2013-07-08 21:18:54 +00006955for ac_prog in xdot xdot.py
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006956do
6957 # Extract the first word of "$ac_prog", so it can be a program name with args.
6958set dummy $ac_prog; ac_word=$2
Dan Gohmana0da8892010-09-27 16:28:34 +00006959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006961if test "${ac_cv_path_XDOT+set}" = set; then
Dan Gohmana0da8892010-09-27 16:28:34 +00006962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963else
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006964 case $XDOT in
Dan Gohmana0da8892010-09-27 16:28:34 +00006965 [\\/]* | ?:[\\/]*)
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006966 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
Dan Gohmana0da8892010-09-27 16:28:34 +00006967 ;;
6968 *)
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006976 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
Dan Gohmana0da8892010-09-27 16:28:34 +00006977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 break 2
6979 fi
6980done
6981done
6982IFS=$as_save_IFS
6983
Dan Gohmana0da8892010-09-27 16:28:34 +00006984 ;;
6985esac
6986fi
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006987XDOT=$ac_cv_path_XDOT
6988if test -n "$XDOT"; then
6989 { echo "$as_me:$LINENO: result: $XDOT" >&5
6990echo "${ECHO_T}$XDOT" >&6; }
Dan Gohmana0da8892010-09-27 16:28:34 +00006991else
6992 { echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6; }
6994fi
6995
6996
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006997 test -n "$XDOT" && break
6998done
6999test -n "$XDOT" || XDOT="echo xdot"
7000
7001if test "$XDOT" != "echo xdot" ; then
Dan Gohmana0da8892010-09-27 16:28:34 +00007002
7003cat >>confdefs.h <<\_ACEOF
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00007004#define HAVE_XDOT 1
Dan Gohmana0da8892010-09-27 16:28:34 +00007005_ACEOF
7006
7007 if test "$llvm_cv_os_type" = "MingW" ; then
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00007008 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
Dan Gohmana0da8892010-09-27 16:28:34 +00007009 fi
7010
7011cat >>confdefs.h <<_ACEOF
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00007012#define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
Dan Gohmana0da8892010-09-27 16:28:34 +00007013_ACEOF
7014
7015fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007016
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007017# Find a good install program. We prefer a C program (faster),
7018# so one script is as good as another. But avoid the broken or
7019# incompatible versions:
7020# SysV /etc/install, /usr/sbin/install
7021# SunOS /usr/etc/install
7022# IRIX /sbin/install
7023# AIX /bin/install
7024# AmigaOS /C/install, which installs bootblocks on floppy discs
7025# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7026# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7027# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7028# OS/2's system install, which has a completely different semantic
7029# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007030{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7031echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007032if test -z "$INSTALL"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007033if test "${ac_cv_path_install+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007035else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007041 # Account for people who put trailing slashes in PATH elements.
7042case $as_dir/ in
7043 ./ | .// | /cC/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007045 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007046 /usr/ucb/* ) ;;
7047 *)
7048 # OSF1 and SCO ODT 3.0 have their own names for install.
7049 # Don't use installbsd from OSF since it installs stuff as root
7050 # by default.
7051 for ac_prog in ginstall scoinst install; do
7052 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007053 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007054 if test $ac_prog = install &&
7055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056 # AIX install. It has an incompatible calling convention.
7057 :
7058 elif test $ac_prog = install &&
7059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7060 # program-specific install script used by HP pwplus--don't use.
7061 :
7062 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7064 break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007065 fi
7066 fi
7067 done
7068 done
7069 ;;
7070esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007071done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007072IFS=$as_save_IFS
7073
7074
7075fi
7076 if test "${ac_cv_path_install+set}" = set; then
7077 INSTALL=$ac_cv_path_install
7078 else
7079 # As a last resort, use the slow shell script. Don't cache a
7080 # value for INSTALL within a source directory, because that will
7081 # break other packages using the cache if that directory is
7082 # removed, or if the value is a relative name.
7083 INSTALL=$ac_install_sh
7084 fi
7085fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007086{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7087echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007088
7089# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7090# It thinks the first close brace ends the variable substitution.
7091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7092
7093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7094
7095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7096
Eric Christophere3befc72010-07-22 21:13:48 +00007097case "$INSTALL" in
7098 [\\/$]* | ?:[\\/]* ) ;;
7099 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7100esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007101
7102# Extract the first word of "bzip2", so it can be a program name with args.
7103set dummy bzip2; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106if test "${ac_cv_path_BZIP2+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007108else
7109 case $BZIP2 in
7110 [\\/]* | ?:[\\/]*)
7111 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7112 ;;
7113 *)
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007121 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007123 break 2
7124 fi
7125done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007126done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007127IFS=$as_save_IFS
7128
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007129 ;;
7130esac
7131fi
7132BZIP2=$ac_cv_path_BZIP2
7133if test -n "$BZIP2"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007134 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7135echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007136else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007137 { echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007139fi
7140
7141
mike-me08af302010-05-06 23:45:43 +00007142# Extract the first word of "cat", so it can be a program name with args.
7143set dummy cat; ac_word=$2
7144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146if test "${ac_cv_path_CAT+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149 case $CAT in
7150 [\\/]* | ?:[\\/]*)
7151 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7152 ;;
7153 *)
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165done
7166done
7167IFS=$as_save_IFS
7168
7169 ;;
7170esac
7171fi
7172CAT=$ac_cv_path_CAT
7173if test -n "$CAT"; then
7174 { echo "$as_me:$LINENO: result: $CAT" >&5
7175echo "${ECHO_T}$CAT" >&6; }
7176else
7177 { echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6; }
7179fi
7180
7181
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007182# Extract the first word of "doxygen", so it can be a program name with args.
7183set dummy doxygen; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186if test "${ac_cv_path_DOXYGEN+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007188else
7189 case $DOXYGEN in
7190 [\\/]* | ?:[\\/]*)
7191 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7192 ;;
7193 *)
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007201 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007203 break 2
7204 fi
7205done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007206done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007207IFS=$as_save_IFS
7208
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007209 ;;
7210esac
7211fi
7212DOXYGEN=$ac_cv_path_DOXYGEN
7213if test -n "$DOXYGEN"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007214 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7215echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007216else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007217 { echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007219fi
7220
7221
Daniel Dunbard1888822012-05-08 18:26:07 +00007222# Extract the first word of "groff", so it can be a program name with args.
7223set dummy groff; ac_word=$2
7224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226if test "${ac_cv_path_GROFF+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229 case $GROFF in
7230 [\\/]* | ?:[\\/]*)
7231 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7232 ;;
7233 *)
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245done
7246done
7247IFS=$as_save_IFS
7248
7249 ;;
7250esac
7251fi
7252GROFF=$ac_cv_path_GROFF
7253if test -n "$GROFF"; then
7254 { echo "$as_me:$LINENO: result: $GROFF" >&5
7255echo "${ECHO_T}$GROFF" >&6; }
7256else
7257 { echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6; }
7259fi
7260
7261
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007262# Extract the first word of "gzip", so it can be a program name with args.
7263set dummy gzip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher77560892010-12-10 01:31:51 +00007266if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007268else
Eric Christopher77560892010-12-10 01:31:51 +00007269 case $GZIPBIN in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007270 [\\/]* | ?:[\\/]*)
Eric Christopher77560892010-12-10 01:31:51 +00007271 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007272 ;;
7273 *)
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher77560892010-12-10 01:31:51 +00007281 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007283 break 2
7284 fi
7285done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007286done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007287IFS=$as_save_IFS
7288
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007289 ;;
7290esac
7291fi
Eric Christopher77560892010-12-10 01:31:51 +00007292GZIPBIN=$ac_cv_path_GZIPBIN
7293if test -n "$GZIPBIN"; then
7294 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7295echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007296else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007299fi
7300
7301
Daniel Dunbard1888822012-05-08 18:26:07 +00007302# Extract the first word of "pdfroff", so it can be a program name with args.
7303set dummy pdfroff; ac_word=$2
7304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306if test "${ac_cv_path_PDFROFF+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308else
7309 case $PDFROFF in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7312 ;;
7313 *)
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325done
7326done
7327IFS=$as_save_IFS
7328
7329 ;;
7330esac
7331fi
7332PDFROFF=$ac_cv_path_PDFROFF
7333if test -n "$PDFROFF"; then
7334 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7335echo "${ECHO_T}$PDFROFF" >&6; }
7336else
7337 { echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6; }
7339fi
7340
7341
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007342# Extract the first word of "zip", so it can be a program name with args.
7343set dummy zip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346if test "${ac_cv_path_ZIP+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007348else
7349 case $ZIP in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7352 ;;
7353 *)
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007361 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007363 break 2
7364 fi
7365done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007366done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007367IFS=$as_save_IFS
7368
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007369 ;;
7370esac
7371fi
7372ZIP=$ac_cv_path_ZIP
7373if test -n "$ZIP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007374 { echo "$as_me:$LINENO: result: $ZIP" >&5
7375echo "${ECHO_T}$ZIP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007376else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007377 { echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007379fi
7380
7381
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007382for ac_prog in ocamlc
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007383do
7384 # Extract the first word of "$ac_prog", so it can be a program name with args.
7385set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388if test "${ac_cv_path_OCAMLC+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007390else
7391 case $OCAMLC in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7394 ;;
7395 *)
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007403 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007405 break 2
7406 fi
7407done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007408done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007409IFS=$as_save_IFS
7410
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007411 ;;
7412esac
7413fi
7414OCAMLC=$ac_cv_path_OCAMLC
7415if test -n "$OCAMLC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007416 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7417echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007418else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007419 { echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007421fi
7422
7423
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007424 test -n "$OCAMLC" && break
7425done
7426
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007427for ac_prog in ocamlopt
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007428do
7429 # Extract the first word of "$ac_prog", so it can be a program name with args.
7430set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007435else
7436 case $OCAMLOPT in
7437 [\\/]* | ?:[\\/]*)
7438 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7439 ;;
7440 *)
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007448 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007450 break 2
7451 fi
7452done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007453done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007454IFS=$as_save_IFS
7455
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007456 ;;
7457esac
7458fi
7459OCAMLOPT=$ac_cv_path_OCAMLOPT
7460if test -n "$OCAMLOPT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007461 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7462echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007463else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007464 { echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007466fi
7467
7468
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007469 test -n "$OCAMLOPT" && break
7470done
7471
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007472for ac_prog in ocamldep
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007473do
7474 # Extract the first word of "$ac_prog", so it can be a program name with args.
7475set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksend1e16452007-09-20 16:48:18 +00007480else
7481 case $OCAMLDEP in
7482 [\\/]* | ?:[\\/]*)
7483 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7484 ;;
7485 *)
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksend1e16452007-09-20 16:48:18 +00007493 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksend1e16452007-09-20 16:48:18 +00007495 break 2
7496 fi
7497done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007498done
Gordon Henriksend1e16452007-09-20 16:48:18 +00007499IFS=$as_save_IFS
7500
Gordon Henriksend1e16452007-09-20 16:48:18 +00007501 ;;
7502esac
7503fi
7504OCAMLDEP=$ac_cv_path_OCAMLDEP
7505if test -n "$OCAMLDEP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007506 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7507echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007508else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007509 { echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007511fi
7512
7513
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007514 test -n "$OCAMLDEP" && break
7515done
7516
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007517for ac_prog in ocamldoc
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007518do
7519 # Extract the first word of "$ac_prog", so it can be a program name with args.
7520set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007525else
7526 case $OCAMLDOC in
7527 [\\/]* | ?:[\\/]*)
7528 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7529 ;;
7530 *)
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007538 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007540 break 2
7541 fi
7542done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007543done
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007544IFS=$as_save_IFS
7545
7546 ;;
7547esac
7548fi
7549OCAMLDOC=$ac_cv_path_OCAMLDOC
7550if test -n "$OCAMLDOC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007551 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7552echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007553else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007554 { echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007556fi
7557
7558
7559 test -n "$OCAMLDOC" && break
7560done
7561
Daniel Dunbard1888822012-05-08 18:26:07 +00007562for ac_prog in gas as
7563do
7564 # Extract the first word of "$ac_prog", so it can be a program name with args.
7565set dummy $ac_prog; ac_word=$2
7566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568if test "${ac_cv_path_GAS+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570else
7571 case $GAS in
7572 [\\/]* | ?:[\\/]*)
7573 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7574 ;;
7575 *)
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587done
7588done
7589IFS=$as_save_IFS
7590
7591 ;;
7592esac
7593fi
7594GAS=$ac_cv_path_GAS
7595if test -n "$GAS"; then
7596 { echo "$as_me:$LINENO: result: $GAS" >&5
7597echo "${ECHO_T}$GAS" >&6; }
7598else
7599 { echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6; }
7601fi
7602
7603
7604 test -n "$GAS" && break
7605done
7606
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007607
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007608{ echo "$as_me:$LINENO: checking for linker version" >&5
7609echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7610if test "${llvm_cv_link_version+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613
7614 version_string="$(ld -v 2>&1 | head -1)"
7615
7616 # Check for ld64.
7617 if (echo "$version_string" | grep -q "ld64"); then
Charles Davise56294d2012-02-28 02:55:41 +00007618 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007619 else
7620 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7621 fi
7622
7623fi
7624{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7625echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7626
7627cat >>confdefs.h <<_ACEOF
7628#define HOST_LINK_VERSION "$llvm_cv_link_version"
7629_ACEOF
7630
7631
7632
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007633
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007634{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7635echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7636if test "${llvm_cv_link_use_r+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007638else
7639 ac_ext=c
7640ac_cpp='$CPP $CPPFLAGS'
7641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645 oldcflags="$CFLAGS"
7646 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007647 cat >conftest.$ac_ext <<_ACEOF
7648/* confdefs.h. */
7649_ACEOF
7650cat confdefs.h >>conftest.$ac_ext
7651cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007652/* end confdefs.h. */
7653
7654int
7655main ()
7656{
Dan Gohmana1c94042010-04-25 00:12:20 +00007657
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007658 ;
7659 return 0;
7660}
7661_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007662rm -f conftest.$ac_objext conftest$ac_exeext
7663if { (ac_try="$ac_link"
7664case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667esac
7668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_link") 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } &&
7676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7677 { (case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680esac
7681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_try") 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007696 llvm_cv_link_use_r=yes
7697else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007698 echo "$as_me: failed program was:" >&5
7699sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 llvm_cv_link_use_r=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007702fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007703
Bill Wendling02b47d92009-04-18 11:20:33 +00007704rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007705 conftest$ac_exeext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007706 CFLAGS="$oldcflags"
7707 ac_ext=c
7708ac_cpp='$CPP $CPPFLAGS'
7709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712
7713
7714fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007715{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7716echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007717if test "$llvm_cv_link_use_r" = yes ; then
7718
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007719cat >>confdefs.h <<\_ACEOF
7720#define HAVE_LINK_R 1
7721_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007722
7723 fi
7724
7725
Bob Wilson8d7e6902013-08-02 22:51:11 +00007726{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7727echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007728if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007730else
7731 ac_ext=c
7732ac_cpp='$CPP $CPPFLAGS'
7733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736
7737 oldcflags="$CFLAGS"
Bob Wilson8d7e6902013-08-02 22:51:11 +00007738 CFLAGS="$CFLAGS -rdynamic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007739 cat >conftest.$ac_ext <<_ACEOF
7740/* confdefs.h. */
7741_ACEOF
7742cat confdefs.h >>conftest.$ac_ext
7743cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007744/* end confdefs.h. */
7745
7746int
7747main ()
7748{
Dan Gohmana1c94042010-04-25 00:12:20 +00007749
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007750 ;
7751 return 0;
7752}
7753_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007754rm -f conftest.$ac_objext conftest$ac_exeext
7755if { (ac_try="$ac_link"
7756case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759esac
7760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_link") 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7769 { (case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772esac
7773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_try") 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7782esac
7783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_try") 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007788 llvm_cv_link_use_export_dynamic=yes
7789else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007790 echo "$as_me: failed program was:" >&5
7791sed 's/^/| /' conftest.$ac_ext >&5
7792
7793 llvm_cv_link_use_export_dynamic=no
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007794fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007795
Bill Wendling02b47d92009-04-18 11:20:33 +00007796rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007797 conftest$ac_exeext conftest.$ac_ext
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007798 CFLAGS="$oldcflags"
7799 ac_ext=c
7800ac_cpp='$CPP $CPPFLAGS'
7801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805
7806fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007807{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7808echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007809if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7810
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007811cat >>confdefs.h <<\_ACEOF
7812#define HAVE_LINK_EXPORT_DYNAMIC 1
7813_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007814
7815 fi
7816
7817
Dan Gohmanb7edb422010-06-01 14:56:56 +00007818{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7819echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7820if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohmanfe051a52010-04-16 22:59:06 +00007821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822else
7823 ac_ext=c
7824ac_cpp='$CPP $CPPFLAGS'
7825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828
7829 oldcflags="$CFLAGS"
7830
7831 # The following code is from the autoconf manual,
7832 # "11.13: Limitations of Usual Tools".
7833 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7834 # Use mktemp if possible; otherwise fall back on mkdir,
7835 # with $RANDOM to make collisions less likely.
7836 : ${TMPDIR=/tmp}
7837 {
7838 tmp=`
7839 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7840 ` &&
7841 test -n "$tmp" && test -d "$tmp"
7842 } || {
7843 tmp=$TMPDIR/foo$$-$RANDOM
7844 (umask 077 && mkdir "$tmp")
7845 } || exit $?
7846
Dan Gohmanb7edb422010-06-01 14:56:56 +00007847 echo "{" > "$tmp/export.map"
7848 echo " global: main;" >> "$tmp/export.map"
7849 echo " local: *;" >> "$tmp/export.map"
7850 echo "};" >> "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007851
Dan Gohmanb7edb422010-06-01 14:56:56 +00007852 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007853 cat >conftest.$ac_ext <<_ACEOF
7854/* confdefs.h. */
7855_ACEOF
7856cat confdefs.h >>conftest.$ac_ext
7857cat >>conftest.$ac_ext <<_ACEOF
7858/* end confdefs.h. */
7859
7860int
7861main ()
7862{
Dan Gohmana1c94042010-04-25 00:12:20 +00007863
Dan Gohmanfe051a52010-04-16 22:59:06 +00007864 ;
7865 return 0;
7866}
7867_ACEOF
7868rm -f conftest.$ac_objext conftest$ac_exeext
7869if { (ac_try="$ac_link"
7870case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873esac
7874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7886esac
7887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
Dan Gohmanb7edb422010-06-01 14:56:56 +00007902 llvm_cv_link_use_version_script=yes
Dan Gohmanfe051a52010-04-16 22:59:06 +00007903else
7904 echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
Dan Gohmanc6998312010-06-01 16:22:27 +00007907 llvm_cv_link_use_version_script=no
Dan Gohmanfe051a52010-04-16 22:59:06 +00007908fi
7909
7910rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanb7edb422010-06-01 14:56:56 +00007912 rm "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007913 rmdir "$tmp"
7914 CFLAGS="$oldcflags"
7915 ac_ext=c
7916ac_cpp='$CPP $CPPFLAGS'
7917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920
7921
7922fi
Dan Gohmanb7edb422010-06-01 14:56:56 +00007923{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7924echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7925if test "$llvm_cv_link_use_version_script" = yes ; then
7926 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohmanfe051a52010-04-16 22:59:06 +00007927
7928 fi
7929
7930
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007931
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007932{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7933echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7934if test "${ac_cv_path_GREP+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936else
7937 # Extract the first word of "grep ggrep" to use in msg output
7938if test -z "$GREP"; then
7939set dummy grep ggrep; ac_prog_name=$2
7940if test "${ac_cv_path_GREP+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943 ac_path_GREP_found=false
7944# Loop through the user's path and test for each of PROGNAME-LIST
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_prog in grep ggrep; do
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7953 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7954 # Check for GNU ac_path_GREP and select it if it is found.
7955 # Check for GNU $ac_path_GREP
7956case `"$ac_path_GREP" --version 2>&1` in
7957*GNU*)
7958 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7959*)
7960 ac_count=0
7961 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7962 while :
7963 do
7964 cat "conftest.in" "conftest.in" >"conftest.tmp"
7965 mv "conftest.tmp" "conftest.in"
7966 cp "conftest.in" "conftest.nl"
7967 echo 'GREP' >> "conftest.nl"
7968 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7970 ac_count=`expr $ac_count + 1`
7971 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7972 # Best one so far, save it but keep looking for a better one
7973 ac_cv_path_GREP="$ac_path_GREP"
7974 ac_path_GREP_max=$ac_count
7975 fi
7976 # 10*(2^10) chars as input seems more than enough
7977 test $ac_count -gt 10 && break
7978 done
7979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7980esac
7981
7982
7983 $ac_path_GREP_found && break 3
7984 done
7985done
7986
7987done
7988IFS=$as_save_IFS
7989
7990
7991fi
7992
7993GREP="$ac_cv_path_GREP"
7994if test -z "$GREP"; then
7995 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7996echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7997 { (exit 1); exit 1; }; }
7998fi
7999
8000else
8001 ac_cv_path_GREP=$GREP
8002fi
8003
8004
8005fi
8006{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8007echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8008 GREP="$ac_cv_path_GREP"
8009
8010
8011{ echo "$as_me:$LINENO: checking for egrep" >&5
8012echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8013if test "${ac_cv_path_EGREP+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8017 then ac_cv_path_EGREP="$GREP -E"
8018 else
8019 # Extract the first word of "egrep" to use in msg output
8020if test -z "$EGREP"; then
8021set dummy egrep; ac_prog_name=$2
8022if test "${ac_cv_path_EGREP+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025 ac_path_EGREP_found=false
8026# Loop through the user's path and test for each of PROGNAME-LIST
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_prog in egrep; do
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8035 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8036 # Check for GNU ac_path_EGREP and select it if it is found.
8037 # Check for GNU $ac_path_EGREP
8038case `"$ac_path_EGREP" --version 2>&1` in
8039*GNU*)
8040 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8041*)
8042 ac_count=0
8043 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8044 while :
8045 do
8046 cat "conftest.in" "conftest.in" >"conftest.tmp"
8047 mv "conftest.tmp" "conftest.in"
8048 cp "conftest.in" "conftest.nl"
8049 echo 'EGREP' >> "conftest.nl"
8050 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8052 ac_count=`expr $ac_count + 1`
8053 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8054 # Best one so far, save it but keep looking for a better one
8055 ac_cv_path_EGREP="$ac_path_EGREP"
8056 ac_path_EGREP_max=$ac_count
8057 fi
8058 # 10*(2^10) chars as input seems more than enough
8059 test $ac_count -gt 10 && break
8060 done
8061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8062esac
8063
8064
8065 $ac_path_EGREP_found && break 3
8066 done
8067done
8068
8069done
8070IFS=$as_save_IFS
8071
8072
8073fi
8074
8075EGREP="$ac_cv_path_EGREP"
8076if test -z "$EGREP"; then
8077 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8078echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8079 { (exit 1); exit 1; }; }
8080fi
8081
8082else
8083 ac_cv_path_EGREP=$EGREP
8084fi
8085
8086
8087 fi
8088fi
8089{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8090echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8091 EGREP="$ac_cv_path_EGREP"
8092
8093
8094{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8095echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8096if test "${ac_cv_header_stdc+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099 cat >conftest.$ac_ext <<_ACEOF
8100/* confdefs.h. */
8101_ACEOF
8102cat confdefs.h >>conftest.$ac_ext
8103cat >>conftest.$ac_ext <<_ACEOF
8104/* end confdefs.h. */
8105#include <stdlib.h>
8106#include <stdarg.h>
8107#include <string.h>
8108#include <float.h>
8109
8110int
8111main ()
8112{
8113
8114 ;
8115 return 0;
8116}
8117_ACEOF
8118rm -f conftest.$ac_objext
8119if { (ac_try="$ac_compile"
8120case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8123esac
8124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_compile") 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8133 { (case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136esac
8137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_try") 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146esac
8147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_try") 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_header_stdc=yes
8153else
8154 echo "$as_me: failed program was:" >&5
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 ac_cv_header_stdc=no
8158fi
8159
8160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161
8162if test $ac_cv_header_stdc = yes; then
8163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8164 cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170#include <string.h>
8171
8172_ACEOF
8173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8174 $EGREP "memchr" >/dev/null 2>&1; then
8175 :
8176else
8177 ac_cv_header_stdc=no
8178fi
8179rm -f conftest*
8180
8181fi
8182
8183if test $ac_cv_header_stdc = yes; then
8184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8185 cat >conftest.$ac_ext <<_ACEOF
8186/* confdefs.h. */
8187_ACEOF
8188cat confdefs.h >>conftest.$ac_ext
8189cat >>conftest.$ac_ext <<_ACEOF
8190/* end confdefs.h. */
8191#include <stdlib.h>
8192
8193_ACEOF
8194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195 $EGREP "free" >/dev/null 2>&1; then
8196 :
8197else
8198 ac_cv_header_stdc=no
8199fi
8200rm -f conftest*
8201
8202fi
8203
8204if test $ac_cv_header_stdc = yes; then
8205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8206 if test "$cross_compiling" = yes; then
8207 :
8208else
8209 cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */
8215#include <ctype.h>
8216#include <stdlib.h>
8217#if ((' ' & 0x0FF) == 0x020)
8218# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8219# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8220#else
8221# define ISLOWER(c) \
8222 (('a' <= (c) && (c) <= 'i') \
8223 || ('j' <= (c) && (c) <= 'r') \
8224 || ('s' <= (c) && (c) <= 'z'))
8225# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8226#endif
8227
8228#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8229int
8230main ()
8231{
8232 int i;
8233 for (i = 0; i < 256; i++)
8234 if (XOR (islower (i), ISLOWER (i))
8235 || toupper (i) != TOUPPER (i))
8236 return 2;
8237 return 0;
8238}
8239_ACEOF
8240rm -f conftest$ac_exeext
8241if { (ac_try="$ac_link"
8242case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245esac
8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_link") 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8251 { (case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_try") 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 :
8261else
8262 echo "$as_me: program exited with status $ac_status" >&5
8263echo "$as_me: failed program was:" >&5
8264sed 's/^/| /' conftest.$ac_ext >&5
8265
8266( exit $ac_status )
8267ac_cv_header_stdc=no
8268fi
8269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8270fi
8271
8272
8273fi
8274fi
8275{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8276echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8277if test $ac_cv_header_stdc = yes; then
8278
8279cat >>confdefs.h <<\_ACEOF
8280#define STDC_HEADERS 1
8281_ACEOF
8282
8283fi
8284
Eric Christopherd7ed36b2014-01-09 01:09:57 +00008285# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8296 inttypes.h stdint.h unistd.h
8297do
8298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8299{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304 cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310$ac_includes_default
8311
8312#include <$ac_header>
8313_ACEOF
8314rm -f conftest.$ac_objext
8315if { (ac_try="$ac_compile"
8316case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319esac
8320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8329 { (case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332esac
8333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_try") 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest.$ac_objext'
8339 { (case "(($ac_try" in
8340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341 *) ac_try_echo=$ac_try;;
8342esac
8343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8344 (eval "$ac_try") 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 eval "$as_ac_Header=yes"
8349else
8350 echo "$as_me: failed program was:" >&5
8351sed 's/^/| /' conftest.$ac_ext >&5
8352
8353 eval "$as_ac_Header=no"
8354fi
8355
8356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357fi
8358ac_res=`eval echo '${'$as_ac_Header'}'`
8359 { echo "$as_me:$LINENO: result: $ac_res" >&5
8360echo "${ECHO_T}$ac_res" >&6; }
8361if test `eval echo '${'$as_ac_Header'}'` = yes; then
8362 cat >>confdefs.h <<_ACEOF
8363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8364_ACEOF
8365
8366fi
8367
8368done
8369
8370
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008371
Rafael Espindolafd1355a2014-02-28 18:17:54 +00008372for ac_header in errno.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008373do
8374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380fi
8381ac_res=`eval echo '${'$as_ac_Header'}'`
8382 { echo "$as_me:$LINENO: result: $ac_res" >&5
8383echo "${ECHO_T}$ac_res" >&6; }
8384else
8385 # Is the header compilable?
8386{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8388cat >conftest.$ac_ext <<_ACEOF
8389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
8394$ac_includes_default
8395#include <$ac_header>
8396_ACEOF
8397rm -f conftest.$ac_objext
8398if { (ac_try="$ac_compile"
8399case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8402esac
8403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_compile") 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412 { (case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8415esac
8416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_try") 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest.$ac_objext'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425esac
8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_try") 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_header_compiler=yes
8432else
8433 echo "$as_me: failed program was:" >&5
8434sed 's/^/| /' conftest.$ac_ext >&5
8435
8436 ac_header_compiler=no
8437fi
8438
8439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8441echo "${ECHO_T}$ac_header_compiler" >&6; }
8442
8443# Is the header present?
8444{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8446cat >conftest.$ac_ext <<_ACEOF
8447/* confdefs.h. */
8448_ACEOF
8449cat confdefs.h >>conftest.$ac_ext
8450cat >>conftest.$ac_ext <<_ACEOF
8451/* end confdefs.h. */
8452#include <$ac_header>
8453_ACEOF
8454if { (ac_try="$ac_cpp conftest.$ac_ext"
8455case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458esac
8459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } >/dev/null; then
8467 if test -s conftest.err; then
8468 ac_cpp_err=$ac_c_preproc_warn_flag
8469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8470 else
8471 ac_cpp_err=
8472 fi
8473else
8474 ac_cpp_err=yes
8475fi
8476if test -z "$ac_cpp_err"; then
8477 ac_header_preproc=yes
8478else
8479 echo "$as_me: failed program was:" >&5
8480sed 's/^/| /' conftest.$ac_ext >&5
8481
8482 ac_header_preproc=no
8483fi
8484
8485rm -f conftest.err conftest.$ac_ext
8486{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8487echo "${ECHO_T}$ac_header_preproc" >&6; }
8488
8489# So? What about this header?
8490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8491 yes:no: )
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8496 ac_header_preproc=yes
8497 ;;
8498 no:yes:* )
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8511 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +00008512## ------------------------------------ ##
8513## Report this to http://llvm.org/bugs/ ##
8514## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008515_ASBOX
8516 ) | sed "s/^/$as_me: WARNING: /" >&2
8517 ;;
8518esac
8519{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523else
8524 eval "$as_ac_Header=\$ac_header_preproc"
8525fi
8526ac_res=`eval echo '${'$as_ac_Header'}'`
8527 { echo "$as_me:$LINENO: result: $ac_res" >&5
8528echo "${ECHO_T}$ac_res" >&6; }
8529
8530fi
8531if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00008532 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +00008534_ACEOF
8535
8536fi
8537
8538done
8539
8540
Rafael Espindolafd1355a2014-02-28 18:17:54 +00008541case "$llvm_cv_os_type" in
8542 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8543 Darwin) llvm_shlib_ext=.dylib ;;
8544 *) llvm_shlib_ext=.so ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008545esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008546
Reid Spencera40c6872004-11-29 12:29:58 +00008547
8548cat >>confdefs.h <<_ACEOF
Rafael Espindolafd1355a2014-02-28 18:17:54 +00008549#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
Reid Spencera40c6872004-11-29 12:29:58 +00008550_ACEOF
8551
8552
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008553{ echo "$as_me:$LINENO: checking tool compatibility" >&5
8554echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00008555
Reid Spencerca06c8e2004-12-08 23:07:27 +00008556ICC=no
8557IXX=no
8558case $CC in
8559 icc*|icpc*)
8560 ICC=yes
8561 IXX=yes
8562 ;;
8563 *)
8564 ;;
8565esac
8566
Duraid Madina8604de82006-02-15 07:57:42 +00008567if test "$GCC" != "yes" && test "$ICC" != "yes"
8568then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008569 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8570echo "$as_me: error: gcc|icc required but not found" >&2;}
8571 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +00008572fi
8573
8574if test "$GXX" != "yes" && test "$IXX" != "yes"
8575then
Eric Christopher8d842da2010-12-08 02:02:14 +00008576 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8577echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008578 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +00008579fi
8580
Reid Spencerca06c8e2004-12-08 23:07:27 +00008581if test "$GCC" = "yes"
8582then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008583 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +00008584
8585 /* confdefs.h. */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h. */
8590
8591 #if !defined(__GNUC__) || __GNUC__ < 3
8592 #error Unsupported GCC version
8593 #endif
8594
Chris Lattnere115fb52008-02-05 19:43:53 +00008595
8596_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008597rm -f conftest.$ac_objext
8598if { (ac_try="$ac_compile"
8599case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8602esac
8603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_compile") 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8612 { (case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615esac
8616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_try") 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest.$ac_objext'
8622 { (case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625esac
8626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_try") 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 :
Chris Lattnere115fb52008-02-05 19:43:53 +00008632else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008633 echo "$as_me: failed program was:" >&5
8634sed 's/^/| /' conftest.$ac_ext >&5
8635
8636 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8637echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8638 { (exit 1); exit 1; }; }
Chris Lattnere115fb52008-02-05 19:43:53 +00008639fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008640
Chris Lattnere115fb52008-02-05 19:43:53 +00008641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00008642fi
8643
8644if test -z "$llvm_cv_gnu_make_command"
8645then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008646 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8647echo "$as_me: error: GNU Make required but not found" >&2;}
8648 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00008649fi
8650
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008651{ echo "$as_me:$LINENO: result: ok" >&5
8652echo "${ECHO_T}ok" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00008653
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008654{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
8655echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithf89ffcd2013-02-08 22:55:10 +00008656NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerougeb614dd32009-10-26 20:00:35 +00008657
Richard Smithf89ffcd2013-02-08 22:55:10 +00008658NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerougeb614dd32009-10-26 20:00:35 +00008659
Rafael Espindola42e94d12012-02-28 23:32:06 +00008660COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8661
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008662
8663NO_UNINITIALIZED=
8664NO_MAYBE_UNINITIALIZED=
David Greene9ff8d472013-01-09 22:11:13 +00008665if test "$GXX" = "yes"
8666then
Richard Smithf89ffcd2013-02-08 22:55:10 +00008667 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +00008668
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008669 if test -z "$NO_MAYBE_UNINITIALIZED"
David Greene9ff8d472013-01-09 22:11:13 +00008670 then
Richard Smithf89ffcd2013-02-08 22:55:10 +00008671 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +00008672
David Greene9ff8d472013-01-09 22:11:13 +00008673 fi
David Greene9ff8d472013-01-09 22:11:13 +00008674fi
Eric Christopher31f43542013-03-15 00:43:00 +00008675{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8676echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
David Greene9ff8d472013-01-09 22:11:13 +00008677
Julien Lerougeb614dd32009-10-26 20:00:35 +00008678
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008679# Check whether --with-python was given.
8680if test "${with_python+set}" = set; then
8681 withval=$with_python; PYTHON="$withval"
8682fi
8683
8684
8685if test -n "$PYTHON" && test -x "$PYTHON" ; then
8686 { echo "$as_me:$LINENO: checking for python" >&5
8687echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8688 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8689echo "${ECHO_T}user defined: $with_python" >&6; }
8690else
8691 if test -n "$PYTHON" ; then
8692 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8693echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8694 fi
8695
8696 # Extract the first word of "python python2 python26", so it can be a program name with args.
8697set dummy python python2 python26; ac_word=$2
8698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8700if test "${ac_cv_path_PYTHON+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702else
8703 case $PYTHON in
8704 [\\/]* | ?:[\\/]*)
8705 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8706 ;;
8707 *)
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709for as_dir in $PATH
8710do
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8715 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 break 2
8718 fi
8719done
8720done
8721IFS=$as_save_IFS
8722
8723 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8724echo "${ECHO_T}not found" >&6; }
8725 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8726echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8727 { (exit 1); exit 1; }; }"
8728 ;;
8729esac
8730fi
8731PYTHON=$ac_cv_path_PYTHON
8732if test -n "$PYTHON"; then
8733 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8734echo "${ECHO_T}$PYTHON" >&6; }
8735else
8736 { echo "$as_me:$LINENO: result: no" >&5
8737echo "${ECHO_T}no" >&6; }
8738fi
8739
8740
8741fi
8742
8743{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8744echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
Bill Wendling58463e4e82013-10-12 08:42:59 +00008745ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008746ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8747ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8748ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
Bill Wendling58463e4e82013-10-12 08:42:59 +00008749if test "$ac_python_version_major" -gt "2" || \
8750 (test "$ac_python_version_major" -eq "2" && \
8751 test "$ac_python_version_minor" -ge "5") ; then
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008752 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8753echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8754else
8755 { echo "$as_me:$LINENO: result: not found" >&5
8756echo "${ECHO_T}not found" >&6; }
8757 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8758See \`config.log' for more details." >&5
8759echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8760See \`config.log' for more details." >&2;}
8761 { (exit 1); exit 1; }; }
8762fi
8763
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00008764
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008765
8766{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
8767echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8768if test "${ac_cv_lib_m_sin+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerec4a7f522006-01-19 08:31:08 +00008770else
8771 ac_check_lib_save_LIBS=$LIBS
8772LIBS="-lm $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008773cat >conftest.$ac_ext <<_ACEOF
8774/* confdefs.h. */
8775_ACEOF
8776cat confdefs.h >>conftest.$ac_ext
8777cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerec4a7f522006-01-19 08:31:08 +00008778/* end confdefs.h. */
8779
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008780/* Override any GCC internal prototype to avoid an error.
8781 Use char because int might match the return type of a GCC
8782 builtin and then its argument prototype would still apply. */
Reid Spencerec4a7f522006-01-19 08:31:08 +00008783#ifdef __cplusplus
8784extern "C"
8785#endif
Reid Spencerec4a7f522006-01-19 08:31:08 +00008786char sin ();
8787int
8788main ()
8789{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008790return sin ();
Reid Spencerec4a7f522006-01-19 08:31:08 +00008791 ;
8792 return 0;
8793}
8794_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008795rm -f conftest.$ac_objext conftest$ac_exeext
8796if { (ac_try="$ac_link"
8797case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8800esac
8801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802 (eval "$ac_link") 2>conftest.er1
8803 ac_status=$?
8804 grep -v '^ *+' conftest.er1 >conftest.err
8805 rm -f conftest.er1
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8810 { (case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813esac
8814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_try") 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; } &&
8819 { ac_try='test -s conftest$ac_exeext'
8820 { (case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823esac
8824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_try") 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
Reid Spencerec4a7f522006-01-19 08:31:08 +00008829 ac_cv_lib_m_sin=yes
8830else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008831 echo "$as_me: failed program was:" >&5
8832sed 's/^/| /' conftest.$ac_ext >&5
8833
8834 ac_cv_lib_m_sin=no
Reid Spencerec4a7f522006-01-19 08:31:08 +00008835fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008836
Bill Wendling02b47d92009-04-18 11:20:33 +00008837rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008838 conftest$ac_exeext conftest.$ac_ext
Reid Spencerec4a7f522006-01-19 08:31:08 +00008839LIBS=$ac_check_lib_save_LIBS
8840fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008841{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8842echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8843if test $ac_cv_lib_m_sin = yes; then
Reid Spencerec4a7f522006-01-19 08:31:08 +00008844 cat >>confdefs.h <<_ACEOF
8845#define HAVE_LIBM 1
8846_ACEOF
8847
8848 LIBS="-lm $LIBS"
8849
8850fi
8851
Jeff Cohenc5e5b272007-01-12 18:22:38 +00008852if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008853
8854{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8855echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8856if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +00008858else
8859 ac_check_lib_save_LIBS=$LIBS
8860LIBS="-limagehlp $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008861cat >conftest.$ac_ext <<_ACEOF
8862/* confdefs.h. */
8863_ACEOF
8864cat confdefs.h >>conftest.$ac_ext
8865cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +00008866/* end confdefs.h. */
8867
Reid Spencer187b4ad2006-06-01 19:03:21 +00008868
Reid Spencera16b9862006-06-01 16:55:59 +00008869int
8870main ()
8871{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008872return main ();
Reid Spencera16b9862006-06-01 16:55:59 +00008873 ;
8874 return 0;
8875}
8876_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008877rm -f conftest.$ac_objext conftest$ac_exeext
8878if { (ac_try="$ac_link"
8879case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882esac
8883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_link") 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892 { (case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8895esac
8896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_try") 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +00008911 ac_cv_lib_imagehlp_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +00008912else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008913 echo "$as_me: failed program was:" >&5
8914sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 ac_cv_lib_imagehlp_main=no
Reid Spencera16b9862006-06-01 16:55:59 +00008917fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008918
Bill Wendling02b47d92009-04-18 11:20:33 +00008919rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008920 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +00008921LIBS=$ac_check_lib_save_LIBS
8922fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008923{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8924echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8925if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +00008926 cat >>confdefs.h <<_ACEOF
8927#define HAVE_LIBIMAGEHLP 1
8928_ACEOF
8929
8930 LIBS="-limagehlp $LIBS"
8931
8932fi
8933
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008934
8935{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8936echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8937if test "${ac_cv_lib_psapi_main+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +00008939else
8940 ac_check_lib_save_LIBS=$LIBS
8941LIBS="-lpsapi $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008942cat >conftest.$ac_ext <<_ACEOF
8943/* confdefs.h. */
8944_ACEOF
8945cat confdefs.h >>conftest.$ac_ext
8946cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +00008947/* end confdefs.h. */
8948
Reid Spencer187b4ad2006-06-01 19:03:21 +00008949
Reid Spencera16b9862006-06-01 16:55:59 +00008950int
8951main ()
8952{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008953return main ();
Reid Spencera16b9862006-06-01 16:55:59 +00008954 ;
8955 return 0;
8956}
8957_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008958rm -f conftest.$ac_objext conftest$ac_exeext
8959if { (ac_try="$ac_link"
8960case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963esac
8964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976esac
8977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986esac
8987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +00008992 ac_cv_lib_psapi_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +00008993else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008994 echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 ac_cv_lib_psapi_main=no
Reid Spencera16b9862006-06-01 16:55:59 +00008998fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008999
Bill Wendling02b47d92009-04-18 11:20:33 +00009000rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009001 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +00009002LIBS=$ac_check_lib_save_LIBS
9003fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009004{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
9005echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
9006if test $ac_cv_lib_psapi_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +00009007 cat >>confdefs.h <<_ACEOF
9008#define HAVE_LIBPSAPI 1
9009_ACEOF
9010
9011 LIBS="-lpsapi $LIBS"
9012
9013fi
9014
David Majnemer61eae2e2013-10-07 01:00:07 +00009015
9016{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
9017echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
9018if test "${ac_cv_lib_shell32_main+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021 ac_check_lib_save_LIBS=$LIBS
9022LIBS="-lshell32 $LIBS"
9023cat >conftest.$ac_ext <<_ACEOF
9024/* confdefs.h. */
9025_ACEOF
9026cat confdefs.h >>conftest.$ac_ext
9027cat >>conftest.$ac_ext <<_ACEOF
9028/* end confdefs.h. */
9029
9030
9031int
9032main ()
9033{
9034return main ();
9035 ;
9036 return 0;
9037}
9038_ACEOF
9039rm -f conftest.$ac_objext conftest$ac_exeext
9040if { (ac_try="$ac_link"
9041case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044esac
9045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_link") 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9054 { (case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9057esac
9058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_try") 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067esac
9068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_lib_shell32_main=yes
9074else
9075 echo "$as_me: failed program was:" >&5
9076sed 's/^/| /' conftest.$ac_ext >&5
9077
9078 ac_cv_lib_shell32_main=no
9079fi
9080
9081rm -f core conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9083LIBS=$ac_check_lib_save_LIBS
9084fi
9085{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9086echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9087if test $ac_cv_lib_shell32_main = yes; then
9088 cat >>confdefs.h <<_ACEOF
9089#define HAVE_LIBSHELL32 1
9090_ACEOF
9091
9092 LIBS="-lshell32 $LIBS"
9093
9094fi
9095
Reid Spencera16b9862006-06-01 16:55:59 +00009096fi
Reid Spencer1aa7d052005-07-12 15:24:20 +00009097
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009098{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9099echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9100if test "${ac_cv_search_dlopen+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00009102else
9103 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009104cat >conftest.$ac_ext <<_ACEOF
9105/* confdefs.h. */
9106_ACEOF
9107cat confdefs.h >>conftest.$ac_ext
9108cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00009109/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00009110
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009111/* Override any GCC internal prototype to avoid an error.
9112 Use char because int might match the return type of a GCC
9113 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +00009114#ifdef __cplusplus
9115extern "C"
9116#endif
John Criswell3ef61af2003-06-30 21:59:07 +00009117char dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +00009118int
9119main ()
9120{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009121return dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +00009122 ;
9123 return 0;
9124}
9125_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009126for ac_lib in '' dl; do
9127 if test -z "$ac_lib"; then
9128 ac_res="none required"
9129 else
9130 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +00009131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009132 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009133 rm -f conftest.$ac_objext conftest$ac_exeext
9134if { (ac_try="$ac_link"
9135case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9138esac
9139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_link") 2>conftest.er1
9141 ac_status=$?
9142 grep -v '^ *+' conftest.er1 >conftest.err
9143 rm -f conftest.er1
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9148 { (case "(($ac_try" in
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9151esac
9152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153 (eval "$ac_try") 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; } &&
9157 { ac_try='test -s conftest$ac_exeext'
9158 { (case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161esac
9162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_try") 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009167 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009168else
9169 echo "$as_me: failed program was:" >&5
9170sed 's/^/| /' conftest.$ac_ext >&5
9171
9172
John Criswell3ef61af2003-06-30 21:59:07 +00009173fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009174
Bill Wendling02b47d92009-04-18 11:20:33 +00009175rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009176 conftest$ac_exeext
9177 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009178 break
John Criswell3ef61af2003-06-30 21:59:07 +00009179fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009180done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009181if test "${ac_cv_search_dlopen+set}" = set; then
9182 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009183else
9184 ac_cv_search_dlopen=no
9185fi
9186rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00009187LIBS=$ac_func_search_save_LIBS
9188fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009189{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9190echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009191ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009192if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +00009194
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009195
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009196cat >>confdefs.h <<\_ACEOF
9197#define HAVE_DLOPEN 1
9198_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00009199
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009200HAVE_DLOPEN='1'
9201
9202
John Criswell3ef61af2003-06-30 21:59:07 +00009203else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009204 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9205echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00009206fi
9207
9208
Chandler Carruthef7f9682013-01-04 23:19:55 +00009209{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9210echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9211if test "${ac_cv_search_clock_gettime+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214 ac_func_search_save_LIBS=$LIBS
9215cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
9221
9222/* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9225#ifdef __cplusplus
9226extern "C"
9227#endif
9228char clock_gettime ();
9229int
9230main ()
9231{
9232return clock_gettime ();
9233 ;
9234 return 0;
9235}
9236_ACEOF
9237for ac_lib in '' rt; do
9238 if test -z "$ac_lib"; then
9239 ac_res="none required"
9240 else
9241 ac_res=-l$ac_lib
9242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9243 fi
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245if { (ac_try="$ac_link"
9246case "(($ac_try" in
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9249esac
9250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_link") 2>conftest.er1
9252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9259 { (case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262esac
9263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_try") 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; } &&
9268 { ac_try='test -s conftest$ac_exeext'
9269 { (case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272esac
9273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_try") 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9278 ac_cv_search_clock_gettime=$ac_res
9279else
9280 echo "$as_me: failed program was:" >&5
9281sed 's/^/| /' conftest.$ac_ext >&5
9282
9283
9284fi
9285
9286rm -f core conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext
9288 if test "${ac_cv_search_clock_gettime+set}" = set; then
9289 break
9290fi
9291done
9292if test "${ac_cv_search_clock_gettime+set}" = set; then
9293 :
9294else
9295 ac_cv_search_clock_gettime=no
9296fi
9297rm conftest.$ac_ext
9298LIBS=$ac_func_search_save_LIBS
9299fi
9300{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9301echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9302ac_res=$ac_cv_search_clock_gettime
9303if test "$ac_res" != no; then
9304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9305
Chandler Carruthef7f9682013-01-04 23:19:55 +00009306fi
9307
9308
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009309if test "$llvm_cv_enable_terminfo" = "yes" ; then
9310 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9311echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9312if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315 ac_func_search_save_LIBS=$LIBS
9316cat >conftest.$ac_ext <<_ACEOF
9317/* confdefs.h. */
9318_ACEOF
9319cat confdefs.h >>conftest.$ac_ext
9320cat >>conftest.$ac_ext <<_ACEOF
9321/* end confdefs.h. */
9322
9323/* Override any GCC internal prototype to avoid an error.
9324 Use char because int might match the return type of a GCC
9325 builtin and then its argument prototype would still apply. */
9326#ifdef __cplusplus
9327extern "C"
9328#endif
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009329char setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009330int
9331main ()
9332{
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009333return setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009334 ;
9335 return 0;
9336}
9337_ACEOF
Joerg Sonnenberger4e5a3992013-08-17 11:06:00 +00009338for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009339 if test -z "$ac_lib"; then
9340 ac_res="none required"
9341 else
9342 ac_res=-l$ac_lib
9343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9344 fi
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346if { (ac_try="$ac_link"
9347case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350esac
9351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_link") 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9360 { (case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9363esac
9364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_try") 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest$ac_exeext'
9370 { (case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9373esac
9374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_try") 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009379 ac_cv_search_setupterm=$ac_res
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009380else
9381 echo "$as_me: failed program was:" >&5
9382sed 's/^/| /' conftest.$ac_ext >&5
9383
9384
9385fi
9386
9387rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009389 if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009390 break
9391fi
9392done
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009393if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009394 :
9395else
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009396 ac_cv_search_setupterm=no
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009397fi
9398rm conftest.$ac_ext
9399LIBS=$ac_func_search_save_LIBS
9400fi
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009401{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9402echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9403ac_res=$ac_cv_search_setupterm
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009404if test "$ac_res" != no; then
9405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9406
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009407
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009408cat >>confdefs.h <<\_ACEOF
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009409#define HAVE_TERMINFO 1
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009410_ACEOF
9411
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009412HAVE_TERMINFO='1'
9413
9414
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009415fi
9416
9417fi
9418
Peter Collingbournec7d437c2014-01-31 23:46:14 +00009419if test "$llvm_cv_enable_libedit" = "yes" ; then
9420 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9421echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9422if test "${ac_cv_search_el_init+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425 ac_func_search_save_LIBS=$LIBS
9426cat >conftest.$ac_ext <<_ACEOF
9427/* confdefs.h. */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h. */
9432
9433/* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9436#ifdef __cplusplus
9437extern "C"
9438#endif
9439char el_init ();
9440int
9441main ()
9442{
9443return el_init ();
9444 ;
9445 return 0;
9446}
9447_ACEOF
9448for ac_lib in '' edit; do
9449 if test -z "$ac_lib"; then
9450 ac_res="none required"
9451 else
9452 ac_res=-l$ac_lib
9453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9454 fi
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456if { (ac_try="$ac_link"
9457case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9460esac
9461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_link") 2>conftest.er1
9463 ac_status=$?
9464 grep -v '^ *+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9470 { (case "(($ac_try" in
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9473esac
9474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475 (eval "$ac_try") 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; } &&
9479 { ac_try='test -s conftest$ac_exeext'
9480 { (case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483esac
9484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_try") 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_search_el_init=$ac_res
9490else
9491 echo "$as_me: failed program was:" >&5
9492sed 's/^/| /' conftest.$ac_ext >&5
9493
9494
9495fi
9496
9497rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext
9499 if test "${ac_cv_search_el_init+set}" = set; then
9500 break
9501fi
9502done
9503if test "${ac_cv_search_el_init+set}" = set; then
9504 :
9505else
9506 ac_cv_search_el_init=no
9507fi
9508rm conftest.$ac_ext
9509LIBS=$ac_func_search_save_LIBS
9510fi
9511{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9512echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9513ac_res=$ac_cv_search_el_init
9514if test "$ac_res" != no; then
9515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9516
9517cat >>confdefs.h <<\_ACEOF
9518#define HAVE_LIBEDIT 1
9519_ACEOF
9520
9521fi
9522
9523fi
9524
Nick Lewycky86679902009-06-06 06:25:09 +00009525if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009526 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9527echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9528if test "${ac_cv_search_ffi_call+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky11e92142009-02-04 06:27:44 +00009530else
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009531 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009532cat >conftest.$ac_ext <<_ACEOF
9533/* confdefs.h. */
9534_ACEOF
9535cat confdefs.h >>conftest.$ac_ext
9536cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +00009537/* end confdefs.h. */
9538
9539/* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9542#ifdef __cplusplus
9543extern "C"
9544#endif
9545char ffi_call ();
9546int
9547main ()
9548{
9549return ffi_call ();
9550 ;
9551 return 0;
9552}
9553_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009554for ac_lib in '' ffi; do
9555 if test -z "$ac_lib"; then
9556 ac_res="none required"
9557 else
9558 ac_res=-l$ac_lib
9559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9560 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009561 rm -f conftest.$ac_objext conftest$ac_exeext
9562if { (ac_try="$ac_link"
9563case "(($ac_try" in
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9566esac
9567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_link") 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9576 { (case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_try") 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9589esac
9590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009595 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600
Nick Lewycky11e92142009-02-04 06:27:44 +00009601fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009602
Bill Wendling02b47d92009-04-18 11:20:33 +00009603rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009604 conftest$ac_exeext
9605 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009606 break
Nick Lewycky11e92142009-02-04 06:27:44 +00009607fi
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009608done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009609if test "${ac_cv_search_ffi_call+set}" = set; then
9610 :
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009611else
9612 ac_cv_search_ffi_call=no
9613fi
9614rm conftest.$ac_ext
9615LIBS=$ac_func_search_save_LIBS
9616fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009617{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9618echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009619ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009620if test "$ac_res" != no; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9622
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009623cat >>confdefs.h <<\_ACEOF
9624#define HAVE_FFI_CALL 1
9625_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009626
Nick Lewycky11e92142009-02-04 06:27:44 +00009627else
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00009628 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9629echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9630 { (exit 1); exit 1; }; }
Nick Lewycky11e92142009-02-04 06:27:44 +00009631fi
9632
Nick Lewycky86679902009-06-06 06:25:09 +00009633fi
Nick Lewycky11e92142009-02-04 06:27:44 +00009634
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009635{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9636echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9637if test "${ac_cv_search_mallinfo+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00009639else
9640 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009641cat >conftest.$ac_ext <<_ACEOF
9642/* confdefs.h. */
9643_ACEOF
9644cat confdefs.h >>conftest.$ac_ext
9645cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00009646/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00009647
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009648/* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +00009651#ifdef __cplusplus
9652extern "C"
9653#endif
John Criswell3ef61af2003-06-30 21:59:07 +00009654char mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +00009655int
9656main ()
9657{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009658return mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +00009659 ;
9660 return 0;
9661}
9662_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009663for ac_lib in '' malloc; do
9664 if test -z "$ac_lib"; then
9665 ac_res="none required"
9666 else
9667 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +00009668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009669 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009670 rm -f conftest.$ac_objext conftest$ac_exeext
9671if { (ac_try="$ac_link"
9672case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675esac
9676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_link") 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9685 { (case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688esac
9689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_try") 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try='test -s conftest$ac_exeext'
9695 { (case "(($ac_try" in
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9698esac
9699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_try") 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009704 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009705else
9706 echo "$as_me: failed program was:" >&5
9707sed 's/^/| /' conftest.$ac_ext >&5
9708
9709
John Criswell3ef61af2003-06-30 21:59:07 +00009710fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009711
Bill Wendling02b47d92009-04-18 11:20:33 +00009712rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009713 conftest$ac_exeext
9714 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009715 break
John Criswell3ef61af2003-06-30 21:59:07 +00009716fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009717done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009718if test "${ac_cv_search_mallinfo+set}" = set; then
9719 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009720else
9721 ac_cv_search_mallinfo=no
9722fi
9723rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00009724LIBS=$ac_func_search_save_LIBS
9725fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009726{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9727echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009728ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009729if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +00009731
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009732cat >>confdefs.h <<\_ACEOF
9733#define HAVE_MALLINFO 1
9734_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00009735
9736fi
9737
9738
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00009739if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009740
9741{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9742echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9743if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer1aa7d052005-07-12 15:24:20 +00009745else
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009746 ac_check_lib_save_LIBS=$LIBS
9747LIBS="-lpthread $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009748cat >conftest.$ac_ext <<_ACEOF
9749/* confdefs.h. */
9750_ACEOF
9751cat confdefs.h >>conftest.$ac_ext
9752cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +00009753/* end confdefs.h. */
9754
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009755/* Override any GCC internal prototype to avoid an error.
9756 Use char because int might match the return type of a GCC
9757 builtin and then its argument prototype would still apply. */
Reid Spencer1aa7d052005-07-12 15:24:20 +00009758#ifdef __cplusplus
9759extern "C"
9760#endif
Reid Spencer1aa7d052005-07-12 15:24:20 +00009761char pthread_mutex_init ();
9762int
9763main ()
9764{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009765return pthread_mutex_init ();
Reid Spencer1aa7d052005-07-12 15:24:20 +00009766 ;
9767 return 0;
9768}
9769_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009770rm -f conftest.$ac_objext conftest$ac_exeext
9771if { (ac_try="$ac_link"
9772case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775esac
9776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9785 { (case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9788esac
9789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_try") 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; } &&
9794 { ac_try='test -s conftest$ac_exeext'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798esac
9799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009804 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer1aa7d052005-07-12 15:24:20 +00009805else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009806 echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer1aa7d052005-07-12 15:24:20 +00009810fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009811
Bill Wendling02b47d92009-04-18 11:20:33 +00009812rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009813 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009814LIBS=$ac_check_lib_save_LIBS
Reid Spencer1aa7d052005-07-12 15:24:20 +00009815fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009816{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9817echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9818if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009819 cat >>confdefs.h <<_ACEOF
9820#define HAVE_LIBPTHREAD 1
Edward O'Callaghana5314b82009-10-13 01:01:38 +00009821_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +00009822
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009823 LIBS="-lpthread $LIBS"
9824
Reid Spencer1aa7d052005-07-12 15:24:20 +00009825fi
9826
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009827 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9828echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9829if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009831else
9832 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009833cat >conftest.$ac_ext <<_ACEOF
9834/* confdefs.h. */
9835_ACEOF
9836cat confdefs.h >>conftest.$ac_ext
9837cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009838/* end confdefs.h. */
9839
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009840/* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009843#ifdef __cplusplus
9844extern "C"
9845#endif
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009846char pthread_mutex_lock ();
9847int
9848main ()
9849{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009850return pthread_mutex_lock ();
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009851 ;
9852 return 0;
9853}
9854_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009855for ac_lib in '' pthread; do
9856 if test -z "$ac_lib"; then
9857 ac_res="none required"
9858 else
9859 ac_res=-l$ac_lib
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009861 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009862 rm -f conftest.$ac_objext conftest$ac_exeext
9863if { (ac_try="$ac_link"
9864case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867esac
9868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_link") 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877 { (case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_try") 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009896 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009897else
9898 echo "$as_me: failed program was:" >&5
9899sed 's/^/| /' conftest.$ac_ext >&5
9900
9901
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009902fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009903
Bill Wendling02b47d92009-04-18 11:20:33 +00009904rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009905 conftest$ac_exeext
9906 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009907 break
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009908fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009909done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009910if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9911 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009912else
9913 ac_cv_search_pthread_mutex_lock=no
9914fi
9915rm conftest.$ac_ext
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009916LIBS=$ac_func_search_save_LIBS
9917fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009918{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9919echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009920ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009921if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009923
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009924cat >>confdefs.h <<\_ACEOF
9925#define HAVE_PTHREAD_MUTEX_LOCK 1
9926_ACEOF
John Criswell71c8d5e2004-09-24 21:19:06 +00009927
9928fi
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009929
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009930 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9931echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9932if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersona149e222009-06-16 18:20:20 +00009934else
9935 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h. */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +00009941/* end confdefs.h. */
9942
9943/* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9946#ifdef __cplusplus
9947extern "C"
9948#endif
9949char pthread_rwlock_init ();
9950int
9951main ()
9952{
9953return pthread_rwlock_init ();
9954 ;
9955 return 0;
9956}
9957_ACEOF
9958for ac_lib in '' pthread; do
9959 if test -z "$ac_lib"; then
9960 ac_res="none required"
9961 else
9962 ac_res=-l$ac_lib
9963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9964 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009965 rm -f conftest.$ac_objext conftest$ac_exeext
9966if { (ac_try="$ac_link"
9967case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970esac
9971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983esac
9984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_try") 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9993esac
9994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_try") 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
Owen Andersona149e222009-06-16 18:20:20 +00009999 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010000else
10001 echo "$as_me: failed program was:" >&5
10002sed 's/^/| /' conftest.$ac_ext >&5
10003
10004
Owen Andersona149e222009-06-16 18:20:20 +000010005fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010006
Owen Andersona149e222009-06-16 18:20:20 +000010007rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010008 conftest$ac_exeext
10009 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersona149e222009-06-16 18:20:20 +000010010 break
10011fi
10012done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010013if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10014 :
Owen Andersona149e222009-06-16 18:20:20 +000010015else
10016 ac_cv_search_pthread_rwlock_init=no
10017fi
10018rm conftest.$ac_ext
10019LIBS=$ac_func_search_save_LIBS
10020fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010021{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10022echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersona149e222009-06-16 18:20:20 +000010023ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010024if test "$ac_res" != no; then
Owen Andersona149e222009-06-16 18:20:20 +000010025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10026
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010027cat >>confdefs.h <<\_ACEOF
10028#define HAVE_PTHREAD_RWLOCK_INIT 1
10029_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000010030
10031fi
10032
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010033 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10034echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10035if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson11549832009-06-25 23:10:26 +000010037else
10038 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010039cat >conftest.$ac_ext <<_ACEOF
10040/* confdefs.h. */
10041_ACEOF
10042cat confdefs.h >>conftest.$ac_ext
10043cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000010044/* end confdefs.h. */
10045
10046/* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10049#ifdef __cplusplus
10050extern "C"
10051#endif
10052char pthread_getspecific ();
10053int
10054main ()
10055{
10056return pthread_getspecific ();
10057 ;
10058 return 0;
10059}
10060_ACEOF
10061for ac_lib in '' pthread; do
10062 if test -z "$ac_lib"; then
10063 ac_res="none required"
10064 else
10065 ac_res=-l$ac_lib
10066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10067 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010068 rm -f conftest.$ac_objext conftest$ac_exeext
10069if { (ac_try="$ac_link"
10070case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10073esac
10074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>conftest.er1
10076 ac_status=$?
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10083 { (case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10086esac
10087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088 (eval "$ac_try") 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try='test -s conftest$ac_exeext'
10093 { (case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096esac
10097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_try") 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
Owen Anderson11549832009-06-25 23:10:26 +000010102 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010103else
10104 echo "$as_me: failed program was:" >&5
10105sed 's/^/| /' conftest.$ac_ext >&5
10106
10107
Owen Anderson11549832009-06-25 23:10:26 +000010108fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010109
Owen Anderson11549832009-06-25 23:10:26 +000010110rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010111 conftest$ac_exeext
10112 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson11549832009-06-25 23:10:26 +000010113 break
10114fi
10115done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010116if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10117 :
Owen Anderson11549832009-06-25 23:10:26 +000010118else
10119 ac_cv_search_pthread_getspecific=no
10120fi
10121rm conftest.$ac_ext
10122LIBS=$ac_func_search_save_LIBS
10123fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010124{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10125echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson11549832009-06-25 23:10:26 +000010126ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010127if test "$ac_res" != no; then
Owen Anderson11549832009-06-25 23:10:26 +000010128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10129
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010130cat >>confdefs.h <<\_ACEOF
10131#define HAVE_PTHREAD_GETSPECIFIC 1
10132_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000010133
10134fi
10135
Reid Spencerf85fabeb2005-08-24 10:07:20 +000010136fi
Brian Gaeked3de6c02004-02-23 21:30:37 +000010137
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000010138if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10139
10140{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10141echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10142if test "${ac_cv_lib_z_compress2+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10144else
10145 ac_check_lib_save_LIBS=$LIBS
10146LIBS="-lz $LIBS"
10147cat >conftest.$ac_ext <<_ACEOF
10148/* confdefs.h. */
10149_ACEOF
10150cat confdefs.h >>conftest.$ac_ext
10151cat >>conftest.$ac_ext <<_ACEOF
10152/* end confdefs.h. */
10153
10154/* Override any GCC internal prototype to avoid an error.
10155 Use char because int might match the return type of a GCC
10156 builtin and then its argument prototype would still apply. */
10157#ifdef __cplusplus
10158extern "C"
10159#endif
10160char compress2 ();
10161int
10162main ()
10163{
10164return compress2 ();
10165 ;
10166 return 0;
10167}
10168_ACEOF
10169rm -f conftest.$ac_objext conftest$ac_exeext
10170if { (ac_try="$ac_link"
10171case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174esac
10175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_link") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10184 { (case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187esac
10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_try") 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; } &&
10193 { ac_try='test -s conftest$ac_exeext'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197esac
10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_lib_z_compress2=yes
10204else
10205 echo "$as_me: failed program was:" >&5
10206sed 's/^/| /' conftest.$ac_ext >&5
10207
10208 ac_cv_lib_z_compress2=no
10209fi
10210
10211rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213LIBS=$ac_check_lib_save_LIBS
10214fi
10215{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10216echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10217if test $ac_cv_lib_z_compress2 = yes; then
10218 cat >>confdefs.h <<_ACEOF
10219#define HAVE_LIBZ 1
10220_ACEOF
10221
10222 LIBS="-lz $LIBS"
10223
10224fi
10225
10226fi
10227
Reid Spencer0241e382004-11-25 04:51:04 +000010228
Reid Spencere5f3de32007-01-19 17:41:47 +000010229# Check whether --with-udis86 was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010230if test "${with_udis86+set}" = set; then
Reid Spencere5f3de32007-01-19 17:41:47 +000010231 withval=$with_udis86;
10232 USE_UDIS86=1
10233
10234 case "$withval" in
Reid Spencerdfda0612007-01-20 07:48:49 +000010235 /usr/lib|yes) ;;
Reid Spencere5f3de32007-01-19 17:41:47 +000010236 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10237 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010238
10239{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10240echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10241if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencere5f3de32007-01-19 17:41:47 +000010243else
10244 ac_check_lib_save_LIBS=$LIBS
10245LIBS="-ludis86 $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010246cat >conftest.$ac_ext <<_ACEOF
10247/* confdefs.h. */
10248_ACEOF
10249cat confdefs.h >>conftest.$ac_ext
10250cat >>conftest.$ac_ext <<_ACEOF
Reid Spencere5f3de32007-01-19 17:41:47 +000010251/* end confdefs.h. */
10252
10253/* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10256#ifdef __cplusplus
10257extern "C"
10258#endif
10259char ud_init ();
10260int
10261main ()
10262{
10263return ud_init ();
10264 ;
10265 return 0;
10266}
10267_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010268rm -f conftest.$ac_objext conftest$ac_exeext
10269if { (ac_try="$ac_link"
10270case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273esac
10274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286esac
10287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296esac
10297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_try") 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
Reid Spencere5f3de32007-01-19 17:41:47 +000010302 ac_cv_lib_udis86_ud_init=yes
10303else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010304 echo "$as_me: failed program was:" >&5
10305sed 's/^/| /' conftest.$ac_ext >&5
10306
10307 ac_cv_lib_udis86_ud_init=no
Reid Spencere5f3de32007-01-19 17:41:47 +000010308fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010309
Bill Wendling02b47d92009-04-18 11:20:33 +000010310rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010311 conftest$ac_exeext conftest.$ac_ext
Reid Spencere5f3de32007-01-19 17:41:47 +000010312LIBS=$ac_check_lib_save_LIBS
10313fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010314{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10315echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10316if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencere5f3de32007-01-19 17:41:47 +000010317 cat >>confdefs.h <<_ACEOF
10318#define HAVE_LIBUDIS86 1
10319_ACEOF
10320
10321 LIBS="-ludis86 $LIBS"
10322
10323else
10324
10325 echo "Error! You need to have libudis86 around."
10326 exit -1
10327
10328fi
10329
10330
10331else
10332 USE_UDIS86=0
10333
10334fi
10335
10336
10337cat >>confdefs.h <<_ACEOF
10338#define USE_UDIS86 $USE_UDIS86
10339_ACEOF
10340
10341
10342
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010343# Check whether --with-oprofile was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010344if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010345 withval=$with_oprofile;
10346 USE_OPROFILE=1
10347
10348 case "$withval" in
10349 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010350 no) llvm_cv_oppath=
10351 USE_OPROFILE=0
10352 ;;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010353 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher46342fe2012-08-03 17:45:31 +000010354 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010355 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000010356 case $llvm_cv_os_type in
10357 Linux)
10358 if test -n "$llvm_cv_oppath" ; then
10359 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10360 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010361echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10362if test "${ac_cv_search_bfd_init+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010364else
10365 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010366cat >conftest.$ac_ext <<_ACEOF
10367/* confdefs.h. */
10368_ACEOF
10369cat confdefs.h >>conftest.$ac_ext
10370cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010371/* end confdefs.h. */
10372
10373/* Override any GCC internal prototype to avoid an error.
10374 Use char because int might match the return type of a GCC
10375 builtin and then its argument prototype would still apply. */
10376#ifdef __cplusplus
10377extern "C"
10378#endif
10379char bfd_init ();
10380int
10381main ()
10382{
10383return bfd_init ();
10384 ;
10385 return 0;
10386}
10387_ACEOF
10388for ac_lib in '' bfd; do
10389 if test -z "$ac_lib"; then
10390 ac_res="none required"
10391 else
10392 ac_res=-l$ac_lib
10393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10394 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010395 rm -f conftest.$ac_objext conftest$ac_exeext
10396if { (ac_try="$ac_link"
10397case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400esac
10401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10410 { (case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413esac
10414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_try") 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; } &&
10419 { ac_try='test -s conftest$ac_exeext'
10420 { (case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10423esac
10424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_try") 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010429 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010430else
10431 echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
10434
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010435fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010436
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010437rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010438 conftest$ac_exeext
10439 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010440 break
10441fi
10442done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010443if test "${ac_cv_search_bfd_init+set}" = set; then
10444 :
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010445else
10446 ac_cv_search_bfd_init=no
10447fi
10448rm conftest.$ac_ext
10449LIBS=$ac_func_search_save_LIBS
10450fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010451{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10452echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010453ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010454if test "$ac_res" != no; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10456
10457fi
10458
Eli Bendersky5262ad22012-03-13 08:33:15 +000010459 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010460echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10461if test "${ac_cv_search_op_open_agent+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010463else
10464 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010465cat >conftest.$ac_ext <<_ACEOF
10466/* confdefs.h. */
10467_ACEOF
10468cat confdefs.h >>conftest.$ac_ext
10469cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010470/* end confdefs.h. */
10471
10472/* Override any GCC internal prototype to avoid an error.
10473 Use char because int might match the return type of a GCC
10474 builtin and then its argument prototype would still apply. */
10475#ifdef __cplusplus
10476extern "C"
10477#endif
10478char op_open_agent ();
10479int
10480main ()
10481{
10482return op_open_agent ();
10483 ;
10484 return 0;
10485}
10486_ACEOF
10487for ac_lib in '' opagent; do
10488 if test -z "$ac_lib"; then
10489 ac_res="none required"
10490 else
10491 ac_res=-l$ac_lib
10492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10493 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010494 rm -f conftest.$ac_objext conftest$ac_exeext
10495if { (ac_try="$ac_link"
10496case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499esac
10500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_link") 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10509 { (case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512esac
10513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_try") 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try='test -s conftest$ac_exeext'
10519 { (case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_try") 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010528 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010529else
10530 echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010534fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010535
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010536rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010537 conftest$ac_exeext
10538 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010539 break
10540fi
10541done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010542if test "${ac_cv_search_op_open_agent+set}" = set; then
10543 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010544else
10545 ac_cv_search_op_open_agent=no
10546fi
10547rm conftest.$ac_ext
10548LIBS=$ac_func_search_save_LIBS
10549fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010550{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10551echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010552ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010553if test "$ac_res" != no; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10555
10556else
10557
Eli Bendersky5262ad22012-03-13 08:33:15 +000010558 echo "Error! You need to have libopagent around."
10559 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010560
10561fi
10562
Eli Bendersky5262ad22012-03-13 08:33:15 +000010563 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010564 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10565echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10566if test "${ac_cv_header_opagent_h+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568fi
10569{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10570echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10571else
10572 # Is the header compilable?
10573{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
10574echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10575cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h. */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h. */
10581$ac_includes_default
10582#include <opagent.h>
10583_ACEOF
10584rm -f conftest.$ac_objext
10585if { (ac_try="$ac_compile"
10586case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589esac
10590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602esac
10603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612esac
10613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_try") 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_header_compiler=yes
10619else
10620 echo "$as_me: failed program was:" >&5
10621sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010622
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010623 ac_header_compiler=no
10624fi
10625
10626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10628echo "${ECHO_T}$ac_header_compiler" >&6; }
10629
10630# Is the header present?
10631{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
10632echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10633cat >conftest.$ac_ext <<_ACEOF
10634/* confdefs.h. */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h. */
10639#include <opagent.h>
10640_ACEOF
10641if { (ac_try="$ac_cpp conftest.$ac_ext"
10642case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645esac
10646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } >/dev/null; then
10654 if test -s conftest.err; then
10655 ac_cpp_err=$ac_c_preproc_warn_flag
10656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10657 else
10658 ac_cpp_err=
10659 fi
10660else
10661 ac_cpp_err=yes
10662fi
10663if test -z "$ac_cpp_err"; then
10664 ac_header_preproc=yes
10665else
10666 echo "$as_me: failed program was:" >&5
10667sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 ac_header_preproc=no
10670fi
10671
10672rm -f conftest.err conftest.$ac_ext
10673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674echo "${ECHO_T}$ac_header_preproc" >&6; }
10675
10676# So? What about this header?
10677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10678 yes:no: )
10679 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10680echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10682echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10683 ac_header_preproc=yes
10684 ;;
10685 no:yes:* )
10686 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10687echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10689echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10691echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10693echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10695echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10697echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10698 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000010699## ------------------------------------ ##
10700## Report this to http://llvm.org/bugs/ ##
10701## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010702_ASBOX
10703 ) | sed "s/^/$as_me: WARNING: /" >&2
10704 ;;
10705esac
10706{ echo "$as_me:$LINENO: checking for opagent.h" >&5
10707echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10708if test "${ac_cv_header_opagent_h+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 ac_cv_header_opagent_h=$ac_header_preproc
10712fi
10713{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10714echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10715
10716fi
10717if test $ac_cv_header_opagent_h = yes; then
10718 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010719else
10720
Eli Bendersky5262ad22012-03-13 08:33:15 +000010721 echo "Error! You need to have opagent.h around."
10722 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010723
10724fi
10725
10726
Eli Bendersky5262ad22012-03-13 08:33:15 +000010727 fi ;;
10728 *)
10729 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10730echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10731 { (exit 1); exit 1; }; } ;;
10732 esac
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010733
10734else
10735
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010736 USE_OPROFILE=0
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010737
10738
10739fi
10740
10741
10742cat >>confdefs.h <<_ACEOF
Eli Bendersky5262ad22012-03-13 08:33:15 +000010743#define LLVM_USE_OPROFILE $USE_OPROFILE
10744_ACEOF
10745
10746
10747
10748# Check whether --with-intel-jitevents was given.
10749if test "${with_intel_jitevents+set}" = set; then
10750 withval=$with_intel_jitevents;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010751 case "$withval" in
10752 yes) USE_INTEL_JITEVENTS=1
10753;;
10754 no) USE_INTEL_JITEVENTS=0
10755;;
10756 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10757echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10758 { (exit 1); exit 1; }; };;
10759 esac
10760
Eli Bendersky5262ad22012-03-13 08:33:15 +000010761 case $llvm_cv_os_type in
10762 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010763 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10764echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10765 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000010766 esac
10767
Eli Bendersky5262ad22012-03-13 08:33:15 +000010768 case "$llvm_cv_target_arch" in
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010769 x86|x86_64) ;;
10770 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10771echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10772 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000010773 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000010774
10775else
10776
10777 USE_INTEL_JITEVENTS=0
10778
10779
10780fi
10781
10782
10783cat >>confdefs.h <<_ACEOF
10784#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010785_ACEOF
10786
10787
Eric Christopherc807c532012-08-03 19:47:19 +000010788for ac_prog in xml2-config
10789do
10790 # Extract the first word of "$ac_prog", so it can be a program name with args.
10791set dummy $ac_prog; ac_word=$2
10792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10794if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796else
10797 if test -n "$XML2CONFIG"; then
10798 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10799else
10800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_prog_XML2CONFIG="$ac_prog"
10808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811done
10812done
10813IFS=$as_save_IFS
10814
10815fi
10816fi
10817XML2CONFIG=$ac_cv_prog_XML2CONFIG
10818if test -n "$XML2CONFIG"; then
10819 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10820echo "${ECHO_T}$XML2CONFIG" >&6; }
10821else
10822 { echo "$as_me:$LINENO: result: no" >&5
10823echo "${ECHO_T}no" >&6; }
10824fi
10825
10826
10827 test -n "$XML2CONFIG" && break
10828done
10829
10830
10831{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10832echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10833if test "x$XML2CONFIG" = "x"; then
10834 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10835echo "${ECHO_T}xml2-config not found" >&6; }
10836else
10837 LIBXML2_INC=`$XML2CONFIG --cflags`
10838 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10839echo "${ECHO_T}$LIBXML2_INC" >&6; }
10840 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10841echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10842if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844else
10845 ac_check_lib_save_LIBS=$LIBS
10846LIBS="-lxml2 $LIBS"
10847cat >conftest.$ac_ext <<_ACEOF
10848/* confdefs.h. */
10849_ACEOF
10850cat confdefs.h >>conftest.$ac_ext
10851cat >>conftest.$ac_ext <<_ACEOF
10852/* end confdefs.h. */
10853
10854/* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857#ifdef __cplusplus
10858extern "C"
10859#endif
10860char xmlReadFile ();
10861int
10862main ()
10863{
10864return xmlReadFile ();
10865 ;
10866 return 0;
10867}
10868_ACEOF
10869rm -f conftest.$ac_objext conftest$ac_exeext
10870if { (ac_try="$ac_link"
10871case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874esac
10875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_link") 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884 { (case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10887esac
10888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_try") 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest$ac_exeext'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897esac
10898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_cv_lib_xml2_xmlReadFile=yes
10904else
10905 echo "$as_me: failed program was:" >&5
10906sed 's/^/| /' conftest.$ac_ext >&5
10907
10908 ac_cv_lib_xml2_xmlReadFile=no
10909fi
10910
10911rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913LIBS=$ac_check_lib_save_LIBS
10914fi
10915{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10916echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10917if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10918
10919cat >>confdefs.h <<\_ACEOF
10920#define CLANG_HAVE_LIBXML 1
10921_ACEOF
10922
10923 LIBXML2_LIBS="-lxml2"
10924fi
10925
10926fi
10927
10928
10929
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010930
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010931
10932
10933
10934
10935
Reid Spencer8bc110c2004-12-25 07:31:29 +000010936ac_header_dirent=no
10937for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010938 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10939{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10940echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010943else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010944 cat >conftest.$ac_ext <<_ACEOF
10945/* confdefs.h. */
10946_ACEOF
10947cat confdefs.h >>conftest.$ac_ext
10948cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010949/* end confdefs.h. */
10950#include <sys/types.h>
10951#include <$ac_hdr>
10952
10953int
10954main ()
10955{
10956if ((DIR *) 0)
10957return 0;
10958 ;
10959 return 0;
10960}
10961_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010962rm -f conftest.$ac_objext
10963if { (ac_try="$ac_compile"
10964case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967esac
10968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10980esac
10981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_try") 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest.$ac_objext'
10987 { (case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990esac
10991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_try") 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000010996 eval "$as_ac_Header=yes"
10997else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010998 echo "$as_me: failed program was:" >&5
10999sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 eval "$as_ac_Header=no"
Reid Spencer8bc110c2004-12-25 07:31:29 +000011002fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011003
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000011005fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011006ac_res=`eval echo '${'$as_ac_Header'}'`
11007 { echo "$as_me:$LINENO: result: $ac_res" >&5
11008echo "${ECHO_T}$ac_res" >&6; }
11009if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000011010 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011011#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000011012_ACEOF
11013
11014ac_header_dirent=$ac_hdr; break
11015fi
11016
11017done
11018# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11019if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011020 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11021echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11022if test "${ac_cv_search_opendir+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000011024else
11025 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011026cat >conftest.$ac_ext <<_ACEOF
11027/* confdefs.h. */
11028_ACEOF
11029cat confdefs.h >>conftest.$ac_ext
11030cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011031/* end confdefs.h. */
11032
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011033/* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000011036#ifdef __cplusplus
11037extern "C"
11038#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011039char opendir ();
11040int
11041main ()
11042{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011043return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000011044 ;
11045 return 0;
11046}
11047_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011048for ac_lib in '' dir; do
11049 if test -z "$ac_lib"; then
11050 ac_res="none required"
11051 else
11052 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000011053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011054 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011055 rm -f conftest.$ac_objext conftest$ac_exeext
11056if { (ac_try="$ac_link"
11057case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060esac
11061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073esac
11074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083esac
11084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011089 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094
Reid Spencer8bc110c2004-12-25 07:31:29 +000011095fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011096
Bill Wendling02b47d92009-04-18 11:20:33 +000011097rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011098 conftest$ac_exeext
11099 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011100 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000011101fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011102done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011103if test "${ac_cv_search_opendir+set}" = set; then
11104 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011105else
11106 ac_cv_search_opendir=no
11107fi
11108rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000011109LIBS=$ac_func_search_save_LIBS
11110fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011111{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11112echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011113ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011114if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000011116
11117fi
11118
11119else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011120 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11121echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11122if test "${ac_cv_search_opendir+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000011124else
11125 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011126cat >conftest.$ac_ext <<_ACEOF
11127/* confdefs.h. */
11128_ACEOF
11129cat confdefs.h >>conftest.$ac_ext
11130cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011131/* end confdefs.h. */
11132
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011133/* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000011136#ifdef __cplusplus
11137extern "C"
11138#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011139char opendir ();
11140int
11141main ()
11142{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011143return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000011144 ;
11145 return 0;
11146}
11147_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011148for ac_lib in '' x; do
11149 if test -z "$ac_lib"; then
11150 ac_res="none required"
11151 else
11152 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000011153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011154 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011155 rm -f conftest.$ac_objext conftest$ac_exeext
11156if { (ac_try="$ac_link"
11157case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160esac
11161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_link") 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173esac
11174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest$ac_exeext'
11180 { (case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183esac
11184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011189 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011190else
11191 echo "$as_me: failed program was:" >&5
11192sed 's/^/| /' conftest.$ac_ext >&5
11193
11194
Reid Spencer8bc110c2004-12-25 07:31:29 +000011195fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011196
Bill Wendling02b47d92009-04-18 11:20:33 +000011197rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011198 conftest$ac_exeext
11199 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011200 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000011201fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011202done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011203if test "${ac_cv_search_opendir+set}" = set; then
11204 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011205else
11206 ac_cv_search_opendir=no
11207fi
11208rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000011209LIBS=$ac_func_search_save_LIBS
11210fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011211{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11212echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011213ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011214if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000011216
11217fi
11218
11219fi
11220
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011221{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11222echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11223if test "${ac_cv_header_mmap_anon+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000011225else
11226 ac_ext=c
11227ac_cpp='$CPP $CPPFLAGS'
11228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11230ac_compiler_gnu=$ac_cv_c_compiler_gnu
11231
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011232 cat >conftest.$ac_ext <<_ACEOF
11233/* confdefs.h. */
11234_ACEOF
11235cat confdefs.h >>conftest.$ac_ext
11236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011237/* end confdefs.h. */
11238#include <sys/mman.h>
11239#include <unistd.h>
11240#include <fcntl.h>
11241int
11242main ()
11243{
11244mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11245 ;
11246 return 0;
11247}
11248_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011249rm -f conftest.$ac_objext
11250if { (ac_try="$ac_compile"
11251case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254esac
11255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_compile") 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11264 { (case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267esac
11268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_try") 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277esac
11278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_try") 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000011283 ac_cv_header_mmap_anon=yes
11284else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011285 echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
11288 ac_cv_header_mmap_anon=no
Reid Spencer8bc110c2004-12-25 07:31:29 +000011289fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011290
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000011292 ac_ext=c
11293ac_cpp='$CPP $CPPFLAGS'
11294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11296ac_compiler_gnu=$ac_cv_c_compiler_gnu
11297
11298
11299fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011300{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11301echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000011302if test "$ac_cv_header_mmap_anon" = yes; then
11303
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011304cat >>confdefs.h <<\_ACEOF
11305#define HAVE_MMAP_ANONYMOUS 1
11306_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011307
11308fi
11309
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011310{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11311echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11312if test "${ac_cv_header_stat_broken+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000011314else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011315 cat >conftest.$ac_ext <<_ACEOF
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011320/* end confdefs.h. */
11321#include <sys/types.h>
11322#include <sys/stat.h>
11323
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011324#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011325# if S_ISBLK (S_IFDIR)
11326You lose.
11327# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011328#endif
11329
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011330#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011331# if S_ISBLK (S_IFCHR)
11332You lose.
11333# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011334#endif
11335
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011336#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011337# if S_ISLNK (S_IFREG)
11338You lose.
11339# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011340#endif
11341
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011342#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011343# if S_ISSOCK (S_IFREG)
11344You lose.
11345# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011346#endif
11347
11348_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11350 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwinaec06332010-01-26 08:50:50 +000011351 ac_cv_header_stat_broken=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011352else
11353 ac_cv_header_stat_broken=no
Mikhail Glushenkov4308aa52009-04-18 09:59:26 +000011354fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011355rm -f conftest*
11356
Reid Spencer8bc110c2004-12-25 07:31:29 +000011357fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011358{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11359echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000011360if test $ac_cv_header_stat_broken = yes; then
11361
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011362cat >>confdefs.h <<\_ACEOF
11363#define STAT_MACROS_BROKEN 1
11364_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011365
11366fi
11367
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011368{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11369echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11370if test "${ac_cv_header_sys_wait_h+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000011372else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011373 cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000011378/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000011379#include <sys/types.h>
11380#include <sys/wait.h>
11381#ifndef WEXITSTATUS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011382# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell3ef61af2003-06-30 21:59:07 +000011383#endif
11384#ifndef WIFEXITED
11385# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11386#endif
11387
John Criswell3ef61af2003-06-30 21:59:07 +000011388int
11389main ()
11390{
11391 int s;
11392 wait (&s);
11393 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11394 ;
11395 return 0;
11396}
11397_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011398rm -f conftest.$ac_objext
11399if { (ac_try="$ac_compile"
11400case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403esac
11404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_compile") 2>conftest.er1
11406 ac_status=$?
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -f conftest.er1
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11413 { (case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416esac
11417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_try") 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426esac
11427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_try") 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000011432 ac_cv_header_sys_wait_h=yes
11433else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011434 echo "$as_me: failed program was:" >&5
11435sed 's/^/| /' conftest.$ac_ext >&5
11436
11437 ac_cv_header_sys_wait_h=no
John Criswell3ef61af2003-06-30 21:59:07 +000011438fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011439
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000011441fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011442{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11443echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000011444if test $ac_cv_header_sys_wait_h = yes; then
11445
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011446cat >>confdefs.h <<\_ACEOF
11447#define HAVE_SYS_WAIT_H 1
11448_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000011449
11450fi
11451
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011452{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11453echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11454if test "${ac_cv_header_time+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000011456else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011457 cat >conftest.$ac_ext <<_ACEOF
11458/* confdefs.h. */
11459_ACEOF
11460cat confdefs.h >>conftest.$ac_ext
11461cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000011462/* end confdefs.h. */
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011463#include <sys/types.h>
Reid Spencer0241e382004-11-25 04:51:04 +000011464#include <sys/time.h>
11465#include <time.h>
11466
11467int
11468main ()
11469{
11470if ((struct tm *) 0)
11471return 0;
11472 ;
11473 return 0;
11474}
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011475_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011476rm -f conftest.$ac_objext
11477if { (ac_try="$ac_compile"
11478case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481esac
11482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11491 { (case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494esac
11495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_try") 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504esac
11505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000011510 ac_cv_header_time=yes
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011511else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011512 echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_cv_header_time=no
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011516fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011517
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000011519fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011520{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11521echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000011522if test $ac_cv_header_time = yes; then
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011523
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011524cat >>confdefs.h <<\_ACEOF
11525#define TIME_WITH_SYS_TIME 1
11526_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000011527
11528fi
11529
Reid Spencer0241e382004-11-25 04:51:04 +000011530
Benjamin Kramer00622f72013-05-03 15:55:06 +000011531ac_ext=cpp
11532ac_cpp='$CXXCPP $CPPFLAGS'
11533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11536
11537ac_ext=cpp
11538ac_cpp='$CXXCPP $CPPFLAGS'
11539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11542{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11543echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11544if test -z "$CXXCPP"; then
11545 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 # Double quotes because CXXCPP needs to be expanded
11549 for CXXCPP in "$CXX -E" "/lib/cpp"
11550 do
11551 ac_preproc_ok=false
11552for ac_cxx_preproc_warn_flag in '' yes
11553do
11554 # Use a header file that comes with gcc, so configuring glibc
11555 # with a fresh cross-compiler works.
11556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11557 # <limits.h> exists even on freestanding compilers.
11558 # On the NeXT, cc -E runs the code through the compiler's parser,
11559 # not just through cpp. "Syntax error" is here to catch this case.
11560 cat >conftest.$ac_ext <<_ACEOF
11561/* confdefs.h. */
11562_ACEOF
11563cat confdefs.h >>conftest.$ac_ext
11564cat >>conftest.$ac_ext <<_ACEOF
11565/* end confdefs.h. */
11566#ifdef __STDC__
11567# include <limits.h>
11568#else
11569# include <assert.h>
11570#endif
11571 Syntax error
11572_ACEOF
11573if { (ac_try="$ac_cpp conftest.$ac_ext"
11574case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577esac
11578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } >/dev/null; then
11586 if test -s conftest.err; then
11587 ac_cpp_err=$ac_cxx_preproc_warn_flag
11588 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11589 else
11590 ac_cpp_err=
11591 fi
11592else
11593 ac_cpp_err=yes
11594fi
11595if test -z "$ac_cpp_err"; then
11596 :
11597else
11598 echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601 # Broken: fails on valid input.
11602continue
11603fi
11604
11605rm -f conftest.err conftest.$ac_ext
11606
11607 # OK, works on sane cases. Now check whether nonexistent headers
11608 # can be detected and how.
11609 cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615#include <ac_nonexistent.h>
11616_ACEOF
11617if { (ac_try="$ac_cpp conftest.$ac_ext"
11618case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621esac
11622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } >/dev/null; then
11630 if test -s conftest.err; then
11631 ac_cpp_err=$ac_cxx_preproc_warn_flag
11632 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11633 else
11634 ac_cpp_err=
11635 fi
11636else
11637 ac_cpp_err=yes
11638fi
11639if test -z "$ac_cpp_err"; then
11640 # Broken: success on invalid input.
11641continue
11642else
11643 echo "$as_me: failed program was:" >&5
11644sed 's/^/| /' conftest.$ac_ext >&5
11645
11646 # Passes both tests.
11647ac_preproc_ok=:
11648break
11649fi
11650
11651rm -f conftest.err conftest.$ac_ext
11652
11653done
11654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11655rm -f conftest.err conftest.$ac_ext
11656if $ac_preproc_ok; then
11657 break
11658fi
11659
11660 done
11661 ac_cv_prog_CXXCPP=$CXXCPP
11662
11663fi
11664 CXXCPP=$ac_cv_prog_CXXCPP
11665else
11666 ac_cv_prog_CXXCPP=$CXXCPP
11667fi
11668{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
11669echo "${ECHO_T}$CXXCPP" >&6; }
11670ac_preproc_ok=false
11671for ac_cxx_preproc_warn_flag in '' yes
11672do
11673 # Use a header file that comes with gcc, so configuring glibc
11674 # with a fresh cross-compiler works.
11675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676 # <limits.h> exists even on freestanding compilers.
11677 # On the NeXT, cc -E runs the code through the compiler's parser,
11678 # not just through cpp. "Syntax error" is here to catch this case.
11679 cat >conftest.$ac_ext <<_ACEOF
11680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
11685#ifdef __STDC__
11686# include <limits.h>
11687#else
11688# include <assert.h>
11689#endif
11690 Syntax error
11691_ACEOF
11692if { (ac_try="$ac_cpp conftest.$ac_ext"
11693case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696esac
11697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } >/dev/null; then
11705 if test -s conftest.err; then
11706 ac_cpp_err=$ac_cxx_preproc_warn_flag
11707 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11708 else
11709 ac_cpp_err=
11710 fi
11711else
11712 ac_cpp_err=yes
11713fi
11714if test -z "$ac_cpp_err"; then
11715 :
11716else
11717 echo "$as_me: failed program was:" >&5
11718sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 # Broken: fails on valid input.
11721continue
11722fi
11723
11724rm -f conftest.err conftest.$ac_ext
11725
11726 # OK, works on sane cases. Now check whether nonexistent headers
11727 # can be detected and how.
11728 cat >conftest.$ac_ext <<_ACEOF
11729/* confdefs.h. */
11730_ACEOF
11731cat confdefs.h >>conftest.$ac_ext
11732cat >>conftest.$ac_ext <<_ACEOF
11733/* end confdefs.h. */
11734#include <ac_nonexistent.h>
11735_ACEOF
11736if { (ac_try="$ac_cpp conftest.$ac_ext"
11737case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } >/dev/null; then
11749 if test -s conftest.err; then
11750 ac_cpp_err=$ac_cxx_preproc_warn_flag
11751 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11752 else
11753 ac_cpp_err=
11754 fi
11755else
11756 ac_cpp_err=yes
11757fi
11758if test -z "$ac_cpp_err"; then
11759 # Broken: success on invalid input.
11760continue
11761else
11762 echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
11765 # Passes both tests.
11766ac_preproc_ok=:
11767break
11768fi
11769
11770rm -f conftest.err conftest.$ac_ext
11771
11772done
11773# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11774rm -f conftest.err conftest.$ac_ext
11775if $ac_preproc_ok; then
11776 :
11777else
11778 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11779See \`config.log' for more details." >&5
11780echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11781See \`config.log' for more details." >&2;}
11782 { (exit 1); exit 1; }; }
11783fi
11784
11785ac_ext=cpp
11786ac_cpp='$CXXCPP $CPPFLAGS'
11787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11790
11791
11792
11793for ac_header in cxxabi.h
11794do
11795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801fi
11802ac_res=`eval echo '${'$as_ac_Header'}'`
11803 { echo "$as_me:$LINENO: result: $ac_res" >&5
11804echo "${ECHO_T}$ac_res" >&6; }
11805else
11806 # Is the header compilable?
11807{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11809cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815$ac_includes_default
11816#include <$ac_header>
11817_ACEOF
11818rm -f conftest.$ac_objext
11819if { (ac_try="$ac_compile"
11820case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11823esac
11824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_compile") 2>conftest.er1
11826 ac_status=$?
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11833 { (case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836esac
11837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_try") 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_try") 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_header_compiler=yes
11853else
11854 echo "$as_me: failed program was:" >&5
11855sed 's/^/| /' conftest.$ac_ext >&5
11856
11857 ac_header_compiler=no
11858fi
11859
11860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11862echo "${ECHO_T}$ac_header_compiler" >&6; }
11863
11864# Is the header present?
11865{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11867cat >conftest.$ac_ext <<_ACEOF
11868/* confdefs.h. */
11869_ACEOF
11870cat confdefs.h >>conftest.$ac_ext
11871cat >>conftest.$ac_ext <<_ACEOF
11872/* end confdefs.h. */
11873#include <$ac_header>
11874_ACEOF
11875if { (ac_try="$ac_cpp conftest.$ac_ext"
11876case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11879esac
11880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } >/dev/null; then
11888 if test -s conftest.err; then
11889 ac_cpp_err=$ac_cxx_preproc_warn_flag
11890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11891 else
11892 ac_cpp_err=
11893 fi
11894else
11895 ac_cpp_err=yes
11896fi
11897if test -z "$ac_cpp_err"; then
11898 ac_header_preproc=yes
11899else
11900 echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 ac_header_preproc=no
11904fi
11905
11906rm -f conftest.err conftest.$ac_ext
11907{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11908echo "${ECHO_T}$ac_header_preproc" >&6; }
11909
11910# So? What about this header?
11911case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11912 yes:no: )
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11917 ac_header_preproc=yes
11918 ;;
11919 no:yes:* )
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11932 ( cat <<\_ASBOX
11933## ------------------------------------ ##
11934## Report this to http://llvm.org/bugs/ ##
11935## ------------------------------------ ##
11936_ASBOX
11937 ) | sed "s/^/$as_me: WARNING: /" >&2
11938 ;;
11939esac
11940{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 eval "$as_ac_Header=\$ac_header_preproc"
11946fi
11947ac_res=`eval echo '${'$as_ac_Header'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949echo "${ECHO_T}$ac_res" >&6; }
11950
11951fi
11952if test `eval echo '${'$as_ac_Header'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11955_ACEOF
11956
11957fi
11958
11959done
11960
11961ac_ext=c
11962ac_cpp='$CPP $CPPFLAGS'
11963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011966
11967
11968
11969
11970
11971
Eric Christopher30536382013-07-26 17:13:47 +000011972for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011973do
11974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980fi
11981ac_res=`eval echo '${'$as_ac_Header'}'`
11982 { echo "$as_me:$LINENO: result: $ac_res" >&5
11983echo "${ECHO_T}$ac_res" >&6; }
11984else
11985 # Is the header compilable?
11986{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11988cat >conftest.$ac_ext <<_ACEOF
11989/* confdefs.h. */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h. */
11994$ac_includes_default
11995#include <$ac_header>
11996_ACEOF
11997rm -f conftest.$ac_objext
11998if { (ac_try="$ac_compile"
11999case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002esac
12003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025esac
12026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_header_compiler=yes
12032else
12033 echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_header_compiler=no
12037fi
12038
12039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041echo "${ECHO_T}$ac_header_compiler" >&6; }
12042
12043# Is the header present?
12044{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12046cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052#include <$ac_header>
12053_ACEOF
12054if { (ac_try="$ac_cpp conftest.$ac_ext"
12055case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058esac
12059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
12069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12070 else
12071 ac_cpp_err=
12072 fi
12073else
12074 ac_cpp_err=yes
12075fi
12076if test -z "$ac_cpp_err"; then
12077 ac_header_preproc=yes
12078else
12079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_header_preproc=no
12083fi
12084
12085rm -f conftest.err conftest.$ac_ext
12086{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12087echo "${ECHO_T}$ac_header_preproc" >&6; }
12088
12089# So? What about this header?
12090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091 yes:no: )
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12096 ac_header_preproc=yes
12097 ;;
12098 no:yes:* )
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12102echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12106echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12111 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012112## ------------------------------------ ##
12113## Report this to http://llvm.org/bugs/ ##
12114## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012115_ASBOX
12116 ) | sed "s/^/$as_me: WARNING: /" >&2
12117 ;;
12118esac
12119{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 eval "$as_ac_Header=\$ac_header_preproc"
12125fi
12126ac_res=`eval echo '${'$as_ac_Header'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128echo "${ECHO_T}$ac_res" >&6; }
12129
12130fi
12131if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000012132 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0241e382004-11-25 04:51:04 +000012134_ACEOF
Brian Gaeke4eea32f2004-02-23 22:07:00 +000012135
12136fi
Brian Gaeke4eea32f2004-02-23 22:07:00 +000012137
Reid Spencer8bc110c2004-12-25 07:31:29 +000012138done
Brian Gaeke4eea32f2004-02-23 22:07:00 +000012139
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012140
12141
12142
12143
12144
12145
Douglas Gregorb81294d2009-05-18 17:21:34 +000012146for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012147do
12148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154fi
12155ac_res=`eval echo '${'$as_ac_Header'}'`
12156 { echo "$as_me:$LINENO: result: $ac_res" >&5
12157echo "${ECHO_T}$ac_res" >&6; }
12158else
12159 # Is the header compilable?
12160{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12162cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168$ac_includes_default
12169#include <$ac_header>
12170_ACEOF
12171rm -f conftest.$ac_objext
12172if { (ac_try="$ac_compile"
12173case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176esac
12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_compile") 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189esac
12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest.$ac_objext'
12196 { (case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199esac
12200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_try") 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_header_compiler=yes
12206else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_header_compiler=no
12211fi
12212
12213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12215echo "${ECHO_T}$ac_header_compiler" >&6; }
12216
12217# Is the header present?
12218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12220cat >conftest.$ac_ext <<_ACEOF
12221/* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
12226#include <$ac_header>
12227_ACEOF
12228if { (ac_try="$ac_cpp conftest.$ac_ext"
12229case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } >/dev/null; then
12241 if test -s conftest.err; then
12242 ac_cpp_err=$ac_c_preproc_warn_flag
12243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12244 else
12245 ac_cpp_err=
12246 fi
12247else
12248 ac_cpp_err=yes
12249fi
12250if test -z "$ac_cpp_err"; then
12251 ac_header_preproc=yes
12252else
12253 echo "$as_me: failed program was:" >&5
12254sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 ac_header_preproc=no
12257fi
12258
12259rm -f conftest.err conftest.$ac_ext
12260{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12261echo "${ECHO_T}$ac_header_preproc" >&6; }
12262
12263# So? What about this header?
12264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12265 yes:no: )
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12270 ac_header_preproc=yes
12271 ;;
12272 no:yes:* )
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12285 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012286## ------------------------------------ ##
12287## Report this to http://llvm.org/bugs/ ##
12288## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012289_ASBOX
12290 ) | sed "s/^/$as_me: WARNING: /" >&2
12291 ;;
12292esac
12293{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297else
12298 eval "$as_ac_Header=\$ac_header_preproc"
12299fi
12300ac_res=`eval echo '${'$as_ac_Header'}'`
12301 { echo "$as_me:$LINENO: result: $ac_res" >&5
12302echo "${ECHO_T}$ac_res" >&6; }
12303
12304fi
12305if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000012306 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000012308_ACEOF
12309
12310fi
12311
12312done
12313
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012314
Eric Christopher30536382013-07-26 17:13:47 +000012315for ac_header in utime.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012316do
12317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323fi
12324ac_res=`eval echo '${'$as_ac_Header'}'`
12325 { echo "$as_me:$LINENO: result: $ac_res" >&5
12326echo "${ECHO_T}$ac_res" >&6; }
12327else
12328 # Is the header compilable?
12329{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12331cat >conftest.$ac_ext <<_ACEOF
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
12336/* end confdefs.h. */
12337$ac_includes_default
12338#include <$ac_header>
12339_ACEOF
12340rm -f conftest.$ac_objext
12341if { (ac_try="$ac_compile"
12342case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12345esac
12346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_compile") 2>conftest.er1
12348 ac_status=$?
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12355 { (case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358esac
12359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_try") 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12368esac
12369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_try") 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_header_compiler=no
12380fi
12381
12382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384echo "${ECHO_T}$ac_header_compiler" >&6; }
12385
12386# Is the header present?
12387{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12389cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395#include <$ac_header>
12396_ACEOF
12397if { (ac_try="$ac_cpp conftest.$ac_ext"
12398case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401esac
12402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } >/dev/null; then
12410 if test -s conftest.err; then
12411 ac_cpp_err=$ac_c_preproc_warn_flag
12412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12413 else
12414 ac_cpp_err=
12415 fi
12416else
12417 ac_cpp_err=yes
12418fi
12419if test -z "$ac_cpp_err"; then
12420 ac_header_preproc=yes
12421else
12422 echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 ac_header_preproc=no
12426fi
12427
12428rm -f conftest.err conftest.$ac_ext
12429{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12430echo "${ECHO_T}$ac_header_preproc" >&6; }
12431
12432# So? What about this header?
12433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12434 yes:no: )
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12439 ac_header_preproc=yes
12440 ;;
12441 no:yes:* )
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12454 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012455## ------------------------------------ ##
12456## Report this to http://llvm.org/bugs/ ##
12457## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012458_ASBOX
12459 ) | sed "s/^/$as_me: WARNING: /" >&2
12460 ;;
12461esac
12462{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 eval "$as_ac_Header=\$ac_header_preproc"
12468fi
12469ac_res=`eval echo '${'$as_ac_Header'}'`
12470 { echo "$as_me:$LINENO: result: $ac_res" >&5
12471echo "${ECHO_T}$ac_res" >&6; }
12472
12473fi
12474if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000012475 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000012477_ACEOF
12478
12479fi
12480
12481done
Reid Spencer8bc110c2004-12-25 07:31:29 +000012482
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012483
12484
12485
12486
Daniel Dunbar7840c542011-02-03 02:40:02 +000012487
12488for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012489do
12490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496fi
12497ac_res=`eval echo '${'$as_ac_Header'}'`
12498 { echo "$as_me:$LINENO: result: $ac_res" >&5
12499echo "${ECHO_T}$ac_res" >&6; }
12500else
12501 # Is the header compilable?
12502{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12504cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
12510$ac_includes_default
12511#include <$ac_header>
12512_ACEOF
12513rm -f conftest.$ac_objext
12514if { (ac_try="$ac_compile"
12515case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518esac
12519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_compile") 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest.$ac_objext'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541esac
12542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_header_compiler=yes
12548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552 ac_header_compiler=no
12553fi
12554
12555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12557echo "${ECHO_T}$ac_header_compiler" >&6; }
12558
12559# Is the header present?
12560{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12562cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h. */
12568#include <$ac_header>
12569_ACEOF
12570if { (ac_try="$ac_cpp conftest.$ac_ext"
12571case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } >/dev/null; then
12583 if test -s conftest.err; then
12584 ac_cpp_err=$ac_c_preproc_warn_flag
12585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12586 else
12587 ac_cpp_err=
12588 fi
12589else
12590 ac_cpp_err=yes
12591fi
12592if test -z "$ac_cpp_err"; then
12593 ac_header_preproc=yes
12594else
12595 echo "$as_me: failed program was:" >&5
12596sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 ac_header_preproc=no
12599fi
12600
12601rm -f conftest.err conftest.$ac_ext
12602{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12603echo "${ECHO_T}$ac_header_preproc" >&6; }
12604
12605# So? What about this header?
12606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12607 yes:no: )
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12612 ac_header_preproc=yes
12613 ;;
12614 no:yes:* )
12615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12622echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12627 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012628## ------------------------------------ ##
12629## Report this to http://llvm.org/bugs/ ##
12630## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012631_ASBOX
12632 ) | sed "s/^/$as_me: WARNING: /" >&2
12633 ;;
12634esac
12635{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12639else
12640 eval "$as_ac_Header=\$ac_header_preproc"
12641fi
12642ac_res=`eval echo '${'$as_ac_Header'}'`
12643 { echo "$as_me:$LINENO: result: $ac_res" >&5
12644echo "${ECHO_T}$ac_res" >&6; }
12645
12646fi
12647if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000012648 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswellb92c7c22004-07-19 16:12:29 +000012650_ACEOF
John Criswellb92c7c22004-07-19 16:12:29 +000012651
12652fi
John Criswellb92c7c22004-07-19 16:12:29 +000012653
Reid Spencer0241e382004-11-25 04:51:04 +000012654done
12655
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012656
12657
12658
Eric Christopher30536382013-07-26 17:13:47 +000012659for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012660do
12661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667fi
12668ac_res=`eval echo '${'$as_ac_Header'}'`
12669 { echo "$as_me:$LINENO: result: $ac_res" >&5
12670echo "${ECHO_T}$ac_res" >&6; }
12671else
12672 # Is the header compilable?
12673{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12675cat >conftest.$ac_ext <<_ACEOF
12676/* confdefs.h. */
12677_ACEOF
12678cat confdefs.h >>conftest.$ac_ext
12679cat >>conftest.$ac_ext <<_ACEOF
12680/* end confdefs.h. */
12681$ac_includes_default
12682#include <$ac_header>
12683_ACEOF
12684rm -f conftest.$ac_objext
12685if { (ac_try="$ac_compile"
12686case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12689esac
12690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_compile") 2>conftest.er1
12692 ac_status=$?
12693 grep -v '^ *+' conftest.er1 >conftest.err
12694 rm -f conftest.er1
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702esac
12703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest.$ac_objext'
12709 { (case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12712esac
12713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_try") 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_header_compiler=yes
12719else
12720 echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_header_compiler=no
12724fi
12725
12726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12727{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12728echo "${ECHO_T}$ac_header_compiler" >&6; }
12729
12730# Is the header present?
12731{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12733cat >conftest.$ac_ext <<_ACEOF
12734/* confdefs.h. */
12735_ACEOF
12736cat confdefs.h >>conftest.$ac_ext
12737cat >>conftest.$ac_ext <<_ACEOF
12738/* end confdefs.h. */
12739#include <$ac_header>
12740_ACEOF
12741if { (ac_try="$ac_cpp conftest.$ac_ext"
12742case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745esac
12746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } >/dev/null; then
12754 if test -s conftest.err; then
12755 ac_cpp_err=$ac_c_preproc_warn_flag
12756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12757 else
12758 ac_cpp_err=
12759 fi
12760else
12761 ac_cpp_err=yes
12762fi
12763if test -z "$ac_cpp_err"; then
12764 ac_header_preproc=yes
12765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769 ac_header_preproc=no
12770fi
12771
12772rm -f conftest.err conftest.$ac_ext
12773{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12774echo "${ECHO_T}$ac_header_preproc" >&6; }
12775
12776# So? What about this header?
12777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12778 yes:no: )
12779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12782echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12783 ac_header_preproc=yes
12784 ;;
12785 no:yes:* )
12786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12791echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12793echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12797echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12798 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012799## ------------------------------------ ##
12800## Report this to http://llvm.org/bugs/ ##
12801## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012802_ASBOX
12803 ) | sed "s/^/$as_me: WARNING: /" >&2
12804 ;;
12805esac
12806{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12810else
12811 eval "$as_ac_Header=\$ac_header_preproc"
12812fi
12813ac_res=`eval echo '${'$as_ac_Header'}'`
12814 { echo "$as_me:$LINENO: result: $ac_res" >&5
12815echo "${ECHO_T}$ac_res" >&6; }
12816
12817fi
12818if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner973917a2005-11-14 06:57:34 +000012819 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner973917a2005-11-14 06:57:34 +000012821_ACEOF
12822
12823fi
12824
12825done
12826
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000012827
12828for ac_header in valgrind/valgrind.h
12829do
12830as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836fi
12837ac_res=`eval echo '${'$as_ac_Header'}'`
12838 { echo "$as_me:$LINENO: result: $ac_res" >&5
12839echo "${ECHO_T}$ac_res" >&6; }
12840else
12841 # Is the header compilable?
12842{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12844cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
12850$ac_includes_default
12851#include <$ac_header>
12852_ACEOF
12853rm -f conftest.$ac_objext
12854if { (ac_try="$ac_compile"
12855case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12858esac
12859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_compile") 2>conftest.er1
12861 ac_status=$?
12862 grep -v '^ *+' conftest.er1 >conftest.err
12863 rm -f conftest.er1
12864 cat conftest.err >&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12868 { (case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871esac
12872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_try") 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12881esac
12882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883 (eval "$ac_try") 2>&5
12884 ac_status=$?
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_header_compiler=yes
12888else
12889 echo "$as_me: failed program was:" >&5
12890sed 's/^/| /' conftest.$ac_ext >&5
12891
12892 ac_header_compiler=no
12893fi
12894
12895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12897echo "${ECHO_T}$ac_header_compiler" >&6; }
12898
12899# Is the header present?
12900{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12902cat >conftest.$ac_ext <<_ACEOF
12903/* confdefs.h. */
12904_ACEOF
12905cat confdefs.h >>conftest.$ac_ext
12906cat >>conftest.$ac_ext <<_ACEOF
12907/* end confdefs.h. */
12908#include <$ac_header>
12909_ACEOF
12910if { (ac_try="$ac_cpp conftest.$ac_ext"
12911case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12914esac
12915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12917 ac_status=$?
12918 grep -v '^ *+' conftest.er1 >conftest.err
12919 rm -f conftest.er1
12920 cat conftest.err >&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } >/dev/null; then
12923 if test -s conftest.err; then
12924 ac_cpp_err=$ac_c_preproc_warn_flag
12925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12926 else
12927 ac_cpp_err=
12928 fi
12929else
12930 ac_cpp_err=yes
12931fi
12932if test -z "$ac_cpp_err"; then
12933 ac_header_preproc=yes
12934else
12935 echo "$as_me: failed program was:" >&5
12936sed 's/^/| /' conftest.$ac_ext >&5
12937
12938 ac_header_preproc=no
12939fi
12940
12941rm -f conftest.err conftest.$ac_ext
12942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12943echo "${ECHO_T}$ac_header_preproc" >&6; }
12944
12945# So? What about this header?
12946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12947 yes:no: )
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12952 ac_header_preproc=yes
12953 ;;
12954 no:yes:* )
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12967 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012968## ------------------------------------ ##
12969## Report this to http://llvm.org/bugs/ ##
12970## ------------------------------------ ##
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000012971_ASBOX
12972 ) | sed "s/^/$as_me: WARNING: /" >&2
12973 ;;
12974esac
12975{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979else
12980 eval "$as_ac_Header=\$ac_header_preproc"
12981fi
12982ac_res=`eval echo '${'$as_ac_Header'}'`
12983 { echo "$as_me:$LINENO: result: $ac_res" >&5
12984echo "${ECHO_T}$ac_res" >&6; }
12985
12986fi
12987if test `eval echo '${'$as_ac_Header'}'` = yes; then
12988 cat >>confdefs.h <<_ACEOF
12989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12990_ACEOF
12991
12992fi
12993
12994done
12995
Dan Gohmandf257772010-09-17 20:08:35 +000012996
12997for ac_header in fenv.h
12998do
12999as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13005fi
13006ac_res=`eval echo '${'$as_ac_Header'}'`
13007 { echo "$as_me:$LINENO: result: $ac_res" >&5
13008echo "${ECHO_T}$ac_res" >&6; }
13009else
13010 # Is the header compilable?
13011{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13012echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13013cat >conftest.$ac_ext <<_ACEOF
13014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
13018/* end confdefs.h. */
13019$ac_includes_default
13020#include <$ac_header>
13021_ACEOF
13022rm -f conftest.$ac_objext
13023if { (ac_try="$ac_compile"
13024case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13027esac
13028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_compile") 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037 { (case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13040esac
13041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_try") 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest.$ac_objext'
13047 { (case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_try") 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_header_compiler=yes
13057else
13058 echo "$as_me: failed program was:" >&5
13059sed 's/^/| /' conftest.$ac_ext >&5
13060
13061 ac_header_compiler=no
13062fi
13063
13064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13066echo "${ECHO_T}$ac_header_compiler" >&6; }
13067
13068# Is the header present?
13069{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13071cat >conftest.$ac_ext <<_ACEOF
13072/* confdefs.h. */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h. */
13077#include <$ac_header>
13078_ACEOF
13079if { (ac_try="$ac_cpp conftest.$ac_ext"
13080case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13086 ac_status=$?
13087 grep -v '^ *+' conftest.er1 >conftest.err
13088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } >/dev/null; then
13092 if test -s conftest.err; then
13093 ac_cpp_err=$ac_c_preproc_warn_flag
13094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13095 else
13096 ac_cpp_err=
13097 fi
13098else
13099 ac_cpp_err=yes
13100fi
13101if test -z "$ac_cpp_err"; then
13102 ac_header_preproc=yes
13103else
13104 echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107 ac_header_preproc=no
13108fi
13109
13110rm -f conftest.err conftest.$ac_ext
13111{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13112echo "${ECHO_T}$ac_header_preproc" >&6; }
13113
13114# So? What about this header?
13115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13116 yes:no: )
13117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13121 ac_header_preproc=yes
13122 ;;
13123 no:yes:* )
13124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13136 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013137## ------------------------------------ ##
13138## Report this to http://llvm.org/bugs/ ##
13139## ------------------------------------ ##
Dan Gohmandf257772010-09-17 20:08:35 +000013140_ASBOX
13141 ) | sed "s/^/$as_me: WARNING: /" >&2
13142 ;;
13143esac
13144{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13148else
13149 eval "$as_ac_Header=\$ac_header_preproc"
13150fi
13151ac_res=`eval echo '${'$as_ac_Header'}'`
13152 { echo "$as_me:$LINENO: result: $ac_res" >&5
13153echo "${ECHO_T}$ac_res" >&6; }
13154
13155fi
13156if test `eval echo '${'$as_ac_Header'}'` = yes; then
13157 cat >>confdefs.h <<_ACEOF
13158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13159_ACEOF
13160
13161fi
13162
13163done
13164
Joerg Sonnenberger8a1177f2013-03-25 13:13:33 +000013165{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13166echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13167if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13169else
13170 cat >conftest.$ac_ext <<_ACEOF
13171/* confdefs.h. */
13172_ACEOF
13173cat confdefs.h >>conftest.$ac_ext
13174cat >>conftest.$ac_ext <<_ACEOF
13175/* end confdefs.h. */
13176#include <fenv.h>
13177
13178int
13179main ()
13180{
13181#ifndef FE_ALL_EXCEPT
13182 char *p = (char *) FE_ALL_EXCEPT;
13183 return !p;
13184#endif
13185
13186 ;
13187 return 0;
13188}
13189_ACEOF
13190rm -f conftest.$ac_objext
13191if { (ac_try="$ac_compile"
13192case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13195esac
13196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_compile") 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13205 { (case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13208esac
13209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_try") 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest.$ac_objext'
13215 { (case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13218esac
13219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_try") 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_cv_have_decl_FE_ALL_EXCEPT=yes
13225else
13226 echo "$as_me: failed program was:" >&5
13227sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 ac_cv_have_decl_FE_ALL_EXCEPT=no
13230fi
13231
13232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233fi
13234{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13235echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13236if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13237
13238cat >>confdefs.h <<_ACEOF
13239#define HAVE_DECL_FE_ALL_EXCEPT 1
13240_ACEOF
13241
13242
13243else
13244 cat >>confdefs.h <<_ACEOF
13245#define HAVE_DECL_FE_ALL_EXCEPT 0
13246_ACEOF
13247
13248
13249fi
13250{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13251echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13252if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254else
13255 cat >conftest.$ac_ext <<_ACEOF
13256/* confdefs.h. */
13257_ACEOF
13258cat confdefs.h >>conftest.$ac_ext
13259cat >>conftest.$ac_ext <<_ACEOF
13260/* end confdefs.h. */
13261#include <fenv.h>
13262
13263int
13264main ()
13265{
13266#ifndef FE_INEXACT
13267 char *p = (char *) FE_INEXACT;
13268 return !p;
13269#endif
13270
13271 ;
13272 return 0;
13273}
13274_ACEOF
13275rm -f conftest.$ac_objext
13276if { (ac_try="$ac_compile"
13277case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_compile") 2>conftest.er1
13283 ac_status=$?
13284 grep -v '^ *+' conftest.er1 >conftest.err
13285 rm -f conftest.er1
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293esac
13294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest.$ac_objext'
13300 { (case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303esac
13304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_try") 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 ac_cv_have_decl_FE_INEXACT=yes
13310else
13311 echo "$as_me: failed program was:" >&5
13312sed 's/^/| /' conftest.$ac_ext >&5
13313
13314 ac_cv_have_decl_FE_INEXACT=no
13315fi
13316
13317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318fi
13319{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13320echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13321if test $ac_cv_have_decl_FE_INEXACT = yes; then
13322
13323cat >>confdefs.h <<_ACEOF
13324#define HAVE_DECL_FE_INEXACT 1
13325_ACEOF
13326
13327
13328else
13329 cat >>confdefs.h <<_ACEOF
13330#define HAVE_DECL_FE_INEXACT 0
13331_ACEOF
13332
13333
13334fi
13335
13336
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000013337if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013338
13339for ac_header in pthread.h
13340do
13341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347fi
13348ac_res=`eval echo '${'$as_ac_Header'}'`
13349 { echo "$as_me:$LINENO: result: $ac_res" >&5
13350echo "${ECHO_T}$ac_res" >&6; }
13351else
13352 # Is the header compilable?
13353{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13355cat >conftest.$ac_ext <<_ACEOF
13356/* confdefs.h. */
13357_ACEOF
13358cat confdefs.h >>conftest.$ac_ext
13359cat >>conftest.$ac_ext <<_ACEOF
13360/* end confdefs.h. */
13361$ac_includes_default
13362#include <$ac_header>
13363_ACEOF
13364rm -f conftest.$ac_objext
13365if { (ac_try="$ac_compile"
13366case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369esac
13370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_compile") 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13379 { (case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382esac
13383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_try") 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest.$ac_objext'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392esac
13393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_header_compiler=yes
13399else
13400 echo "$as_me: failed program was:" >&5
13401sed 's/^/| /' conftest.$ac_ext >&5
13402
13403 ac_header_compiler=no
13404fi
13405
13406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13408echo "${ECHO_T}$ac_header_compiler" >&6; }
13409
13410# Is the header present?
13411{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13413cat >conftest.$ac_ext <<_ACEOF
13414/* confdefs.h. */
13415_ACEOF
13416cat confdefs.h >>conftest.$ac_ext
13417cat >>conftest.$ac_ext <<_ACEOF
13418/* end confdefs.h. */
13419#include <$ac_header>
13420_ACEOF
13421if { (ac_try="$ac_cpp conftest.$ac_ext"
13422case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425esac
13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } >/dev/null; then
13434 if test -s conftest.err; then
13435 ac_cpp_err=$ac_c_preproc_warn_flag
13436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13437 else
13438 ac_cpp_err=
13439 fi
13440else
13441 ac_cpp_err=yes
13442fi
13443if test -z "$ac_cpp_err"; then
13444 ac_header_preproc=yes
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449 ac_header_preproc=no
13450fi
13451
13452rm -f conftest.err conftest.$ac_ext
13453{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13454echo "${ECHO_T}$ac_header_preproc" >&6; }
13455
13456# So? What about this header?
13457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13458 yes:no: )
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13463 ac_header_preproc=yes
13464 ;;
13465 no:yes:* )
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13478 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013479## ------------------------------------ ##
13480## Report this to http://llvm.org/bugs/ ##
13481## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013482_ASBOX
13483 ) | sed "s/^/$as_me: WARNING: /" >&2
13484 ;;
13485esac
13486{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490else
13491 eval "$as_ac_Header=\$ac_header_preproc"
13492fi
13493ac_res=`eval echo '${'$as_ac_Header'}'`
13494 { echo "$as_me:$LINENO: result: $ac_res" >&5
13495echo "${ECHO_T}$ac_res" >&6; }
13496
13497fi
13498if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000013499 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000013501_ACEOF
13502 HAVE_PTHREAD=1
Reid Spencerd4399922006-12-01 00:37:14 +000013503
13504else
13505 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000013506
13507fi
13508
Reid Spencerb8135562007-08-17 05:45:26 +000013509done
Reid Spencerd4399922006-12-01 00:37:14 +000013510
13511else
13512 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000013513
13514fi
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000013515if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13516
13517for ac_header in zlib.h
13518do
13519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525fi
13526ac_res=`eval echo '${'$as_ac_Header'}'`
13527 { echo "$as_me:$LINENO: result: $ac_res" >&5
13528echo "${ECHO_T}$ac_res" >&6; }
13529else
13530 # Is the header compilable?
13531{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13532echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13533cat >conftest.$ac_ext <<_ACEOF
13534/* confdefs.h. */
13535_ACEOF
13536cat confdefs.h >>conftest.$ac_ext
13537cat >>conftest.$ac_ext <<_ACEOF
13538/* end confdefs.h. */
13539$ac_includes_default
13540#include <$ac_header>
13541_ACEOF
13542rm -f conftest.$ac_objext
13543if { (ac_try="$ac_compile"
13544case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547esac
13548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_compile") 2>conftest.er1
13550 ac_status=$?
13551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560esac
13561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13570esac
13571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_header_compiler=yes
13577else
13578 echo "$as_me: failed program was:" >&5
13579sed 's/^/| /' conftest.$ac_ext >&5
13580
13581 ac_header_compiler=no
13582fi
13583
13584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13586echo "${ECHO_T}$ac_header_compiler" >&6; }
13587
13588# Is the header present?
13589{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13591cat >conftest.$ac_ext <<_ACEOF
13592/* confdefs.h. */
13593_ACEOF
13594cat confdefs.h >>conftest.$ac_ext
13595cat >>conftest.$ac_ext <<_ACEOF
13596/* end confdefs.h. */
13597#include <$ac_header>
13598_ACEOF
13599if { (ac_try="$ac_cpp conftest.$ac_ext"
13600case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603esac
13604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } >/dev/null; then
13612 if test -s conftest.err; then
13613 ac_cpp_err=$ac_c_preproc_warn_flag
13614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13615 else
13616 ac_cpp_err=
13617 fi
13618else
13619 ac_cpp_err=yes
13620fi
13621if test -z "$ac_cpp_err"; then
13622 ac_header_preproc=yes
13623else
13624 echo "$as_me: failed program was:" >&5
13625sed 's/^/| /' conftest.$ac_ext >&5
13626
13627 ac_header_preproc=no
13628fi
13629
13630rm -f conftest.err conftest.$ac_ext
13631{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13632echo "${ECHO_T}$ac_header_preproc" >&6; }
13633
13634# So? What about this header?
13635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13636 yes:no: )
13637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13640echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13641 ac_header_preproc=yes
13642 ;;
13643 no:yes:* )
13644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13649echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13651echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13655echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13656 ( cat <<\_ASBOX
13657## ------------------------------------ ##
13658## Report this to http://llvm.org/bugs/ ##
13659## ------------------------------------ ##
13660_ASBOX
13661 ) | sed "s/^/$as_me: WARNING: /" >&2
13662 ;;
13663esac
13664{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668else
13669 eval "$as_ac_Header=\$ac_header_preproc"
13670fi
13671ac_res=`eval echo '${'$as_ac_Header'}'`
13672 { echo "$as_me:$LINENO: result: $ac_res" >&5
13673echo "${ECHO_T}$ac_res" >&6; }
13674
13675fi
13676if test `eval echo '${'$as_ac_Header'}'` = yes; then
13677 cat >>confdefs.h <<_ACEOF
13678#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13679_ACEOF
13680 HAVE_LIBZ=1
13681
13682else
13683 HAVE_LIBZ=0
13684
13685fi
13686
13687done
13688
13689else
13690 HAVE_LIBZ=0
13691
13692fi
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000013693
Nick Lewycky86679902009-06-06 06:25:09 +000013694if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013695
13696
13697for ac_header in ffi.h ffi/ffi.h
13698do
13699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705fi
13706ac_res=`eval echo '${'$as_ac_Header'}'`
13707 { echo "$as_me:$LINENO: result: $ac_res" >&5
13708echo "${ECHO_T}$ac_res" >&6; }
13709else
13710 # Is the header compilable?
13711{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13713cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h. */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h. */
13719$ac_includes_default
13720#include <$ac_header>
13721_ACEOF
13722rm -f conftest.$ac_objext
13723if { (ac_try="$ac_compile"
13724case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_compile") 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750esac
13751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 ac_header_compiler=yes
13757else
13758 echo "$as_me: failed program was:" >&5
13759sed 's/^/| /' conftest.$ac_ext >&5
13760
13761 ac_header_compiler=no
13762fi
13763
13764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13766echo "${ECHO_T}$ac_header_compiler" >&6; }
13767
13768# Is the header present?
13769{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13771cat >conftest.$ac_ext <<_ACEOF
13772/* confdefs.h. */
13773_ACEOF
13774cat confdefs.h >>conftest.$ac_ext
13775cat >>conftest.$ac_ext <<_ACEOF
13776/* end confdefs.h. */
13777#include <$ac_header>
13778_ACEOF
13779if { (ac_try="$ac_cpp conftest.$ac_ext"
13780case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783esac
13784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } >/dev/null; then
13792 if test -s conftest.err; then
13793 ac_cpp_err=$ac_c_preproc_warn_flag
13794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13795 else
13796 ac_cpp_err=
13797 fi
13798else
13799 ac_cpp_err=yes
13800fi
13801if test -z "$ac_cpp_err"; then
13802 ac_header_preproc=yes
13803else
13804 echo "$as_me: failed program was:" >&5
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
13807 ac_header_preproc=no
13808fi
13809
13810rm -f conftest.err conftest.$ac_ext
13811{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13812echo "${ECHO_T}$ac_header_preproc" >&6; }
13813
13814# So? What about this header?
13815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13816 yes:no: )
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13820echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13821 ac_header_preproc=yes
13822 ;;
13823 no:yes:* )
13824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13827echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13829echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13831echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13835echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13836 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013837## ------------------------------------ ##
13838## Report this to http://llvm.org/bugs/ ##
13839## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013840_ASBOX
13841 ) | sed "s/^/$as_me: WARNING: /" >&2
13842 ;;
13843esac
13844{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848else
13849 eval "$as_ac_Header=\$ac_header_preproc"
13850fi
13851ac_res=`eval echo '${'$as_ac_Header'}'`
13852 { echo "$as_me:$LINENO: result: $ac_res" >&5
13853echo "${ECHO_T}$ac_res" >&6; }
13854
13855fi
13856if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky11e92142009-02-04 06:27:44 +000013857 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky11e92142009-02-04 06:27:44 +000013859_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000013860
13861fi
13862
13863done
13864
Nick Lewycky86679902009-06-06 06:25:09 +000013865fi
Nick Lewycky11e92142009-02-04 06:27:44 +000013866
Nick Lewyckyc94134d2009-01-20 00:52:24 +000013867
Eric Christophere9c1bb62010-06-22 21:01:04 +000013868for ac_header in CrashReporterClient.h
13869do
13870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876fi
13877ac_res=`eval echo '${'$as_ac_Header'}'`
13878 { echo "$as_me:$LINENO: result: $ac_res" >&5
13879echo "${ECHO_T}$ac_res" >&6; }
13880else
13881 # Is the header compilable?
13882{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13884cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
13889/* end confdefs.h. */
13890$ac_includes_default
13891#include <$ac_header>
13892_ACEOF
13893rm -f conftest.$ac_objext
13894if { (ac_try="$ac_compile"
13895case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898esac
13899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_compile") 2>conftest.er1
13901 ac_status=$?
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
13907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13908 { (case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13911esac
13912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; } &&
13917 { ac_try='test -s conftest.$ac_objext'
13918 { (case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921esac
13922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_try") 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_header_compiler=yes
13928else
13929 echo "$as_me: failed program was:" >&5
13930sed 's/^/| /' conftest.$ac_ext >&5
13931
13932 ac_header_compiler=no
13933fi
13934
13935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13937echo "${ECHO_T}$ac_header_compiler" >&6; }
13938
13939# Is the header present?
13940{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13942cat >conftest.$ac_ext <<_ACEOF
13943/* confdefs.h. */
13944_ACEOF
13945cat confdefs.h >>conftest.$ac_ext
13946cat >>conftest.$ac_ext <<_ACEOF
13947/* end confdefs.h. */
13948#include <$ac_header>
13949_ACEOF
13950if { (ac_try="$ac_cpp conftest.$ac_ext"
13951case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13954esac
13955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13957 ac_status=$?
13958 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } >/dev/null; then
13963 if test -s conftest.err; then
13964 ac_cpp_err=$ac_c_preproc_warn_flag
13965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13966 else
13967 ac_cpp_err=
13968 fi
13969else
13970 ac_cpp_err=yes
13971fi
13972if test -z "$ac_cpp_err"; then
13973 ac_header_preproc=yes
13974else
13975 echo "$as_me: failed program was:" >&5
13976sed 's/^/| /' conftest.$ac_ext >&5
13977
13978 ac_header_preproc=no
13979fi
13980
13981rm -f conftest.err conftest.$ac_ext
13982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13983echo "${ECHO_T}$ac_header_preproc" >&6; }
13984
13985# So? What about this header?
13986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13987 yes:no: )
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13992 ac_header_preproc=yes
13993 ;;
13994 no:yes:* )
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14007 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000014008## ------------------------------------ ##
14009## Report this to http://llvm.org/bugs/ ##
14010## ------------------------------------ ##
Eric Christophere9c1bb62010-06-22 21:01:04 +000014011_ASBOX
14012 ) | sed "s/^/$as_me: WARNING: /" >&2
14013 ;;
14014esac
14015{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019else
14020 eval "$as_ac_Header=\$ac_header_preproc"
14021fi
14022ac_res=`eval echo '${'$as_ac_Header'}'`
14023 { echo "$as_me:$LINENO: result: $ac_res" >&5
14024echo "${ECHO_T}$ac_res" >&6; }
14025
14026fi
14027if test `eval echo '${'$as_ac_Header'}'` = yes; then
14028 cat >>confdefs.h <<_ACEOF
14029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14030_ACEOF
14031
14032fi
14033
14034done
14035
14036
Eric Christopherba4f7722010-12-07 02:05:42 +000014037{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14038echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000014039cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014040
14041 /* confdefs.h. */
Eric Christopherca466732010-12-03 07:45:22 +000014042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014046
14047 extern const char *__crashreporter_info__;
14048 int main() {
14049 __crashreporter_info__ = "test";
14050 return 0;
14051 }
14052
Eric Christopherca466732010-12-03 07:45:22 +000014053
Eric Christopherca466732010-12-03 07:45:22 +000014054_ACEOF
14055rm -f conftest.$ac_objext conftest$ac_exeext
14056if { (ac_try="$ac_link"
14057case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060esac
14061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_link") 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14070 { (case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14073esac
14074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_try") 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; } &&
14079 { ac_try='test -s conftest$ac_exeext'
14080 { (case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14083esac
14084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_try") 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014089
Eric Christopherba4f7722010-12-07 02:05:42 +000014090 { echo "$as_me:$LINENO: result: yes" >&5
14091echo "${ECHO_T}yes" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000014092
14093cat >>confdefs.h <<\_ACEOF
14094#define HAVE_CRASHREPORTER_INFO 1
14095_ACEOF
14096
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014097
Eric Christopherba4f7722010-12-07 02:05:42 +000014098else
14099 echo "$as_me: failed program was:" >&5
14100sed 's/^/| /' conftest.$ac_ext >&5
14101
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014102
14103 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopherba4f7722010-12-07 02:05:42 +000014104echo "${ECHO_T}no" >&6; }
14105
14106cat >>confdefs.h <<\_ACEOF
14107#define HAVE_CRASHREPORTER_INFO 0
14108_ACEOF
14109
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014110
Eric Christopherca466732010-12-03 07:45:22 +000014111fi
Eric Christophere9c1bb62010-06-22 21:01:04 +000014112
Eric Christopherba4f7722010-12-07 02:05:42 +000014113rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115
14116
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000014117
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014118 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14119echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14120if test "${ac_cv_huge_val_sanity+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer128ae102006-11-03 18:04:08 +000014122else
14123
Reid Spencer7b7ab9c2006-11-03 19:49:16 +000014124 ac_ext=cpp
14125ac_cpp='$CXXCPP $CPPFLAGS'
14126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencer128ae102006-11-03 18:04:08 +000014129
Eric Christopherf0ee6a12010-03-02 05:06:54 +000014130 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher8e52bdc2012-04-02 06:54:01 +000014131 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014132 if test "$cross_compiling" = yes; then
Reid Spencer128ae102006-11-03 18:04:08 +000014133 ac_cv_huge_val_sanity=yes
14134else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014135 cat >conftest.$ac_ext <<_ACEOF
14136/* confdefs.h. */
14137_ACEOF
14138cat confdefs.h >>conftest.$ac_ext
14139cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer128ae102006-11-03 18:04:08 +000014140/* end confdefs.h. */
14141#include <math.h>
14142int
14143main ()
14144{
14145double x = HUGE_VAL; return x != x;
14146 ;
14147 return 0;
14148}
14149_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014150rm -f conftest$ac_exeext
14151if { (ac_try="$ac_link"
14152case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14155esac
14156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_link") 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164esac
14165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
Reid Spencer128ae102006-11-03 18:04:08 +000014170 ac_cv_huge_val_sanity=yes
14171else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014172 echo "$as_me: program exited with status $ac_status" >&5
14173echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
14176( exit $ac_status )
14177ac_cv_huge_val_sanity=no
Reid Spencer128ae102006-11-03 18:04:08 +000014178fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer128ae102006-11-03 18:04:08 +000014180fi
14181
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014182
Eric Christopherf0ee6a12010-03-02 05:06:54 +000014183 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencer128ae102006-11-03 18:04:08 +000014184 ac_ext=c
14185ac_cpp='$CPP $CPPFLAGS'
14186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14188ac_compiler_gnu=$ac_cv_c_compiler_gnu
14189
14190
14191fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014192{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14193echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencer128ae102006-11-03 18:04:08 +000014194 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14195
14196
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014197{ echo "$as_me:$LINENO: checking for pid_t" >&5
14198echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14199if test "${ac_cv_type_pid_t+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201else
14202 cat >conftest.$ac_ext <<_ACEOF
14203/* confdefs.h. */
14204_ACEOF
14205cat confdefs.h >>conftest.$ac_ext
14206cat >>conftest.$ac_ext <<_ACEOF
14207/* end confdefs.h. */
14208$ac_includes_default
14209typedef pid_t ac__type_new_;
14210int
14211main ()
14212{
14213if ((ac__type_new_ *) 0)
14214 return 0;
14215if (sizeof (ac__type_new_))
14216 return 0;
14217 ;
14218 return 0;
14219}
14220_ACEOF
14221rm -f conftest.$ac_objext
14222if { (ac_try="$ac_compile"
14223case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14226esac
14227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_compile") 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
14235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249esac
14250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_try") 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_type_pid_t=yes
14256else
14257 echo "$as_me: failed program was:" >&5
14258sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000014259
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014260 ac_cv_type_pid_t=no
14261fi
14262
14263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264fi
14265{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14266echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14267if test $ac_cv_type_pid_t = yes; then
14268 :
John Criswell3ef61af2003-06-30 21:59:07 +000014269else
14270
14271cat >>confdefs.h <<_ACEOF
14272#define pid_t int
14273_ACEOF
14274
14275fi
14276
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014277{ echo "$as_me:$LINENO: checking for size_t" >&5
14278echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14279if test "${ac_cv_type_size_t+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14281else
14282 cat >conftest.$ac_ext <<_ACEOF
14283/* confdefs.h. */
14284_ACEOF
14285cat confdefs.h >>conftest.$ac_ext
14286cat >>conftest.$ac_ext <<_ACEOF
14287/* end confdefs.h. */
14288$ac_includes_default
14289typedef size_t ac__type_new_;
14290int
14291main ()
14292{
14293if ((ac__type_new_ *) 0)
14294 return 0;
14295if (sizeof (ac__type_new_))
14296 return 0;
14297 ;
14298 return 0;
14299}
14300_ACEOF
14301rm -f conftest.$ac_objext
14302if { (ac_try="$ac_compile"
14303case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14306esac
14307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_compile") 2>conftest.er1
14309 ac_status=$?
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14319esac
14320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest.$ac_objext'
14326 { (case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14329esac
14330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_try") 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_type_size_t=yes
14336else
14337 echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000014339
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014340 ac_cv_type_size_t=no
14341fi
14342
14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344fi
14345{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14346echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14347if test $ac_cv_type_size_t = yes; then
14348 :
John Criswell3ef61af2003-06-30 21:59:07 +000014349else
14350
14351cat >>confdefs.h <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014352#define size_t unsigned int
John Criswell3ef61af2003-06-30 21:59:07 +000014353_ACEOF
14354
14355fi
14356
Reid Spencer0241e382004-11-25 04:51:04 +000014357
14358cat >>confdefs.h <<_ACEOF
Torok Edwinaec06332010-01-26 08:50:50 +000014359#define RETSIGTYPE void
Reid Spencer0241e382004-11-25 04:51:04 +000014360_ACEOF
14361
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014362{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14363echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14364if test "${ac_cv_struct_tm+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014366else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014367 cat >conftest.$ac_ext <<_ACEOF
14368/* confdefs.h. */
14369_ACEOF
14370cat confdefs.h >>conftest.$ac_ext
14371cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014372/* end confdefs.h. */
14373#include <sys/types.h>
14374#include <time.h>
14375
14376int
14377main ()
14378{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014379struct tm *tp; tp->tm_sec;
Reid Spencer0241e382004-11-25 04:51:04 +000014380 ;
14381 return 0;
14382}
14383_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014384rm -f conftest.$ac_objext
14385if { (ac_try="$ac_compile"
14386case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14389esac
14390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391 (eval "$ac_compile") 2>conftest.er1
14392 ac_status=$?
14393 grep -v '^ *+' conftest.er1 >conftest.err
14394 rm -f conftest.er1
14395 cat conftest.err >&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
14398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399 { (case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14402esac
14403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_try") 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest.$ac_objext'
14409 { (case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14412esac
14413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_try") 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000014418 ac_cv_struct_tm=time.h
14419else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014420 echo "$as_me: failed program was:" >&5
14421sed 's/^/| /' conftest.$ac_ext >&5
14422
14423 ac_cv_struct_tm=sys/time.h
Reid Spencer0241e382004-11-25 04:51:04 +000014424fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014425
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000014427fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014428{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14429echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000014430if test $ac_cv_struct_tm = sys/time.h; then
14431
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014432cat >>confdefs.h <<\_ACEOF
14433#define TM_IN_SYS_TIME 1
14434_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014435
14436fi
14437
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014438{ echo "$as_me:$LINENO: checking for int64_t" >&5
14439echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14440if test "${ac_cv_type_int64_t+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442else
14443 cat >conftest.$ac_ext <<_ACEOF
14444/* confdefs.h. */
14445_ACEOF
14446cat confdefs.h >>conftest.$ac_ext
14447cat >>conftest.$ac_ext <<_ACEOF
14448/* end confdefs.h. */
14449$ac_includes_default
14450typedef int64_t ac__type_new_;
14451int
14452main ()
14453{
14454if ((ac__type_new_ *) 0)
14455 return 0;
14456if (sizeof (ac__type_new_))
14457 return 0;
14458 ;
14459 return 0;
14460}
14461_ACEOF
14462rm -f conftest.$ac_objext
14463if { (ac_try="$ac_compile"
14464case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467esac
14468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_compile") 2>conftest.er1
14470 ac_status=$?
14471 grep -v '^ *+' conftest.er1 >conftest.err
14472 rm -f conftest.er1
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14477 { (case "(($ac_try" in
14478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479 *) ac_try_echo=$ac_try;;
14480esac
14481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482 (eval "$ac_try") 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; } &&
14486 { ac_try='test -s conftest.$ac_objext'
14487 { (case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14490esac
14491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_try") 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_cv_type_int64_t=yes
14497else
14498 echo "$as_me: failed program was:" >&5
14499sed 's/^/| /' conftest.$ac_ext >&5
14500
14501 ac_cv_type_int64_t=no
14502fi
14503
14504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505fi
14506{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14507echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14508if test $ac_cv_type_int64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000014509
14510cat >>confdefs.h <<_ACEOF
14511#define HAVE_INT64_T 1
14512_ACEOF
14513
14514
14515else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014516 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14517echo "$as_me: error: Type int64_t required but not found" >&2;}
14518 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000014519fi
14520
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014521{ echo "$as_me:$LINENO: checking for uint64_t" >&5
14522echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14523if test "${ac_cv_type_uint64_t+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
14526 cat >conftest.$ac_ext <<_ACEOF
14527/* confdefs.h. */
14528_ACEOF
14529cat confdefs.h >>conftest.$ac_ext
14530cat >>conftest.$ac_ext <<_ACEOF
14531/* end confdefs.h. */
14532$ac_includes_default
14533typedef uint64_t ac__type_new_;
14534int
14535main ()
14536{
14537if ((ac__type_new_ *) 0)
14538 return 0;
14539if (sizeof (ac__type_new_))
14540 return 0;
14541 ;
14542 return 0;
14543}
14544_ACEOF
14545rm -f conftest.$ac_objext
14546if { (ac_try="$ac_compile"
14547case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_compile") 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14560 { (case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14563esac
14564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_try") 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14573esac
14574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_cv_type_uint64_t=yes
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 ac_cv_type_uint64_t=no
14585fi
14586
14587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588fi
14589{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14590echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14591if test $ac_cv_type_uint64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000014592
14593cat >>confdefs.h <<_ACEOF
14594#define HAVE_UINT64_T 1
14595_ACEOF
14596
14597
14598else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014599 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14600echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14601if test "${ac_cv_type_u_int64_t+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14603else
14604 cat >conftest.$ac_ext <<_ACEOF
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
14609/* end confdefs.h. */
14610$ac_includes_default
14611typedef u_int64_t ac__type_new_;
14612int
14613main ()
14614{
14615if ((ac__type_new_ *) 0)
14616 return 0;
14617if (sizeof (ac__type_new_))
14618 return 0;
14619 ;
14620 return 0;
14621}
14622_ACEOF
14623rm -f conftest.$ac_objext
14624if { (ac_try="$ac_compile"
14625case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14628esac
14629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14631 ac_status=$?
14632 grep -v '^ *+' conftest.er1 >conftest.err
14633 rm -f conftest.er1
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641esac
14642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651esac
14652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_type_u_int64_t=yes
14658else
14659 echo "$as_me: failed program was:" >&5
14660sed 's/^/| /' conftest.$ac_ext >&5
14661
14662 ac_cv_type_u_int64_t=no
14663fi
14664
14665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666fi
14667{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14668echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14669if test $ac_cv_type_u_int64_t = yes; then
John Criswelld672a3d2004-09-02 18:44:44 +000014670
14671cat >>confdefs.h <<_ACEOF
14672#define HAVE_U_INT64_T 1
14673_ACEOF
14674
14675
Misha Brukmancb46e662004-09-02 23:02:30 +000014676else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014677 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14678echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14679 { (exit 1); exit 1; }; }
Misha Brukmancb46e662004-09-02 23:02:30 +000014680fi
14681
John Criswelld672a3d2004-09-02 18:44:44 +000014682fi
14683
Reid Spencer0241e382004-11-25 04:51:04 +000014684
14685
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014686
14687
14688
14689
14690
14691
14692
Reid Spencera609b652006-01-23 08:15:53 +000014693for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014694do
14695as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14696{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14697echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14698if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700else
14701 cat >conftest.$ac_ext <<_ACEOF
14702/* confdefs.h. */
14703_ACEOF
14704cat confdefs.h >>conftest.$ac_ext
14705cat >>conftest.$ac_ext <<_ACEOF
14706/* end confdefs.h. */
14707/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14709#define $ac_func innocuous_$ac_func
14710
14711/* System header to define __stub macros and hopefully few prototypes,
14712 which can conflict with char $ac_func (); below.
14713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714 <limits.h> exists even on freestanding compilers. */
14715
14716#ifdef __STDC__
14717# include <limits.h>
14718#else
14719# include <assert.h>
14720#endif
14721
14722#undef $ac_func
14723
14724/* Override any GCC internal prototype to avoid an error.
14725 Use char because int might match the return type of a GCC
14726 builtin and then its argument prototype would still apply. */
14727#ifdef __cplusplus
14728extern "C"
14729#endif
14730char $ac_func ();
14731/* The GNU C library defines this for functions which it implements
14732 to always fail with ENOSYS. Some functions are actually named
14733 something starting with __ and the normal name is an alias. */
14734#if defined __stub_$ac_func || defined __stub___$ac_func
14735choke me
14736#endif
14737
14738int
14739main ()
14740{
14741return $ac_func ();
14742 ;
14743 return 0;
14744}
14745_ACEOF
14746rm -f conftest.$ac_objext conftest$ac_exeext
14747if { (ac_try="$ac_link"
14748case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_link") 2>conftest.er1
14754 ac_status=$?
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14761 { (case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764esac
14765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_try") 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; } &&
14770 { ac_try='test -s conftest$ac_exeext'
14771 { (case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14774esac
14775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_try") 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 eval "$as_ac_var=yes"
14781else
14782 echo "$as_me: failed program was:" >&5
14783sed 's/^/| /' conftest.$ac_ext >&5
14784
14785 eval "$as_ac_var=no"
14786fi
14787
14788rm -f core conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14790fi
14791ac_res=`eval echo '${'$as_ac_var'}'`
14792 { echo "$as_me:$LINENO: result: $ac_res" >&5
14793echo "${ECHO_T}$ac_res" >&6; }
14794if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000014795 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000014797_ACEOF
14798
14799fi
Reid Spencer0241e382004-11-25 04:51:04 +000014800done
John Criswell3ef61af2003-06-30 21:59:07 +000014801
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014802
14803
14804
14805
Reid Spencerdf523642007-07-13 10:05:30 +000014806for ac_func in powf fmodf strtof round
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014807do
14808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14813else
14814 cat >conftest.$ac_ext <<_ACEOF
14815/* confdefs.h. */
14816_ACEOF
14817cat confdefs.h >>conftest.$ac_ext
14818cat >>conftest.$ac_ext <<_ACEOF
14819/* end confdefs.h. */
14820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14822#define $ac_func innocuous_$ac_func
14823
14824/* System header to define __stub macros and hopefully few prototypes,
14825 which can conflict with char $ac_func (); below.
14826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14827 <limits.h> exists even on freestanding compilers. */
14828
14829#ifdef __STDC__
14830# include <limits.h>
14831#else
14832# include <assert.h>
14833#endif
14834
14835#undef $ac_func
14836
14837/* Override any GCC internal prototype to avoid an error.
14838 Use char because int might match the return type of a GCC
14839 builtin and then its argument prototype would still apply. */
14840#ifdef __cplusplus
14841extern "C"
14842#endif
14843char $ac_func ();
14844/* The GNU C library defines this for functions which it implements
14845 to always fail with ENOSYS. Some functions are actually named
14846 something starting with __ and the normal name is an alias. */
14847#if defined __stub_$ac_func || defined __stub___$ac_func
14848choke me
14849#endif
14850
14851int
14852main ()
14853{
14854return $ac_func ();
14855 ;
14856 return 0;
14857}
14858_ACEOF
14859rm -f conftest.$ac_objext conftest$ac_exeext
14860if { (ac_try="$ac_link"
14861case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864esac
14865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_link") 2>conftest.er1
14867 ac_status=$?
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14874 { (case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877esac
14878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_try") 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest$ac_exeext'
14884 { (case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887esac
14888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_try") 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 eval "$as_ac_var=yes"
14894else
14895 echo "$as_me: failed program was:" >&5
14896sed 's/^/| /' conftest.$ac_ext >&5
14897
14898 eval "$as_ac_var=no"
14899fi
14900
14901rm -f core conftest.err conftest.$ac_objext \
14902 conftest$ac_exeext conftest.$ac_ext
14903fi
14904ac_res=`eval echo '${'$as_ac_var'}'`
14905 { echo "$as_me:$LINENO: result: $ac_res" >&5
14906echo "${ECHO_T}$ac_res" >&6; }
14907if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf523642007-07-13 10:05:30 +000014908 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf523642007-07-13 10:05:30 +000014910_ACEOF
14911
14912fi
14913done
14914
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014915
14916
14917
14918
14919
Owen Anderson132ae8b2013-02-07 00:21:34 +000014920for ac_func in log log2 log10 exp exp2
14921do
14922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14923{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14925if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14927else
14928 cat >conftest.$ac_ext <<_ACEOF
14929/* confdefs.h. */
14930_ACEOF
14931cat confdefs.h >>conftest.$ac_ext
14932cat >>conftest.$ac_ext <<_ACEOF
14933/* end confdefs.h. */
14934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14936#define $ac_func innocuous_$ac_func
14937
14938/* System header to define __stub macros and hopefully few prototypes,
14939 which can conflict with char $ac_func (); below.
14940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14941 <limits.h> exists even on freestanding compilers. */
14942
14943#ifdef __STDC__
14944# include <limits.h>
14945#else
14946# include <assert.h>
14947#endif
14948
14949#undef $ac_func
14950
14951/* Override any GCC internal prototype to avoid an error.
14952 Use char because int might match the return type of a GCC
14953 builtin and then its argument prototype would still apply. */
14954#ifdef __cplusplus
14955extern "C"
14956#endif
14957char $ac_func ();
14958/* The GNU C library defines this for functions which it implements
14959 to always fail with ENOSYS. Some functions are actually named
14960 something starting with __ and the normal name is an alias. */
14961#if defined __stub_$ac_func || defined __stub___$ac_func
14962choke me
14963#endif
14964
14965int
14966main ()
14967{
14968return $ac_func ();
14969 ;
14970 return 0;
14971}
14972_ACEOF
14973rm -f conftest.$ac_objext conftest$ac_exeext
14974if { (ac_try="$ac_link"
14975case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14978esac
14979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_link") 2>conftest.er1
14981 ac_status=$?
14982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14988 { (case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991esac
14992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_try") 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; } &&
14997 { ac_try='test -s conftest$ac_exeext'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001esac
15002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 eval "$as_ac_var=yes"
15008else
15009 echo "$as_me: failed program was:" >&5
15010sed 's/^/| /' conftest.$ac_ext >&5
15011
15012 eval "$as_ac_var=no"
15013fi
15014
15015rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15017fi
15018ac_res=`eval echo '${'$as_ac_var'}'`
15019 { echo "$as_me:$LINENO: result: $ac_res" >&5
15020echo "${ECHO_T}$ac_res" >&6; }
15021if test `eval echo '${'$as_ac_var'}'` = yes; then
15022 cat >>confdefs.h <<_ACEOF
15023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15024_ACEOF
15025
15026fi
15027done
15028
15029
15030
15031
15032
15033
Reid Spenceredd2ccc2007-02-16 19:17:20 +000015034for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015035do
15036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15037{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041else
15042 cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
15047/* end confdefs.h. */
15048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15050#define $ac_func innocuous_$ac_func
15051
15052/* System header to define __stub macros and hopefully few prototypes,
15053 which can conflict with char $ac_func (); below.
15054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15055 <limits.h> exists even on freestanding compilers. */
15056
15057#ifdef __STDC__
15058# include <limits.h>
15059#else
15060# include <assert.h>
15061#endif
15062
15063#undef $ac_func
15064
15065/* Override any GCC internal prototype to avoid an error.
15066 Use char because int might match the return type of a GCC
15067 builtin and then its argument prototype would still apply. */
15068#ifdef __cplusplus
15069extern "C"
15070#endif
15071char $ac_func ();
15072/* The GNU C library defines this for functions which it implements
15073 to always fail with ENOSYS. Some functions are actually named
15074 something starting with __ and the normal name is an alias. */
15075#if defined __stub_$ac_func || defined __stub___$ac_func
15076choke me
15077#endif
15078
15079int
15080main ()
15081{
15082return $ac_func ();
15083 ;
15084 return 0;
15085}
15086_ACEOF
15087rm -f conftest.$ac_objext conftest$ac_exeext
15088if { (ac_try="$ac_link"
15089case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15092esac
15093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_link") 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105esac
15106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; } &&
15111 { ac_try='test -s conftest$ac_exeext'
15112 { (case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115esac
15116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_try") 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 eval "$as_ac_var=yes"
15122else
15123 echo "$as_me: failed program was:" >&5
15124sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 eval "$as_ac_var=no"
15127fi
15128
15129rm -f core conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
15131fi
15132ac_res=`eval echo '${'$as_ac_var'}'`
15133 { echo "$as_me:$LINENO: result: $ac_res" >&5
15134echo "${ECHO_T}$ac_res" >&6; }
15135if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spenceredd2ccc2007-02-16 19:17:20 +000015136 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spenceredd2ccc2007-02-16 19:17:20 +000015138_ACEOF
15139
15140fi
15141done
15142
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015143
15144
15145
Reid Spenceredd2ccc2007-02-16 19:17:20 +000015146for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015147do
15148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15149{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15151if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153else
15154 cat >conftest.$ac_ext <<_ACEOF
15155/* confdefs.h. */
15156_ACEOF
15157cat confdefs.h >>conftest.$ac_ext
15158cat >>conftest.$ac_ext <<_ACEOF
15159/* end confdefs.h. */
15160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15162#define $ac_func innocuous_$ac_func
15163
15164/* System header to define __stub macros and hopefully few prototypes,
15165 which can conflict with char $ac_func (); below.
15166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15167 <limits.h> exists even on freestanding compilers. */
15168
15169#ifdef __STDC__
15170# include <limits.h>
15171#else
15172# include <assert.h>
15173#endif
15174
15175#undef $ac_func
15176
15177/* Override any GCC internal prototype to avoid an error.
15178 Use char because int might match the return type of a GCC
15179 builtin and then its argument prototype would still apply. */
15180#ifdef __cplusplus
15181extern "C"
15182#endif
15183char $ac_func ();
15184/* The GNU C library defines this for functions which it implements
15185 to always fail with ENOSYS. Some functions are actually named
15186 something starting with __ and the normal name is an alias. */
15187#if defined __stub_$ac_func || defined __stub___$ac_func
15188choke me
15189#endif
15190
15191int
15192main ()
15193{
15194return $ac_func ();
15195 ;
15196 return 0;
15197}
15198_ACEOF
15199rm -f conftest.$ac_objext conftest$ac_exeext
15200if { (ac_try="$ac_link"
15201case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15207 ac_status=$?
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15214 { (case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217esac
15218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_try") 2>&5
15220 ac_status=$?
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; } &&
15223 { ac_try='test -s conftest$ac_exeext'
15224 { (case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15227esac
15228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_try") 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 eval "$as_ac_var=yes"
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238 eval "$as_ac_var=no"
15239fi
15240
15241rm -f core conftest.err conftest.$ac_objext \
15242 conftest$ac_exeext conftest.$ac_ext
15243fi
15244ac_res=`eval echo '${'$as_ac_var'}'`
15245 { echo "$as_me:$LINENO: result: $ac_res" >&5
15246echo "${ECHO_T}$ac_res" >&6; }
15247if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera609b652006-01-23 08:15:53 +000015248 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera609b652006-01-23 08:15:53 +000015250_ACEOF
15251
15252fi
15253done
15254
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015255
15256
15257
15258
15259
Eric Christopherdea3bda2010-04-16 05:14:21 +000015260
Eric Christopher30536382013-07-26 17:13:47 +000015261for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015262do
15263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15264{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268else
15269 cat >conftest.$ac_ext <<_ACEOF
15270/* confdefs.h. */
15271_ACEOF
15272cat confdefs.h >>conftest.$ac_ext
15273cat >>conftest.$ac_ext <<_ACEOF
15274/* end confdefs.h. */
15275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15277#define $ac_func innocuous_$ac_func
15278
15279/* System header to define __stub macros and hopefully few prototypes,
15280 which can conflict with char $ac_func (); below.
15281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15282 <limits.h> exists even on freestanding compilers. */
15283
15284#ifdef __STDC__
15285# include <limits.h>
15286#else
15287# include <assert.h>
15288#endif
15289
15290#undef $ac_func
15291
15292/* Override any GCC internal prototype to avoid an error.
15293 Use char because int might match the return type of a GCC
15294 builtin and then its argument prototype would still apply. */
15295#ifdef __cplusplus
15296extern "C"
15297#endif
15298char $ac_func ();
15299/* The GNU C library defines this for functions which it implements
15300 to always fail with ENOSYS. Some functions are actually named
15301 something starting with __ and the normal name is an alias. */
15302#if defined __stub_$ac_func || defined __stub___$ac_func
15303choke me
15304#endif
15305
15306int
15307main ()
15308{
15309return $ac_func ();
15310 ;
15311 return 0;
15312}
15313_ACEOF
15314rm -f conftest.$ac_objext conftest$ac_exeext
15315if { (ac_try="$ac_link"
15316case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15319esac
15320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321 (eval "$ac_link") 2>conftest.er1
15322 ac_status=$?
15323 grep -v '^ *+' conftest.er1 >conftest.err
15324 rm -f conftest.er1
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15329 { (case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15332esac
15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_try") 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 eval "$as_ac_var=yes"
15349else
15350 echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 eval "$as_ac_var=no"
15354fi
15355
15356rm -f core conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext conftest.$ac_ext
15358fi
15359ac_res=`eval echo '${'$as_ac_var'}'`
15360 { echo "$as_me:$LINENO: result: $ac_res" >&5
15361echo "${ECHO_T}$ac_res" >&6; }
15362if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000015363 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000015365_ACEOF
15366
15367fi
15368done
Reid Spencera609b652006-01-23 08:15:53 +000015369
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015370
15371
15372
Todd Fiala4ccfe392014-02-05 05:04:36 +000015373for ac_func in strerror strerror_r setenv
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015374do
15375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15376{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15378if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380else
15381 cat >conftest.$ac_ext <<_ACEOF
15382/* confdefs.h. */
15383_ACEOF
15384cat confdefs.h >>conftest.$ac_ext
15385cat >>conftest.$ac_ext <<_ACEOF
15386/* end confdefs.h. */
15387/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15389#define $ac_func innocuous_$ac_func
15390
15391/* System header to define __stub macros and hopefully few prototypes,
15392 which can conflict with char $ac_func (); below.
15393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15394 <limits.h> exists even on freestanding compilers. */
15395
15396#ifdef __STDC__
15397# include <limits.h>
15398#else
15399# include <assert.h>
15400#endif
15401
15402#undef $ac_func
15403
15404/* Override any GCC internal prototype to avoid an error.
15405 Use char because int might match the return type of a GCC
15406 builtin and then its argument prototype would still apply. */
15407#ifdef __cplusplus
15408extern "C"
15409#endif
15410char $ac_func ();
15411/* The GNU C library defines this for functions which it implements
15412 to always fail with ENOSYS. Some functions are actually named
15413 something starting with __ and the normal name is an alias. */
15414#if defined __stub_$ac_func || defined __stub___$ac_func
15415choke me
15416#endif
15417
15418int
15419main ()
15420{
15421return $ac_func ();
15422 ;
15423 return 0;
15424}
15425_ACEOF
15426rm -f conftest.$ac_objext conftest$ac_exeext
15427if { (ac_try="$ac_link"
15428case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431esac
15432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_link") 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444esac
15445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest$ac_exeext'
15451 { (case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454esac
15455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_try") 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 eval "$as_ac_var=yes"
15461else
15462 echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 eval "$as_ac_var=no"
15466fi
15467
15468rm -f core conftest.err conftest.$ac_objext \
15469 conftest$ac_exeext conftest.$ac_ext
15470fi
15471ac_res=`eval echo '${'$as_ac_var'}'`
15472 { echo "$as_me:$LINENO: result: $ac_res" >&5
15473echo "${ECHO_T}$ac_res" >&6; }
15474if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb6681582004-12-27 06:15:02 +000015475 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb6681582004-12-27 06:15:02 +000015477_ACEOF
15478
15479fi
15480done
15481
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015482
15483
15484
15485
Chris Lattner81479022005-11-14 07:25:50 +000015486for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015487do
15488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15489{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15491if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 cat >conftest.$ac_ext <<_ACEOF
15495/* confdefs.h. */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h. */
15500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15502#define $ac_func innocuous_$ac_func
15503
15504/* System header to define __stub macros and hopefully few prototypes,
15505 which can conflict with char $ac_func (); below.
15506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15507 <limits.h> exists even on freestanding compilers. */
15508
15509#ifdef __STDC__
15510# include <limits.h>
15511#else
15512# include <assert.h>
15513#endif
15514
15515#undef $ac_func
15516
15517/* Override any GCC internal prototype to avoid an error.
15518 Use char because int might match the return type of a GCC
15519 builtin and then its argument prototype would still apply. */
15520#ifdef __cplusplus
15521extern "C"
15522#endif
15523char $ac_func ();
15524/* The GNU C library defines this for functions which it implements
15525 to always fail with ENOSYS. Some functions are actually named
15526 something starting with __ and the normal name is an alias. */
15527#if defined __stub_$ac_func || defined __stub___$ac_func
15528choke me
15529#endif
15530
15531int
15532main ()
15533{
15534return $ac_func ();
15535 ;
15536 return 0;
15537}
15538_ACEOF
15539rm -f conftest.$ac_objext conftest$ac_exeext
15540if { (ac_try="$ac_link"
15541case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15544esac
15545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_link") 2>conftest.er1
15547 ac_status=$?
15548 grep -v '^ *+' conftest.er1 >conftest.err
15549 rm -f conftest.er1
15550 cat conftest.err >&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15554 { (case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15557esac
15558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_try") 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; } &&
15563 { ac_try='test -s conftest$ac_exeext'
15564 { (case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567esac
15568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_try") 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 eval "$as_ac_var=yes"
15574else
15575 echo "$as_me: failed program was:" >&5
15576sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 eval "$as_ac_var=no"
15579fi
15580
15581rm -f core conftest.err conftest.$ac_objext \
15582 conftest$ac_exeext conftest.$ac_ext
15583fi
15584ac_res=`eval echo '${'$as_ac_var'}'`
15585 { echo "$as_me:$LINENO: result: $ac_res" >&5
15586echo "${ECHO_T}$ac_res" >&6; }
15587if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000015588 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000015590_ACEOF
15591
15592fi
Reid Spencer0241e382004-11-25 04:51:04 +000015593done
John Criswell3ef61af2003-06-30 21:59:07 +000015594
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015595
15596
15597
15598
Daniel Dunbar7840c542011-02-03 02:40:02 +000015599
15600for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015601do
15602as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15603{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15604echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15605if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607else
15608 cat >conftest.$ac_ext <<_ACEOF
15609/* confdefs.h. */
15610_ACEOF
15611cat confdefs.h >>conftest.$ac_ext
15612cat >>conftest.$ac_ext <<_ACEOF
15613/* end confdefs.h. */
15614/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15616#define $ac_func innocuous_$ac_func
15617
15618/* System header to define __stub macros and hopefully few prototypes,
15619 which can conflict with char $ac_func (); below.
15620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15621 <limits.h> exists even on freestanding compilers. */
15622
15623#ifdef __STDC__
15624# include <limits.h>
15625#else
15626# include <assert.h>
15627#endif
15628
15629#undef $ac_func
15630
15631/* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15634#ifdef __cplusplus
15635extern "C"
15636#endif
15637char $ac_func ();
15638/* The GNU C library defines this for functions which it implements
15639 to always fail with ENOSYS. Some functions are actually named
15640 something starting with __ and the normal name is an alias. */
15641#if defined __stub_$ac_func || defined __stub___$ac_func
15642choke me
15643#endif
15644
15645int
15646main ()
15647{
15648return $ac_func ();
15649 ;
15650 return 0;
15651}
15652_ACEOF
15653rm -f conftest.$ac_objext conftest$ac_exeext
15654if { (ac_try="$ac_link"
15655case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15658esac
15659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_link") 2>conftest.er1
15661 ac_status=$?
15662 grep -v '^ *+' conftest.er1 >conftest.err
15663 rm -f conftest.er1
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } &&
15667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15668 { (case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671esac
15672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_try") 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; } &&
15677 { ac_try='test -s conftest$ac_exeext'
15678 { (case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15681esac
15682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_try") 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; }; then
15687 eval "$as_ac_var=yes"
15688else
15689 echo "$as_me: failed program was:" >&5
15690sed 's/^/| /' conftest.$ac_ext >&5
15691
15692 eval "$as_ac_var=no"
15693fi
15694
15695rm -f core conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
15697fi
15698ac_res=`eval echo '${'$as_ac_var'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700echo "${ECHO_T}$ac_res" >&6; }
15701if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera31ac4e2006-06-05 16:11:07 +000015702 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015703#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera31ac4e2006-06-05 16:11:07 +000015704_ACEOF
15705
15706fi
15707done
15708
Eric Christophera24dc7f2013-07-04 01:10:38 +000015709
15710
15711for ac_func in futimes futimens
15712do
15713as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15714{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15716if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718else
15719 cat >conftest.$ac_ext <<_ACEOF
15720/* confdefs.h. */
15721_ACEOF
15722cat confdefs.h >>conftest.$ac_ext
15723cat >>conftest.$ac_ext <<_ACEOF
15724/* end confdefs.h. */
15725/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15727#define $ac_func innocuous_$ac_func
15728
15729/* System header to define __stub macros and hopefully few prototypes,
15730 which can conflict with char $ac_func (); below.
15731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15732 <limits.h> exists even on freestanding compilers. */
15733
15734#ifdef __STDC__
15735# include <limits.h>
15736#else
15737# include <assert.h>
15738#endif
15739
15740#undef $ac_func
15741
15742/* Override any GCC internal prototype to avoid an error.
15743 Use char because int might match the return type of a GCC
15744 builtin and then its argument prototype would still apply. */
15745#ifdef __cplusplus
15746extern "C"
15747#endif
15748char $ac_func ();
15749/* The GNU C library defines this for functions which it implements
15750 to always fail with ENOSYS. Some functions are actually named
15751 something starting with __ and the normal name is an alias. */
15752#if defined __stub_$ac_func || defined __stub___$ac_func
15753choke me
15754#endif
15755
15756int
15757main ()
15758{
15759return $ac_func ();
15760 ;
15761 return 0;
15762}
15763_ACEOF
15764rm -f conftest.$ac_objext conftest$ac_exeext
15765if { (ac_try="$ac_link"
15766case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769esac
15770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_link") 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782esac
15783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest$ac_exeext'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 eval "$as_ac_var=yes"
15799else
15800 echo "$as_me: failed program was:" >&5
15801sed 's/^/| /' conftest.$ac_ext >&5
15802
15803 eval "$as_ac_var=no"
15804fi
15805
15806rm -f core conftest.err conftest.$ac_objext \
15807 conftest$ac_exeext conftest.$ac_ext
15808fi
15809ac_res=`eval echo '${'$as_ac_var'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811echo "${ECHO_T}$ac_res" >&6; }
15812if test `eval echo '${'$as_ac_var'}'` = yes; then
15813 cat >>confdefs.h <<_ACEOF
15814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15815_ACEOF
15816
15817fi
15818done
15819
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015820{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15821echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15822if test "${llvm_cv_c_printf_a+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000015824else
Reid Spencerf184a862004-09-19 23:53:36 +000015825 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000015826ac_cpp='$CPP $CPPFLAGS'
15827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829ac_compiler_gnu=$ac_cv_c_compiler_gnu
15830
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015831 if test "$cross_compiling" = yes; then
Reid Spencer8de46052004-11-27 22:01:43 +000015832 llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000015833else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015834 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerf184a862004-09-19 23:53:36 +000015835
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015836 /* confdefs.h. */
15837_ACEOF
15838cat confdefs.h >>conftest.$ac_ext
15839cat >>conftest.$ac_ext <<_ACEOF
15840/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000015841
John Criswell42859552003-10-13 16:22:01 +000015842#include <stdio.h>
Reid Spencerf184a862004-09-19 23:53:36 +000015843#include <stdlib.h>
15844
John Criswell42859552003-10-13 16:22:01 +000015845int
15846main ()
15847{
15848
Reid Spencerf184a862004-09-19 23:53:36 +000015849volatile double A, B;
15850char Buffer[100];
15851A = 1;
15852A /= 10.0;
15853sprintf(Buffer, "%a", A);
15854B = atof(Buffer);
15855if (A != B)
15856 return (1);
15857if (A != 0x1.999999999999ap-4)
15858 return (1);
15859return (0);
John Criswell42859552003-10-13 16:22:01 +000015860 ;
15861 return 0;
15862}
15863_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015864rm -f conftest$ac_exeext
15865if { (ac_try="$ac_link"
15866case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15869esac
15870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_link") 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15875 { (case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15878esac
15879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_try") 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
Reid Spencer8de46052004-11-27 22:01:43 +000015884 llvm_cv_c_printf_a=yes
John Criswell42859552003-10-13 16:22:01 +000015885else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015886 echo "$as_me: program exited with status $ac_status" >&5
15887echo "$as_me: failed program was:" >&5
15888sed 's/^/| /' conftest.$ac_ext >&5
15889
15890( exit $ac_status )
15891llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000015892fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell42859552003-10-13 16:22:01 +000015894fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000015895
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015896
Reid Spencerf184a862004-09-19 23:53:36 +000015897 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000015898ac_cpp='$CPP $CPPFLAGS'
15899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15901ac_compiler_gnu=$ac_cv_c_compiler_gnu
15902
Reid Spencer0241e382004-11-25 04:51:04 +000015903fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015904{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15905echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer8de46052004-11-27 22:01:43 +000015906 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswell42859552003-10-13 16:22:01 +000015907
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015908cat >>confdefs.h <<\_ACEOF
15909#define HAVE_PRINTF_A 1
15910_ACEOF
John Criswell42859552003-10-13 16:22:01 +000015911
Reid Spencerf184a862004-09-19 23:53:36 +000015912 fi
John Criswell42859552003-10-13 16:22:01 +000015913
Reid Spencer0241e382004-11-25 04:51:04 +000015914
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015915
15916 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015917echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15918if test "${ac_cv_func_rand48+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000015920else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015921
15922 ac_ext=cpp
Reid Spencer0241e382004-11-25 04:51:04 +000015923ac_cpp='$CXXCPP $CPPFLAGS'
15924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15927
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015928 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015929/* confdefs.h. */
15930_ACEOF
15931cat confdefs.h >>conftest.$ac_ext
15932cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000015933/* end confdefs.h. */
15934#include <stdlib.h>
15935int
15936main ()
15937{
15938srand48(0);lrand48();drand48();
15939 ;
15940 return 0;
15941}
15942_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015943rm -f conftest.$ac_objext
15944if { (ac_try="$ac_compile"
15945case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15948esac
15949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15951 ac_status=$?
15952 grep -v '^ *+' conftest.er1 >conftest.err
15953 rm -f conftest.er1
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } &&
15957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15958 { (case "(($ac_try" in
15959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15961esac
15962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963 (eval "$ac_try") 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; } &&
15967 { ac_try='test -s conftest.$ac_objext'
15968 { (case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15971esac
15972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_try") 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000015977 ac_cv_func_rand48=yes
15978else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015979 echo "$as_me: failed program was:" >&5
15980sed 's/^/| /' conftest.$ac_ext >&5
15981
15982 ac_cv_func_rand48=no
Reid Spencer0241e382004-11-25 04:51:04 +000015983fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015984
Reid Spencer0b52e2f2006-08-04 18:18:08 +000015985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015986 ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +000015987ac_cpp='$CPP $CPPFLAGS'
15988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990ac_compiler_gnu=$ac_cv_c_compiler_gnu
15991
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015992
Reid Spencer0241e382004-11-25 04:51:04 +000015993fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015994{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15995echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000015996
15997if test "$ac_cv_func_rand48" = "yes" ; then
15998
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015999cat >>confdefs.h <<\_ACEOF
16000#define HAVE_RAND48 1
16001_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000016002
16003fi
John Criswell3b4195f32004-02-13 21:57:29 +000016004
16005
Todd Fiala4ccfe392014-02-05 05:04:36 +000016006{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
16007echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
16008if test "${ac_cv_have_decl_arc4random+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011 cat >conftest.$ac_ext <<_ACEOF
16012/* confdefs.h. */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h. */
16017$ac_includes_default
16018int
16019main ()
16020{
16021#ifndef arc4random
16022 char *p = (char *) arc4random;
16023 return !p;
16024#endif
16025
16026 ;
16027 return 0;
16028}
16029_ACEOF
16030rm -f conftest.$ac_objext
16031if { (ac_try="$ac_compile"
16032case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16035esac
16036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_compile") 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } &&
16044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16045 { (case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16048esac
16049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_try") 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; } &&
16054 { ac_try='test -s conftest.$ac_objext'
16055 { (case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16058esac
16059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_try") 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; }; then
16064 ac_cv_have_decl_arc4random=yes
16065else
16066 echo "$as_me: failed program was:" >&5
16067sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 ac_cv_have_decl_arc4random=no
16070fi
16071
16072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073fi
16074{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16075echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16076if test $ac_cv_have_decl_arc4random = yes; then
16077
16078cat >>confdefs.h <<_ACEOF
16079#define HAVE_DECL_ARC4RANDOM 1
16080_ACEOF
16081
16082
16083else
16084 cat >>confdefs.h <<_ACEOF
16085#define HAVE_DECL_ARC4RANDOM 0
16086_ACEOF
16087
16088
16089fi
16090
16091
16092
NAKAMURA Takumi189111802011-02-09 04:18:48 +000016093{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16094echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16095if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16097else
16098 cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105int
16106main ()
16107{
16108#ifndef strerror_s
16109 char *p = (char *) strerror_s;
16110 return !p;
16111#endif
16112
16113 ;
16114 return 0;
16115}
16116_ACEOF
16117rm -f conftest.$ac_objext
16118if { (ac_try="$ac_compile"
16119case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16122esac
16123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_compile") 2>conftest.er1
16125 ac_status=$?
16126 grep -v '^ *+' conftest.er1 >conftest.err
16127 rm -f conftest.er1
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest.$ac_objext'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145esac
16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_try") 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_have_decl_strerror_s=yes
16152else
16153 echo "$as_me: failed program was:" >&5
16154sed 's/^/| /' conftest.$ac_ext >&5
16155
16156 ac_cv_have_decl_strerror_s=no
16157fi
16158
16159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160fi
16161{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16162echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16163if test $ac_cv_have_decl_strerror_s = yes; then
16164
16165cat >>confdefs.h <<_ACEOF
16166#define HAVE_DECL_STRERROR_S 1
16167_ACEOF
16168
16169
16170else
16171 cat >>confdefs.h <<_ACEOF
16172#define HAVE_DECL_STRERROR_S 0
16173_ACEOF
16174
16175
16176fi
16177
16178
16179
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000016180if test "$llvm_cv_os_type" = "MingW" ; then
16181 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16182echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16183if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16185else
16186 ac_check_lib_save_LIBS=$LIBS
16187LIBS="-lgcc $LIBS"
16188cat >conftest.$ac_ext <<_ACEOF
16189/* confdefs.h. */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h. */
16194
16195/* Override any GCC internal prototype to avoid an error.
16196 Use char because int might match the return type of a GCC
16197 builtin and then its argument prototype would still apply. */
16198#ifdef __cplusplus
16199extern "C"
16200#endif
16201char _alloca ();
16202int
16203main ()
16204{
16205return _alloca ();
16206 ;
16207 return 0;
16208}
16209_ACEOF
16210rm -f conftest.$ac_objext conftest$ac_exeext
16211if { (ac_try="$ac_link"
16212case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16215esac
16216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217 (eval "$ac_link") 2>conftest.er1
16218 ac_status=$?
16219 grep -v '^ *+' conftest.er1 >conftest.err
16220 rm -f conftest.er1
16221 cat conftest.err >&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } &&
16224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16225 { (case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228esac
16229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_try") 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; } &&
16234 { ac_try='test -s conftest$ac_exeext'
16235 { (case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16238esac
16239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_try") 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_cv_lib_gcc__alloca=yes
16245else
16246 echo "$as_me: failed program was:" >&5
16247sed 's/^/| /' conftest.$ac_ext >&5
16248
16249 ac_cv_lib_gcc__alloca=no
16250fi
16251
16252rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254LIBS=$ac_check_lib_save_LIBS
16255fi
16256{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16257echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16258if test $ac_cv_lib_gcc__alloca = yes; then
16259
16260cat >>confdefs.h <<\_ACEOF
16261#define HAVE__ALLOCA 1
16262_ACEOF
16263
16264fi
16265
16266 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16267echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16268if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270else
16271 ac_check_lib_save_LIBS=$LIBS
16272LIBS="-lgcc $LIBS"
16273cat >conftest.$ac_ext <<_ACEOF
16274/* confdefs.h. */
16275_ACEOF
16276cat confdefs.h >>conftest.$ac_ext
16277cat >>conftest.$ac_ext <<_ACEOF
16278/* end confdefs.h. */
16279
16280/* Override any GCC internal prototype to avoid an error.
16281 Use char because int might match the return type of a GCC
16282 builtin and then its argument prototype would still apply. */
16283#ifdef __cplusplus
16284extern "C"
16285#endif
16286char __alloca ();
16287int
16288main ()
16289{
16290return __alloca ();
16291 ;
16292 return 0;
16293}
16294_ACEOF
16295rm -f conftest.$ac_objext conftest$ac_exeext
16296if { (ac_try="$ac_link"
16297case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300esac
16301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_link") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest$ac_exeext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323esac
16324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_lib_gcc___alloca=yes
16330else
16331 echo "$as_me: failed program was:" >&5
16332sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 ac_cv_lib_gcc___alloca=no
16335fi
16336
16337rm -f core conftest.err conftest.$ac_objext \
16338 conftest$ac_exeext conftest.$ac_ext
16339LIBS=$ac_check_lib_save_LIBS
16340fi
16341{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16342echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16343if test $ac_cv_lib_gcc___alloca = yes; then
16344
16345cat >>confdefs.h <<\_ACEOF
16346#define HAVE___ALLOCA 1
16347_ACEOF
16348
16349fi
16350
16351 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16352echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16353if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16355else
16356 ac_check_lib_save_LIBS=$LIBS
16357LIBS="-lgcc $LIBS"
16358cat >conftest.$ac_ext <<_ACEOF
16359/* confdefs.h. */
16360_ACEOF
16361cat confdefs.h >>conftest.$ac_ext
16362cat >>conftest.$ac_ext <<_ACEOF
16363/* end confdefs.h. */
16364
16365/* Override any GCC internal prototype to avoid an error.
16366 Use char because int might match the return type of a GCC
16367 builtin and then its argument prototype would still apply. */
16368#ifdef __cplusplus
16369extern "C"
16370#endif
16371char __chkstk ();
16372int
16373main ()
16374{
16375return __chkstk ();
16376 ;
16377 return 0;
16378}
16379_ACEOF
16380rm -f conftest.$ac_objext conftest$ac_exeext
16381if { (ac_try="$ac_link"
16382case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16385esac
16386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_link") 2>conftest.er1
16388 ac_status=$?
16389 grep -v '^ *+' conftest.er1 >conftest.err
16390 rm -f conftest.er1
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } &&
16394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16395 { (case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16398esac
16399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_try") 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest$ac_exeext'
16405 { (case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408esac
16409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_try") 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_cv_lib_gcc___chkstk=yes
16415else
16416 echo "$as_me: failed program was:" >&5
16417sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 ac_cv_lib_gcc___chkstk=no
16420fi
16421
16422rm -f core conftest.err conftest.$ac_objext \
16423 conftest$ac_exeext conftest.$ac_ext
16424LIBS=$ac_check_lib_save_LIBS
16425fi
16426{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16427echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16428if test $ac_cv_lib_gcc___chkstk = yes; then
16429
16430cat >>confdefs.h <<\_ACEOF
16431#define HAVE___CHKSTK 1
16432_ACEOF
16433
16434fi
16435
16436 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16437echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16438if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440else
16441 ac_check_lib_save_LIBS=$LIBS
16442LIBS="-lgcc $LIBS"
16443cat >conftest.$ac_ext <<_ACEOF
16444/* confdefs.h. */
16445_ACEOF
16446cat confdefs.h >>conftest.$ac_ext
16447cat >>conftest.$ac_ext <<_ACEOF
16448/* end confdefs.h. */
16449
16450/* Override any GCC internal prototype to avoid an error.
16451 Use char because int might match the return type of a GCC
16452 builtin and then its argument prototype would still apply. */
16453#ifdef __cplusplus
16454extern "C"
16455#endif
16456char ___chkstk ();
16457int
16458main ()
16459{
16460return ___chkstk ();
16461 ;
16462 return 0;
16463}
16464_ACEOF
16465rm -f conftest.$ac_objext conftest$ac_exeext
16466if { (ac_try="$ac_link"
16467case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16470esac
16471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472 (eval "$ac_link") 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16480 { (case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16483esac
16484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_try") 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; } &&
16489 { ac_try='test -s conftest$ac_exeext'
16490 { (case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16493esac
16494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_try") 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_cv_lib_gcc____chkstk=yes
16500else
16501 echo "$as_me: failed program was:" >&5
16502sed 's/^/| /' conftest.$ac_ext >&5
16503
16504 ac_cv_lib_gcc____chkstk=no
16505fi
16506
16507rm -f core conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16509LIBS=$ac_check_lib_save_LIBS
16510fi
16511{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16512echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16513if test $ac_cv_lib_gcc____chkstk = yes; then
16514
16515cat >>confdefs.h <<\_ACEOF
16516#define HAVE____CHKSTK 1
16517_ACEOF
16518
16519fi
16520
16521
16522 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16523echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16524if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526else
16527 ac_check_lib_save_LIBS=$LIBS
16528LIBS="-lgcc $LIBS"
16529cat >conftest.$ac_ext <<_ACEOF
16530/* confdefs.h. */
16531_ACEOF
16532cat confdefs.h >>conftest.$ac_ext
16533cat >>conftest.$ac_ext <<_ACEOF
16534/* end confdefs.h. */
16535
16536/* Override any GCC internal prototype to avoid an error.
16537 Use char because int might match the return type of a GCC
16538 builtin and then its argument prototype would still apply. */
16539#ifdef __cplusplus
16540extern "C"
16541#endif
16542char __ashldi3 ();
16543int
16544main ()
16545{
16546return __ashldi3 ();
16547 ;
16548 return 0;
16549}
16550_ACEOF
16551rm -f conftest.$ac_objext conftest$ac_exeext
16552if { (ac_try="$ac_link"
16553case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16556esac
16557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_link") 2>conftest.er1
16559 ac_status=$?
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16566 { (case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16569esac
16570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_try") 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; } &&
16575 { ac_try='test -s conftest$ac_exeext'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579esac
16580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_lib_gcc___ashldi3=yes
16586else
16587 echo "$as_me: failed program was:" >&5
16588sed 's/^/| /' conftest.$ac_ext >&5
16589
16590 ac_cv_lib_gcc___ashldi3=no
16591fi
16592
16593rm -f core conftest.err conftest.$ac_objext \
16594 conftest$ac_exeext conftest.$ac_ext
16595LIBS=$ac_check_lib_save_LIBS
16596fi
16597{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16598echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16599if test $ac_cv_lib_gcc___ashldi3 = yes; then
16600
16601cat >>confdefs.h <<\_ACEOF
16602#define HAVE___ASHLDI3 1
16603_ACEOF
16604
16605fi
16606
16607 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16608echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16609if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611else
16612 ac_check_lib_save_LIBS=$LIBS
16613LIBS="-lgcc $LIBS"
16614cat >conftest.$ac_ext <<_ACEOF
16615/* confdefs.h. */
16616_ACEOF
16617cat confdefs.h >>conftest.$ac_ext
16618cat >>conftest.$ac_ext <<_ACEOF
16619/* end confdefs.h. */
16620
16621/* Override any GCC internal prototype to avoid an error.
16622 Use char because int might match the return type of a GCC
16623 builtin and then its argument prototype would still apply. */
16624#ifdef __cplusplus
16625extern "C"
16626#endif
16627char __ashrdi3 ();
16628int
16629main ()
16630{
16631return __ashrdi3 ();
16632 ;
16633 return 0;
16634}
16635_ACEOF
16636rm -f conftest.$ac_objext conftest$ac_exeext
16637if { (ac_try="$ac_link"
16638case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16641esac
16642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_link") 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
16650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651 { (case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16654esac
16655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_try") 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest$ac_exeext'
16661 { (case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16664esac
16665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_try") 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_cv_lib_gcc___ashrdi3=yes
16671else
16672 echo "$as_me: failed program was:" >&5
16673sed 's/^/| /' conftest.$ac_ext >&5
16674
16675 ac_cv_lib_gcc___ashrdi3=no
16676fi
16677
16678rm -f core conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680LIBS=$ac_check_lib_save_LIBS
16681fi
16682{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16683echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16684if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16685
16686cat >>confdefs.h <<\_ACEOF
16687#define HAVE___ASHRDI3 1
16688_ACEOF
16689
16690fi
16691
16692 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16693echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16694if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16696else
16697 ac_check_lib_save_LIBS=$LIBS
16698LIBS="-lgcc $LIBS"
16699cat >conftest.$ac_ext <<_ACEOF
16700/* confdefs.h. */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h. */
16705
16706/* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16709#ifdef __cplusplus
16710extern "C"
16711#endif
16712char __divdi3 ();
16713int
16714main ()
16715{
16716return __divdi3 ();
16717 ;
16718 return 0;
16719}
16720_ACEOF
16721rm -f conftest.$ac_objext conftest$ac_exeext
16722if { (ac_try="$ac_link"
16723case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726esac
16727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_link") 2>conftest.er1
16729 ac_status=$?
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16736 { (case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16739esac
16740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_try") 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest$ac_exeext'
16746 { (case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16749esac
16750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_try") 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_lib_gcc___divdi3=yes
16756else
16757 echo "$as_me: failed program was:" >&5
16758sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ac_cv_lib_gcc___divdi3=no
16761fi
16762
16763rm -f core conftest.err conftest.$ac_objext \
16764 conftest$ac_exeext conftest.$ac_ext
16765LIBS=$ac_check_lib_save_LIBS
16766fi
16767{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16768echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16769if test $ac_cv_lib_gcc___divdi3 = yes; then
16770
16771cat >>confdefs.h <<\_ACEOF
16772#define HAVE___DIVDI3 1
16773_ACEOF
16774
16775fi
16776
16777 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16778echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16779if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781else
16782 ac_check_lib_save_LIBS=$LIBS
16783LIBS="-lgcc $LIBS"
16784cat >conftest.$ac_ext <<_ACEOF
16785/* confdefs.h. */
16786_ACEOF
16787cat confdefs.h >>conftest.$ac_ext
16788cat >>conftest.$ac_ext <<_ACEOF
16789/* end confdefs.h. */
16790
16791/* Override any GCC internal prototype to avoid an error.
16792 Use char because int might match the return type of a GCC
16793 builtin and then its argument prototype would still apply. */
16794#ifdef __cplusplus
16795extern "C"
16796#endif
16797char __fixdfdi ();
16798int
16799main ()
16800{
16801return __fixdfdi ();
16802 ;
16803 return 0;
16804}
16805_ACEOF
16806rm -f conftest.$ac_objext conftest$ac_exeext
16807if { (ac_try="$ac_link"
16808case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16811esac
16812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_link") 2>conftest.er1
16814 ac_status=$?
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest$ac_exeext'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834esac
16835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 ac_cv_lib_gcc___fixdfdi=yes
16841else
16842 echo "$as_me: failed program was:" >&5
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
16845 ac_cv_lib_gcc___fixdfdi=no
16846fi
16847
16848rm -f core conftest.err conftest.$ac_objext \
16849 conftest$ac_exeext conftest.$ac_ext
16850LIBS=$ac_check_lib_save_LIBS
16851fi
16852{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16853echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16854if test $ac_cv_lib_gcc___fixdfdi = yes; then
16855
16856cat >>confdefs.h <<\_ACEOF
16857#define HAVE___FIXDFDI 1
16858_ACEOF
16859
16860fi
16861
16862 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16863echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16864if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16866else
16867 ac_check_lib_save_LIBS=$LIBS
16868LIBS="-lgcc $LIBS"
16869cat >conftest.$ac_ext <<_ACEOF
16870/* confdefs.h. */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h. */
16875
16876/* Override any GCC internal prototype to avoid an error.
16877 Use char because int might match the return type of a GCC
16878 builtin and then its argument prototype would still apply. */
16879#ifdef __cplusplus
16880extern "C"
16881#endif
16882char __fixsfdi ();
16883int
16884main ()
16885{
16886return __fixsfdi ();
16887 ;
16888 return 0;
16889}
16890_ACEOF
16891rm -f conftest.$ac_objext conftest$ac_exeext
16892if { (ac_try="$ac_link"
16893case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16896esac
16897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_link") 2>conftest.er1
16899 ac_status=$?
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16906 { (case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16909esac
16910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_try") 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } &&
16915 { ac_try='test -s conftest$ac_exeext'
16916 { (case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919esac
16920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_try") 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_cv_lib_gcc___fixsfdi=yes
16926else
16927 echo "$as_me: failed program was:" >&5
16928sed 's/^/| /' conftest.$ac_ext >&5
16929
16930 ac_cv_lib_gcc___fixsfdi=no
16931fi
16932
16933rm -f core conftest.err conftest.$ac_objext \
16934 conftest$ac_exeext conftest.$ac_ext
16935LIBS=$ac_check_lib_save_LIBS
16936fi
16937{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16938echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16939if test $ac_cv_lib_gcc___fixsfdi = yes; then
16940
16941cat >>confdefs.h <<\_ACEOF
16942#define HAVE___FIXSFDI 1
16943_ACEOF
16944
16945fi
16946
16947 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16948echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16949if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16951else
16952 ac_check_lib_save_LIBS=$LIBS
16953LIBS="-lgcc $LIBS"
16954cat >conftest.$ac_ext <<_ACEOF
16955/* confdefs.h. */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h. */
16960
16961/* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16964#ifdef __cplusplus
16965extern "C"
16966#endif
16967char __floatdidf ();
16968int
16969main ()
16970{
16971return __floatdidf ();
16972 ;
16973 return 0;
16974}
16975_ACEOF
16976rm -f conftest.$ac_objext conftest$ac_exeext
16977if { (ac_try="$ac_link"
16978case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981esac
16982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_link") 2>conftest.er1
16984 ac_status=$?
16985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994esac
16995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004esac
17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_cv_lib_gcc___floatdidf=yes
17011else
17012 echo "$as_me: failed program was:" >&5
17013sed 's/^/| /' conftest.$ac_ext >&5
17014
17015 ac_cv_lib_gcc___floatdidf=no
17016fi
17017
17018rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020LIBS=$ac_check_lib_save_LIBS
17021fi
17022{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17023echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17024if test $ac_cv_lib_gcc___floatdidf = yes; then
17025
17026cat >>confdefs.h <<\_ACEOF
17027#define HAVE___FLOATDIDF 1
17028_ACEOF
17029
17030fi
17031
17032 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17033echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17034if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17036else
17037 ac_check_lib_save_LIBS=$LIBS
17038LIBS="-lgcc $LIBS"
17039cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
17045
17046/* Override any GCC internal prototype to avoid an error.
17047 Use char because int might match the return type of a GCC
17048 builtin and then its argument prototype would still apply. */
17049#ifdef __cplusplus
17050extern "C"
17051#endif
17052char __lshrdi3 ();
17053int
17054main ()
17055{
17056return __lshrdi3 ();
17057 ;
17058 return 0;
17059}
17060_ACEOF
17061rm -f conftest.$ac_objext conftest$ac_exeext
17062if { (ac_try="$ac_link"
17063case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066esac
17067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17079esac
17080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 ac_cv_lib_gcc___lshrdi3=yes
17096else
17097 echo "$as_me: failed program was:" >&5
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
17100 ac_cv_lib_gcc___lshrdi3=no
17101fi
17102
17103rm -f core conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17105LIBS=$ac_check_lib_save_LIBS
17106fi
17107{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17108echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17109if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17110
17111cat >>confdefs.h <<\_ACEOF
17112#define HAVE___LSHRDI3 1
17113_ACEOF
17114
17115fi
17116
17117 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17118echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17119if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17121else
17122 ac_check_lib_save_LIBS=$LIBS
17123LIBS="-lgcc $LIBS"
17124cat >conftest.$ac_ext <<_ACEOF
17125/* confdefs.h. */
17126_ACEOF
17127cat confdefs.h >>conftest.$ac_ext
17128cat >>conftest.$ac_ext <<_ACEOF
17129/* end confdefs.h. */
17130
17131/* Override any GCC internal prototype to avoid an error.
17132 Use char because int might match the return type of a GCC
17133 builtin and then its argument prototype would still apply. */
17134#ifdef __cplusplus
17135extern "C"
17136#endif
17137char __moddi3 ();
17138int
17139main ()
17140{
17141return __moddi3 ();
17142 ;
17143 return 0;
17144}
17145_ACEOF
17146rm -f conftest.$ac_objext conftest$ac_exeext
17147if { (ac_try="$ac_link"
17148case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151esac
17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_link") 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164esac
17165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest$ac_exeext'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174esac
17175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 ac_cv_lib_gcc___moddi3=yes
17181else
17182 echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
17185 ac_cv_lib_gcc___moddi3=no
17186fi
17187
17188rm -f core conftest.err conftest.$ac_objext \
17189 conftest$ac_exeext conftest.$ac_ext
17190LIBS=$ac_check_lib_save_LIBS
17191fi
17192{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17193echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17194if test $ac_cv_lib_gcc___moddi3 = yes; then
17195
17196cat >>confdefs.h <<\_ACEOF
17197#define HAVE___MODDI3 1
17198_ACEOF
17199
17200fi
17201
17202 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17203echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17204if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17206else
17207 ac_check_lib_save_LIBS=$LIBS
17208LIBS="-lgcc $LIBS"
17209cat >conftest.$ac_ext <<_ACEOF
17210/* confdefs.h. */
17211_ACEOF
17212cat confdefs.h >>conftest.$ac_ext
17213cat >>conftest.$ac_ext <<_ACEOF
17214/* end confdefs.h. */
17215
17216/* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17219#ifdef __cplusplus
17220extern "C"
17221#endif
17222char __udivdi3 ();
17223int
17224main ()
17225{
17226return __udivdi3 ();
17227 ;
17228 return 0;
17229}
17230_ACEOF
17231rm -f conftest.$ac_objext conftest$ac_exeext
17232if { (ac_try="$ac_link"
17233case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_link") 2>conftest.er1
17239 ac_status=$?
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
17245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17246 { (case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249esac
17250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_try") 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest$ac_exeext'
17256 { (case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259esac
17260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_try") 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 ac_cv_lib_gcc___udivdi3=yes
17266else
17267 echo "$as_me: failed program was:" >&5
17268sed 's/^/| /' conftest.$ac_ext >&5
17269
17270 ac_cv_lib_gcc___udivdi3=no
17271fi
17272
17273rm -f core conftest.err conftest.$ac_objext \
17274 conftest$ac_exeext conftest.$ac_ext
17275LIBS=$ac_check_lib_save_LIBS
17276fi
17277{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17278echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17279if test $ac_cv_lib_gcc___udivdi3 = yes; then
17280
17281cat >>confdefs.h <<\_ACEOF
17282#define HAVE___UDIVDI3 1
17283_ACEOF
17284
17285fi
17286
17287 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17288echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17289if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17291else
17292 ac_check_lib_save_LIBS=$LIBS
17293LIBS="-lgcc $LIBS"
17294cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300
17301/* Override any GCC internal prototype to avoid an error.
17302 Use char because int might match the return type of a GCC
17303 builtin and then its argument prototype would still apply. */
17304#ifdef __cplusplus
17305extern "C"
17306#endif
17307char __umoddi3 ();
17308int
17309main ()
17310{
17311return __umoddi3 ();
17312 ;
17313 return 0;
17314}
17315_ACEOF
17316rm -f conftest.$ac_objext conftest$ac_exeext
17317if { (ac_try="$ac_link"
17318case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_link") 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17334esac
17335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try='test -s conftest$ac_exeext'
17341 { (case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344esac
17345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_try") 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ac_cv_lib_gcc___umoddi3=yes
17351else
17352 echo "$as_me: failed program was:" >&5
17353sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 ac_cv_lib_gcc___umoddi3=no
17356fi
17357
17358rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17360LIBS=$ac_check_lib_save_LIBS
17361fi
17362{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17363echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17364if test $ac_cv_lib_gcc___umoddi3 = yes; then
17365
17366cat >>confdefs.h <<\_ACEOF
17367#define HAVE___UMODDI3 1
17368_ACEOF
17369
17370fi
17371
17372
17373 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17374echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17375if test "${ac_cv_lib_gcc___main+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17377else
17378 ac_check_lib_save_LIBS=$LIBS
17379LIBS="-lgcc $LIBS"
17380cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h. */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h. */
17386
17387/* Override any GCC internal prototype to avoid an error.
17388 Use char because int might match the return type of a GCC
17389 builtin and then its argument prototype would still apply. */
17390#ifdef __cplusplus
17391extern "C"
17392#endif
17393char __main ();
17394int
17395main ()
17396{
17397return __main ();
17398 ;
17399 return 0;
17400}
17401_ACEOF
17402rm -f conftest.$ac_objext conftest$ac_exeext
17403if { (ac_try="$ac_link"
17404case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_link") 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420esac
17421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest$ac_exeext'
17427 { (case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430esac
17431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_try") 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_lib_gcc___main=yes
17437else
17438 echo "$as_me: failed program was:" >&5
17439sed 's/^/| /' conftest.$ac_ext >&5
17440
17441 ac_cv_lib_gcc___main=no
17442fi
17443
17444rm -f core conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17446LIBS=$ac_check_lib_save_LIBS
17447fi
17448{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17449echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17450if test $ac_cv_lib_gcc___main = yes; then
17451
17452cat >>confdefs.h <<\_ACEOF
17453#define HAVE___MAIN 1
17454_ACEOF
17455
17456fi
17457
17458 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17459echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17460if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462else
17463 ac_check_lib_save_LIBS=$LIBS
17464LIBS="-lgcc $LIBS"
17465cat >conftest.$ac_ext <<_ACEOF
17466/* confdefs.h. */
17467_ACEOF
17468cat confdefs.h >>conftest.$ac_ext
17469cat >>conftest.$ac_ext <<_ACEOF
17470/* end confdefs.h. */
17471
17472/* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17475#ifdef __cplusplus
17476extern "C"
17477#endif
17478char __cmpdi2 ();
17479int
17480main ()
17481{
17482return __cmpdi2 ();
17483 ;
17484 return 0;
17485}
17486_ACEOF
17487rm -f conftest.$ac_objext conftest$ac_exeext
17488if { (ac_try="$ac_link"
17489case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492esac
17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505esac
17506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515esac
17516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_lib_gcc___cmpdi2=yes
17522else
17523 echo "$as_me: failed program was:" >&5
17524sed 's/^/| /' conftest.$ac_ext >&5
17525
17526 ac_cv_lib_gcc___cmpdi2=no
17527fi
17528
17529rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531LIBS=$ac_check_lib_save_LIBS
17532fi
17533{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17534echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17535if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17536
17537cat >>confdefs.h <<\_ACEOF
17538#define HAVE___CMPDI2 1
17539_ACEOF
17540
17541fi
17542
17543fi
17544
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000017545if test "$llvm_cv_os_type" = "MingW" ; then
17546 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17547echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17548 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017549
17550 /* confdefs.h. */
17551_ACEOF
17552cat confdefs.h >>conftest.$ac_ext
17553cat >>conftest.$ac_ext <<_ACEOF
17554/* end confdefs.h. */
17555
17556 #include <windows.h>
17557 #include <imagehlp.h>
17558 extern void foo(PENUMLOADED_MODULES_CALLBACK);
17559 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17560
17561
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000017562_ACEOF
17563rm -f conftest.$ac_objext
17564if { (ac_try="$ac_compile"
17565case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568esac
17569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_compile") 2>conftest.er1
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581esac
17582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest.$ac_objext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597
17598 { echo "$as_me:$LINENO: result: yes" >&5
17599echo "${ECHO_T}yes" >&6; }
17600 llvm_cv_win32_elmcb_pcstr="PCSTR"
17601
17602else
17603 echo "$as_me: failed program was:" >&5
17604sed 's/^/| /' conftest.$ac_ext >&5
17605
17606
17607 { echo "$as_me:$LINENO: result: no" >&5
17608echo "${ECHO_T}no" >&6; }
17609 llvm_cv_win32_elmcb_pcstr="PSTR"
17610
17611fi
17612
17613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17614
17615cat >>confdefs.h <<_ACEOF
17616#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17617_ACEOF
17618
17619fi
17620
Torok Edwinaec06332010-01-26 08:50:50 +000017621
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017622
17623 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017624echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17625if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000017627else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017628
17629 ac_ext=cpp
John Criswell3ef61af2003-06-30 21:59:07 +000017630ac_cpp='$CXXCPP $CPPFLAGS'
17631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17634
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017635 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017636/* confdefs.h. */
17637_ACEOF
17638cat confdefs.h >>conftest.$ac_ext
17639cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017640/* end confdefs.h. */
17641#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000017642int
17643main ()
17644{
17645float f; isnan(f);
17646 ;
17647 return 0;
17648}
Brian Gaekec77683c2004-06-22 23:47:13 +000017649_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017650rm -f conftest.$ac_objext
17651if { (ac_try="$ac_compile"
17652case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655esac
17656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_compile") 2>conftest.er1
17658 ac_status=$?
17659 grep -v '^ *+' conftest.er1 >conftest.err
17660 rm -f conftest.er1
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668esac
17669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest.$ac_objext'
17675 { (case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678esac
17679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_try") 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017684 ac_cv_func_isnan_in_math_h=yes
17685else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017686 echo "$as_me: failed program was:" >&5
17687sed 's/^/| /' conftest.$ac_ext >&5
17688
17689 ac_cv_func_isnan_in_math_h=no
Brian Gaekec77683c2004-06-22 23:47:13 +000017690fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017691
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017693 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000017694ac_cpp='$CPP $CPPFLAGS'
17695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697ac_compiler_gnu=$ac_cv_c_compiler_gnu
17698
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017699
Brian Gaekec77683c2004-06-22 23:47:13 +000017700fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017701{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17702echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000017703
17704
17705if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017706
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017707cat >>confdefs.h <<\_ACEOF
17708#define HAVE_ISNAN_IN_MATH_H 1
17709_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017710
Reid Spencerf9676532004-10-27 23:03:44 +000017711fi
17712
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017713
17714 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017715echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17716if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000017718else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017719
17720 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000017721ac_cpp='$CXXCPP $CPPFLAGS'
17722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17725
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017726 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017727/* confdefs.h. */
17728_ACEOF
17729cat confdefs.h >>conftest.$ac_ext
17730cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017731/* end confdefs.h. */
17732#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000017733int
17734main ()
17735{
17736float f; isnan(f);
17737 ;
17738 return 0;
17739}
Brian Gaekec77683c2004-06-22 23:47:13 +000017740_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017741rm -f conftest.$ac_objext
17742if { (ac_try="$ac_compile"
17743case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_compile") 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17759esac
17760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest.$ac_objext'
17766 { (case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17769esac
17770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017775 ac_cv_func_isnan_in_cmath=yes
17776else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017777 echo "$as_me: failed program was:" >&5
17778sed 's/^/| /' conftest.$ac_ext >&5
17779
17780 ac_cv_func_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000017781fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017782
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017784 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000017785ac_cpp='$CPP $CPPFLAGS'
17786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17788ac_compiler_gnu=$ac_cv_c_compiler_gnu
17789
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017790
Brian Gaekec77683c2004-06-22 23:47:13 +000017791fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017792{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17793echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000017794
17795if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017796
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017797cat >>confdefs.h <<\_ACEOF
17798#define HAVE_ISNAN_IN_CMATH 1
17799_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017800
Reid Spencerf9676532004-10-27 23:03:44 +000017801fi
17802
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017803
17804 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017805echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17806if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000017808else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017809
17810 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000017811ac_cpp='$CXXCPP $CPPFLAGS'
17812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17815
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017816 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017817/* confdefs.h. */
17818_ACEOF
17819cat confdefs.h >>conftest.$ac_ext
17820cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017821/* end confdefs.h. */
17822#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000017823int
17824main ()
17825{
17826float f; std::isnan(f);
17827 ;
17828 return 0;
17829}
Brian Gaekec77683c2004-06-22 23:47:13 +000017830_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017831rm -f conftest.$ac_objext
17832if { (ac_try="$ac_compile"
17833case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836esac
17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_compile") 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017865 ac_cv_func_std_isnan_in_cmath=yes
17866else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017867 echo "$as_me: failed program was:" >&5
17868sed 's/^/| /' conftest.$ac_ext >&5
17869
17870 ac_cv_func_std_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000017871fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017872
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017874 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000017875ac_cpp='$CPP $CPPFLAGS'
17876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17878ac_compiler_gnu=$ac_cv_c_compiler_gnu
17879
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017880
Brian Gaekec77683c2004-06-22 23:47:13 +000017881fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017882{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17883echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000017884
17885if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017886
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017887cat >>confdefs.h <<\_ACEOF
17888#define HAVE_STD_ISNAN_IN_CMATH 1
17889_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017890
Reid Spencerf9676532004-10-27 23:03:44 +000017891fi
Brian Gaekec77683c2004-06-22 23:47:13 +000017892
17893
NAKAMURA Takumif7148bd2013-01-30 01:37:49 +000017894
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017895
17896 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017897echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17898if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017900else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017901
17902 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017903ac_cpp='$CXXCPP $CPPFLAGS'
17904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17907
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017908 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017909/* confdefs.h. */
17910_ACEOF
17911cat confdefs.h >>conftest.$ac_ext
17912cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017913/* end confdefs.h. */
17914#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000017915int
17916main ()
17917{
17918float f; isinf(f);
17919 ;
17920 return 0;
17921}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017922_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017923rm -f conftest.$ac_objext
17924if { (ac_try="$ac_compile"
17925case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928esac
17929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_compile") 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17938 { (case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17941esac
17942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_try") 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; } &&
17947 { ac_try='test -s conftest.$ac_objext'
17948 { (case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17951esac
17952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_try") 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017957 ac_cv_func_isinf_in_math_h=yes
17958else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017959 echo "$as_me: failed program was:" >&5
17960sed 's/^/| /' conftest.$ac_ext >&5
17961
17962 ac_cv_func_isinf_in_math_h=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017963fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017964
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017966 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017967ac_cpp='$CPP $CPPFLAGS'
17968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970ac_compiler_gnu=$ac_cv_c_compiler_gnu
17971
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017972
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017973fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017974{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17975echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000017976
17977if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017978
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017979cat >>confdefs.h <<\_ACEOF
17980#define HAVE_ISINF_IN_MATH_H 1
17981_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017982
Reid Spencerf9676532004-10-27 23:03:44 +000017983fi
17984
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017985
17986 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017987echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17988if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017990else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017991
17992 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017993ac_cpp='$CXXCPP $CPPFLAGS'
17994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17997
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017998 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017999/* confdefs.h. */
18000_ACEOF
18001cat confdefs.h >>conftest.$ac_ext
18002cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018003/* end confdefs.h. */
18004#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000018005int
18006main ()
18007{
18008float f; isinf(f);
18009 ;
18010 return 0;
18011}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018012_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018013rm -f conftest.$ac_objext
18014if { (ac_try="$ac_compile"
18015case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18018esac
18019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020 (eval "$ac_compile") 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18028 { (case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18031esac
18032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_try") 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; } &&
18037 { ac_try='test -s conftest.$ac_objext'
18038 { (case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041esac
18042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_try") 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018047 ac_cv_func_isinf_in_cmath=yes
18048else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018049 echo "$as_me: failed program was:" >&5
18050sed 's/^/| /' conftest.$ac_ext >&5
18051
18052 ac_cv_func_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018053fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018054
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018056 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018057ac_cpp='$CPP $CPPFLAGS'
18058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060ac_compiler_gnu=$ac_cv_c_compiler_gnu
18061
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018062
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018063fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018064{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18065echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000018066
18067if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018068
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018069cat >>confdefs.h <<\_ACEOF
18070#define HAVE_ISINF_IN_CMATH 1
18071_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018072
Reid Spencerf9676532004-10-27 23:03:44 +000018073fi
18074
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018075
18076 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018077echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18078if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018080else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018081
18082 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018083ac_cpp='$CXXCPP $CPPFLAGS'
18084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18087
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018088 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018089/* confdefs.h. */
18090_ACEOF
18091cat confdefs.h >>conftest.$ac_ext
18092cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018093/* end confdefs.h. */
18094#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000018095int
18096main ()
18097{
Eric Christophereb75cc22012-03-26 02:09:01 +000018098float f; std::isinf(f);
Reid Spencerf9676532004-10-27 23:03:44 +000018099 ;
18100 return 0;
18101}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018102_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018103rm -f conftest.$ac_objext
18104if { (ac_try="$ac_compile"
18105case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18108esac
18109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_compile") 2>conftest.er1
18111 ac_status=$?
18112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18118 { (case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18121esac
18122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_try") 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest.$ac_objext'
18128 { (case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18131esac
18132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_try") 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018137 ac_cv_func_std_isinf_in_cmath=yes
18138else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018139 echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
18142 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018143fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018144
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018146 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018147ac_cpp='$CPP $CPPFLAGS'
18148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18150ac_compiler_gnu=$ac_cv_c_compiler_gnu
18151
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018152
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018153fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018154{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18155echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000018156
18157if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018158
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018159cat >>confdefs.h <<\_ACEOF
18160#define HAVE_STD_ISINF_IN_CMATH 1
18161_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018162
Reid Spencerf9676532004-10-27 23:03:44 +000018163fi
18164
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018165
18166 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018167echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18168if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekea8704452004-07-21 03:33:58 +000018170else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018171
18172 ac_ext=cpp
Brian Gaekea8704452004-07-21 03:33:58 +000018173ac_cpp='$CXXCPP $CPPFLAGS'
18174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18177
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018178 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018179/* confdefs.h. */
18180_ACEOF
18181cat confdefs.h >>conftest.$ac_ext
18182cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000018183/* end confdefs.h. */
18184#include <ieeefp.h>
Reid Spencerf9676532004-10-27 23:03:44 +000018185int
18186main ()
18187{
18188float f; finite(f);
18189 ;
18190 return 0;
18191}
Brian Gaekea8704452004-07-21 03:33:58 +000018192_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018193rm -f conftest.$ac_objext
18194if { (ac_try="$ac_compile"
18195case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198esac
18199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_compile") 2>conftest.er1
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18208 { (case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211esac
18212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_try") 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try='test -s conftest.$ac_objext'
18218 { (case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18221esac
18222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_try") 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
Brian Gaekea8704452004-07-21 03:33:58 +000018227 ac_cv_func_finite_in_ieeefp_h=yes
18228else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018229 echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaekea8704452004-07-21 03:33:58 +000018233fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018234
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018236 ac_ext=c
Brian Gaekea8704452004-07-21 03:33:58 +000018237ac_cpp='$CPP $CPPFLAGS'
18238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18240ac_compiler_gnu=$ac_cv_c_compiler_gnu
18241
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018242
Brian Gaekea8704452004-07-21 03:33:58 +000018243fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018244{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18245echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000018246
Brian Gaekeae050e02004-10-28 05:06:45 +000018247if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaekea8704452004-07-21 03:33:58 +000018248
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018249cat >>confdefs.h <<\_ACEOF
18250#define HAVE_FINITE_IN_IEEEFP_H 1
18251_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000018252
Reid Spencerf9676532004-10-27 23:03:44 +000018253fi
18254
18255
18256
Reid Spencerdfda0612007-01-20 07:48:49 +000018257if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell3ef61af2003-06-30 21:59:07 +000018258
18259
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018260for ac_header in stdlib.h unistd.h
18261do
18262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18268fi
18269ac_res=`eval echo '${'$as_ac_Header'}'`
18270 { echo "$as_me:$LINENO: result: $ac_res" >&5
18271echo "${ECHO_T}$ac_res" >&6; }
18272else
18273 # Is the header compilable?
18274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18276cat >conftest.$ac_ext <<_ACEOF
18277/* confdefs.h. */
18278_ACEOF
18279cat confdefs.h >>conftest.$ac_ext
18280cat >>conftest.$ac_ext <<_ACEOF
18281/* end confdefs.h. */
18282$ac_includes_default
18283#include <$ac_header>
18284_ACEOF
18285rm -f conftest.$ac_objext
18286if { (ac_try="$ac_compile"
18287case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290esac
18291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18303esac
18304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest.$ac_objext'
18310 { (case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18313esac
18314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_try") 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 ac_header_compiler=yes
18320else
18321 echo "$as_me: failed program was:" >&5
18322sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000018323
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018324 ac_header_compiler=no
18325fi
18326
18327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18329echo "${ECHO_T}$ac_header_compiler" >&6; }
18330
18331# Is the header present?
18332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18334cat >conftest.$ac_ext <<_ACEOF
18335/* confdefs.h. */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
18339/* end confdefs.h. */
18340#include <$ac_header>
18341_ACEOF
18342if { (ac_try="$ac_cpp conftest.$ac_ext"
18343case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18346esac
18347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18349 ac_status=$?
18350 grep -v '^ *+' conftest.er1 >conftest.err
18351 rm -f conftest.er1
18352 cat conftest.err >&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } >/dev/null; then
18355 if test -s conftest.err; then
18356 ac_cpp_err=$ac_c_preproc_warn_flag
18357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18358 else
18359 ac_cpp_err=
18360 fi
18361else
18362 ac_cpp_err=yes
18363fi
18364if test -z "$ac_cpp_err"; then
18365 ac_header_preproc=yes
18366else
18367 echo "$as_me: failed program was:" >&5
18368sed 's/^/| /' conftest.$ac_ext >&5
18369
18370 ac_header_preproc=no
18371fi
18372
18373rm -f conftest.err conftest.$ac_ext
18374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18375echo "${ECHO_T}$ac_header_preproc" >&6; }
18376
18377# So? What about this header?
18378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18379 yes:no: )
18380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18384 ac_header_preproc=yes
18385 ;;
18386 no:yes:* )
18387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18399 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000018400## ------------------------------------ ##
18401## Report this to http://llvm.org/bugs/ ##
18402## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018403_ASBOX
18404 ) | sed "s/^/$as_me: WARNING: /" >&2
18405 ;;
18406esac
18407{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18411else
18412 eval "$as_ac_Header=\$ac_header_preproc"
18413fi
18414ac_res=`eval echo '${'$as_ac_Header'}'`
18415 { echo "$as_me:$LINENO: result: $ac_res" >&5
18416echo "${ECHO_T}$ac_res" >&6; }
18417
18418fi
18419if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000018420 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000018422_ACEOF
18423
18424fi
18425
18426done
18427
18428
18429for ac_func in getpagesize
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018430do
18431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18432{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18436else
18437 cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h. */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h. */
18443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18445#define $ac_func innocuous_$ac_func
18446
18447/* System header to define __stub macros and hopefully few prototypes,
18448 which can conflict with char $ac_func (); below.
18449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18450 <limits.h> exists even on freestanding compilers. */
18451
18452#ifdef __STDC__
18453# include <limits.h>
18454#else
18455# include <assert.h>
18456#endif
18457
18458#undef $ac_func
18459
18460/* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18463#ifdef __cplusplus
18464extern "C"
18465#endif
18466char $ac_func ();
18467/* The GNU C library defines this for functions which it implements
18468 to always fail with ENOSYS. Some functions are actually named
18469 something starting with __ and the normal name is an alias. */
18470#if defined __stub_$ac_func || defined __stub___$ac_func
18471choke me
18472#endif
18473
18474int
18475main ()
18476{
18477return $ac_func ();
18478 ;
18479 return 0;
18480}
18481_ACEOF
18482rm -f conftest.$ac_objext conftest$ac_exeext
18483if { (ac_try="$ac_link"
18484case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487esac
18488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500esac
18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510esac
18511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_try") 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 eval "$as_ac_var=yes"
18517else
18518 echo "$as_me: failed program was:" >&5
18519sed 's/^/| /' conftest.$ac_ext >&5
18520
18521 eval "$as_ac_var=no"
18522fi
18523
18524rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18526fi
18527ac_res=`eval echo '${'$as_ac_var'}'`
18528 { echo "$as_me:$LINENO: result: $ac_res" >&5
18529echo "${ECHO_T}$ac_res" >&6; }
18530if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000018531 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000018533_ACEOF
18534
18535fi
18536done
18537
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018538{ echo "$as_me:$LINENO: checking for working mmap" >&5
18539echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18540if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000018542else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018543 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000018544 ac_cv_func_mmap_fixed_mapped=no
18545else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018546 cat >conftest.$ac_ext <<_ACEOF
18547/* confdefs.h. */
18548_ACEOF
18549cat confdefs.h >>conftest.$ac_ext
18550cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000018551/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000018552$ac_includes_default
18553/* malloc might have been renamed as rpl_malloc. */
18554#undef malloc
18555
18556/* Thanks to Mike Haertel and Jim Avera for this test.
18557 Here is a matrix of mmap possibilities:
18558 mmap private not fixed
18559 mmap private fixed at somewhere currently unmapped
18560 mmap private fixed at somewhere already mapped
18561 mmap shared not fixed
18562 mmap shared fixed at somewhere currently unmapped
18563 mmap shared fixed at somewhere already mapped
18564 For private mappings, we should verify that changes cannot be read()
18565 back from the file, nor mmap's back from the file at a different
18566 address. (There have been systems where private was not correctly
18567 implemented like the infamous i386 svr4.0, and systems where the
18568 VM page cache was not coherent with the file system buffer cache
18569 like early versions of FreeBSD and possibly contemporary NetBSD.)
18570 For shared mappings, we should conversely verify that changes get
18571 propagated back to all the places they're supposed to be.
18572
18573 Grep wants private fixed already mapped.
18574 The main things grep needs to know about mmap are:
18575 * does it exist and is it safe to write into the mmap'd area
18576 * how to use it (BSD variants) */
18577
18578#include <fcntl.h>
18579#include <sys/mman.h>
18580
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018581#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +000018582char *malloc ();
18583#endif
18584
18585/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018586#if !HAVE_GETPAGESIZE
18587/* Assume that all systems that can run configure have sys/param.h. */
18588# if !HAVE_SYS_PARAM_H
18589# define HAVE_SYS_PARAM_H 1
18590# endif
18591
John Criswell3ef61af2003-06-30 21:59:07 +000018592# ifdef _SC_PAGESIZE
18593# define getpagesize() sysconf(_SC_PAGESIZE)
18594# else /* no _SC_PAGESIZE */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018595# if HAVE_SYS_PARAM_H
John Criswell3ef61af2003-06-30 21:59:07 +000018596# include <sys/param.h>
18597# ifdef EXEC_PAGESIZE
18598# define getpagesize() EXEC_PAGESIZE
18599# else /* no EXEC_PAGESIZE */
18600# ifdef NBPG
18601# define getpagesize() NBPG * CLSIZE
18602# ifndef CLSIZE
18603# define CLSIZE 1
18604# endif /* no CLSIZE */
18605# else /* no NBPG */
18606# ifdef NBPC
18607# define getpagesize() NBPC
18608# else /* no NBPC */
18609# ifdef PAGESIZE
18610# define getpagesize() PAGESIZE
18611# endif /* PAGESIZE */
18612# endif /* no NBPC */
18613# endif /* no NBPG */
18614# endif /* no EXEC_PAGESIZE */
18615# else /* no HAVE_SYS_PARAM_H */
18616# define getpagesize() 8192 /* punt totally */
18617# endif /* no HAVE_SYS_PARAM_H */
18618# endif /* no _SC_PAGESIZE */
18619
18620#endif /* no HAVE_GETPAGESIZE */
18621
18622int
18623main ()
18624{
18625 char *data, *data2, *data3;
18626 int i, pagesize;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018627 int fd;
John Criswell3ef61af2003-06-30 21:59:07 +000018628
18629 pagesize = getpagesize ();
18630
18631 /* First, make a file with some known garbage in it. */
18632 data = (char *) malloc (pagesize);
18633 if (!data)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018634 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018635 for (i = 0; i < pagesize; ++i)
18636 *(data + i) = rand ();
18637 umask (0);
18638 fd = creat ("conftest.mmap", 0600);
18639 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018640 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018641 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018642 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018643 close (fd);
18644
18645 /* Next, try to mmap the file at a fixed address which already has
18646 something else allocated at it. If we can, also make sure that
18647 we see the same garbage. */
18648 fd = open ("conftest.mmap", O_RDWR);
18649 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018650 return 1;
18651 data2 = (char *) malloc (2 * pagesize);
18652 if (!data2)
18653 return 1;
18654 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell3ef61af2003-06-30 21:59:07 +000018655 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencerf184a862004-09-19 23:53:36 +000018656 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018657 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018658 for (i = 0; i < pagesize; ++i)
18659 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018660 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018661
18662 /* Finally, make sure that changes to the mapped area do not
18663 percolate back to the file as seen by read(). (This is a bug on
18664 some variants of i386 svr4.0.) */
18665 for (i = 0; i < pagesize; ++i)
18666 *(data2 + i) = *(data2 + i) + 1;
18667 data3 = (char *) malloc (pagesize);
18668 if (!data3)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018669 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018670 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018671 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018672 for (i = 0; i < pagesize; ++i)
18673 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018674 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018675 close (fd);
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018676 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +000018677}
18678_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018679rm -f conftest$ac_exeext
18680if { (ac_try="$ac_link"
18681case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684esac
18685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_link") 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693esac
18694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000018699 ac_cv_func_mmap_fixed_mapped=yes
18700else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018701 echo "$as_me: program exited with status $ac_status" >&5
18702echo "$as_me: failed program was:" >&5
18703sed 's/^/| /' conftest.$ac_ext >&5
18704
18705( exit $ac_status )
18706ac_cv_func_mmap_fixed_mapped=no
John Criswell3ef61af2003-06-30 21:59:07 +000018707fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000018709fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018710
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018711
John Criswell3ef61af2003-06-30 21:59:07 +000018712fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018713{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18714echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000018715if test $ac_cv_func_mmap_fixed_mapped = yes; then
18716
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018717cat >>confdefs.h <<\_ACEOF
18718#define HAVE_MMAP 1
18719_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018720
18721fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018722rm -f conftest.mmap
John Criswell3ef61af2003-06-30 21:59:07 +000018723
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018724 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18725echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18726if test "${ac_cv_func_mmap_file+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000018728else
Reid Spencerf184a862004-09-19 23:53:36 +000018729 ac_ext=c
John Criswell3ef61af2003-06-30 21:59:07 +000018730ac_cpp='$CPP $CPPFLAGS'
18731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733ac_compiler_gnu=$ac_cv_c_compiler_gnu
18734
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018735 if test "$cross_compiling" = yes; then
Reid Spencer5a6815d2004-09-21 17:14:44 +000018736 ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000018737else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018738 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerac16ea92004-09-20 04:09:56 +000018739
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018740 /* confdefs.h. */
18741_ACEOF
18742cat confdefs.h >>conftest.$ac_ext
18743cat >>conftest.$ac_ext <<_ACEOF
18744/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000018745
John Criswell3ef61af2003-06-30 21:59:07 +000018746#include <sys/types.h>
John Criswelle3a9bd82003-10-09 15:44:28 +000018747#include <sys/mman.h>
John Criswell3ef61af2003-06-30 21:59:07 +000018748#include <fcntl.h>
Reid Spencerac16ea92004-09-20 04:09:56 +000018749
18750int
18751main ()
18752{
John Criswell3ef61af2003-06-30 21:59:07 +000018753
18754 int fd;
Reid Spencerac16ea92004-09-20 04:09:56 +000018755 fd = creat ("foo",0777);
18756 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18757 unlink ("foo");
Reid Spencer5a6815d2004-09-21 17:14:44 +000018758 return (fd != (int) MAP_FAILED);
Reid Spencerac16ea92004-09-20 04:09:56 +000018759 ;
18760 return 0;
18761}
John Criswell3ef61af2003-06-30 21:59:07 +000018762_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018763rm -f conftest$ac_exeext
18764if { (ac_try="$ac_link"
18765case "(($ac_try" in
18766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767 *) ac_try_echo=$ac_try;;
18768esac
18769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770 (eval "$ac_link") 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18777esac
18778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000018783 ac_cv_func_mmap_file=yes
18784else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018785 echo "$as_me: program exited with status $ac_status" >&5
18786echo "$as_me: failed program was:" >&5
18787sed 's/^/| /' conftest.$ac_ext >&5
18788
18789( exit $ac_status )
18790ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000018791fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000018793fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018794
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018795
John Criswell3ef61af2003-06-30 21:59:07 +000018796 ac_ext=c
18797ac_cpp='$CPP $CPPFLAGS'
18798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18800ac_compiler_gnu=$ac_cv_c_compiler_gnu
18801
18802
18803fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018804{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18805echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000018806if test "$ac_cv_func_mmap_file" = yes; then
John Criswelle3a9bd82003-10-09 15:44:28 +000018807
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018808cat >>confdefs.h <<\_ACEOF
18809#define HAVE_MMAP_FILE
18810_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018811
18812 MMAP_FILE=yes
18813
18814fi
18815
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018816 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18817echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18818if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6681582004-12-27 06:15:02 +000018820else
Reid Spencer3d745d42004-12-29 07:07:57 +000018821 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencerb6681582004-12-27 06:15:02 +000018822 ac_cv_need_dev_zero_for_mmap=yes
18823 else
18824 ac_cv_need_dev_zero_for_mmap=no
18825 fi
18826
18827fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018828{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18829echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencerb6681582004-12-27 06:15:02 +000018830if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18831
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018832cat >>confdefs.h <<\_ACEOF
18833#define NEED_DEV_ZERO_FOR_MMAP 1
18834_ACEOF
Reid Spencerb6681582004-12-27 06:15:02 +000018835
18836fi
Reid Spencerf184a862004-09-19 23:53:36 +000018837
Reid Spencerdfda0612007-01-20 07:48:49 +000018838 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18839 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018840 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18841echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000018842 fi
18843 if test "$ac_cv_func_mmap_file" = "no"
18844 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018845 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18846echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000018847 fi
John Criswellb65ddad2003-07-22 21:00:24 +000018848fi
John Criswell3ef61af2003-06-30 21:59:07 +000018849
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018850{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18851echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7eb8112010-07-28 20:26:43 +000018852ac_ext=cpp
18853ac_cpp='$CXXCPP $CPPFLAGS'
18854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18857
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018858cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018859
18860 /* confdefs.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018861_ACEOF
18862cat confdefs.h >>conftest.$ac_ext
18863cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonb9509c52009-05-18 23:58:51 +000018864/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018865
18866 int main() {
18867 volatile unsigned long val = 1;
18868 __sync_synchronize();
18869 __sync_val_compare_and_swap(&val, 1, 0);
18870 __sync_add_and_fetch(&val, 1);
18871 __sync_sub_and_fetch(&val, 1);
18872 return 0;
18873 }
18874
Owen Andersonb9509c52009-05-18 23:58:51 +000018875
18876_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018877rm -f conftest.$ac_objext conftest$ac_exeext
18878if { (ac_try="$ac_link"
18879case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882esac
18883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_link") 2>conftest.er1
18885 ac_status=$?
18886 grep -v '^ *+' conftest.er1 >conftest.err
18887 rm -f conftest.er1
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018892 { (case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895esac
18896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest$ac_exeext'
18902 { (case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18905esac
18906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_try") 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
Eric Christopherf7eb8112010-07-28 20:26:43 +000018911
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018912 { echo "$as_me:$LINENO: result: yes" >&5
18913echo "${ECHO_T}yes" >&6; }
Owen Andersonaf5db832009-05-19 22:18:56 +000018914
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018915cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000018916#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018917_ACEOF
Owen Andersonaf5db832009-05-19 22:18:56 +000018918
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018919
Owen Andersonb9509c52009-05-18 23:58:51 +000018920else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018921 echo "$as_me: failed program was:" >&5
18922sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonb9509c52009-05-18 23:58:51 +000018923
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018924
18925 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018926echo "${ECHO_T}no" >&6; }
Owen Andersonb9509c52009-05-18 23:58:51 +000018927
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018928cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000018929#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018930_ACEOF
18931
18932 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18933echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018934
Owen Andersonb9509c52009-05-18 23:58:51 +000018935fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018936
Owen Andersonb9509c52009-05-18 23:58:51 +000018937rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018938 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018939ac_ext=c
18940ac_cpp='$CPP $CPPFLAGS'
18941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18943ac_compiler_gnu=$ac_cv_c_compiler_gnu
18944
Owen Andersonb9509c52009-05-18 23:58:51 +000018945
John Criswell3ef61af2003-06-30 21:59:07 +000018946
Nick Lewycky9b3f7162009-09-29 06:18:23 +000018947if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018948 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18949echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18950if test "${llvm_cv_linux_mixed+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky9b3f7162009-09-29 06:18:23 +000018952else
18953 ac_ext=c
18954ac_cpp='$CPP $CPPFLAGS'
18955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18957ac_compiler_gnu=$ac_cv_c_compiler_gnu
18958
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018959 cat >conftest.$ac_ext <<_ACEOF
18960/* confdefs.h. */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky9b3f7162009-09-29 06:18:23 +000018964/* end confdefs.h. */
18965#ifndef __x86_64__
18966 error: Not x86-64 even if uname says so!
18967 #endif
18968
18969int
18970main ()
18971{
18972
18973 ;
18974 return 0;
18975}
18976_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018977rm -f conftest.$ac_objext
18978if { (ac_try="$ac_compile"
18979case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18982esac
18983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984 (eval "$ac_compile") 2>conftest.er1
18985 ac_status=$?
18986 grep -v '^ *+' conftest.er1 >conftest.err
18987 rm -f conftest.er1
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18992 { (case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995esac
18996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest.$ac_objext'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005esac
19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
Nick Lewycky9b3f7162009-09-29 06:18:23 +000019011 llvm_cv_linux_mixed=no
19012else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019013 echo "$as_me: failed program was:" >&5
19014sed 's/^/| /' conftest.$ac_ext >&5
19015
19016 llvm_cv_linux_mixed=yes
Nick Lewycky9b3f7162009-09-29 06:18:23 +000019017fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019018
Nick Lewycky9b3f7162009-09-29 06:18:23 +000019019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19020 ac_ext=c
19021ac_cpp='$CPP $CPPFLAGS'
19022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19024ac_compiler_gnu=$ac_cv_c_compiler_gnu
19025
19026
19027fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019028{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19029echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky9b3f7162009-09-29 06:18:23 +000019030
19031 if test "$llvm_cv_linux_mixed" = "yes"; then
19032 llvm_cv_target_arch="x86"
19033 ARCH="x86"
19034 fi
19035fi
19036
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019037
Reid Spencer32046f72007-07-30 20:13:24 +000019038for ac_func in __dso_handle
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019039do
19040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19041{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19045else
19046 cat >conftest.$ac_ext <<_ACEOF
19047/* confdefs.h. */
19048_ACEOF
19049cat confdefs.h >>conftest.$ac_ext
19050cat >>conftest.$ac_ext <<_ACEOF
19051/* end confdefs.h. */
19052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19054#define $ac_func innocuous_$ac_func
19055
19056/* System header to define __stub macros and hopefully few prototypes,
19057 which can conflict with char $ac_func (); below.
19058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19059 <limits.h> exists even on freestanding compilers. */
19060
19061#ifdef __STDC__
19062# include <limits.h>
19063#else
19064# include <assert.h>
19065#endif
19066
19067#undef $ac_func
19068
19069/* Override any GCC internal prototype to avoid an error.
19070 Use char because int might match the return type of a GCC
19071 builtin and then its argument prototype would still apply. */
19072#ifdef __cplusplus
19073extern "C"
19074#endif
19075char $ac_func ();
19076/* The GNU C library defines this for functions which it implements
19077 to always fail with ENOSYS. Some functions are actually named
19078 something starting with __ and the normal name is an alias. */
19079#if defined __stub_$ac_func || defined __stub___$ac_func
19080choke me
19081#endif
19082
19083int
19084main ()
19085{
19086return $ac_func ();
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext conftest$ac_exeext
19092if { (ac_try="$ac_link"
19093case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_link") 2>conftest.er1
19099 ac_status=$?
19100 grep -v '^ *+' conftest.er1 >conftest.err
19101 rm -f conftest.er1
19102 cat conftest.err >&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } &&
19105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19106 { (case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19109esac
19110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_try") 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; } &&
19115 { ac_try='test -s conftest$ac_exeext'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119esac
19120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 eval "$as_ac_var=yes"
19126else
19127 echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130 eval "$as_ac_var=no"
19131fi
19132
19133rm -f core conftest.err conftest.$ac_objext \
19134 conftest$ac_exeext conftest.$ac_ext
19135fi
19136ac_res=`eval echo '${'$as_ac_var'}'`
19137 { echo "$as_me:$LINENO: result: $ac_res" >&5
19138echo "${ECHO_T}$ac_res" >&6; }
19139if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer32046f72007-07-30 20:13:24 +000019140 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer32046f72007-07-30 20:13:24 +000019142_ACEOF
19143
19144fi
19145done
19146
19147
Rafael Espindolafd1355a2014-02-28 18:17:54 +000019148SHLIBEXT=$llvm_shlib_ext
Brian Gaekea2404522004-01-21 19:39:29 +000019149
19150
Jeff Cohenc5e5b272007-01-12 18:22:38 +000019151if test "${prefix}" = "NONE" ; then
Reid Spencer40f1b132006-05-16 08:53:32 +000019152 prefix="/usr/local"
19153fi
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019154eval LLVM_PREFIX="${prefix}";
19155eval LLVM_BINDIR="${prefix}/bin";
Reid Spencer0194c9a2004-11-29 04:56:35 +000019156eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb3762a02010-03-02 05:17:21 +000019157eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer0194c9a2004-11-29 04:56:35 +000019158eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019159eval LLVM_INCLUDEDIR="${prefix}/include";
19160eval LLVM_INFODIR="${prefix}/info";
19161eval LLVM_MANDIR="${prefix}/man";
19162LLVM_CONFIGTIME=`date`
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
Daniel Dunbar9370ecf2012-03-02 16:24:21 +000019173if test "${ENABLE_TIMESTAMPS}" = "0"; then
19174 LLVM_CONFIGTIME="(timestamp not enabled)"
19175fi
19176
Reid Spencer0241e382004-11-25 04:51:04 +000019177
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019178cat >>confdefs.h <<_ACEOF
19179#define LLVM_PREFIX "$LLVM_PREFIX"
19180_ACEOF
19181
19182
19183cat >>confdefs.h <<_ACEOF
19184#define LLVM_BINDIR "$LLVM_BINDIR"
19185_ACEOF
19186
19187
19188cat >>confdefs.h <<_ACEOF
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019189#define LLVM_DATADIR "$LLVM_DATADIR"
19190_ACEOF
19191
19192
19193cat >>confdefs.h <<_ACEOF
Gordon Henriksen80f35e02007-10-03 12:07:14 +000019194#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019195_ACEOF
19196
19197
19198cat >>confdefs.h <<_ACEOF
Reid Spencer288adf12004-08-20 09:10:31 +000019199#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019200_ACEOF
19201
19202
19203cat >>confdefs.h <<_ACEOF
19204#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19205_ACEOF
19206
19207
19208cat >>confdefs.h <<_ACEOF
19209#define LLVM_INFODIR "$LLVM_INFODIR"
19210_ACEOF
19211
19212
19213cat >>confdefs.h <<_ACEOF
19214#define LLVM_MANDIR "$LLVM_MANDIR"
19215_ACEOF
19216
19217
19218cat >>confdefs.h <<_ACEOF
19219#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19220_ACEOF
19221
19222
Eric Christophere62b4412007-12-01 00:34:39 +000019223cat >>confdefs.h <<_ACEOF
Tim Northoverfee13d12013-05-04 07:36:23 +000019224#define LLVM_HOST_TRIPLE "$host"
NAKAMURA Takumi43652ae2012-07-22 03:04:52 +000019225_ACEOF
19226
19227
19228cat >>confdefs.h <<_ACEOF
Sebastian Popec2fb222011-11-01 21:31:44 +000019229#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christophere62b4412007-12-01 00:34:39 +000019230_ACEOF
19231
19232
Gordon Henriksene61dd672007-10-02 09:50:32 +000019233if test "$BINDINGS_TO_BUILD" = auto ; then
19234 BINDINGS_TO_BUILD=""
19235 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19236 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19237 fi
19238fi
19239BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19240
19241
Gordon Henriksene61dd672007-10-02 09:50:32 +000019242ALL_BINDINGS=ocaml
19243
19244
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019245binding_prereqs_failed=0
19246for a_binding in $BINDINGS_TO_BUILD ; do
19247 case "$a_binding" in
19248 ocaml)
19249 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019250 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19251echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019252 binding_prereqs_failed=1
19253 fi
19254 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019255 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19256echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019257 binding_prereqs_failed=1
19258 fi
19259 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019260 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19261echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019262 fi
19263 if test "x$with_ocaml_libdir" != xauto ; then
19264 OCAML_LIBDIR=$with_ocaml_libdir
19265
19266 else
19267 ocaml_stdlib="`"$OCAMLC" -where`"
19268 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19269 then
19270 # ocaml stdlib is beneath our prefix; use stdlib
19271 OCAML_LIBDIR=$ocaml_stdlib
19272
19273 else
19274 # ocaml stdlib is outside our prefix; use libdir/ocaml
Rafael Espindolab58973f2013-06-11 18:52:11 +000019275 OCAML_LIBDIR=${prefix}/lib/ocaml
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019276
19277 fi
19278 fi
19279 ;;
19280 esac
19281done
19282if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019283 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19284echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19285 { (exit 1); exit 1; }; }
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019286fi
19287
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019288{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19289echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19290if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019292else
19293 ac_ext=cpp
19294ac_cpp='$CXXCPP $CPPFLAGS'
19295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19298
19299 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi652e0132012-02-19 12:05:12 +000019300 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019301 cat >conftest.$ac_ext <<_ACEOF
19302/* confdefs.h. */
19303_ACEOF
19304cat confdefs.h >>conftest.$ac_ext
19305cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019306/* end confdefs.h. */
Benjamin Kramer54671a72011-12-22 22:50:44 +000019307template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019308int
19309main ()
19310{
Benjamin Kramer942b2872011-12-22 22:25:26 +000019311X<int>().f();
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019312 ;
19313 return 0;
19314}
19315_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019316rm -f conftest.$ac_objext
19317if { (ac_try="$ac_compile"
19318case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321esac
19322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_compile") 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19331 { (case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19334esac
19335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_try") 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
19341 { (case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344esac
19345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019350 llvm_cv_cxx_visibility_inlines_hidden=yes
19351else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019352 echo "$as_me: failed program was:" >&5
19353sed 's/^/| /' conftest.$ac_ext >&5
19354
19355 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019356fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019357
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19359 CXXFLAGS="$oldcxxflags"
19360 ac_ext=c
19361ac_cpp='$CPP $CPPFLAGS'
19362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19364ac_compiler_gnu=$ac_cv_c_compiler_gnu
19365
19366
19367fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019368{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19369echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019370if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19371 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19372
19373else
19374 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19375
19376fi
19377
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019378
Nick Lewyckyc540cc62009-03-05 08:20:44 +000019379if test "$llvm_cv_link_use_r" = "yes" ; then
19380 RPATH="-Wl,-R"
19381else
19382 RPATH="-Wl,-rpath"
19383fi
19384
19385
19386if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
Bob Wilson8d7e6902013-08-02 22:51:11 +000019387 RDYNAMIC="-rdynamic"
Nick Lewyckyc540cc62009-03-05 08:20:44 +000019388else
19389 RDYNAMIC=""
19390fi
Nick Lewyckyed8472e2009-03-03 04:55:29 +000019391
19392
Reid Spencer0241e382004-11-25 04:51:04 +000019393
Eric Christopher97014d82010-08-08 02:44:25 +000019394ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer0241e382004-11-25 04:51:04 +000019395
Eric Christopher41983c62010-08-08 09:20:39 +000019396
19397
19398
19399
19400
Douglas Gregor1b731d52009-06-16 20:12:29 +000019401ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19402
19403ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19404
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000019405ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19406
Daniel Dunbar32027202009-11-25 04:37:28 +000019407ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19408
Michael J. Spencer447762d2010-11-29 18:16:10 +000019409ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer0241e382004-11-25 04:51:04 +000019410
Reid Spencer0241e382004-11-25 04:51:04 +000019411
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019412ac_config_files="$ac_config_files Makefile.config"
Reid Spencer0241e382004-11-25 04:51:04 +000019413
Eric Christopher49709ad2011-10-26 00:42:12 +000019414
Reid Spencer1277ba22006-08-16 00:45:38 +000019415ac_config_files="$ac_config_files llvm.spec"
19416
19417
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000019418ac_config_files="$ac_config_files docs/doxygen.cfg"
19419
Eric Christopherf1329892012-02-02 00:16:55 +000019420
Dylan Noblesmithe21a3b22012-02-04 02:41:36 +000019421if test "${clang_src_root}" = ""; then
Eric Christopherdc51a5d2012-02-02 01:11:30 +000019422 clang_src_root="$srcdir/tools/clang"
Eric Christopher7f977de2012-02-02 00:19:05 +000019423fi
Eric Christopherf1329892012-02-02 00:16:55 +000019424if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000019425 configh="include/clang/Config/config.h"
19426 doxy="docs/doxygen.cfg"
19427 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopherf1329892012-02-02 00:16:55 +000019428
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000019429 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000019430
19431fi
19432
Torok Edwin229f8d72011-10-14 20:38:02 +000019433ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencer6f682b72006-03-22 15:59:55 +000019434
Eric Christopher49709ad2011-10-26 00:42:12 +000019435
Jordan Rose3c837ab2012-10-01 18:40:32 +000019436test "x$program_prefix" = "xNONE" && program_prefix=""
19437
19438
19439
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019440ac_config_commands="$ac_config_commands setup"
Reid Spencereeedeaf2005-02-24 19:05:19 +000019441
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019442ac_config_commands="$ac_config_commands Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019443
19444
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019445ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer0241e382004-11-25 04:51:04 +000019446
19447
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019448ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019449
19450
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019451ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019452
19453
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019454ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019455
19456
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019457ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer0241e382004-11-25 04:51:04 +000019458
19459
Bill Wendling7c53a182009-01-04 23:12:30 +000019460ac_config_commands="$ac_config_commands unittests/Makefile"
19461
19462
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019463ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019464
19465
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019466ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019467
19468
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019469ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019470
19471
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000019472ac_config_commands="$ac_config_commands bindings/Makefile"
19473
19474
19475ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19476
19477
Reid Spencer0241e382004-11-25 04:51:04 +000019478
John Criswell3ef61af2003-06-30 21:59:07 +000019479cat >confcache <<\_ACEOF
19480# This file is a shell script that caches the results of configure
19481# tests run on this system so they can be shared between configure
19482# scripts and configure runs, see configure's option --config-cache.
19483# It is not useful on other systems. If it contains results you don't
19484# want to keep, you may remove or edit it.
19485#
19486# config.status only pays attention to the cache file if you give it
19487# the --recheck option to rerun configure.
19488#
John Criswell3eaf0b42003-09-10 15:17:25 +000019489# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell3ef61af2003-06-30 21:59:07 +000019490# loading this file, other *unset* `ac_cv_foo' will be assigned the
19491# following values.
19492
19493_ACEOF
19494
19495# The following way of writing the cache mishandles newlines in values,
19496# but we know of no workaround that is simple, portable, and efficient.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019497# So, we kill variables containing newlines.
John Criswell3ef61af2003-06-30 21:59:07 +000019498# Ultrix sh set writes to stderr and can't be redirected directly,
19499# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019500(
19501 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19502 eval ac_val=\$$ac_var
19503 case $ac_val in #(
19504 *${as_nl}*)
19505 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019506 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19507echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019508 esac
19509 case $ac_var in #(
19510 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019511 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019512 esac ;;
19513 esac
19514 done
19515
John Criswell3ef61af2003-06-30 21:59:07 +000019516 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019517 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19518 *${as_nl}ac_space=\ *)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019519 # `set' does not quote correctly, so add quotes (double-quote
19520 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell3ef61af2003-06-30 21:59:07 +000019521 sed -n \
Reid Spencerf184a862004-09-19 23:53:36 +000019522 "s/'/'\\\\''/g;
19523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019524 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +000019525 *)
19526 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +000019528 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019529 esac |
19530 sort
19531) |
John Criswell3ef61af2003-06-30 21:59:07 +000019532 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019533 /^ac_cv_env_/b end
John Criswell3ef61af2003-06-30 21:59:07 +000019534 t clear
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019535 :clear
John Criswell3ef61af2003-06-30 21:59:07 +000019536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19537 t end
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19539 :end' >>confcache
19540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19541 if test -w "$cache_file"; then
19542 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019543 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19544echo "$as_me: updating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000019545 cat confcache >$cache_file
19546 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019547 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19548echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000019549 fi
19550fi
19551rm -f confcache
19552
19553test "x$prefix" = xNONE && prefix=$ac_default_prefix
19554# Let make expand exec_prefix.
19555test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19556
John Criswell3ef61af2003-06-30 21:59:07 +000019557DEFS=-DHAVE_CONFIG_H
19558
John Criswell3eaf0b42003-09-10 15:17:25 +000019559ac_libobjs=
19560ac_ltlibobjs=
19561for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19562 # 1. Remove the extension, and $U if already installed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019563 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019564 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019565 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19566 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019567 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19568 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell3eaf0b42003-09-10 15:17:25 +000019569done
19570LIBOBJS=$ac_libobjs
19571
19572LTLIBOBJS=$ac_ltlibobjs
19573
19574
John Criswell3ef61af2003-06-30 21:59:07 +000019575
19576: ${CONFIG_STATUS=./config.status}
19577ac_clean_files_save=$ac_clean_files
19578ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019579{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19580echo "$as_me: creating $CONFIG_STATUS" >&6;}
19581cat >$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019582#! $SHELL
19583# Generated by $as_me.
19584# Run this file to recreate the current configuration.
19585# Compiler output produced by configure, useful for debugging
19586# configure, is in config.log if it exists.
19587
19588debug=false
John Criswell3eaf0b42003-09-10 15:17:25 +000019589ac_cs_recheck=false
19590ac_cs_silent=false
John Criswell3ef61af2003-06-30 21:59:07 +000019591SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019592_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019593
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019594cat >>$CONFIG_STATUS <<\_ACEOF
19595## --------------------- ##
19596## M4sh Initialization. ##
19597## --------------------- ##
19598
19599# Be Bourne compatible
19600if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3ef61af2003-06-30 21:59:07 +000019601 emulate sh
19602 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000019604 # is contrary to our usage. Disable this feature.
19605 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019606 setopt NO_GLOB_SUBST
19607else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019608 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3ef61af2003-06-30 21:59:07 +000019609fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019610BIN_SH=xpg4; export BIN_SH # for Tru64
19611DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3ef61af2003-06-30 21:59:07 +000019612
John Criswell3ef61af2003-06-30 21:59:07 +000019613
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019614# PATH needs CR
19615# Avoid depending upon Character Ranges.
19616as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19617as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19618as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19619as_cr_digits='0123456789'
19620as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3ef61af2003-06-30 21:59:07 +000019621
19622# The user is always right.
19623if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019624 echo "#! /bin/sh" >conf$$.sh
19625 echo "exit 0" >>conf$$.sh
19626 chmod +x conf$$.sh
19627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19628 PATH_SEPARATOR=';'
19629 else
19630 PATH_SEPARATOR=:
19631 fi
19632 rm -f conf$$.sh
19633fi
19634
19635# Support unset when possible.
19636if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19637 as_unset=unset
19638else
19639 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019640fi
John Criswell3ef61af2003-06-30 21:59:07 +000019641
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019642
19643# IFS
19644# We need space, tab and new line, in precisely that order. Quoting is
19645# there to prevent editors from complaining about space-tab.
19646# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19647# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019648as_nl='
19649'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019650IFS=" "" $as_nl"
19651
19652# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019653case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019654 *[\\/]* ) as_myself=$0 ;;
19655 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3ef61af2003-06-30 21:59:07 +000019656for as_dir in $PATH
19657do
19658 IFS=$as_save_IFS
19659 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019660 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19661done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019662IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +000019663
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019664 ;;
19665esac
19666# We did not find ourselves, most probably we were run as `sh COMMAND'
19667# in which case we are not to be found in the path.
19668if test "x$as_myself" = x; then
19669 as_myself=$0
19670fi
19671if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019672 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19673 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019674fi
19675
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019676# Work around bugs in pre-3.0 UWIN ksh.
19677for as_var in ENV MAIL MAILPATH
19678do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019679done
19680PS1='$ '
19681PS2='> '
19682PS4='+ '
19683
19684# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019685for as_var in \
19686 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19687 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19688 LC_TELEPHONE LC_TIME
19689do
19690 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19691 eval $as_var=C; export $as_var
19692 else
19693 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +000019694 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019695done
Torok Edwinaec06332010-01-26 08:50:50 +000019696
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019697# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019698if expr a : '\(a\)' >/dev/null 2>&1 &&
19699 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19700 as_expr=expr
19701else
19702 as_expr=false
19703fi
19704
19705if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19706 as_basename=basename
19707else
19708 as_basename=false
19709fi
19710
19711
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019712# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019713as_me=`$as_basename -- "$0" ||
19714$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19715 X"$0" : 'X\(//\)$' \| \
19716 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019717echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019718 sed '/^.*\/\([^/][^/]*\)\/*$/{
19719 s//\1/
19720 q
19721 }
19722 /^X\/\(\/\/\)$/{
19723 s//\1/
19724 q
19725 }
19726 /^X\/\(\/\).*/{
19727 s//\1/
19728 q
19729 }
19730 s/.*/./; q'`
19731
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019732# CDPATH.
19733$as_unset CDPATH
19734
19735
19736
19737 as_lineno_1=$LINENO
19738 as_lineno_2=$LINENO
19739 test "x$as_lineno_1" != "x$as_lineno_2" &&
19740 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19741
19742 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19743 # uniformly replaced by the line number. The first 'sed' inserts a
19744 # line-number line after each line using $LINENO; the second 'sed'
19745 # does the real work. The second script uses 'N' to pair each
19746 # line-number line with the line containing $LINENO, and appends
19747 # trailing '-' during substitution so that $LINENO is not a special
19748 # case at line end.
19749 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19750 # scripts with optimization help from Paolo Bonzini. Blame Lee
19751 # E. McMahon (1931-1989) for sed's syntax. :-)
19752 sed -n '
19753 p
19754 /[$]LINENO/=
19755 ' <$as_myself |
19756 sed '
19757 s/[$]LINENO.*/&-/
19758 t lineno
19759 b
19760 :lineno
19761 N
19762 :loop
19763 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19764 t loop
19765 s/-\n.*//
19766 ' >$as_me.lineno &&
19767 chmod +x "$as_me.lineno" ||
19768 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19769 { (exit 1); exit 1; }; }
19770
19771 # Don't try to exec as it changes $[0], causing all sort of problems
19772 # (the dirname of $[0] is not the place where we might find the
19773 # original and so on. Autoconf is especially sensitive to this).
19774 . "./$as_me.lineno"
19775 # Exit status is that of the last command.
19776 exit
19777}
19778
19779
19780if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19781 as_dirname=dirname
19782else
19783 as_dirname=false
19784fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019785
19786ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019787case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019788-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019789 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019790 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019791 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019792 esac;;
19793*)
19794 ECHO_N='-n';;
John Criswell3ef61af2003-06-30 21:59:07 +000019795esac
19796
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019797if expr a : '\(a\)' >/dev/null 2>&1 &&
19798 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19799 as_expr=expr
19800else
19801 as_expr=false
19802fi
19803
John Criswell3ef61af2003-06-30 21:59:07 +000019804rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019805if test -d conf$$.dir; then
19806 rm -f conf$$.dir/conf$$.file
19807else
19808 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019809 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019810fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019811echo >conf$$.file
19812if ln -s conf$$.file conf$$ 2>/dev/null; then
19813 as_ln_s='ln -s'
19814 # ... but there are two gotchas:
19815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19817 # In both cases, we have to default to `cp -p'.
19818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3ef61af2003-06-30 21:59:07 +000019819 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019820elif ln conf$$.file conf$$ 2>/dev/null; then
19821 as_ln_s=ln
John Criswell3ef61af2003-06-30 21:59:07 +000019822else
19823 as_ln_s='cp -p'
19824fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019825rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19826rmdir conf$$.dir 2>/dev/null
John Criswell3ef61af2003-06-30 21:59:07 +000019827
John Criswell3eaf0b42003-09-10 15:17:25 +000019828if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019829 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +000019830else
Reid Spencerf184a862004-09-19 23:53:36 +000019831 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +000019832 as_mkdir_p=false
19833fi
19834
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019835# Find out whether ``test -x'' works. Don't use a zero-byte file, as
19836# systems may use methods other than mode bits to determine executability.
19837cat >conf$$.file <<_ASEOF
19838#! /bin/sh
19839exit 0
19840_ASEOF
19841chmod +x conf$$.file
19842if test -x conf$$.file >/dev/null 2>&1; then
19843 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019844else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019845 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019846fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019847rm -f conf$$.file
John Criswell3ef61af2003-06-30 21:59:07 +000019848
19849# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +000019850as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000019851
19852# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +000019853as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000019854
19855
John Criswell3ef61af2003-06-30 21:59:07 +000019856exec 6>&1
19857
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019858# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell3ef61af2003-06-30 21:59:07 +000019859# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019860# values after options handling.
19861ac_log="
Tom Stellarde6ba81d2014-03-03 15:22:00 +000019862This file was extended by LLVM $as_me 3.5.0svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019863generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +000019864
19865 CONFIG_FILES = $CONFIG_FILES
19866 CONFIG_HEADERS = $CONFIG_HEADERS
19867 CONFIG_LINKS = $CONFIG_LINKS
19868 CONFIG_COMMANDS = $CONFIG_COMMANDS
19869 $ $0 $@
19870
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019871on `(hostname || uname -n) 2>/dev/null | sed 1q`
19872"
19873
John Criswell3ef61af2003-06-30 21:59:07 +000019874_ACEOF
19875
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019876cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019877# Files that config.status was made for.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019878config_files="$ac_config_files"
19879config_headers="$ac_config_headers"
19880config_commands="$ac_config_commands"
John Criswell3ef61af2003-06-30 21:59:07 +000019881
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019882_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019883
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019884cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019885ac_cs_usage="\
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019886\`$as_me' instantiates files from templates according to the
19887current configuration.
John Criswell3ef61af2003-06-30 21:59:07 +000019888
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019889Usage: $0 [OPTIONS] [FILE]...
John Criswell3ef61af2003-06-30 21:59:07 +000019890
19891 -h, --help print this help, then exit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019892 -V, --version print version number, then exit
19893 -q, --quiet do not print progress messages
John Criswell3ef61af2003-06-30 21:59:07 +000019894 -d, --debug don't remove temporary files
19895 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019896 --file=FILE[:TEMPLATE]
19897 instantiate the configuration file FILE
19898 --header=FILE[:TEMPLATE]
19899 instantiate the configuration header FILE
John Criswell3ef61af2003-06-30 21:59:07 +000019900
19901Configuration files:
19902$config_files
19903
19904Configuration headers:
19905$config_headers
19906
John Criswell3bac9bc2003-09-06 15:17:13 +000019907Configuration commands:
19908$config_commands
19909
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019910Report bugs to <bug-autoconf@gnu.org>."
John Criswell3ef61af2003-06-30 21:59:07 +000019911
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019912_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019913cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019914ac_cs_version="\\
Tom Stellarde6ba81d2014-03-03 15:22:00 +000019915LLVM config.status 3.5.0svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019916configured by $0, generated by GNU Autoconf 2.60,
19917 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell3ef61af2003-06-30 21:59:07 +000019918
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019919Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +000019920This config.status script is free software; the Free Software Foundation
19921gives unlimited permission to copy, distribute and modify it."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019922
19923ac_pwd='$ac_pwd'
19924srcdir='$srcdir'
19925INSTALL='$INSTALL'
John Criswell3ef61af2003-06-30 21:59:07 +000019926_ACEOF
19927
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019928cat >>$CONFIG_STATUS <<\_ACEOF
19929# If no file are specified by the user, then we need to provide default
19930# value. By we need to know if files were specified by the user.
John Criswell3ef61af2003-06-30 21:59:07 +000019931ac_need_defaults=:
19932while test $# != 0
19933do
19934 case $1 in
19935 --*=*)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell3eaf0b42003-09-10 15:17:25 +000019938 ac_shift=:
John Criswell3ef61af2003-06-30 21:59:07 +000019939 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019940 *)
John Criswell3eaf0b42003-09-10 15:17:25 +000019941 ac_option=$1
19942 ac_optarg=$2
19943 ac_shift=shift
19944 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019945 esac
19946
John Criswell3eaf0b42003-09-10 15:17:25 +000019947 case $ac_option in
John Criswell3ef61af2003-06-30 21:59:07 +000019948 # Handling of the options.
John Criswell3eaf0b42003-09-10 15:17:25 +000019949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19950 ac_cs_recheck=: ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019952 echo "$ac_cs_version"; exit ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019953 --debug | --debu | --deb | --de | --d | -d )
John Criswell3ef61af2003-06-30 21:59:07 +000019954 debug=: ;;
19955 --file | --fil | --fi | --f )
John Criswell3eaf0b42003-09-10 15:17:25 +000019956 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019957 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000019958 ac_need_defaults=false;;
19959 --header | --heade | --head | --hea )
John Criswell3eaf0b42003-09-10 15:17:25 +000019960 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019961 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000019962 ac_need_defaults=false;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019963 --he | --h)
19964 # Conflict between --help and --header
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019965 { echo "$as_me: error: ambiguous option: $1
19966Try \`$0 --help' for more information." >&2
19967 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019968 --help | --hel | -h )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019969 echo "$ac_cs_usage"; exit ;;
John Criswell3eaf0b42003-09-10 15:17:25 +000019970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19972 ac_cs_silent=: ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019973
19974 # This is an error.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019975 -*) { echo "$as_me: error: unrecognized option: $1
19976Try \`$0 --help' for more information." >&2
19977 { (exit 1); exit 1; }; } ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019978
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019979 *) ac_config_targets="$ac_config_targets $1"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019980 ac_need_defaults=false ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019981
19982 esac
19983 shift
19984done
19985
John Criswell3eaf0b42003-09-10 15:17:25 +000019986ac_configure_extra_args=
19987
19988if $ac_cs_silent; then
19989 exec 6>/dev/null
19990 ac_configure_extra_args="$ac_configure_extra_args --silent"
19991fi
19992
19993_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019994cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000019995if \$ac_cs_recheck; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019996 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19997 CONFIG_SHELL=$SHELL
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019998 export CONFIG_SHELL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019999 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell3eaf0b42003-09-10 15:17:25 +000020000fi
20001
John Criswell3ef61af2003-06-30 21:59:07 +000020002_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020003cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020004exec 5>>config.log
20005{
20006 echo
20007 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20008## Running $as_me. ##
20009_ASBOX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020010 echo "$ac_log"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020011} >&5
John Criswell3ef61af2003-06-30 21:59:07 +000020012
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020013_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020014cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3bac9bc2003-09-06 15:17:13 +000020015#
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020016# INIT-COMMANDS
John Criswell3bac9bc2003-09-06 15:17:13 +000020017#
Reid Spencereeedeaf2005-02-24 19:05:19 +000020018llvm_src="${srcdir}"
John Criswell3bac9bc2003-09-06 15:17:13 +000020019
20020_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000020021
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020022cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020023
20024# Handling of arguments.
John Criswell3ef61af2003-06-30 21:59:07 +000020025for ac_config_target in $ac_config_targets
20026do
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020027 case $ac_config_target in
20028 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christopher97014d82010-08-08 02:44:25 +000020029 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1b731d52009-06-16 20:12:29 +000020030 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20031 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000020032 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar32027202009-11-25 04:37:28 +000020033 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer447762d2010-11-29 18:16:10 +000020034 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020035 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1277ba22006-08-16 00:45:38 +000020036 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000020037 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000020038 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20039 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher49709ad2011-10-26 00:42:12 +000020040 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020041 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20042 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20043 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20044 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20045 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020046 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20047 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000020048 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020049 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20050 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20051 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000020052 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20053 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020054
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020055 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20056echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20057 { (exit 1); exit 1; }; };;
John Criswell3ef61af2003-06-30 21:59:07 +000020058 esac
20059done
20060
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020061
John Criswell3ef61af2003-06-30 21:59:07 +000020062# If the user did not use the arguments to specify the items to instantiate,
20063# then the envvar interface is used. Set only those that are not.
20064# We use the long form for the default assignment because of an extremely
20065# bizarre bug on SunOS 4.1.3.
20066if $ac_need_defaults; then
20067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswell3bac9bc2003-09-06 15:17:13 +000020069 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell3ef61af2003-06-30 21:59:07 +000020070fi
20071
John Criswell3eaf0b42003-09-10 15:17:25 +000020072# Have a temporary directory for convenience. Make it in the build tree
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020073# simply because there is no reason against having it here, and in addition,
John Criswell3eaf0b42003-09-10 15:17:25 +000020074# creating and moving files from /tmp can sometimes cause problems.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020075# Hook for its removal unless debugging.
20076# Note that there is a small window in which the directory will not be cleaned:
20077# after its creation but before its name has been assigned to `$tmp'.
John Criswell3ef61af2003-06-30 21:59:07 +000020078$debug ||
20079{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020080 tmp=
20081 trap 'exit_status=$?
20082 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20083' 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020084 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell3ef61af2003-06-30 21:59:07 +000020085}
John Criswell3ef61af2003-06-30 21:59:07 +000020086# Create a (secure) tmp directory for tmp files.
John Criswell3eaf0b42003-09-10 15:17:25 +000020087
John Criswell3ef61af2003-06-30 21:59:07 +000020088{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020089 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell3ef61af2003-06-30 21:59:07 +000020090 test -n "$tmp" && test -d "$tmp"
20091} ||
20092{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020093 tmp=./conf$$-$RANDOM
20094 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020095} ||
20096{
20097 echo "$me: cannot create a temporary directory in ." >&2
20098 { (exit 1); exit 1; }
20099}
John Criswell3ef61af2003-06-30 21:59:07 +000020100
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020101#
20102# Set up the sed scripts for CONFIG_FILES section.
20103#
20104
20105# No need to generate the scripts if there are no CONFIG_FILES.
20106# This happens for instance when ./config.status config.h
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020107if test -n "$CONFIG_FILES"; then
John Criswell3ef61af2003-06-30 21:59:07 +000020108
20109_ACEOF
20110
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020111
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020112
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020113ac_delim='%!_!# '
20114for ac_last_try in false false false false false :; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020115 cat >conf$$subs.sed <<_ACEOF
20116SHELL!$SHELL$ac_delim
20117PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20118PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20119PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20120PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20121PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20122PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20123exec_prefix!$exec_prefix$ac_delim
20124prefix!$prefix$ac_delim
20125program_transform_name!$program_transform_name$ac_delim
20126bindir!$bindir$ac_delim
20127sbindir!$sbindir$ac_delim
20128libexecdir!$libexecdir$ac_delim
20129datarootdir!$datarootdir$ac_delim
20130datadir!$datadir$ac_delim
20131sysconfdir!$sysconfdir$ac_delim
20132sharedstatedir!$sharedstatedir$ac_delim
20133localstatedir!$localstatedir$ac_delim
20134includedir!$includedir$ac_delim
20135oldincludedir!$oldincludedir$ac_delim
20136docdir!$docdir$ac_delim
20137infodir!$infodir$ac_delim
20138htmldir!$htmldir$ac_delim
20139dvidir!$dvidir$ac_delim
20140pdfdir!$pdfdir$ac_delim
20141psdir!$psdir$ac_delim
20142libdir!$libdir$ac_delim
20143localedir!$localedir$ac_delim
20144mandir!$mandir$ac_delim
20145DEFS!$DEFS$ac_delim
20146ECHO_C!$ECHO_C$ac_delim
20147ECHO_N!$ECHO_N$ac_delim
20148ECHO_T!$ECHO_T$ac_delim
20149LIBS!$LIBS$ac_delim
20150build_alias!$build_alias$ac_delim
20151host_alias!$host_alias$ac_delim
20152target_alias!$target_alias$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020153LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20154LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
Tom Stellarde6ba81d2014-03-03 15:22:00 +000020155LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20156LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020157LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000020158CC!$CC$ac_delim
20159CFLAGS!$CFLAGS$ac_delim
20160LDFLAGS!$LDFLAGS$ac_delim
20161CPPFLAGS!$CPPFLAGS$ac_delim
20162ac_ct_CC!$ac_ct_CC$ac_delim
20163EXEEXT!$EXEEXT$ac_delim
20164OBJEXT!$OBJEXT$ac_delim
20165CXX!$CXX$ac_delim
20166CXXFLAGS!$CXXFLAGS$ac_delim
20167ac_ct_CXX!$ac_ct_CXX$ac_delim
20168CPP!$CPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020169subdirs!$subdirs$ac_delim
Tobias Grosserea9dca42010-10-30 00:54:26 +000020170ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20171LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020172build!$build$ac_delim
20173build_cpu!$build_cpu$ac_delim
20174build_vendor!$build_vendor$ac_delim
20175build_os!$build_os$ac_delim
20176host!$host$ac_delim
20177host_cpu!$host_cpu$ac_delim
20178host_vendor!$host_vendor$ac_delim
20179host_os!$host_os$ac_delim
20180target!$target$ac_delim
20181target_cpu!$target_cpu$ac_delim
20182target_vendor!$target_vendor$ac_delim
20183target_os!$target_os$ac_delim
20184OS!$OS$ac_delim
20185HOST_OS!$HOST_OS$ac_delim
20186TARGET_OS!$TARGET_OS$ac_delim
20187LINKALL!$LINKALL$ac_delim
20188NOLINKALL!$NOLINKALL$ac_delim
20189LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20190LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20191ARCH!$ARCH$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020192LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000020193HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020194LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20195BUILD_CC!$BUILD_CC$ac_delim
20196BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20197BUILD_CXX!$BUILD_CXX$ac_delim
20198CVSBUILD!$CVSBUILD$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000020199ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Chandler Carruthbbae5122014-03-01 03:33:08 +000020200ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
Eric Christopherf1bd7702013-06-25 01:12:25 +000020201ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020202ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
Rafael Espindolae33f06c2014-03-10 16:58:35 +000020203CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020204ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20205ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020206ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20207ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20208DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000020209ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020210ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20211EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20212DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020213_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020214
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020215 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020216 break
20217 elif $ac_last_try; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020218 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20219echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20220 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020221 else
20222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell3ef61af2003-06-30 21:59:07 +000020223 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020224done
20225
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020226ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20227if test -n "$ac_eof"; then
20228 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20229 ac_eof=`expr $ac_eof + 1`
20230fi
20231
20232cat >>$CONFIG_STATUS <<_ACEOF
20233cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20234/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020235_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020236sed '
20237s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20238s/^/s,@/; s/!/@,|#_!!_#|/
20239:n
20240t n
20241s/'"$ac_delim"'$/,g/; t
20242s/$/\\/; p
20243N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20244' >>$CONFIG_STATUS <conf$$subs.sed
20245rm -f conf$$subs.sed
20246cat >>$CONFIG_STATUS <<_ACEOF
20247CEOF$ac_eof
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020248_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020249
20250
20251ac_delim='%!_!# '
20252for ac_last_try in false false false false false :; do
20253 cat >conf$$subs.sed <<_ACEOF
Rafael Espindolae33f06c2014-03-10 16:58:35 +000020254DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Tom Stellarde6ba81d2014-03-03 15:22:00 +000020255KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20256JIT!$JIT$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020257TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20258TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20259ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20260ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020261LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000020262ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000020263LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000020264ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000020265ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000020266ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000020267ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020268ALL_TARGETS!$ALL_TARGETS$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000020269TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20270LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20271LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +000020272LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumic6fce172010-12-29 03:59:03 +000020273LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000020274OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000020275EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbar3b95df82011-06-16 22:30:41 +000020276EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumi914f1922011-10-16 02:54:26 +000020277CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000020278BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020279ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
Bob Wilson3f354702011-11-28 07:59:52 +000020280INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020281ifGNUmake!$ifGNUmake$ac_delim
20282LN_S!$LN_S$ac_delim
Rafael Espindolafd1355a2014-02-28 18:17:54 +000020283NM!$NM$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020284CMP!$CMP$ac_delim
20285CP!$CP$ac_delim
20286DATE!$DATE$ac_delim
20287FIND!$FIND$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000020288GREP!$GREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020289MKDIR!$MKDIR$ac_delim
20290MV!$MV$ac_delim
20291RANLIB!$RANLIB$ac_delim
20292AR!$AR$ac_delim
20293RM!$RM$ac_delim
20294SED!$SED$ac_delim
20295TAR!$TAR$ac_delim
20296BINPWD!$BINPWD$ac_delim
20297GRAPHVIZ!$GRAPHVIZ$ac_delim
20298DOT!$DOT$ac_delim
20299FDP!$FDP$ac_delim
20300NEATO!$NEATO$ac_delim
20301TWOPI!$TWOPI$ac_delim
20302CIRCO!$CIRCO$ac_delim
20303GV!$GV$ac_delim
20304DOTTY!$DOTTY$ac_delim
Matt Arsenaultfe56cc62013-07-08 20:24:54 +000020305XDOT!$XDOT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020306INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20307INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20308INSTALL_DATA!$INSTALL_DATA$ac_delim
20309BZIP2!$BZIP2$ac_delim
mike-me08af302010-05-06 23:45:43 +000020310CAT!$CAT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020311DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000020312GROFF!$GROFF$ac_delim
Eric Christopher77560892010-12-10 01:31:51 +000020313GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000020314PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020315ZIP!$ZIP$ac_delim
20316OCAMLC!$OCAMLC$ac_delim
20317OCAMLOPT!$OCAMLOPT$ac_delim
20318OCAMLDEP!$OCAMLDEP$ac_delim
20319OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000020320GAS!$GAS$ac_delim
Dan Gohmanb7edb422010-06-01 14:56:56 +000020321HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000020322EGREP!$EGREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020323NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20324NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola42e94d12012-02-28 23:32:06 +000020325COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000020326NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20327NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000020328PYTHON!$PYTHON$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020329HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20330HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020331USE_UDIS86!$USE_UDIS86$ac_delim
20332USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky5262ad22012-03-13 08:33:15 +000020333USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopherc807c532012-08-03 19:47:19 +000020334XML2CONFIG!$XML2CONFIG$ac_delim
20335LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20336LIBXML2_INC!$LIBXML2_INC$ac_delim
Benjamin Kramer00622f72013-05-03 15:55:06 +000020337CXXCPP!$CXXCPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020338HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000020339HAVE_LIBZ!$HAVE_LIBZ$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020340HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20341MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020342SHLIBEXT!$SHLIBEXT$ac_delim
20343LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20344LLVM_BINDIR!$LLVM_BINDIR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020345LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20346LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20347LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
Rafael Espindola11ac8532014-02-28 16:16:51 +000020348LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
Rafael Espindolafd1355a2014-02-28 18:17:54 +000020349LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20350LLVM_MANDIR!$LLVM_MANDIR$ac_delim
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020351_ACEOF
20352
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020353 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020354 break
20355 elif $ac_last_try; then
20356 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20357echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20358 { (exit 1); exit 1; }; }
20359 else
20360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20361 fi
20362done
20363
20364ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20365if test -n "$ac_eof"; then
20366 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20367 ac_eof=`expr $ac_eof + 1`
20368fi
20369
20370cat >>$CONFIG_STATUS <<_ACEOF
20371cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020372/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20373_ACEOF
20374sed '
20375s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20376s/^/s,@/; s/!/@,|#_!!_#|/
20377:n
20378t n
20379s/'"$ac_delim"'$/,g/; t
20380s/$/\\/; p
20381N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20382' >>$CONFIG_STATUS <conf$$subs.sed
20383rm -f conf$$subs.sed
20384cat >>$CONFIG_STATUS <<_ACEOF
20385CEOF$ac_eof
20386_ACEOF
20387
20388
20389ac_delim='%!_!# '
20390for ac_last_try in false false false false false :; do
20391 cat >conf$$subs.sed <<_ACEOF
Rafael Espindolae33f06c2014-03-10 16:58:35 +000020392LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Tom Stellarde6ba81d2014-03-03 15:22:00 +000020393BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20394ALL_BINDINGS!$ALL_BINDINGS$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020395OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20396ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000020397RPATH!$RPATH$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000020398RDYNAMIC!$RDYNAMIC$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000020399program_prefix!$program_prefix$ac_delim
20400LIBOBJS!$LIBOBJS$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020401LTLIBOBJS!$LTLIBOBJS$ac_delim
20402_ACEOF
20403
Rafael Espindolae33f06c2014-03-10 16:58:35 +000020404 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020405 break
20406 elif $ac_last_try; then
20407 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20408echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20409 { (exit 1); exit 1; }; }
20410 else
20411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20412 fi
20413done
20414
20415ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20416if test -n "$ac_eof"; then
20417 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20418 ac_eof=`expr $ac_eof + 1`
20419fi
20420
20421cat >>$CONFIG_STATUS <<_ACEOF
20422cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose2998d252012-09-26 00:01:00 +000020423/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grosser61cb2452010-11-10 16:31:34 +000020424_ACEOF
20425sed '
20426s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20427s/^/s,@/; s/!/@,|#_!!_#|/
20428:n
20429t n
20430s/'"$ac_delim"'$/,g/; t
20431s/$/\\/; p
20432N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20433' >>$CONFIG_STATUS <conf$$subs.sed
20434rm -f conf$$subs.sed
20435cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose2998d252012-09-26 00:01:00 +000020436:end
20437s/|#_!!_#|//g
Tobias Grosser61cb2452010-11-10 16:31:34 +000020438CEOF$ac_eof
20439_ACEOF
20440
20441
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020442# VPATH may cause trouble with some makes, so we remove $(srcdir),
20443# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20444# trailing colons and then remove the whole line if VPATH becomes empty
20445# (actually we leave an empty line to preserve line numbers).
20446if test "x$srcdir" = x.; then
20447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20448s/:*\$(srcdir):*/:/
20449s/:*\${srcdir}:*/:/
20450s/:*@srcdir@:*/:/
20451s/^\([^=]*=[ ]*\):*/\1/
20452s/:*$//
20453s/^[^=]*=[ ]*$//
20454}'
20455fi
20456
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020457cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000020458fi # test -n "$CONFIG_FILES"
20459
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020460
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020461for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020462do
20463 case $ac_tag in
20464 :[FHLC]) ac_mode=$ac_tag; continue;;
20465 esac
20466 case $ac_mode$ac_tag in
20467 :[FHL]*:*);;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020468 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20469echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20470 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020471 :[FH]-) ac_tag=-:-;;
20472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20473 esac
20474 ac_save_IFS=$IFS
20475 IFS=:
20476 set x $ac_tag
20477 IFS=$ac_save_IFS
20478 shift
20479 ac_file=$1
20480 shift
20481
20482 case $ac_mode in
20483 :L) ac_source=$1;;
20484 :[FH])
20485 ac_file_inputs=
20486 for ac_f
20487 do
20488 case $ac_f in
20489 -) ac_f="$tmp/stdin";;
20490 *) # Look for the file first in the build tree, then in the source tree
20491 # (if the path is not absolute). The absolute path cannot be DOS-style,
20492 # because $ac_f cannot contain `:'.
20493 test -f "$ac_f" ||
20494 case $ac_f in
20495 [\\/$]*) false;;
20496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20497 esac ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020498 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20499echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20500 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020501 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020502 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020503 done
20504
20505 # Let's still pretend it is `configure' which instantiates (i.e., don't
20506 # use $as_me), people would be surprised to read:
20507 # /* config.h. Generated by config.status. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020508 configure_input="Generated from "`IFS=:
20509 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020510 if test x"$ac_file" != x-; then
20511 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020512 { echo "$as_me:$LINENO: creating $ac_file" >&5
20513echo "$as_me: creating $ac_file" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020514 fi
20515
20516 case $ac_tag in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020517 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020518 esac
20519 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000020520 esac
20521
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020522 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell3ef61af2003-06-30 21:59:07 +000020523$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencerf184a862004-09-19 23:53:36 +000020524 X"$ac_file" : 'X\(//\)[^/]' \| \
20525 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020526 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020527echo X"$ac_file" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20529 s//\1/
20530 q
20531 }
20532 /^X\(\/\/\)[^/].*/{
20533 s//\1/
20534 q
20535 }
20536 /^X\(\/\/\)$/{
20537 s//\1/
20538 q
20539 }
20540 /^X\(\/\).*/{
20541 s//\1/
20542 q
20543 }
20544 s/.*/./; q'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020545 { as_dir="$ac_dir"
20546 case $as_dir in #(
20547 -*) as_dir=./$as_dir;;
20548 esac
20549 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20550 as_dirs=
20551 while :; do
20552 case $as_dir in #(
20553 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20554 *) as_qdir=$as_dir;;
20555 esac
20556 as_dirs="'$as_qdir' $as_dirs"
20557 as_dir=`$as_dirname -- "$as_dir" ||
20558$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20559 X"$as_dir" : 'X\(//\)[^/]' \| \
20560 X"$as_dir" : 'X\(//\)$' \| \
20561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20562echo X"$as_dir" |
20563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20564 s//\1/
20565 q
20566 }
20567 /^X\(\/\/\)[^/].*/{
20568 s//\1/
20569 q
20570 }
20571 /^X\(\/\/\)$/{
20572 s//\1/
20573 q
20574 }
20575 /^X\(\/\).*/{
20576 s//\1/
20577 q
20578 }
20579 s/.*/./; q'`
20580 test -d "$as_dir" && break
20581 done
20582 test -z "$as_dirs" || eval "mkdir $as_dirs"
20583 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20584echo "$as_me: error: cannot create directory $as_dir" >&2;}
20585 { (exit 1); exit 1; }; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000020586 ac_builddir=.
20587
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020588case "$ac_dir" in
20589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20590*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020592 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020593 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020594 case $ac_top_builddir_sub in
20595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20597 esac ;;
20598esac
20599ac_abs_top_builddir=$ac_pwd
20600ac_abs_builddir=$ac_pwd$ac_dir_suffix
20601# for backward compatibility:
20602ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +000020603
20604case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020605 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +000020606 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020607 ac_top_srcdir=$ac_top_builddir_sub
20608 ac_abs_top_srcdir=$ac_pwd ;;
20609 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +000020610 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020611 ac_top_srcdir=$srcdir
20612 ac_abs_top_srcdir=$srcdir ;;
20613 *) # Relative name.
20614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20615 ac_top_srcdir=$ac_top_build_prefix$srcdir
20616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +000020617esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +000020619
John Criswell3ef61af2003-06-30 21:59:07 +000020620
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020621 case $ac_mode in
20622 :F)
20623 #
20624 # CONFIG_FILE
20625 #
John Criswell3ef61af2003-06-30 21:59:07 +000020626
20627 case $INSTALL in
20628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell3ef61af2003-06-30 21:59:07 +000020630 esac
John Criswell3ef61af2003-06-30 21:59:07 +000020631_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020632
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020633cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020634# If the template does not know about datarootdir, expand it.
20635# FIXME: This hack should be removed a few years after 2.60.
20636ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020637
20638case `sed -n '/datarootdir/ {
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020639 p
20640 q
20641}
20642/@datadir@/p
20643/@docdir@/p
20644/@infodir@/p
20645/@localedir@/p
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020646/@mandir@/p
20647' $ac_file_inputs` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020648*datarootdir*) ac_datarootdir_seen=yes;;
20649*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020650 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20651echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020652_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020653cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020654 ac_datarootdir_hack='
20655 s&@datadir@&$datadir&g
20656 s&@docdir@&$docdir&g
20657 s&@infodir@&$infodir&g
20658 s&@localedir@&$localedir&g
20659 s&@mandir@&$mandir&g
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020660 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020661esac
20662_ACEOF
20663
20664# Neutralize VPATH when `$srcdir' = `.'.
20665# Shell code in configure.ac might set extrasub.
20666# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020667cat >>$CONFIG_STATUS <<_ACEOF
20668 sed "$ac_vpsub
John Criswell3ef61af2003-06-30 21:59:07 +000020669$extrasub
20670_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020671cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000020672:t
20673/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020674s&@configure_input@&$configure_input&;t t
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020675s&@top_builddir@&$ac_top_builddir_sub&;t t
20676s&@srcdir@&$ac_srcdir&;t t
20677s&@abs_srcdir@&$ac_abs_srcdir&;t t
20678s&@top_srcdir@&$ac_top_srcdir&;t t
20679s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20680s&@builddir@&$ac_builddir&;t t
20681s&@abs_builddir@&$ac_abs_builddir&;t t
20682s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20683s&@INSTALL@&$ac_INSTALL&;t t
20684$ac_datarootdir_hack
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020685" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell3ef61af2003-06-30 21:59:07 +000020686
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020687test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20688 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20689 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020690 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020691which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020692echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020693which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000020694
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020695 rm -f "$tmp/stdin"
John Criswell3ef61af2003-06-30 21:59:07 +000020696 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020697 -) cat "$tmp/out"; rm -f "$tmp/out";;
20698 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20699 esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020700 ;;
20701 :H)
20702 #
20703 # CONFIG_HEADER
20704 #
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020705_ACEOF
20706
20707# Transform confdefs.h into a sed script `conftest.defines', that
20708# substitutes the proper values into config.h.in to produce config.h.
20709rm -f conftest.defines conftest.tail
20710# First, append a space to every undef/define line, to ease matching.
20711echo 's/$/ /' >conftest.defines
20712# Then, protect against being on the right side of a sed subst, or in
20713# an unquoted here document, in config.status. If some macros were
20714# called several times there might be several #defines for the same
20715# symbol, which is useless. But do not sort them, since the last
20716# AC_DEFINE must be honored.
20717ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20718# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20719# NAME is the cpp macro being defined, VALUE is the value it is being given.
20720# PARAMS is the parameter list in the macro definition--in most cases, it's
20721# just an empty string.
20722ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20723ac_dB='\\)[ (].*,\\1define\\2'
20724ac_dC=' '
20725ac_dD=' ,'
20726
20727uniq confdefs.h |
20728 sed -n '
20729 t rset
20730 :rset
20731 s/^[ ]*#[ ]*define[ ][ ]*//
20732 t ok
20733 d
20734 :ok
20735 s/[\\&,]/\\&/g
20736 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20737 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20738 ' >>conftest.defines
20739
20740# Remove the space that was appended to ease matching.
20741# Then replace #undef with comments. This is necessary, for
20742# example, in the case of _POSIX_SOURCE, which is predefined and required
20743# on some systems where configure will not decide to define it.
20744# (The regexp can be short, since the line contains either #define or #undef.)
20745echo 's/ $//
20746s,^[ #]*u.*,/* & */,' >>conftest.defines
20747
20748# Break up conftest.defines:
20749ac_max_sed_lines=50
20750
20751# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20752# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20753# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20754# et cetera.
20755ac_in='$ac_file_inputs'
20756ac_out='"$tmp/out1"'
20757ac_nxt='"$tmp/out2"'
20758
20759while :
20760do
20761 # Write a here document:
20762 cat >>$CONFIG_STATUS <<_ACEOF
20763 # First, check the format of the line:
20764 cat >"\$tmp/defines.sed" <<\\CEOF
20765/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20766/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20767b
20768:def
20769_ACEOF
20770 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20771 echo 'CEOF
20772 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20773 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20774 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20775 grep . conftest.tail >/dev/null || break
20776 rm -f conftest.defines
20777 mv conftest.tail conftest.defines
20778done
20779rm -f conftest.defines conftest.tail
20780
20781echo "ac_result=$ac_in" >>$CONFIG_STATUS
20782cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000020783 if test x"$ac_file" != x-; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020784 echo "/* $configure_input */" >"$tmp/config.h"
20785 cat "$ac_result" >>"$tmp/config.h"
20786 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20787 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20788echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000020789 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020790 rm -f $ac_file
20791 mv "$tmp/config.h" $ac_file
John Criswell3ef61af2003-06-30 21:59:07 +000020792 fi
20793 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020794 echo "/* $configure_input */"
20795 cat "$ac_result"
John Criswell3ef61af2003-06-30 21:59:07 +000020796 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020797 rm -f "$tmp/out12"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020798 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000020799
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020800 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20801echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020802 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000020803 esac
John Criswell3ef61af2003-06-30 21:59:07 +000020804
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020805
20806 case $ac_file$ac_mode in
20807 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020808 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020809 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwind70eebe2009-08-28 16:12:48 +000020810 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020811 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020812 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020813 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020814 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020815 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020816 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020817 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwind70eebe2009-08-28 16:12:48 +000020818 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000020819 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020820 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020821 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020822 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020823 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020824 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020825 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020826 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000020827 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020828 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000020829 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwind70eebe2009-08-28 16:12:48 +000020830 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020831
20832 esac
20833done # for ac_tag
20834
John Criswell3ef61af2003-06-30 21:59:07 +000020835
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020836{ (exit 0); exit 0; }
John Criswell3ef61af2003-06-30 21:59:07 +000020837_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020838chmod +x $CONFIG_STATUS
John Criswell3ef61af2003-06-30 21:59:07 +000020839ac_clean_files=$ac_clean_files_save
20840
20841
20842# configure is writing to config.log, and then calls config.status.
20843# config.status does its own redirection, appending to config.log.
20844# Unfortunately, on DOS this fails, as config.log is still kept open
20845# by configure, so config.status won't be able to write to it; its
20846# output is simply discarded. So we exec the FD to /dev/null,
20847# effectively closing config.log, so it can be properly (re)opened and
20848# appended to by config.status. When coming back to configure, we
20849# need to make the FD available again.
20850if test "$no_create" != yes; then
20851 ac_cs_success=:
John Criswell3eaf0b42003-09-10 15:17:25 +000020852 ac_config_status_args=
20853 test "$silent" = yes &&
20854 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell3ef61af2003-06-30 21:59:07 +000020855 exec 5>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +000020856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell3ef61af2003-06-30 21:59:07 +000020857 exec 5>>config.log
20858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20859 # would make configure fail if this is the last instruction.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020860 $ac_cs_success || { (exit 1); exit 1; }
John Criswell3ef61af2003-06-30 21:59:07 +000020861fi
20862
John Criswell2b3771e2003-09-30 15:55:44 +000020863#
20864# CONFIG_SUBDIRS section.
20865#
20866if test "$no_recursion" != yes; then
20867
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020868 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell2b3771e2003-09-30 15:55:44 +000020869 ac_sub_configure_args=
20870 ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020871 eval "set x $ac_configure_args"
20872 shift
20873 for ac_arg
20874 do
John Criswell2b3771e2003-09-30 15:55:44 +000020875 if test -n "$ac_prev"; then
20876 ac_prev=
20877 continue
20878 fi
20879 case $ac_arg in
20880 -cache-file | --cache-file | --cache-fil | --cache-fi \
20881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20882 ac_prev=cache_file ;;
20883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20885 | --c=*)
20886 ;;
20887 --config-cache | -C)
20888 ;;
20889 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20890 ac_prev=srcdir ;;
20891 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20892 ;;
20893 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20894 ac_prev=prefix ;;
20895 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20896 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020897 *)
20898 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020899 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020900 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020901 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell2b3771e2003-09-30 15:55:44 +000020902 esac
20903 done
20904
20905 # Always prepend --prefix to ensure using the same prefix
20906 # in subdir configurations.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020907 ac_arg="--prefix=$prefix"
20908 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020909 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020910 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020911 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell2b3771e2003-09-30 15:55:44 +000020912
20913 ac_popdir=`pwd`
20914 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20915
20916 # Do not complain, so a configure script can configure whichever
20917 # parts of a large source tree are present.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020918 test -d "$srcdir/$ac_dir" || continue
John Criswell2b3771e2003-09-30 15:55:44 +000020919
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020920 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020921 echo "$as_me:$LINENO: $ac_msg" >&5
20922 echo "$ac_msg" >&6
20923 { as_dir="$ac_dir"
20924 case $as_dir in #(
20925 -*) as_dir=./$as_dir;;
20926 esac
20927 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20928 as_dirs=
20929 while :; do
20930 case $as_dir in #(
20931 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20932 *) as_qdir=$as_dir;;
20933 esac
20934 as_dirs="'$as_qdir' $as_dirs"
20935 as_dir=`$as_dirname -- "$as_dir" ||
20936$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20937 X"$as_dir" : 'X\(//\)[^/]' \| \
20938 X"$as_dir" : 'X\(//\)$' \| \
20939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20940echo X"$as_dir" |
20941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20942 s//\1/
20943 q
20944 }
20945 /^X\(\/\/\)[^/].*/{
20946 s//\1/
20947 q
20948 }
20949 /^X\(\/\/\)$/{
20950 s//\1/
20951 q
20952 }
20953 /^X\(\/\).*/{
20954 s//\1/
20955 q
20956 }
20957 s/.*/./; q'`
20958 test -d "$as_dir" && break
20959 done
20960 test -z "$as_dirs" || eval "mkdir $as_dirs"
20961 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20962echo "$as_me: error: cannot create directory $as_dir" >&2;}
20963 { (exit 1); exit 1; }; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000020964 ac_builddir=.
20965
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020966case "$ac_dir" in
20967.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20968*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020970 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020971 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020972 case $ac_top_builddir_sub in
20973 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20974 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20975 esac ;;
20976esac
20977ac_abs_top_builddir=$ac_pwd
20978ac_abs_builddir=$ac_pwd$ac_dir_suffix
20979# for backward compatibility:
20980ac_top_builddir=$ac_top_build_prefix
John Criswell2b3771e2003-09-30 15:55:44 +000020981
20982case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020983 .) # We are building in place.
John Criswell2b3771e2003-09-30 15:55:44 +000020984 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020985 ac_top_srcdir=$ac_top_builddir_sub
20986 ac_abs_top_srcdir=$ac_pwd ;;
20987 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell2b3771e2003-09-30 15:55:44 +000020988 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020989 ac_top_srcdir=$srcdir
20990 ac_abs_top_srcdir=$srcdir ;;
20991 *) # Relative name.
20992 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20993 ac_top_srcdir=$ac_top_build_prefix$srcdir
20994 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell2b3771e2003-09-30 15:55:44 +000020995esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020996ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell2b3771e2003-09-30 15:55:44 +000020997
20998
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020999 cd "$ac_dir"
John Criswell2b3771e2003-09-30 15:55:44 +000021000
21001 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021002 if test -f "$ac_srcdir/configure.gnu"; then
21003 ac_sub_configure=$ac_srcdir/configure.gnu
21004 elif test -f "$ac_srcdir/configure"; then
21005 ac_sub_configure=$ac_srcdir/configure
21006 elif test -f "$ac_srcdir/configure.in"; then
21007 # This should be Cygnus configure.
21008 ac_sub_configure=$ac_aux_dir/configure
John Criswell2b3771e2003-09-30 15:55:44 +000021009 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021010 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21011echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell2b3771e2003-09-30 15:55:44 +000021012 ac_sub_configure=
21013 fi
21014
21015 # The recursion is here.
21016 if test -n "$ac_sub_configure"; then
21017 # Make the cache file name correct relative to the subdirectory.
21018 case $cache_file in
21019 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021020 *) # Relative name.
21021 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell2b3771e2003-09-30 15:55:44 +000021022 esac
21023
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021024 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21025echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell2b3771e2003-09-30 15:55:44 +000021026 # The eval makes quoting arguments work.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021027 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21028 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021029 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21030echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21031 { (exit 1); exit 1; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000021032 fi
21033
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021034 cd "$ac_popdir"
John Criswell2b3771e2003-09-30 15:55:44 +000021035 done
21036fi
21037