blob: 778aa189d5751967ffcc76e74556e8c1a3b34665 [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 Northover00ed9962014-03-29 10:18:08 +00001450 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1451 hexagon, xcore, msp430, nvptx, systemz, r600, and
1452 cpp (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" ;;
Tim Northover00ed9962014-03-29 10:18:08 +00004154 arm64*-*) llvm_cv_target_arch="ARM64" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004155 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004156 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004157 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4158 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004159 xcore-*) llvm_cv_target_arch="XCore" ;;
4160 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00004161 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00004162 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004163 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004164 *) llvm_cv_target_arch="Unknown" ;;
4165esac
4166fi
4167{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4168echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4169
4170if test "$llvm_cv_target_arch" = "Unknown" ; then
4171 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4172echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4173fi
4174
Eric Christopher58839712011-09-16 20:36:25 +00004175case "$llvm_cv_target_arch" in
4176 x86) LLVM_NATIVE_ARCH="X86" ;;
4177 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4178 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4179esac
4180
4181ARCH=$llvm_cv_target_arch
4182
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00004183LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4184
Eric Christopher58839712011-09-16 20:36:25 +00004185
Danil Malyshev7c5db452012-05-17 21:07:47 +00004186case $host in
4187 i?86-*) host_arch="x86" ;;
4188 amd64-* | x86_64-*) host_arch="x86_64" ;;
4189 sparc*-*) host_arch="Sparc" ;;
4190 powerpc*-*) host_arch="PowerPC" ;;
Tim Northover00ed9962014-03-29 10:18:08 +00004191 arm64*-*) host_arch="ARM64" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004192 arm*-*) host_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004193 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004194 mips-* | mips64-*) host_arch="Mips" ;;
4195 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004196 xcore-*) host_arch="XCore" ;;
4197 msp430-*) host_arch="MSP430" ;;
4198 hexagon-*) host_arch="Hexagon" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00004199 s390x-*) host_arch="SystemZ" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004200 *) host_arch="Unknown" ;;
4201esac
4202
4203if test "$host_arch" = "Unknown" ; then
4204 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4205echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4206fi
4207
4208HOST_ARCH=$host_arch
4209
4210
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004211if test "$cross_compiling" = yes; then
4212 LLVM_CROSS_COMPILING=1
4213
4214
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004215{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4216echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4217if test "${ac_cv_build_exeext+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004219else
4220 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4221 ac_cv_build_exeext=.exe
4222else
4223 ac_build_prefix=${build_alias}-
4224
4225 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4226set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004231else
4232 if test -n "$BUILD_CC"; then
4233 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 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 +00004242 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004244 break 2
4245 fi
4246done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004247done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004248IFS=$as_save_IFS
4249
4250fi
4251fi
4252BUILD_CC=$ac_cv_prog_BUILD_CC
4253if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004254 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4255echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004256else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004257 { echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004259fi
4260
4261
4262 if test -z "$BUILD_CC"; then
4263 # Extract the first word of "gcc", so it can be a program name with args.
4264set dummy gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004269else
4270 if test -n "$BUILD_CC"; then
4271 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 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 +00004280 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004282 break 2
4283 fi
4284done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004285done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004286IFS=$as_save_IFS
4287
4288fi
4289fi
4290BUILD_CC=$ac_cv_prog_BUILD_CC
4291if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004292 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4293echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004294else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004295 { echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004297fi
4298
4299
4300 if test -z "$BUILD_CC"; then
4301 # Extract the first word of "cc", so it can be a program name with args.
4302set dummy cc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004307else
4308 if test -n "$BUILD_CC"; then
4309 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4310else
4311 ac_prog_rejected=no
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 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 +00004319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4320 ac_prog_rejected=yes
4321 continue
4322 fi
4323 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004325 break 2
4326 fi
4327done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004328done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004329IFS=$as_save_IFS
4330
4331if test $ac_prog_rejected = yes; then
4332 # We found a bogon in the path, so make sure we never use it.
4333 set dummy $ac_cv_prog_BUILD_CC
4334 shift
4335 if test $# != 0; then
4336 # We chose a different compiler from the bogus one.
4337 # However, it has the same basename, so the bogon will be chosen
4338 # first if we set BUILD_CC to just the basename; use the full file name.
4339 shift
4340 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4341 fi
4342fi
4343fi
4344fi
4345BUILD_CC=$ac_cv_prog_BUILD_CC
4346if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004347 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4348echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004349else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004350 { echo "$as_me:$LINENO: result: no" >&5
4351echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004352fi
4353
4354
4355 fi
4356 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004357 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4358echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4359 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004360 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4361 rm -f conftest*
4362 echo 'int main () { return 0; }' > conftest.$ac_ext
4363 ac_cv_build_exeext=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004364 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004365 (eval $ac_build_link) 2>&5
4366 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004369 for file in conftest.*; do
4370 case $file in
Jim Grosbachbfc70b02008-09-26 17:27:58 +00004371 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004372 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4373 esac
4374 done
4375 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004376 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4377echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4378 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004379 fi
4380 rm -f conftest*
4381 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4382fi
4383fi
4384
4385BUILD_EXEEXT=""
4386test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004387{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4388echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004389ac_build_exeext=$BUILD_EXEEXT
4390
Jim Grosbach009db892008-10-02 22:56:44 +00004391 ac_build_prefix=${build_alias}-
4392 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4393set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004398else
4399 if test -n "$BUILD_CXX"; then
4400 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 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 +00004409 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004411 break 2
4412 fi
4413done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004414done
Jim Grosbach009db892008-10-02 22:56:44 +00004415IFS=$as_save_IFS
4416
4417fi
4418fi
4419BUILD_CXX=$ac_cv_prog_BUILD_CXX
4420if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004421 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4422echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004423else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004424 { echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004426fi
4427
4428
4429 if test -z "$BUILD_CXX"; then
4430 # Extract the first word of "g++", so it can be a program name with args.
4431set dummy g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004436else
4437 if test -n "$BUILD_CXX"; then
4438 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4439else
4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH
4442do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 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 +00004447 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004449 break 2
4450 fi
4451done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004452done
Jim Grosbach009db892008-10-02 22:56:44 +00004453IFS=$as_save_IFS
4454
4455fi
4456fi
4457BUILD_CXX=$ac_cv_prog_BUILD_CXX
4458if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004459 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4460echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004461else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004462 { echo "$as_me:$LINENO: result: no" >&5
4463echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004464fi
4465
4466
4467 if test -z "$BUILD_CXX"; then
4468 # Extract the first word of "c++", so it can be a program name with args.
4469set dummy c++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004474else
4475 if test -n "$BUILD_CXX"; then
4476 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4477else
4478 ac_prog_rejected=no
4479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH
4481do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 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 +00004486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4487 ac_prog_rejected=yes
4488 continue
4489 fi
4490 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004492 break 2
4493 fi
4494done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004495done
Jim Grosbach009db892008-10-02 22:56:44 +00004496IFS=$as_save_IFS
4497
4498if test $ac_prog_rejected = yes; then
4499 # We found a bogon in the path, so make sure we never use it.
4500 set dummy $ac_cv_prog_BUILD_CXX
4501 shift
4502 if test $# != 0; then
4503 # We chose a different compiler from the bogus one.
4504 # However, it has the same basename, so the bogon will be chosen
4505 # first if we set BUILD_CXX to just the basename; use the full file name.
4506 shift
4507 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4508 fi
4509fi
4510fi
4511fi
4512BUILD_CXX=$ac_cv_prog_BUILD_CXX
4513if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004514 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4515echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004516else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004517 { echo "$as_me:$LINENO: result: no" >&5
4518echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00004519fi
4520
4521
4522 fi
4523 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004524else
4525 LLVM_CROSS_COMPILING=0
4526
4527fi
4528
Dan Gohmande75469c2010-08-04 16:25:01 +00004529if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004530 cvsbuild="yes"
4531 optimize="no"
4532 CVSBUILD=CVSBUILD=1
4533
4534else
4535 cvsbuild="no"
4536 optimize="yes"
4537fi
4538
4539
Eric Christopher1094ded2011-11-11 22:51:42 +00004540# Check whether --enable-libcpp was given.
4541if test "${enable_libcpp+set}" = set; then
4542 enableval=$enable_libcpp;
4543else
4544 enableval=default
4545fi
4546
4547case "$enableval" in
4548 yes) ENABLE_LIBCPP=1
4549 ;;
4550 no) ENABLE_LIBCPP=0
4551 ;;
4552 default) ENABLE_LIBCPP=0
4553;;
4554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4555echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4556 { (exit 1); exit 1; }; } ;;
4557esac
4558
Chandler Carruth7206eae2014-01-15 19:19:13 +00004559# Check whether --enable-compiler-version-checks was given.
4560if test "${enable_compiler_version_checks+set}" = set; then
4561 enableval=$enable_compiler_version_checks;
4562else
4563 enableval=default
4564fi
4565
4566case "$enableval" in
4567 no)
4568 ;;
4569 yes|default)
4570 ac_ext=cpp
4571ac_cpp='$CXXCPP $CPPFLAGS'
4572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4575
4576 case "$llvm_cv_cxx_compiler" in
4577 clang)
4578 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4579echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4580 cat >conftest.$ac_ext <<_ACEOF
4581/* confdefs.h. */
4582_ACEOF
4583cat confdefs.h >>conftest.$ac_ext
4584cat >>conftest.$ac_ext <<_ACEOF
4585/* end confdefs.h. */
4586
4587#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4588#error This version of Clang is too old to build LLVM
4589#endif
4590
4591_ACEOF
4592rm -f conftest.$ac_objext
4593if { (ac_try="$ac_compile"
4594case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_compile") 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610esac
4611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620esac
4621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_try") 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 { echo "$as_me:$LINENO: result: yes" >&5
4627echo "${ECHO_T}yes" >&6; }
4628else
4629 echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 { echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6; }
4634 { { echo "$as_me:$LINENO: error:
4635The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4636Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4637bypass these sanity checks." >&5
4638echo "$as_me: error:
4639The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4640Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4641bypass these sanity checks." >&2;}
4642 { (exit 1); exit 1; }; }
4643fi
4644
4645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004647 if test "$ENABLE_LIBCPP" -eq 0 ; then
4648 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
Chandler Carruth7206eae2014-01-15 19:19:13 +00004649echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004650 llvm_cv_old_cxxflags="$CXXFLAGS"
4651 CXXFLAGS="$CXXFLAGS -std=c++0x"
4652 cat >conftest.$ac_ext <<_ACEOF
Chandler Carruth7206eae2014-01-15 19:19:13 +00004653/* confdefs.h. */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h. */
4658
4659#include <atomic>
4660std::atomic<float> x(0.0f);
4661int main() { return (float)x; }
4662
4663_ACEOF
4664rm -f conftest.$ac_objext conftest$ac_exeext
4665if { (ac_try="$ac_link"
4666case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_link") 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4679 { (case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682esac
4683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_try") 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try='test -s conftest$ac_exeext'
4689 { (case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692esac
4693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_try") 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 { echo "$as_me:$LINENO: result: yes" >&5
4699echo "${ECHO_T}yes" >&6; }
4700else
4701 echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 { echo "$as_me:$LINENO: result: no" >&5
4705echo "${ECHO_T}no" >&6; }
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004706 { { echo "$as_me:$LINENO: error:
Chandler Carruth7206eae2014-01-15 19:19:13 +00004707We detected a missing feature in the standard C++ library that was known to be
4708missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4709C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4710than 4.7. You will need to update your system and ensure Clang uses the newer
4711standard library.
4712
4713If this error is incorrect or you need to force things to work, you may pass
4714'--disable-compiler-version-checks' to configure to bypass this test." >&5
4715echo "$as_me: error:
4716We detected a missing feature in the standard C++ library that was known to be
4717missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4718C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4719than 4.7. You will need to update your system and ensure Clang uses the newer
4720standard library.
4721
4722If this error is incorrect or you need to force things to work, you may pass
4723'--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4724 { (exit 1); exit 1; }; }
4725fi
4726
4727rm -f core conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
Chandler Carrutheba44ea2014-01-15 21:21:48 +00004729 CXXFLAGS="$llvm_cv_old_cxxflags"
4730 fi
Chandler Carruth7206eae2014-01-15 19:19:13 +00004731 ;;
4732 gcc)
4733 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4734echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4735 cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
4741
4742#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4743#error This version of GCC is too old to build LLVM
4744#endif
4745
4746_ACEOF
4747rm -f conftest.$ac_objext
4748if { (ac_try="$ac_compile"
4749case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752esac
4753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_compile") 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4762 { (case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765esac
4766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_try") 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_try") 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 { echo "$as_me:$LINENO: result: yes" >&5
4782echo "${ECHO_T}yes" >&6; }
4783else
4784 echo "$as_me: failed program was:" >&5
4785sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 { echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6; }
4789 { { echo "$as_me:$LINENO: error:
4790The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4791to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4792bypass these sanity checks." >&5
4793echo "$as_me: error:
4794The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4795to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4796bypass these sanity checks." >&2;}
4797 { (exit 1); exit 1; }; }
4798fi
4799
4800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 ;;
4802 unknown)
4803 ;;
4804 esac
4805 ac_ext=c
4806ac_cpp='$CPP $CPPFLAGS'
4807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
4811 ;;
4812 *)
4813 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4814echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4815 { (exit 1); exit 1; }; }
4816 ;;
4817esac
4818
Chandler Carruthbbae5122014-03-01 03:33:08 +00004819# Check whether --enable-cxx1y was given.
4820if test "${enable_cxx1y+set}" = set; then
4821 enableval=$enable_cxx1y;
Eric Christopher04e35972012-08-03 19:47:14 +00004822else
4823 enableval=default
4824fi
4825
4826case "$enableval" in
Chandler Carruthbbae5122014-03-01 03:33:08 +00004827 yes) ENABLE_CXX1Y=1
Eric Christopher04e35972012-08-03 19:47:14 +00004828 ;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004829 no) ENABLE_CXX1Y=0
Eric Christopher04e35972012-08-03 19:47:14 +00004830 ;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004831 default) ENABLE_CXX1Y=0
Eric Christopher04e35972012-08-03 19:47:14 +00004832;;
Chandler Carruthbbae5122014-03-01 03:33:08 +00004833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4834echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
Eric Christopher04e35972012-08-03 19:47:14 +00004835 { (exit 1); exit 1; }; } ;;
4836esac
4837
Eric Christopherf1bd7702013-06-25 01:12:25 +00004838# Check whether --enable-split-dwarf was given.
4839if test "${enable_split_dwarf+set}" = set; then
4840 enableval=$enable_split_dwarf;
4841else
4842 enableval=default
4843fi
4844
4845case "$enableval" in
4846 yes) ENABLE_SPLIT_DWARF=1
4847 ;;
4848 no) ENABLE_SPLIT_DWARF=0
4849 ;;
4850 default) ENABLE_SPLIT_DWARF=0
4851;;
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4853echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4855esac
4856
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004857clang_arcmt="yes"
4858# Check whether --enable-clang-arcmt was given.
4859if test "${enable_clang_arcmt+set}" = set; then
4860 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4861else
4862 enableval="yes"
4863fi
4864
4865case "$enableval" in
4866 yes) ENABLE_CLANG_ARCMT=1
4867 ;;
4868 no) ENABLE_CLANG_ARCMT=0
4869 ;;
4870 default) ENABLE_CLANG_ARCMT=1
4871;;
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4873echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4875esac
4876
Rafael Espindolae33f06c2014-03-10 16:58:35 +00004877clang_plugin_support="yes"
4878# Check whether --enable-clang-plugin-support was given.
4879if test "${enable_clang_plugin_support+set}" = set; then
4880 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4881else
4882 enableval="yes"
4883fi
4884
4885case "$enableval" in
4886 yes) CLANG_PLUGIN_SUPPORT=1
4887 ;;
4888 no) CLANG_PLUGIN_SUPPORT=0
4889 ;;
4890 default) CLANG_PLUGIN_SUPPORT=1
4891;;
4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4893echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4895esac
4896
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004897clang_static_analyzer="yes"
4898# Check whether --enable-clang-static-analyzer was given.
4899if test "${enable_clang_static_analyzer+set}" = set; then
4900 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4901else
4902 enableval="yes"
4903fi
4904
4905case "$enableval" in
4906 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4907 ;;
Jordan Rose23fc6f32013-08-22 15:49:53 +00004908 no)
4909 if test ${clang_arcmt} != "no" ; then
4910 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4911echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4912 { (exit 1); exit 1; }; }
4913 fi
4914 ENABLE_CLANG_STATIC_ANALYZER=0
NAKAMURA Takumi4cfe5542013-08-22 16:31:34 +00004915
Jordan Rose23fc6f32013-08-22 15:49:53 +00004916 ;;
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004917 default) ENABLE_CLANG_STATIC_ANALYZER=1
4918;;
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4920echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4922esac
4923
4924# Check whether --enable-clang-rewriter was given.
4925if test "${enable_clang_rewriter+set}" = set; then
4926 enableval=$enable_clang_rewriter;
4927else
4928 enableval="yes"
4929fi
4930
4931case "$enableval" in
4932 yes) ENABLE_CLANG_REWRITER=1
4933 ;;
4934 no)
Benjamin Kramerd14720d2012-12-26 10:48:49 +00004935 if test ${clang_arcmt} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004936 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4937echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4938 { (exit 1); exit 1; }; }
4939 fi
Benjamin Kramerd14720d2012-12-26 10:48:49 +00004940 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00004941 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4942echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4943 { (exit 1); exit 1; }; }
4944 fi
4945 ENABLE_CLANG_REWRITER=0
4946
4947 ;;
4948 default) ENABLE_CLANG_REWRITER=1
4949;;
4950 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4951echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4952 { (exit 1); exit 1; }; } ;;
4953esac
4954
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004955# Check whether --enable-optimized was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004956if test "${enable_optimized+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004957 enableval=$enable_optimized;
4958else
4959 enableval=$optimize
4960fi
4961
4962if test ${enableval} = "no" ; then
4963 ENABLE_OPTIMIZED=
4964
4965else
4966 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4967
4968fi
4969
David Greenec0a34a072009-04-17 14:50:39 +00004970# Check whether --enable-profiling was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004971if test "${enable_profiling+set}" = set; then
David Greenec0a34a072009-04-17 14:50:39 +00004972 enableval=$enable_profiling;
4973else
4974 enableval="no"
4975fi
4976
4977if test ${enableval} = "no" ; then
4978 ENABLE_PROFILING=
4979
4980else
4981 ENABLE_PROFILING=ENABLE_PROFILING=1
4982
4983fi
4984
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004985# Check whether --enable-assertions was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004986if test "${enable_assertions+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004987 enableval=$enable_assertions;
4988else
4989 enableval="yes"
4990fi
4991
4992if test ${enableval} = "yes" ; then
4993 DISABLE_ASSERTIONS=
4994
4995else
4996 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4997
4998fi
4999
Eric Christopher84864012012-08-03 19:58:20 +00005000# Check whether --enable-werror was given.
5001if test "${enable_werror+set}" = set; then
5002 enableval=$enable_werror;
5003else
5004 enableval="no"
5005fi
5006
5007case "$enableval" in
5008 yes) ENABLE_WERROR=1
5009 ;;
5010 no) ENABLE_WERROR=0
5011 ;;
5012 default) ENABLE_WERROR=0
5013;;
5014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5015echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5016 { (exit 1); exit 1; }; } ;;
5017esac
5018
David Greenecbc8ddf2007-06-28 19:36:08 +00005019# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005020if test "${enable_expensive_checks+set}" = set; then
David Greenecbc8ddf2007-06-28 19:36:08 +00005021 enableval=$enable_expensive_checks;
5022else
5023 enableval="no"
5024fi
5025
5026if test ${enableval} = "yes" ; then
5027 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5028
5029 EXPENSIVE_CHECKS=yes
5030
5031else
5032 ENABLE_EXPENSIVE_CHECKS=
5033
5034 EXPENSIVE_CHECKS=no
5035
5036fi
5037
Reid Spencer4b8067f2006-11-17 03:32:33 +00005038# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005039if test "${enable_debug_runtime+set}" = set; then
Reid Spencer4b8067f2006-11-17 03:32:33 +00005040 enableval=$enable_debug_runtime;
5041else
5042 enableval=no
5043fi
5044
5045if test ${enableval} = "no" ; then
5046 DEBUG_RUNTIME=
5047
5048else
5049 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5050
5051fi
5052
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005053# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005054if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005055 enableval=$enable_debug_symbols;
5056else
5057 enableval=no
5058fi
5059
5060if test ${enableval} = "no" ; then
5061 DEBUG_SYMBOLS=
5062
5063else
5064 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5065
5066fi
5067
Daniel Dunbar39c04622012-08-14 18:14:22 +00005068# Check whether --enable-keep-symbols was given.
5069if test "${enable_keep_symbols+set}" = set; then
5070 enableval=$enable_keep_symbols;
5071else
5072 enableval=no
5073fi
5074
5075if test ${enableval} = "no" ; then
5076 KEEP_SYMBOLS=
5077
5078else
5079 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5080
5081fi
5082
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005083# Check whether --enable-jit was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005084if test "${enable_jit+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005085 enableval=$enable_jit;
5086else
5087 enableval=default
5088fi
5089
5090if test ${enableval} = "no"
5091then
5092 JIT=
5093
5094else
5095 case "$llvm_cv_target_arch" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005096 x86) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005097 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005098 Sparc) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005099 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005100 PowerPC) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005101 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005102 x86_64) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005103 ;;
Eric Christopherd8530f32009-09-14 16:38:49 +00005104 ARM) TARGET_HAS_JIT=1
Reid Spencerd7c8b3c2007-01-21 06:32:59 +00005105 ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00005106 AArch64) TARGET_HAS_JIT=0
5107 ;;
Bruno Cardoso Lopesd1d9c782011-07-21 16:28:51 +00005108 Mips) TARGET_HAS_JIT=1
Tanya Lattnerbca16c82007-08-29 16:38:16 +00005109 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005110 XCore) TARGET_HAS_JIT=0
Richard Osborneca08e062008-11-07 10:59:00 +00005111 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005112 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov9173b492009-05-03 13:42:23 +00005113 ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005114 Hexagon) TARGET_HAS_JIT=0
5115 ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005116 NVPTX) TARGET_HAS_JIT=0
5117 ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005118 SystemZ) TARGET_HAS_JIT=1
5119 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005120 *) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005121 ;;
5122 esac
5123fi
5124
Tim Northover00ed9962014-03-29 10:18:08 +00005125TARGETS_WITH_JIT="AArch64 ARM ARM64 Mips PowerPC SystemZ X86"
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005126TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5127
5128
Rafael Espindola7ac506d2010-11-12 19:24:06 +00005129# Check whether --enable-docs was given.
5130if test "${enable_docs+set}" = set; then
5131 enableval=$enable_docs;
5132else
5133 enableval=default
5134fi
5135
5136case "$enableval" in
5137 yes) ENABLE_DOCS=1
5138 ;;
5139 no) ENABLE_DOCS=0
5140 ;;
5141 default) ENABLE_DOCS=1
5142 ;;
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5144echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5146esac
5147
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005148# Check whether --enable-doxygen was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005149if test "${enable_doxygen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005150 enableval=$enable_doxygen;
5151else
5152 enableval=default
5153fi
5154
5155case "$enableval" in
5156 yes) ENABLE_DOXYGEN=1
5157 ;;
5158 no) ENABLE_DOXYGEN=0
5159 ;;
5160 default) ENABLE_DOXYGEN=0
5161 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005162 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5163echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5164 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005165esac
5166
5167# Check whether --enable-threads was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005168if test "${enable_threads+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005169 enableval=$enable_threads;
5170else
Reid Spencerd549edc2006-11-05 17:08:18 +00005171 enableval=default
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005172fi
5173
5174case "$enableval" in
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005175 yes) LLVM_ENABLE_THREADS=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005176 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005177 no) LLVM_ENABLE_THREADS=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005178 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005179 default) LLVM_ENABLE_THREADS=1
Reid Spencerd549edc2006-11-05 17:08:18 +00005180 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5182echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005184esac
5185
Owen Andersonaf5db832009-05-19 22:18:56 +00005186cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005187#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersonaf5db832009-05-19 22:18:56 +00005188_ACEOF
5189
5190
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00005191# Check whether --enable-pthreads was given.
5192if test "${enable_pthreads+set}" = set; then
5193 enableval=$enable_pthreads;
5194else
5195 enableval=default
5196fi
5197
5198case "$enableval" in
5199 yes) ENABLE_PTHREADS=1
5200 ;;
5201 no) ENABLE_PTHREADS=0
5202 ;;
5203 default) ENABLE_PTHREADS=1
5204 ;;
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5206echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5208esac
5209
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00005210# Check whether --enable-zlib was given.
5211if test "${enable_zlib+set}" = set; then
5212 enableval=$enable_zlib;
5213else
5214 enableval=default
5215fi
5216
5217case "$enableval" in
5218 yes) LLVM_ENABLE_ZLIB=1
5219 ;;
5220 no) LLVM_ENABLE_ZLIB=0
5221 ;;
5222 default) LLVM_ENABLE_ZLIB=1
5223 ;;
5224 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5225echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5227esac
5228
5229cat >>confdefs.h <<_ACEOF
5230#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5231_ACEOF
5232
5233
Reid Spencer05a1fe52006-12-16 22:07:52 +00005234# Check whether --enable-pic was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005235if test "${enable_pic+set}" = set; then
Reid Spencer05a1fe52006-12-16 22:07:52 +00005236 enableval=$enable_pic;
5237else
5238 enableval=default
5239fi
5240
5241case "$enableval" in
5242 yes) ENABLE_PIC=1
5243 ;;
5244 no) ENABLE_PIC=0
5245 ;;
Nick Lewycky38525192009-02-19 06:18:56 +00005246 default) ENABLE_PIC=1
Reid Spencer05a1fe52006-12-16 22:07:52 +00005247 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5249echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5250 { (exit 1); exit 1; }; } ;;
Reid Spencer05a1fe52006-12-16 22:07:52 +00005251esac
5252
5253cat >>confdefs.h <<_ACEOF
5254#define ENABLE_PIC $ENABLE_PIC
5255_ACEOF
5256
5257
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00005258# Check whether --enable-shared was given.
5259if test "${enable_shared+set}" = set; then
5260 enableval=$enable_shared;
5261else
5262 enableval=default
5263fi
5264
5265case "$enableval" in
5266 yes) ENABLE_SHARED=1
5267 ;;
5268 no) ENABLE_SHARED=0
5269 ;;
5270 default) ENABLE_SHARED=0
5271 ;;
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5273echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5275esac
5276
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005277# Check whether --enable-embed-stdcxx was given.
5278if test "${enable_embed_stdcxx+set}" = set; then
5279 enableval=$enable_embed_stdcxx;
5280else
5281 enableval=default
5282fi
5283
5284case "$enableval" in
5285 yes) ENABLE_EMBED_STDCXX=1
5286 ;;
5287 no) ENABLE_EMBED_STDCXX=0
5288 ;;
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00005289 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005290 ;;
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5292echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5294esac
5295
Daniel Dunbardac18242010-05-10 20:11:56 +00005296# Check whether --enable-timestamps was given.
5297if test "${enable_timestamps+set}" = set; then
5298 enableval=$enable_timestamps;
5299else
5300 enableval=default
5301fi
5302
5303case "$enableval" in
5304 yes) ENABLE_TIMESTAMPS=1
5305 ;;
5306 no) ENABLE_TIMESTAMPS=0
5307 ;;
5308 default) ENABLE_TIMESTAMPS=1
5309 ;;
5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5311echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5313esac
5314
5315cat >>confdefs.h <<_ACEOF
5316#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5317_ACEOF
5318
5319
Eric Christopher9fafe072012-09-21 23:03:29 +00005320# Check whether --enable-backtraces was given.
5321if test "${enable_backtraces+set}" = set; then
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005322 enableval=$enable_backtraces; case "$enableval" in
5323 yes) llvm_cv_enable_backtraces="yes" ;;
5324 no) llvm_cv_enable_backtraces="no" ;;
5325 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
Eric Christopher9fafe072012-09-21 23:03:29 +00005326echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5327 { (exit 1); exit 1; }; } ;;
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005328 esac
5329else
5330 llvm_cv_enable_backtraces="yes"
5331fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005332
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005333if test "$llvm_cv_enable_backtraces" = "yes" ; then
5334
5335cat >>confdefs.h <<\_ACEOF
5336#define ENABLE_BACKTRACES 1
Eric Christopher9fafe072012-09-21 23:03:29 +00005337_ACEOF
5338
Daniel Dunbareb6c7082013-08-30 20:39:21 +00005339fi
5340
5341# Check whether --enable-crash-overrides was given.
5342if test "${enable_crash_overrides+set}" = set; then
5343 enableval=$enable_crash_overrides; case "$enableval" in
5344 yes) llvm_cv_enable_crash_overrides="yes" ;;
5345 no) llvm_cv_enable_crash_overrides="no" ;;
5346 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5347echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5348 { (exit 1); exit 1; }; } ;;
5349 esac
5350else
5351 llvm_cv_enable_crash_overrides="yes"
5352fi
5353
5354if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5355
5356cat >>confdefs.h <<\_ACEOF
5357#define ENABLE_CRASH_OVERRIDES 1
5358_ACEOF
5359
5360fi
Eric Christopher9fafe072012-09-21 23:03:29 +00005361
Tim Northover00ed9962014-03-29 10:18:08 +00005362ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM ARM64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005363ALL_TARGETS=$ALL_TARGETS
5364
5365
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005366TARGETS_TO_BUILD=""
5367# Check whether --enable-targets was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005368if test "${enable_targets+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005369 enableval=$enable_targets;
5370else
5371 enableval=all
5372fi
5373
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005374if test "$enableval" = host-only ; then
5375 enableval=host
5376fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005377case "$enableval" in
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005378 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005379 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5380 case "$a_target" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005381 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5382 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5383 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5384 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Joerg Sonnenberger981e99d2013-02-03 17:06:49 +00005385 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Tim Northover00ed9962014-03-29 10:18:08 +00005386 arm64) TARGETS_TO_BUILD="ARM64 $TARGETS_TO_BUILD" ;;
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00005387 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005388 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindolae46f0962011-12-28 17:08:00 +00005389 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00005390 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5391 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005392 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5393 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005394 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005395 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005396 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005397 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Rafael Espindolaf6474d22013-05-22 00:35:47 +00005398 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005399 host) case "$llvm_cv_target_arch" in
5400 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5401 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5402 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5403 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jia Liu43eb48e2013-04-22 16:26:15 +00005404 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005405 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5406 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005407 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5408 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005409 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005410 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Ulrich Weigand1ceebf62013-05-06 16:22:34 +00005411 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005412 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5413echo "$as_me: error: Can not set target to build" >&2;}
5414 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005415 esac ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005416 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5417echo "$as_me: error: Unrecognized target $a_target" >&2;}
5418 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005419 esac
5420 done
5421 ;;
5422esac
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00005423
5424# Check whether --enable-experimental-targets was given.
5425if test "${enable_experimental_targets+set}" = set; then
5426 enableval=$enable_experimental_targets;
5427else
5428 enableval=disable
5429fi
5430
5431
5432if test ${enableval} != "disable"
5433then
5434 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5435fi
5436
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005437TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5438
5439
Douglas Gregor43613a22009-06-17 00:43:20 +00005440for a_target in $TARGETS_TO_BUILD; do
5441 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5442
5443cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005444#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5445_ACEOF
5446
5447 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5448 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng8c886a42011-07-22 21:58:54 +00005449 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christophere7a9db12010-08-30 18:34:48 +00005450 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005451 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5452 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5453 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005454 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5455 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5456 fi
Eric Christophere7a9db12010-08-30 18:34:48 +00005457
5458cat >>confdefs.h <<_ACEOF
5459#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbaredf7b8b2010-08-03 14:26:17 +00005460_ACEOF
5461
5462
5463cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005464#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5465_ACEOF
5466
5467
5468cat >>confdefs.h <<_ACEOF
Evan Cheng8c886a42011-07-22 21:58:54 +00005469#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng2129f592011-07-19 06:37:02 +00005470_ACEOF
5471
5472
5473cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005474#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor43613a22009-06-17 00:43:20 +00005475_ACEOF
5476
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005477 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödin27e07c32011-03-09 17:25:46 +00005478
5479cat >>confdefs.h <<_ACEOF
5480#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5481_ACEOF
5482
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005483 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005484 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5485
5486cat >>confdefs.h <<_ACEOF
5487#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5488_ACEOF
5489
5490 fi
Douglas Gregor43613a22009-06-17 00:43:20 +00005491 fi
5492done
5493
Douglas Gregor1b731d52009-06-16 20:12:29 +00005494LLVM_ENUM_TARGETS=""
5495LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005496LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar32027202009-11-25 04:37:28 +00005497LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1b731d52009-06-16 20:12:29 +00005498for target_to_build in $TARGETS_TO_BUILD; do
5499 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattner28776602010-11-14 19:10:47 +00005500 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach0e854f32010-10-01 22:39:28 +00005501 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5502 fi
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005503 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5504 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5505 fi
Daniel Dunbar32027202009-11-25 04:37:28 +00005506 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5507 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5508 fi
Douglas Gregor1b731d52009-06-16 20:12:29 +00005509done
5510
5511
5512
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005513
Daniel Dunbar32027202009-11-25 04:37:28 +00005514
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005515
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005516# Check whether --with-optimize-option was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005517if test "${with_optimize_option+set}" = set; then
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005518 withval=$with_optimize_option;
5519else
5520 withval=default
5521fi
5522
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005523{ echo "$as_me:$LINENO: checking optimization flags" >&5
5524echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005525case "$withval" in
5526 default)
5527 case "$llvm_cv_os_type" in
Daniel Dunbard411fcb2010-04-30 17:12:26 +00005528 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +00005529 MingW) optimize_option=-O2 ;;
5530 *) optimize_option=-O3 ;;
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005531 esac ;;
5532 *) optimize_option="$withval" ;;
5533esac
5534OPTIMIZE_OPTION=$optimize_option
5535
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005536{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5537echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005538
5539
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005540# Check whether --with-extra-options was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005541if test "${with_extra_options+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005542 withval=$with_extra_options;
5543else
5544 withval=default
5545fi
5546
5547case "$withval" in
5548 default) EXTRA_OPTIONS= ;;
5549 *) EXTRA_OPTIONS=$withval ;;
5550esac
5551EXTRA_OPTIONS=$EXTRA_OPTIONS
5552
5553
Daniel Dunbar3b95df82011-06-16 22:30:41 +00005554
5555# Check whether --with-extra-ld-options was given.
5556if test "${with_extra_ld_options+set}" = set; then
5557 withval=$with_extra_ld_options;
5558else
5559 withval=default
5560fi
5561
5562case "$withval" in
5563 default) EXTRA_LD_OPTIONS= ;;
5564 *) EXTRA_LD_OPTIONS=$withval ;;
5565esac
5566EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5567
5568
Gordon Henriksene61dd672007-10-02 09:50:32 +00005569# Check whether --enable-bindings was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005570if test "${enable_bindings+set}" = set; then
Gordon Henriksene61dd672007-10-02 09:50:32 +00005571 enableval=$enable_bindings;
5572else
5573 enableval=default
5574fi
5575
5576BINDINGS_TO_BUILD=""
5577case "$enableval" in
Gordon Henriksenacc2a832007-10-02 10:14:42 +00005578 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005579 all ) BINDINGS_TO_BUILD="ocaml" ;;
5580 none | no) BINDINGS_TO_BUILD="" ;;
5581 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5582 case "$a_binding" in
5583 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005584 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5585echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5586 { (exit 1); exit 1; }; } ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005587 esac
5588 done
5589 ;;
5590esac
5591
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005592
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005593# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005594if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005595 withval=$with_ocaml_libdir;
5596else
5597 withval=auto
5598fi
5599
5600case "$withval" in
5601 auto) with_ocaml_libdir="$withval" ;;
5602 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005603 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5604echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5605 { (exit 1); exit 1; }; } ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005606esac
5607
5608
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005609# Check whether --with-clang-srcdir was given.
5610if test "${with_clang_srcdir+set}" = set; then
5611 withval=$with_clang_srcdir;
5612else
5613 withval="-"
5614fi
5615
5616case "$withval" in
Eric Christopher7f977de2012-02-02 00:19:05 +00005617 -) clang_src_root="" ;;
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005618 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5619 *) clang_src_root="$ac_pwd/$withval" ;;
5620esac
5621CLANG_SRC_ROOT=$clang_src_root
5622
5623
5624
Chandler Carruthffae4a62010-10-19 08:21:25 +00005625# Check whether --with-clang-resource-dir was given.
5626if test "${with_clang_resource_dir+set}" = set; then
5627 withval=$with_clang_resource_dir;
5628else
5629 withval=""
5630fi
5631
5632
5633cat >>confdefs.h <<_ACEOF
5634#define CLANG_RESOURCE_DIR "$withval"
5635_ACEOF
5636
5637
5638
Rafael Espindola662908c2009-12-07 00:27:35 +00005639# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005640if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola662908c2009-12-07 00:27:35 +00005641 withval=$with_c_include_dirs;
Rafael Espindolad95960b2009-11-12 05:46:09 +00005642else
5643 withval=""
5644fi
5645
5646
5647cat >>confdefs.h <<_ACEOF
5648#define C_INCLUDE_DIRS "$withval"
5649_ACEOF
5650
5651
Rafael Espindolaec217f62012-02-03 00:59:30 +00005652# Clang normally uses the system c++ headers and libraries. With this option,
5653# clang will use the ones provided by a gcc installation instead. This option should
5654# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindolad95960b2009-11-12 05:46:09 +00005655
Rafael Espindolaec217f62012-02-03 00:59:30 +00005656# Check whether --with-gcc-toolchain was given.
5657if test "${with_gcc_toolchain+set}" = set; then
5658 withval=$with_gcc_toolchain;
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005659else
5660 withval=""
5661fi
5662
5663
5664cat >>confdefs.h <<_ACEOF
Rafael Espindolaec217f62012-02-03 00:59:30 +00005665#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005666_ACEOF
5667
5668
5669
Sebastian Pope29a6c72012-04-30 20:06:58 +00005670# Check whether --with-default-sysroot was given.
5671if test "${with_default_sysroot+set}" = set; then
5672 withval=$with_default_sysroot;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00005673else
5674 withval=""
5675fi
5676
5677
5678cat >>confdefs.h <<_ACEOF
5679#define DEFAULT_SYSROOT "$withval"
5680_ACEOF
5681
5682
5683
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005684# Check whether --with-binutils-include was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005685if test "${with_binutils_include+set}" = set; then
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005686 withval=$with_binutils_include;
5687else
5688 withval=default
5689fi
5690
5691case "$withval" in
5692 default) WITH_BINUTILS_INCDIR=default ;;
5693 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005694 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5695echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5696 { (exit 1); exit 1; }; } ;;
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005697esac
5698if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5699 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5700
5701 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5702 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005703 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5704echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5705 { (exit 1); exit 1; }; };
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005706 fi
5707fi
5708
Eric Christopher65080cc2011-07-20 17:04:49 +00005709
5710# Check whether --with-bug-report-url was given.
5711if test "${with_bug_report_url+set}" = set; then
5712 withval=$with_bug_report_url;
5713else
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00005714 withval="http://llvm.org/bugs/"
Eric Christopher65080cc2011-07-20 17:04:49 +00005715fi
5716
5717
5718cat >>confdefs.h <<_ACEOF
5719#define BUG_REPORT_URL "$withval"
5720_ACEOF
5721
5722
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005723# Check whether --enable-terminfo was given.
5724if test "${enable_terminfo+set}" = set; then
5725 enableval=$enable_terminfo; case "$enableval" in
5726 yes) llvm_cv_enable_terminfo="yes" ;;
5727 no) llvm_cv_enable_terminfo="no" ;;
5728 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5729echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005730 { (exit 1); exit 1; }; } ;;
5731 esac
5732else
Chandler Carruthf11f1e42013-08-12 09:49:17 +00005733 llvm_cv_enable_terminfo="yes"
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005734fi
5735
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00005736case "$llvm_cv_enable_terminfo" in
5737 yes) ENABLE_TERMINFO=1
5738 ;;
5739 no) ENABLE_TERMINFO=0
5740 ;;
5741esac
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00005742
Peter Collingbournec7d437c2014-01-31 23:46:14 +00005743# Check whether --enable-libedit was given.
5744if test "${enable_libedit+set}" = set; then
5745 enableval=$enable_libedit; case "$enableval" in
5746 yes) llvm_cv_enable_libedit="yes" ;;
5747 no) llvm_cv_enable_libedit="no" ;;
5748 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5749echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5750 { (exit 1); exit 1; }; } ;;
5751 esac
5752else
5753 llvm_cv_enable_libedit="yes"
5754fi
5755
5756
Nick Lewycky86679902009-06-06 06:25:09 +00005757# Check whether --enable-libffi was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005758if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005759 enableval=$enable_libffi; case "$enableval" in
5760 yes) llvm_cv_enable_libffi="yes" ;;
5761 no) llvm_cv_enable_libffi="no" ;;
5762 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005763echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5764 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005765 esac
5766else
5767 llvm_cv_enable_libffi=no
5768fi
5769
Nick Lewycky86679902009-06-06 06:25:09 +00005770
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005771
Bob Wilson3f354702011-11-28 07:59:52 +00005772# Check whether --with-internal-prefix was given.
5773if test "${with_internal_prefix+set}" = set; then
5774 withval=$with_internal_prefix;
5775else
5776 withval=""
5777fi
5778
5779INTERNAL_PREFIX=$withval
5780
5781
5782
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005783{ echo "$as_me:$LINENO: checking for GNU make" >&5
5784echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5785if test "${llvm_cv_gnu_make_command+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005787else
5788 llvm_cv_gnu_make_command=''
5789 for a in "$MAKE" make gmake gnumake ; do
5790 if test -z "$a" ; then continue ; fi ;
5791 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5792 then
5793 llvm_cv_gnu_make_command=$a ;
5794 break;
5795 fi
5796 done
5797fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005798{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5799echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005800 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5801 ifGNUmake='' ;
5802 else
5803 ifGNUmake='#' ;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005804 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5805echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005806 fi
5807
5808
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005809{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5810echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005811LN_S=$as_ln_s
5812if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005813 { echo "$as_me:$LINENO: result: yes" >&5
5814echo "${ECHO_T}yes" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005815else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005816 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5817echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005818fi
5819
Rafael Espindolafd1355a2014-02-28 18:17:54 +00005820# Extract the first word of "nm", so it can be a program name with args.
5821set dummy nm; ac_word=$2
5822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824if test "${ac_cv_path_NM+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827 case $NM in
5828 [\\/]* | ?:[\\/]*)
5829 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5830 ;;
5831 *)
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843done
5844done
5845IFS=$as_save_IFS
5846
5847 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5848 ;;
5849esac
5850fi
5851NM=$ac_cv_path_NM
5852if test -n "$NM"; then
5853 { echo "$as_me:$LINENO: result: $NM" >&5
5854echo "${ECHO_T}$NM" >&6; }
5855else
5856 { echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6; }
5858fi
5859
5860
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005861# Extract the first word of "cmp", so it can be a program name with args.
5862set dummy cmp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865if test "${ac_cv_path_CMP+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005867else
5868 case $CMP in
5869 [\\/]* | ?:[\\/]*)
5870 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5871 ;;
5872 *)
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 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 +00005880 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005882 break 2
5883 fi
5884done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005885done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005886IFS=$as_save_IFS
5887
5888 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5889 ;;
5890esac
5891fi
5892CMP=$ac_cv_path_CMP
5893if test -n "$CMP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005894 { echo "$as_me:$LINENO: result: $CMP" >&5
5895echo "${ECHO_T}$CMP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005896else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005897 { echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005899fi
5900
5901
5902# Extract the first word of "cp", so it can be a program name with args.
5903set dummy cp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906if test "${ac_cv_path_CP+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005908else
5909 case $CP in
5910 [\\/]* | ?:[\\/]*)
5911 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5912 ;;
5913 *)
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 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 +00005921 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005923 break 2
5924 fi
5925done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005926done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005927IFS=$as_save_IFS
5928
5929 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5930 ;;
5931esac
5932fi
5933CP=$ac_cv_path_CP
5934if test -n "$CP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005935 { echo "$as_me:$LINENO: result: $CP" >&5
5936echo "${ECHO_T}$CP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005937else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005938 { echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005940fi
5941
5942
5943# Extract the first word of "date", so it can be a program name with args.
5944set dummy date; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947if test "${ac_cv_path_DATE+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005949else
5950 case $DATE in
5951 [\\/]* | ?:[\\/]*)
5952 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5953 ;;
5954 *)
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 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 +00005962 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005964 break 2
5965 fi
5966done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005967done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005968IFS=$as_save_IFS
5969
5970 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5971 ;;
5972esac
5973fi
5974DATE=$ac_cv_path_DATE
5975if test -n "$DATE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005976 { echo "$as_me:$LINENO: result: $DATE" >&5
5977echo "${ECHO_T}$DATE" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005978else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005979 { echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005981fi
5982
5983
5984# Extract the first word of "find", so it can be a program name with args.
5985set dummy find; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988if test "${ac_cv_path_FIND+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005990else
5991 case $FIND in
5992 [\\/]* | ?:[\\/]*)
5993 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5994 ;;
5995 *)
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 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 +00006003 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006005 break 2
6006 fi
6007done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006008done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006009IFS=$as_save_IFS
6010
6011 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6012 ;;
6013esac
6014fi
6015FIND=$ac_cv_path_FIND
6016if test -n "$FIND"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006017 { echo "$as_me:$LINENO: result: $FIND" >&5
6018echo "${ECHO_T}$FIND" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006019else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006020 { echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006022fi
6023
6024
6025# Extract the first word of "grep", so it can be a program name with args.
6026set dummy grep; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029if test "${ac_cv_path_GREP+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006031else
6032 case $GREP in
6033 [\\/]* | ?:[\\/]*)
6034 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6035 ;;
6036 *)
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 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 +00006044 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006046 break 2
6047 fi
6048done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006049done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006050IFS=$as_save_IFS
6051
6052 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6053 ;;
6054esac
6055fi
6056GREP=$ac_cv_path_GREP
6057if test -n "$GREP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006058 { echo "$as_me:$LINENO: result: $GREP" >&5
6059echo "${ECHO_T}$GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006060else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006061 { echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006063fi
6064
6065
6066# Extract the first word of "mkdir", so it can be a program name with args.
6067set dummy mkdir; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070if test "${ac_cv_path_MKDIR+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006072else
6073 case $MKDIR in
6074 [\\/]* | ?:[\\/]*)
6075 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6076 ;;
6077 *)
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 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 +00006085 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006087 break 2
6088 fi
6089done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006090done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006091IFS=$as_save_IFS
6092
6093 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6094 ;;
6095esac
6096fi
6097MKDIR=$ac_cv_path_MKDIR
6098if test -n "$MKDIR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006099 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6100echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006101else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006102 { echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006104fi
6105
6106
6107# Extract the first word of "mv", so it can be a program name with args.
6108set dummy mv; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111if test "${ac_cv_path_MV+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006113else
6114 case $MV in
6115 [\\/]* | ?:[\\/]*)
6116 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6117 ;;
6118 *)
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 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 +00006126 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006128 break 2
6129 fi
6130done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006131done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006132IFS=$as_save_IFS
6133
6134 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6135 ;;
6136esac
6137fi
6138MV=$ac_cv_path_MV
6139if test -n "$MV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006140 { echo "$as_me:$LINENO: result: $MV" >&5
6141echo "${ECHO_T}$MV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006142else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006143 { echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006145fi
6146
6147
6148if test -n "$ac_tool_prefix"; then
6149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6150set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6153if test "${ac_cv_prog_RANLIB+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006155else
6156 if test -n "$RANLIB"; then
6157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 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 +00006166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006168 break 2
6169 fi
6170done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006171done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006172IFS=$as_save_IFS
6173
6174fi
6175fi
6176RANLIB=$ac_cv_prog_RANLIB
6177if test -n "$RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006178 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6179echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006180else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006181 { echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006183fi
6184
6185
6186fi
6187if test -z "$ac_cv_prog_RANLIB"; then
6188 ac_ct_RANLIB=$RANLIB
6189 # Extract the first word of "ranlib", so it can be a program name with args.
6190set dummy ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006195else
6196 if test -n "$ac_ct_RANLIB"; then
6197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6198else
6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 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 +00006206 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006208 break 2
6209 fi
6210done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006211done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006212IFS=$as_save_IFS
6213
6214fi
6215fi
6216ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6217if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006218 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6219echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006220else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006221 { echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006223fi
6224
6225 if test "x$ac_ct_RANLIB" = x; then
6226 RANLIB=":"
6227 else
6228 case $cross_compiling:$ac_tool_warned in
6229yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006230{ echo "$as_me:$LINENO: 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." >&5
6233echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6234whose name does not start with the host triplet. If you think this
6235configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006236ac_tool_warned=yes ;;
6237esac
6238 RANLIB=$ac_ct_RANLIB
6239 fi
6240else
6241 RANLIB="$ac_cv_prog_RANLIB"
6242fi
6243
Torok Edwinaec06332010-01-26 08:50:50 +00006244if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6246set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249if test "${ac_cv_prog_AR+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006251else
6252 if test -n "$AR"; then
6253 ac_cv_prog_AR="$AR" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 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 +00006262 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006264 break 2
6265 fi
6266done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006267done
Torok Edwinaec06332010-01-26 08:50:50 +00006268IFS=$as_save_IFS
6269
6270fi
6271fi
6272AR=$ac_cv_prog_AR
6273if test -n "$AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006274 { echo "$as_me:$LINENO: result: $AR" >&5
6275echo "${ECHO_T}$AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006276else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006277 { echo "$as_me:$LINENO: result: no" >&5
6278echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006279fi
6280
6281
6282fi
6283if test -z "$ac_cv_prog_AR"; then
6284 ac_ct_AR=$AR
6285 # Extract the first word of "ar", so it can be a program name with args.
6286set dummy ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006291else
6292 if test -n "$ac_ct_AR"; then
6293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 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 +00006302 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006304 break 2
6305 fi
6306done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006307done
Torok Edwinaec06332010-01-26 08:50:50 +00006308IFS=$as_save_IFS
6309
6310fi
6311fi
6312ac_ct_AR=$ac_cv_prog_ac_ct_AR
6313if test -n "$ac_ct_AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006314 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6315echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006316else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006317 { echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006319fi
6320
6321 if test "x$ac_ct_AR" = x; then
6322 AR="false"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006326{ echo "$as_me:$LINENO: 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." >&5
6329echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6330whose name does not start with the host triplet. If you think this
6331configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwinaec06332010-01-26 08:50:50 +00006332ac_tool_warned=yes ;;
6333esac
6334 AR=$ac_ct_AR
6335 fi
6336else
6337 AR="$ac_cv_prog_AR"
6338fi
6339
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006340# Extract the first word of "rm", so it can be a program name with args.
6341set dummy rm; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344if test "${ac_cv_path_RM+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006346else
6347 case $RM in
6348 [\\/]* | ?:[\\/]*)
6349 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6350 ;;
6351 *)
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 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 +00006359 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006361 break 2
6362 fi
6363done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006364done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006365IFS=$as_save_IFS
6366
6367 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6368 ;;
6369esac
6370fi
6371RM=$ac_cv_path_RM
6372if test -n "$RM"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006373 { echo "$as_me:$LINENO: result: $RM" >&5
6374echo "${ECHO_T}$RM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006375else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006376 { echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006378fi
6379
6380
6381# Extract the first word of "sed", so it can be a program name with args.
6382set dummy sed; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385if test "${ac_cv_path_SED+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006387else
6388 case $SED in
6389 [\\/]* | ?:[\\/]*)
6390 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6391 ;;
6392 *)
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 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 +00006400 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006402 break 2
6403 fi
6404done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006405done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006406IFS=$as_save_IFS
6407
6408 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6409 ;;
6410esac
6411fi
6412SED=$ac_cv_path_SED
6413if test -n "$SED"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006414 { echo "$as_me:$LINENO: result: $SED" >&5
6415echo "${ECHO_T}$SED" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006416else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006417 { echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006419fi
6420
6421
6422# Extract the first word of "tar", so it can be a program name with args.
6423set dummy tar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426if test "${ac_cv_path_TAR+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006428else
6429 case $TAR in
6430 [\\/]* | ?:[\\/]*)
6431 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6432 ;;
6433 *)
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435for as_dir in $PATH
6436do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 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 +00006441 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006443 break 2
6444 fi
6445done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006446done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006447IFS=$as_save_IFS
6448
6449 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6450 ;;
6451esac
6452fi
6453TAR=$ac_cv_path_TAR
6454if test -n "$TAR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006455 { echo "$as_me:$LINENO: result: $TAR" >&5
6456echo "${ECHO_T}$TAR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006457else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006458 { echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006460fi
6461
6462
6463# Extract the first word of "pwd", so it can be a program name with args.
6464set dummy pwd; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467if test "${ac_cv_path_BINPWD+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006469else
6470 case $BINPWD in
6471 [\\/]* | ?:[\\/]*)
6472 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6473 ;;
6474 *)
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 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 +00006482 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006484 break 2
6485 fi
6486done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006487done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006488IFS=$as_save_IFS
6489
6490 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6491 ;;
6492esac
6493fi
6494BINPWD=$ac_cv_path_BINPWD
6495if test -n "$BINPWD"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006496 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6497echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006498else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006499 { echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006501fi
6502
6503
6504
6505# Extract the first word of "Graphviz", so it can be a program name with args.
6506set dummy Graphviz; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6509if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006511else
6512 case $GRAPHVIZ in
6513 [\\/]* | ?:[\\/]*)
6514 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6515 ;;
6516 *)
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 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 +00006524 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006526 break 2
6527 fi
6528done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006529done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006530IFS=$as_save_IFS
6531
6532 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6533 ;;
6534esac
6535fi
6536GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6537if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006538 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6539echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006540else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006541 { echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006543fi
6544
6545
6546if test "$GRAPHVIZ" != "echo Graphviz" ; then
6547
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006548cat >>confdefs.h <<\_ACEOF
6549#define HAVE_GRAPHVIZ 1
6550_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006551
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006552 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006553 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6554 fi
6555
6556cat >>confdefs.h <<_ACEOF
6557#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6558_ACEOF
6559
6560fi
6561# Extract the first word of "dot", so it can be a program name with args.
6562set dummy dot; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565if test "${ac_cv_path_DOT+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006567else
6568 case $DOT in
6569 [\\/]* | ?:[\\/]*)
6570 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6571 ;;
6572 *)
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 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 +00006580 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006582 break 2
6583 fi
6584done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006585done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006586IFS=$as_save_IFS
6587
6588 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6589 ;;
6590esac
6591fi
6592DOT=$ac_cv_path_DOT
6593if test -n "$DOT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006594 { echo "$as_me:$LINENO: result: $DOT" >&5
6595echo "${ECHO_T}$DOT" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006596else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006597 { echo "$as_me:$LINENO: result: no" >&5
6598echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006599fi
6600
6601
6602if test "$DOT" != "echo dot" ; then
6603
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006604cat >>confdefs.h <<\_ACEOF
6605#define HAVE_DOT 1
6606_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006607
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006608 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006609 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6610 fi
6611
6612cat >>confdefs.h <<_ACEOF
6613#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6614_ACEOF
6615
6616fi
David Greened93c40b62009-07-09 17:16:26 +00006617# Extract the first word of "fdp", so it can be a program name with args.
6618set dummy fdp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621if test "${ac_cv_path_FDP+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006623else
6624 case $FDP in
6625 [\\/]* | ?:[\\/]*)
6626 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6627 ;;
6628 *)
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630for as_dir in $PATH
6631do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 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 +00006636 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006638 break 2
6639 fi
6640done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006641done
David Greened93c40b62009-07-09 17:16:26 +00006642IFS=$as_save_IFS
6643
6644 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6645 ;;
6646esac
6647fi
6648FDP=$ac_cv_path_FDP
6649if test -n "$FDP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006650 { echo "$as_me:$LINENO: result: $FDP" >&5
6651echo "${ECHO_T}$FDP" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006652else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006653 { echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006655fi
6656
6657
6658if test "$FDP" != "echo fdp" ; then
6659
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006660cat >>confdefs.h <<\_ACEOF
6661#define HAVE_FDP 1
6662_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006663
6664 if test "$llvm_cv_os_type" = "MingW" ; then
6665 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6666 fi
6667
6668cat >>confdefs.h <<_ACEOF
6669#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6670_ACEOF
6671
6672fi
6673# Extract the first word of "neato", so it can be a program name with args.
6674set dummy neato; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677if test "${ac_cv_path_NEATO+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006679else
6680 case $NEATO in
6681 [\\/]* | ?:[\\/]*)
6682 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6683 ;;
6684 *)
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 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 +00006692 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006694 break 2
6695 fi
6696done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006697done
David Greened93c40b62009-07-09 17:16:26 +00006698IFS=$as_save_IFS
6699
6700 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6701 ;;
6702esac
6703fi
6704NEATO=$ac_cv_path_NEATO
6705if test -n "$NEATO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006706 { echo "$as_me:$LINENO: result: $NEATO" >&5
6707echo "${ECHO_T}$NEATO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006708else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006709 { echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006711fi
6712
6713
6714if test "$NEATO" != "echo neato" ; then
6715
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006716cat >>confdefs.h <<\_ACEOF
6717#define HAVE_NEATO 1
6718_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006719
6720 if test "$llvm_cv_os_type" = "MingW" ; then
6721 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6722 fi
6723
6724cat >>confdefs.h <<_ACEOF
6725#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6726_ACEOF
6727
6728fi
6729# Extract the first word of "twopi", so it can be a program name with args.
6730set dummy twopi; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6733if test "${ac_cv_path_TWOPI+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006735else
6736 case $TWOPI in
6737 [\\/]* | ?:[\\/]*)
6738 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6739 ;;
6740 *)
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 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 +00006748 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006750 break 2
6751 fi
6752done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006753done
David Greened93c40b62009-07-09 17:16:26 +00006754IFS=$as_save_IFS
6755
6756 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6757 ;;
6758esac
6759fi
6760TWOPI=$ac_cv_path_TWOPI
6761if test -n "$TWOPI"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006762 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6763echo "${ECHO_T}$TWOPI" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006764else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006765 { echo "$as_me:$LINENO: result: no" >&5
6766echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006767fi
6768
6769
6770if test "$TWOPI" != "echo twopi" ; then
6771
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006772cat >>confdefs.h <<\_ACEOF
6773#define HAVE_TWOPI 1
6774_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006775
6776 if test "$llvm_cv_os_type" = "MingW" ; then
6777 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6778 fi
6779
6780cat >>confdefs.h <<_ACEOF
6781#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6782_ACEOF
6783
6784fi
6785# Extract the first word of "circo", so it can be a program name with args.
6786set dummy circo; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789if test "${ac_cv_path_CIRCO+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006791else
6792 case $CIRCO in
6793 [\\/]* | ?:[\\/]*)
6794 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6795 ;;
6796 *)
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 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 +00006804 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006806 break 2
6807 fi
6808done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006809done
David Greened93c40b62009-07-09 17:16:26 +00006810IFS=$as_save_IFS
6811
6812 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6813 ;;
6814esac
6815fi
6816CIRCO=$ac_cv_path_CIRCO
6817if test -n "$CIRCO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006818 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6819echo "${ECHO_T}$CIRCO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006820else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006821 { echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006823fi
6824
6825
6826if test "$CIRCO" != "echo circo" ; then
6827
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006828cat >>confdefs.h <<\_ACEOF
6829#define HAVE_CIRCO 1
6830_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006831
6832 if test "$llvm_cv_os_type" = "MingW" ; then
6833 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6834 fi
6835
6836cat >>confdefs.h <<_ACEOF
6837#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6838_ACEOF
6839
6840fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006841for ac_prog in gv gsview32
6842do
6843 # Extract the first word of "$ac_prog", so it can be a program name with args.
6844set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847if test "${ac_cv_path_GV+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006849else
6850 case $GV in
6851 [\\/]* | ?:[\\/]*)
6852 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6853 ;;
6854 *)
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 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 +00006862 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006864 break 2
6865 fi
6866done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006867done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006868IFS=$as_save_IFS
6869
6870 ;;
6871esac
6872fi
6873GV=$ac_cv_path_GV
6874if test -n "$GV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006875 { echo "$as_me:$LINENO: result: $GV" >&5
6876echo "${ECHO_T}$GV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006877else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006878 { echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006880fi
6881
6882
6883 test -n "$GV" && break
6884done
6885test -n "$GV" || GV="echo gv"
6886
6887if test "$GV" != "echo gv" ; then
6888
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006889cat >>confdefs.h <<\_ACEOF
6890#define HAVE_GV 1
6891_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006892
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006893 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006894 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6895 fi
6896
6897cat >>confdefs.h <<_ACEOF
6898#define LLVM_PATH_GV "$GV${EXEEXT}"
6899_ACEOF
6900
6901fi
6902# Extract the first word of "dotty", so it can be a program name with args.
6903set dummy dotty; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906if test "${ac_cv_path_DOTTY+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006908else
6909 case $DOTTY in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6912 ;;
6913 *)
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 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 +00006921 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006923 break 2
6924 fi
6925done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006926done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006927IFS=$as_save_IFS
6928
6929 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6930 ;;
6931esac
6932fi
6933DOTTY=$ac_cv_path_DOTTY
6934if test -n "$DOTTY"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006935 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6936echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006937else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006938 { echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006940fi
6941
6942
6943if test "$DOTTY" != "echo dotty" ; then
6944
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006945cat >>confdefs.h <<\_ACEOF
6946#define HAVE_DOTTY 1
6947_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006948
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006949 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006950 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6951 fi
6952
6953cat >>confdefs.h <<_ACEOF
6954#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6955_ACEOF
6956
6957fi
Eric Christopher72ebead2013-07-08 21:18:54 +00006958for ac_prog in xdot xdot.py
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006959do
6960 # Extract the first word of "$ac_prog", so it can be a program name with args.
6961set dummy $ac_prog; ac_word=$2
Dan Gohmana0da8892010-09-27 16:28:34 +00006962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006964if test "${ac_cv_path_XDOT+set}" = set; then
Dan Gohmana0da8892010-09-27 16:28:34 +00006965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006967 case $XDOT in
Dan Gohmana0da8892010-09-27 16:28:34 +00006968 [\\/]* | ?:[\\/]*)
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006969 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
Dan Gohmana0da8892010-09-27 16:28:34 +00006970 ;;
6971 *)
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 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 +00006979 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
Dan Gohmana0da8892010-09-27 16:28:34 +00006980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983done
6984done
6985IFS=$as_save_IFS
6986
Dan Gohmana0da8892010-09-27 16:28:34 +00006987 ;;
6988esac
6989fi
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00006990XDOT=$ac_cv_path_XDOT
6991if test -n "$XDOT"; then
6992 { echo "$as_me:$LINENO: result: $XDOT" >&5
6993echo "${ECHO_T}$XDOT" >&6; }
Dan Gohmana0da8892010-09-27 16:28:34 +00006994else
6995 { echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6; }
6997fi
6998
6999
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00007000 test -n "$XDOT" && break
7001done
7002test -n "$XDOT" || XDOT="echo xdot"
7003
7004if test "$XDOT" != "echo xdot" ; then
Dan Gohmana0da8892010-09-27 16:28:34 +00007005
7006cat >>confdefs.h <<\_ACEOF
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00007007#define HAVE_XDOT 1
Dan Gohmana0da8892010-09-27 16:28:34 +00007008_ACEOF
7009
7010 if test "$llvm_cv_os_type" = "MingW" ; then
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00007011 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
Dan Gohmana0da8892010-09-27 16:28:34 +00007012 fi
7013
7014cat >>confdefs.h <<_ACEOF
Matt Arsenaultfe56cc62013-07-08 20:24:54 +00007015#define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
Dan Gohmana0da8892010-09-27 16:28:34 +00007016_ACEOF
7017
7018fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007019
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007020# Find a good install program. We prefer a C program (faster),
7021# so one script is as good as another. But avoid the broken or
7022# incompatible versions:
7023# SysV /etc/install, /usr/sbin/install
7024# SunOS /usr/etc/install
7025# IRIX /sbin/install
7026# AIX /bin/install
7027# AmigaOS /C/install, which installs bootblocks on floppy discs
7028# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7029# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7030# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7031# OS/2's system install, which has a completely different semantic
7032# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007033{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7034echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007035if test -z "$INSTALL"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007036if test "${ac_cv_path_install+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007038else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007044 # Account for people who put trailing slashes in PATH elements.
7045case $as_dir/ in
7046 ./ | .// | /cC/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007047 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007048 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007049 /usr/ucb/* ) ;;
7050 *)
7051 # OSF1 and SCO ODT 3.0 have their own names for install.
7052 # Don't use installbsd from OSF since it installs stuff as root
7053 # by default.
7054 for ac_prog in ginstall scoinst install; do
7055 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007056 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 +00007057 if test $ac_prog = install &&
7058 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7059 # AIX install. It has an incompatible calling convention.
7060 :
7061 elif test $ac_prog = install &&
7062 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7063 # program-specific install script used by HP pwplus--don't use.
7064 :
7065 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007066 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7067 break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007068 fi
7069 fi
7070 done
7071 done
7072 ;;
7073esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007074done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007075IFS=$as_save_IFS
7076
7077
7078fi
7079 if test "${ac_cv_path_install+set}" = set; then
7080 INSTALL=$ac_cv_path_install
7081 else
7082 # As a last resort, use the slow shell script. Don't cache a
7083 # value for INSTALL within a source directory, because that will
7084 # break other packages using the cache if that directory is
7085 # removed, or if the value is a relative name.
7086 INSTALL=$ac_install_sh
7087 fi
7088fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007089{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7090echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007091
7092# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7093# It thinks the first close brace ends the variable substitution.
7094test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7095
7096test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7097
7098test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7099
Eric Christophere3befc72010-07-22 21:13:48 +00007100case "$INSTALL" in
7101 [\\/$]* | ?:[\\/]* ) ;;
7102 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7103esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007104
7105# Extract the first word of "bzip2", so it can be a program name with args.
7106set dummy bzip2; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109if test "${ac_cv_path_BZIP2+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007111else
7112 case $BZIP2 in
7113 [\\/]* | ?:[\\/]*)
7114 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7115 ;;
7116 *)
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 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 +00007124 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007126 break 2
7127 fi
7128done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007129done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007130IFS=$as_save_IFS
7131
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007132 ;;
7133esac
7134fi
7135BZIP2=$ac_cv_path_BZIP2
7136if test -n "$BZIP2"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007137 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7138echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007139else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007140 { echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007142fi
7143
7144
mike-me08af302010-05-06 23:45:43 +00007145# Extract the first word of "cat", so it can be a program name with args.
7146set dummy cat; ac_word=$2
7147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149if test "${ac_cv_path_CAT+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 case $CAT in
7153 [\\/]* | ?:[\\/]*)
7154 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7155 ;;
7156 *)
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 break 2
7167 fi
7168done
7169done
7170IFS=$as_save_IFS
7171
7172 ;;
7173esac
7174fi
7175CAT=$ac_cv_path_CAT
7176if test -n "$CAT"; then
7177 { echo "$as_me:$LINENO: result: $CAT" >&5
7178echo "${ECHO_T}$CAT" >&6; }
7179else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
7182fi
7183
7184
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007185# Extract the first word of "doxygen", so it can be a program name with args.
7186set dummy doxygen; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189if test "${ac_cv_path_DOXYGEN+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007191else
7192 case $DOXYGEN in
7193 [\\/]* | ?:[\\/]*)
7194 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7195 ;;
7196 *)
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 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 +00007204 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007206 break 2
7207 fi
7208done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007209done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007210IFS=$as_save_IFS
7211
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007212 ;;
7213esac
7214fi
7215DOXYGEN=$ac_cv_path_DOXYGEN
7216if test -n "$DOXYGEN"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007217 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7218echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007219else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007220 { echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007222fi
7223
7224
Daniel Dunbard1888822012-05-08 18:26:07 +00007225# Extract the first word of "groff", so it can be a program name with args.
7226set dummy groff; ac_word=$2
7227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229if test "${ac_cv_path_GROFF+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 case $GROFF in
7233 [\\/]* | ?:[\\/]*)
7234 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7235 ;;
7236 *)
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7247 fi
7248done
7249done
7250IFS=$as_save_IFS
7251
7252 ;;
7253esac
7254fi
7255GROFF=$ac_cv_path_GROFF
7256if test -n "$GROFF"; then
7257 { echo "$as_me:$LINENO: result: $GROFF" >&5
7258echo "${ECHO_T}$GROFF" >&6; }
7259else
7260 { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
7262fi
7263
7264
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007265# Extract the first word of "gzip", so it can be a program name with args.
7266set dummy gzip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher77560892010-12-10 01:31:51 +00007269if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007271else
Eric Christopher77560892010-12-10 01:31:51 +00007272 case $GZIPBIN in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007273 [\\/]* | ?:[\\/]*)
Eric Christopher77560892010-12-10 01:31:51 +00007274 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007275 ;;
7276 *)
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 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 +00007284 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007286 break 2
7287 fi
7288done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007289done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007290IFS=$as_save_IFS
7291
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007292 ;;
7293esac
7294fi
Eric Christopher77560892010-12-10 01:31:51 +00007295GZIPBIN=$ac_cv_path_GZIPBIN
7296if test -n "$GZIPBIN"; then
7297 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7298echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007299else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007300 { echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007302fi
7303
7304
Daniel Dunbard1888822012-05-08 18:26:07 +00007305# Extract the first word of "pdfroff", so it can be a program name with args.
7306set dummy pdfroff; ac_word=$2
7307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7309if test "${ac_cv_path_PDFROFF+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 case $PDFROFF in
7313 [\\/]* | ?:[\\/]*)
7314 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7315 ;;
7316 *)
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328done
7329done
7330IFS=$as_save_IFS
7331
7332 ;;
7333esac
7334fi
7335PDFROFF=$ac_cv_path_PDFROFF
7336if test -n "$PDFROFF"; then
7337 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7338echo "${ECHO_T}$PDFROFF" >&6; }
7339else
7340 { echo "$as_me:$LINENO: result: no" >&5
7341echo "${ECHO_T}no" >&6; }
7342fi
7343
7344
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007345# Extract the first word of "zip", so it can be a program name with args.
7346set dummy zip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349if test "${ac_cv_path_ZIP+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007351else
7352 case $ZIP in
7353 [\\/]* | ?:[\\/]*)
7354 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7355 ;;
7356 *)
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 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 +00007364 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007366 break 2
7367 fi
7368done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007369done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007370IFS=$as_save_IFS
7371
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007372 ;;
7373esac
7374fi
7375ZIP=$ac_cv_path_ZIP
7376if test -n "$ZIP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007377 { echo "$as_me:$LINENO: result: $ZIP" >&5
7378echo "${ECHO_T}$ZIP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007379else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007380 { echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007382fi
7383
7384
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007385for ac_prog in ocamlc
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007386do
7387 # Extract the first word of "$ac_prog", so it can be a program name with args.
7388set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391if test "${ac_cv_path_OCAMLC+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007393else
7394 case $OCAMLC in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7397 ;;
7398 *)
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 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 +00007406 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007408 break 2
7409 fi
7410done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007411done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007412IFS=$as_save_IFS
7413
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007414 ;;
7415esac
7416fi
7417OCAMLC=$ac_cv_path_OCAMLC
7418if test -n "$OCAMLC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007419 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7420echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007421else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007422 { echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007424fi
7425
7426
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007427 test -n "$OCAMLC" && break
7428done
7429
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007430for ac_prog in ocamlopt
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007431do
7432 # Extract the first word of "$ac_prog", so it can be a program name with args.
7433set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007438else
7439 case $OCAMLOPT in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 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 +00007451 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007453 break 2
7454 fi
7455done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007456done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007457IFS=$as_save_IFS
7458
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007459 ;;
7460esac
7461fi
7462OCAMLOPT=$ac_cv_path_OCAMLOPT
7463if test -n "$OCAMLOPT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007464 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7465echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007466else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007467 { echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007469fi
7470
7471
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007472 test -n "$OCAMLOPT" && break
7473done
7474
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007475for ac_prog in ocamldep
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007476do
7477 # Extract the first word of "$ac_prog", so it can be a program name with args.
7478set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksend1e16452007-09-20 16:48:18 +00007483else
7484 case $OCAMLDEP in
7485 [\\/]* | ?:[\\/]*)
7486 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7487 ;;
7488 *)
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 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 +00007496 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksend1e16452007-09-20 16:48:18 +00007498 break 2
7499 fi
7500done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007501done
Gordon Henriksend1e16452007-09-20 16:48:18 +00007502IFS=$as_save_IFS
7503
Gordon Henriksend1e16452007-09-20 16:48:18 +00007504 ;;
7505esac
7506fi
7507OCAMLDEP=$ac_cv_path_OCAMLDEP
7508if test -n "$OCAMLDEP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007509 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7510echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007511else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007512 { echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007514fi
7515
7516
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007517 test -n "$OCAMLDEP" && break
7518done
7519
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007520for ac_prog in ocamldoc
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007521do
7522 # Extract the first word of "$ac_prog", so it can be a program name with args.
7523set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007528else
7529 case $OCAMLDOC in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 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 +00007541 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007543 break 2
7544 fi
7545done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007546done
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007547IFS=$as_save_IFS
7548
7549 ;;
7550esac
7551fi
7552OCAMLDOC=$ac_cv_path_OCAMLDOC
7553if test -n "$OCAMLDOC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007554 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7555echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007556else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007557 { echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007559fi
7560
7561
7562 test -n "$OCAMLDOC" && break
7563done
7564
Daniel Dunbard1888822012-05-08 18:26:07 +00007565for ac_prog in gas as
7566do
7567 # Extract the first word of "$ac_prog", so it can be a program name with args.
7568set dummy $ac_prog; ac_word=$2
7569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571if test "${ac_cv_path_GAS+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573else
7574 case $GAS in
7575 [\\/]* | ?:[\\/]*)
7576 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7577 ;;
7578 *)
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7586 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7589 fi
7590done
7591done
7592IFS=$as_save_IFS
7593
7594 ;;
7595esac
7596fi
7597GAS=$ac_cv_path_GAS
7598if test -n "$GAS"; then
7599 { echo "$as_me:$LINENO: result: $GAS" >&5
7600echo "${ECHO_T}$GAS" >&6; }
7601else
7602 { echo "$as_me:$LINENO: result: no" >&5
7603echo "${ECHO_T}no" >&6; }
7604fi
7605
7606
7607 test -n "$GAS" && break
7608done
7609
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007610
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007611{ echo "$as_me:$LINENO: checking for linker version" >&5
7612echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7613if test "${llvm_cv_link_version+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616
7617 version_string="$(ld -v 2>&1 | head -1)"
7618
7619 # Check for ld64.
7620 if (echo "$version_string" | grep -q "ld64"); then
Charles Davise56294d2012-02-28 02:55:41 +00007621 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007622 else
7623 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7624 fi
7625
7626fi
7627{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7628echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7629
7630cat >>confdefs.h <<_ACEOF
7631#define HOST_LINK_VERSION "$llvm_cv_link_version"
7632_ACEOF
7633
7634
7635
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007636
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007637{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7638echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7639if test "${llvm_cv_link_use_r+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007641else
7642 ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648 oldcflags="$CFLAGS"
7649 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007650 cat >conftest.$ac_ext <<_ACEOF
7651/* confdefs.h. */
7652_ACEOF
7653cat confdefs.h >>conftest.$ac_ext
7654cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007655/* end confdefs.h. */
7656
7657int
7658main ()
7659{
Dan Gohmana1c94042010-04-25 00:12:20 +00007660
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007661 ;
7662 return 0;
7663}
7664_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007665rm -f conftest.$ac_objext conftest$ac_exeext
7666if { (ac_try="$ac_link"
7667case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670esac
7671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_link") 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7680 { (case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7683esac
7684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_try") 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest$ac_exeext'
7690 { (case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693esac
7694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_try") 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007699 llvm_cv_link_use_r=yes
7700else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007701 echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 llvm_cv_link_use_r=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007705fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007706
Bill Wendling02b47d92009-04-18 11:20:33 +00007707rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007708 conftest$ac_exeext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007709 CFLAGS="$oldcflags"
7710 ac_ext=c
7711ac_cpp='$CPP $CPPFLAGS'
7712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716
7717fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007718{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7719echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007720if test "$llvm_cv_link_use_r" = yes ; then
7721
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007722cat >>confdefs.h <<\_ACEOF
7723#define HAVE_LINK_R 1
7724_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007725
7726 fi
7727
7728
Bob Wilson8d7e6902013-08-02 22:51:11 +00007729{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7730echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007731if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007733else
7734 ac_ext=c
7735ac_cpp='$CPP $CPPFLAGS'
7736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740 oldcflags="$CFLAGS"
Bob Wilson8d7e6902013-08-02 22:51:11 +00007741 CFLAGS="$CFLAGS -rdynamic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007742 cat >conftest.$ac_ext <<_ACEOF
7743/* confdefs.h. */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007747/* end confdefs.h. */
7748
7749int
7750main ()
7751{
Dan Gohmana1c94042010-04-25 00:12:20 +00007752
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007753 ;
7754 return 0;
7755}
7756_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007757rm -f conftest.$ac_objext conftest$ac_exeext
7758if { (ac_try="$ac_link"
7759case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762esac
7763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7772 { (case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775esac
7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_try") 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; } &&
7781 { ac_try='test -s conftest$ac_exeext'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
7786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_try") 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007791 llvm_cv_link_use_export_dynamic=yes
7792else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007793 echo "$as_me: failed program was:" >&5
7794sed 's/^/| /' conftest.$ac_ext >&5
7795
7796 llvm_cv_link_use_export_dynamic=no
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007797fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007798
Bill Wendling02b47d92009-04-18 11:20:33 +00007799rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007800 conftest$ac_exeext conftest.$ac_ext
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007801 CFLAGS="$oldcflags"
7802 ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808
7809fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007810{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7811echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007812if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7813
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007814cat >>confdefs.h <<\_ACEOF
7815#define HAVE_LINK_EXPORT_DYNAMIC 1
7816_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007817
7818 fi
7819
7820
Dan Gohmanb7edb422010-06-01 14:56:56 +00007821{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7822echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7823if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohmanfe051a52010-04-16 22:59:06 +00007824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826 ac_ext=c
7827ac_cpp='$CPP $CPPFLAGS'
7828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831
7832 oldcflags="$CFLAGS"
7833
7834 # The following code is from the autoconf manual,
7835 # "11.13: Limitations of Usual Tools".
7836 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7837 # Use mktemp if possible; otherwise fall back on mkdir,
7838 # with $RANDOM to make collisions less likely.
7839 : ${TMPDIR=/tmp}
7840 {
7841 tmp=`
7842 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7843 ` &&
7844 test -n "$tmp" && test -d "$tmp"
7845 } || {
7846 tmp=$TMPDIR/foo$$-$RANDOM
7847 (umask 077 && mkdir "$tmp")
7848 } || exit $?
7849
Dan Gohmanb7edb422010-06-01 14:56:56 +00007850 echo "{" > "$tmp/export.map"
7851 echo " global: main;" >> "$tmp/export.map"
7852 echo " local: *;" >> "$tmp/export.map"
7853 echo "};" >> "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007854
Dan Gohmanb7edb422010-06-01 14:56:56 +00007855 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007856 cat >conftest.$ac_ext <<_ACEOF
7857/* confdefs.h. */
7858_ACEOF
7859cat confdefs.h >>conftest.$ac_ext
7860cat >>conftest.$ac_ext <<_ACEOF
7861/* end confdefs.h. */
7862
7863int
7864main ()
7865{
Dan Gohmana1c94042010-04-25 00:12:20 +00007866
Dan Gohmanfe051a52010-04-16 22:59:06 +00007867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext conftest$ac_exeext
7872if { (ac_try="$ac_link"
7873case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876esac
7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_link") 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7886 { (case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_try") 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest$ac_exeext'
7896 { (case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899esac
7900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_try") 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
Dan Gohmanb7edb422010-06-01 14:56:56 +00007905 llvm_cv_link_use_version_script=yes
Dan Gohmanfe051a52010-04-16 22:59:06 +00007906else
7907 echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
Dan Gohmanc6998312010-06-01 16:22:27 +00007910 llvm_cv_link_use_version_script=no
Dan Gohmanfe051a52010-04-16 22:59:06 +00007911fi
7912
7913rm -f core conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanb7edb422010-06-01 14:56:56 +00007915 rm "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00007916 rmdir "$tmp"
7917 CFLAGS="$oldcflags"
7918 ac_ext=c
7919ac_cpp='$CPP $CPPFLAGS'
7920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7922ac_compiler_gnu=$ac_cv_c_compiler_gnu
7923
7924
7925fi
Dan Gohmanb7edb422010-06-01 14:56:56 +00007926{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7927echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7928if test "$llvm_cv_link_use_version_script" = yes ; then
7929 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohmanfe051a52010-04-16 22:59:06 +00007930
7931 fi
7932
7933
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007934
Eric Christopherd7ed36b2014-01-09 01:09:57 +00007935{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7936echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7937if test "${ac_cv_path_GREP+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939else
7940 # Extract the first word of "grep ggrep" to use in msg output
7941if test -z "$GREP"; then
7942set dummy grep ggrep; ac_prog_name=$2
7943if test "${ac_cv_path_GREP+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 ac_path_GREP_found=false
7947# Loop through the user's path and test for each of PROGNAME-LIST
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7950do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_prog in grep ggrep; do
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7956 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7957 # Check for GNU ac_path_GREP and select it if it is found.
7958 # Check for GNU $ac_path_GREP
7959case `"$ac_path_GREP" --version 2>&1` in
7960*GNU*)
7961 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7962*)
7963 ac_count=0
7964 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7965 while :
7966 do
7967 cat "conftest.in" "conftest.in" >"conftest.tmp"
7968 mv "conftest.tmp" "conftest.in"
7969 cp "conftest.in" "conftest.nl"
7970 echo 'GREP' >> "conftest.nl"
7971 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7973 ac_count=`expr $ac_count + 1`
7974 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7975 # Best one so far, save it but keep looking for a better one
7976 ac_cv_path_GREP="$ac_path_GREP"
7977 ac_path_GREP_max=$ac_count
7978 fi
7979 # 10*(2^10) chars as input seems more than enough
7980 test $ac_count -gt 10 && break
7981 done
7982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7983esac
7984
7985
7986 $ac_path_GREP_found && break 3
7987 done
7988done
7989
7990done
7991IFS=$as_save_IFS
7992
7993
7994fi
7995
7996GREP="$ac_cv_path_GREP"
7997if test -z "$GREP"; then
7998 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7999echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8000 { (exit 1); exit 1; }; }
8001fi
8002
8003else
8004 ac_cv_path_GREP=$GREP
8005fi
8006
8007
8008fi
8009{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8010echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8011 GREP="$ac_cv_path_GREP"
8012
8013
8014{ echo "$as_me:$LINENO: checking for egrep" >&5
8015echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8016if test "${ac_cv_path_EGREP+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018else
8019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8020 then ac_cv_path_EGREP="$GREP -E"
8021 else
8022 # Extract the first word of "egrep" to use in msg output
8023if test -z "$EGREP"; then
8024set dummy egrep; ac_prog_name=$2
8025if test "${ac_cv_path_EGREP+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028 ac_path_EGREP_found=false
8029# Loop through the user's path and test for each of PROGNAME-LIST
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8032do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_prog in egrep; do
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8038 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8039 # Check for GNU ac_path_EGREP and select it if it is found.
8040 # Check for GNU $ac_path_EGREP
8041case `"$ac_path_EGREP" --version 2>&1` in
8042*GNU*)
8043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8044*)
8045 ac_count=0
8046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8047 while :
8048 do
8049 cat "conftest.in" "conftest.in" >"conftest.tmp"
8050 mv "conftest.tmp" "conftest.in"
8051 cp "conftest.in" "conftest.nl"
8052 echo 'EGREP' >> "conftest.nl"
8053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8055 ac_count=`expr $ac_count + 1`
8056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8057 # Best one so far, save it but keep looking for a better one
8058 ac_cv_path_EGREP="$ac_path_EGREP"
8059 ac_path_EGREP_max=$ac_count
8060 fi
8061 # 10*(2^10) chars as input seems more than enough
8062 test $ac_count -gt 10 && break
8063 done
8064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8065esac
8066
8067
8068 $ac_path_EGREP_found && break 3
8069 done
8070done
8071
8072done
8073IFS=$as_save_IFS
8074
8075
8076fi
8077
8078EGREP="$ac_cv_path_EGREP"
8079if test -z "$EGREP"; then
8080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8081echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8082 { (exit 1); exit 1; }; }
8083fi
8084
8085else
8086 ac_cv_path_EGREP=$EGREP
8087fi
8088
8089
8090 fi
8091fi
8092{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8093echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8094 EGREP="$ac_cv_path_EGREP"
8095
8096
8097{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8098echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8099if test "${ac_cv_header_stdc+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101else
8102 cat >conftest.$ac_ext <<_ACEOF
8103/* confdefs.h. */
8104_ACEOF
8105cat confdefs.h >>conftest.$ac_ext
8106cat >>conftest.$ac_ext <<_ACEOF
8107/* end confdefs.h. */
8108#include <stdlib.h>
8109#include <stdarg.h>
8110#include <string.h>
8111#include <float.h>
8112
8113int
8114main ()
8115{
8116
8117 ;
8118 return 0;
8119}
8120_ACEOF
8121rm -f conftest.$ac_objext
8122if { (ac_try="$ac_compile"
8123case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8126esac
8127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_compile") 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8136 { (case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139esac
8140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_try") 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; } &&
8145 { ac_try='test -s conftest.$ac_objext'
8146 { (case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149esac
8150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_try") 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_cv_header_stdc=yes
8156else
8157 echo "$as_me: failed program was:" >&5
8158sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 ac_cv_header_stdc=no
8161fi
8162
8163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164
8165if test $ac_cv_header_stdc = yes; then
8166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8167 cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
8173#include <string.h>
8174
8175_ACEOF
8176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8177 $EGREP "memchr" >/dev/null 2>&1; then
8178 :
8179else
8180 ac_cv_header_stdc=no
8181fi
8182rm -f conftest*
8183
8184fi
8185
8186if test $ac_cv_header_stdc = yes; then
8187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8188 cat >conftest.$ac_ext <<_ACEOF
8189/* confdefs.h. */
8190_ACEOF
8191cat confdefs.h >>conftest.$ac_ext
8192cat >>conftest.$ac_ext <<_ACEOF
8193/* end confdefs.h. */
8194#include <stdlib.h>
8195
8196_ACEOF
8197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8198 $EGREP "free" >/dev/null 2>&1; then
8199 :
8200else
8201 ac_cv_header_stdc=no
8202fi
8203rm -f conftest*
8204
8205fi
8206
8207if test $ac_cv_header_stdc = yes; then
8208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8209 if test "$cross_compiling" = yes; then
8210 :
8211else
8212 cat >conftest.$ac_ext <<_ACEOF
8213/* confdefs.h. */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h. */
8218#include <ctype.h>
8219#include <stdlib.h>
8220#if ((' ' & 0x0FF) == 0x020)
8221# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8222# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8223#else
8224# define ISLOWER(c) \
8225 (('a' <= (c) && (c) <= 'i') \
8226 || ('j' <= (c) && (c) <= 'r') \
8227 || ('s' <= (c) && (c) <= 'z'))
8228# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8229#endif
8230
8231#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8232int
8233main ()
8234{
8235 int i;
8236 for (i = 0; i < 256; i++)
8237 if (XOR (islower (i), ISLOWER (i))
8238 || toupper (i) != TOUPPER (i))
8239 return 2;
8240 return 0;
8241}
8242_ACEOF
8243rm -f conftest$ac_exeext
8244if { (ac_try="$ac_link"
8245case "(($ac_try" in
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8248esac
8249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_link") 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8254 { (case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257esac
8258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_try") 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 :
8264else
8265 echo "$as_me: program exited with status $ac_status" >&5
8266echo "$as_me: failed program was:" >&5
8267sed 's/^/| /' conftest.$ac_ext >&5
8268
8269( exit $ac_status )
8270ac_cv_header_stdc=no
8271fi
8272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8273fi
8274
8275
8276fi
8277fi
8278{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8279echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8280if test $ac_cv_header_stdc = yes; then
8281
8282cat >>confdefs.h <<\_ACEOF
8283#define STDC_HEADERS 1
8284_ACEOF
8285
8286fi
8287
Eric Christopherd7ed36b2014-01-09 01:09:57 +00008288# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8299 inttypes.h stdint.h unistd.h
8300do
8301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306else
8307 cat >conftest.$ac_ext <<_ACEOF
8308/* confdefs.h. */
8309_ACEOF
8310cat confdefs.h >>conftest.$ac_ext
8311cat >>conftest.$ac_ext <<_ACEOF
8312/* end confdefs.h. */
8313$ac_includes_default
8314
8315#include <$ac_header>
8316_ACEOF
8317rm -f conftest.$ac_objext
8318if { (ac_try="$ac_compile"
8319case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8322esac
8323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324 (eval "$ac_compile") 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8332 { (case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335esac
8336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_try") 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest.$ac_objext'
8342 { (case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8345esac
8346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_try") 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 eval "$as_ac_Header=yes"
8352else
8353 echo "$as_me: failed program was:" >&5
8354sed 's/^/| /' conftest.$ac_ext >&5
8355
8356 eval "$as_ac_Header=no"
8357fi
8358
8359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360fi
8361ac_res=`eval echo '${'$as_ac_Header'}'`
8362 { echo "$as_me:$LINENO: result: $ac_res" >&5
8363echo "${ECHO_T}$ac_res" >&6; }
8364if test `eval echo '${'$as_ac_Header'}'` = yes; then
8365 cat >>confdefs.h <<_ACEOF
8366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8367_ACEOF
8368
8369fi
8370
8371done
8372
8373
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008374
Rafael Espindolafd1355a2014-02-28 18:17:54 +00008375for ac_header in errno.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008376do
8377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383fi
8384ac_res=`eval echo '${'$as_ac_Header'}'`
8385 { echo "$as_me:$LINENO: result: $ac_res" >&5
8386echo "${ECHO_T}$ac_res" >&6; }
8387else
8388 # Is the header compilable?
8389{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8391cat >conftest.$ac_ext <<_ACEOF
8392/* confdefs.h. */
8393_ACEOF
8394cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h. */
8397$ac_includes_default
8398#include <$ac_header>
8399_ACEOF
8400rm -f conftest.$ac_objext
8401if { (ac_try="$ac_compile"
8402case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405esac
8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8415 { (case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8418esac
8419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_try") 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428esac
8429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_try") 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_header_compiler=yes
8435else
8436 echo "$as_me: failed program was:" >&5
8437sed 's/^/| /' conftest.$ac_ext >&5
8438
8439 ac_header_compiler=no
8440fi
8441
8442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8444echo "${ECHO_T}$ac_header_compiler" >&6; }
8445
8446# Is the header present?
8447{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8449cat >conftest.$ac_ext <<_ACEOF
8450/* confdefs.h. */
8451_ACEOF
8452cat confdefs.h >>conftest.$ac_ext
8453cat >>conftest.$ac_ext <<_ACEOF
8454/* end confdefs.h. */
8455#include <$ac_header>
8456_ACEOF
8457if { (ac_try="$ac_cpp conftest.$ac_ext"
8458case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461esac
8462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } >/dev/null; then
8470 if test -s conftest.err; then
8471 ac_cpp_err=$ac_c_preproc_warn_flag
8472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8473 else
8474 ac_cpp_err=
8475 fi
8476else
8477 ac_cpp_err=yes
8478fi
8479if test -z "$ac_cpp_err"; then
8480 ac_header_preproc=yes
8481else
8482 echo "$as_me: failed program was:" >&5
8483sed 's/^/| /' conftest.$ac_ext >&5
8484
8485 ac_header_preproc=no
8486fi
8487
8488rm -f conftest.err conftest.$ac_ext
8489{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8490echo "${ECHO_T}$ac_header_preproc" >&6; }
8491
8492# So? What about this header?
8493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8494 yes:no: )
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8499 ac_header_preproc=yes
8500 ;;
8501 no:yes:* )
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8514 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +00008515## ------------------------------------ ##
8516## Report this to http://llvm.org/bugs/ ##
8517## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008518_ASBOX
8519 ) | sed "s/^/$as_me: WARNING: /" >&2
8520 ;;
8521esac
8522{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526else
8527 eval "$as_ac_Header=\$ac_header_preproc"
8528fi
8529ac_res=`eval echo '${'$as_ac_Header'}'`
8530 { echo "$as_me:$LINENO: result: $ac_res" >&5
8531echo "${ECHO_T}$ac_res" >&6; }
8532
8533fi
8534if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00008535 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +00008537_ACEOF
8538
8539fi
8540
8541done
8542
8543
Rafael Espindolafd1355a2014-02-28 18:17:54 +00008544case "$llvm_cv_os_type" in
8545 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8546 Darwin) llvm_shlib_ext=.dylib ;;
8547 *) llvm_shlib_ext=.so ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008548esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008549
Reid Spencera40c6872004-11-29 12:29:58 +00008550
8551cat >>confdefs.h <<_ACEOF
Rafael Espindolafd1355a2014-02-28 18:17:54 +00008552#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
Reid Spencera40c6872004-11-29 12:29:58 +00008553_ACEOF
8554
8555
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008556{ echo "$as_me:$LINENO: checking tool compatibility" >&5
8557echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00008558
Reid Spencerca06c8e2004-12-08 23:07:27 +00008559ICC=no
8560IXX=no
8561case $CC in
8562 icc*|icpc*)
8563 ICC=yes
8564 IXX=yes
8565 ;;
8566 *)
8567 ;;
8568esac
8569
Duraid Madina8604de82006-02-15 07:57:42 +00008570if test "$GCC" != "yes" && test "$ICC" != "yes"
8571then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008572 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8573echo "$as_me: error: gcc|icc required but not found" >&2;}
8574 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +00008575fi
8576
8577if test "$GXX" != "yes" && test "$IXX" != "yes"
8578then
Eric Christopher8d842da2010-12-08 02:02:14 +00008579 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8580echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008581 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +00008582fi
8583
Reid Spencerca06c8e2004-12-08 23:07:27 +00008584if test "$GCC" = "yes"
8585then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008586 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +00008587
8588 /* confdefs.h. */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h. */
8593
8594 #if !defined(__GNUC__) || __GNUC__ < 3
8595 #error Unsupported GCC version
8596 #endif
8597
Chris Lattnere115fb52008-02-05 19:43:53 +00008598
8599_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008600rm -f conftest.$ac_objext
8601if { (ac_try="$ac_compile"
8602case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8605esac
8606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_compile") 2>conftest.er1
8608 ac_status=$?
8609 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } &&
8614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8615 { (case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618esac
8619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_try") 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8628esac
8629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_try") 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 :
Chris Lattnere115fb52008-02-05 19:43:53 +00008635else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008636 echo "$as_me: failed program was:" >&5
8637sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8640echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8641 { (exit 1); exit 1; }; }
Chris Lattnere115fb52008-02-05 19:43:53 +00008642fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008643
Chris Lattnere115fb52008-02-05 19:43:53 +00008644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00008645fi
8646
8647if test -z "$llvm_cv_gnu_make_command"
8648then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008649 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8650echo "$as_me: error: GNU Make required but not found" >&2;}
8651 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00008652fi
8653
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008654{ echo "$as_me:$LINENO: result: ok" >&5
8655echo "${ECHO_T}ok" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00008656
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008657{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
8658echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithf89ffcd2013-02-08 22:55:10 +00008659NO_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 +00008660
Richard Smithf89ffcd2013-02-08 22:55:10 +00008661NO_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 +00008662
Rafael Espindola42e94d12012-02-28 23:32:06 +00008663COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8664
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008665
8666NO_UNINITIALIZED=
8667NO_MAYBE_UNINITIALIZED=
David Greene9ff8d472013-01-09 22:11:13 +00008668if test "$GXX" = "yes"
8669then
Richard Smithf89ffcd2013-02-08 22:55:10 +00008670 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 +00008671
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008672 if test -z "$NO_MAYBE_UNINITIALIZED"
David Greene9ff8d472013-01-09 22:11:13 +00008673 then
Richard Smithf89ffcd2013-02-08 22:55:10 +00008674 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +00008675
David Greene9ff8d472013-01-09 22:11:13 +00008676 fi
David Greene9ff8d472013-01-09 22:11:13 +00008677fi
Eric Christopher31f43542013-03-15 00:43:00 +00008678{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8679echo "${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 +00008680
Julien Lerougeb614dd32009-10-26 20:00:35 +00008681
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008682# Check whether --with-python was given.
8683if test "${with_python+set}" = set; then
8684 withval=$with_python; PYTHON="$withval"
8685fi
8686
8687
8688if test -n "$PYTHON" && test -x "$PYTHON" ; then
8689 { echo "$as_me:$LINENO: checking for python" >&5
8690echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8691 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8692echo "${ECHO_T}user defined: $with_python" >&6; }
8693else
8694 if test -n "$PYTHON" ; then
8695 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8696echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8697 fi
8698
8699 # Extract the first word of "python python2 python26", so it can be a program name with args.
8700set dummy python python2 python26; ac_word=$2
8701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8703if test "${ac_cv_path_PYTHON+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705else
8706 case $PYTHON in
8707 [\\/]* | ?:[\\/]*)
8708 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8709 ;;
8710 *)
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712for as_dir in $PATH
8713do
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8718 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8721 fi
8722done
8723done
8724IFS=$as_save_IFS
8725
8726 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8727echo "${ECHO_T}not found" >&6; }
8728 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8729echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8730 { (exit 1); exit 1; }; }"
8731 ;;
8732esac
8733fi
8734PYTHON=$ac_cv_path_PYTHON
8735if test -n "$PYTHON"; then
8736 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8737echo "${ECHO_T}$PYTHON" >&6; }
8738else
8739 { echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6; }
8741fi
8742
8743
8744fi
8745
8746{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8747echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
Bill Wendling58463e4e82013-10-12 08:42:59 +00008748ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008749ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8750ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8751ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
Bill Wendling58463e4e82013-10-12 08:42:59 +00008752if test "$ac_python_version_major" -gt "2" || \
8753 (test "$ac_python_version_major" -eq "2" && \
8754 test "$ac_python_version_minor" -ge "5") ; then
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00008755 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8756echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8757else
8758 { echo "$as_me:$LINENO: result: not found" >&5
8759echo "${ECHO_T}not found" >&6; }
8760 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8761See \`config.log' for more details." >&5
8762echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8763See \`config.log' for more details." >&2;}
8764 { (exit 1); exit 1; }; }
8765fi
8766
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00008767
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008768
8769{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
8770echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8771if test "${ac_cv_lib_m_sin+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerec4a7f522006-01-19 08:31:08 +00008773else
8774 ac_check_lib_save_LIBS=$LIBS
8775LIBS="-lm $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008776cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerec4a7f522006-01-19 08:31:08 +00008781/* end confdefs.h. */
8782
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008783/* Override any GCC internal prototype to avoid an error.
8784 Use char because int might match the return type of a GCC
8785 builtin and then its argument prototype would still apply. */
Reid Spencerec4a7f522006-01-19 08:31:08 +00008786#ifdef __cplusplus
8787extern "C"
8788#endif
Reid Spencerec4a7f522006-01-19 08:31:08 +00008789char sin ();
8790int
8791main ()
8792{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008793return sin ();
Reid Spencerec4a7f522006-01-19 08:31:08 +00008794 ;
8795 return 0;
8796}
8797_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008798rm -f conftest.$ac_objext conftest$ac_exeext
8799if { (ac_try="$ac_link"
8800case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803esac
8804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_link") 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816esac
8817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest$ac_exeext'
8823 { (case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826esac
8827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_try") 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
Reid Spencerec4a7f522006-01-19 08:31:08 +00008832 ac_cv_lib_m_sin=yes
8833else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008834 echo "$as_me: failed program was:" >&5
8835sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 ac_cv_lib_m_sin=no
Reid Spencerec4a7f522006-01-19 08:31:08 +00008838fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008839
Bill Wendling02b47d92009-04-18 11:20:33 +00008840rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008841 conftest$ac_exeext conftest.$ac_ext
Reid Spencerec4a7f522006-01-19 08:31:08 +00008842LIBS=$ac_check_lib_save_LIBS
8843fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008844{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8845echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8846if test $ac_cv_lib_m_sin = yes; then
Reid Spencerec4a7f522006-01-19 08:31:08 +00008847 cat >>confdefs.h <<_ACEOF
8848#define HAVE_LIBM 1
8849_ACEOF
8850
8851 LIBS="-lm $LIBS"
8852
8853fi
8854
Jeff Cohenc5e5b272007-01-12 18:22:38 +00008855if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008856
8857{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8858echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8859if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +00008861else
8862 ac_check_lib_save_LIBS=$LIBS
8863LIBS="-limagehlp $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008864cat >conftest.$ac_ext <<_ACEOF
8865/* confdefs.h. */
8866_ACEOF
8867cat confdefs.h >>conftest.$ac_ext
8868cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +00008869/* end confdefs.h. */
8870
Reid Spencer187b4ad2006-06-01 19:03:21 +00008871
Reid Spencera16b9862006-06-01 16:55:59 +00008872int
8873main ()
8874{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008875return main ();
Reid Spencera16b9862006-06-01 16:55:59 +00008876 ;
8877 return 0;
8878}
8879_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008880rm -f conftest.$ac_objext conftest$ac_exeext
8881if { (ac_try="$ac_link"
8882case "(($ac_try" in
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8885esac
8886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_link") 2>conftest.er1
8888 ac_status=$?
8889 grep -v '^ *+' conftest.er1 >conftest.err
8890 rm -f conftest.er1
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } &&
8894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8895 { (case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8898esac
8899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_try") 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; } &&
8904 { ac_try='test -s conftest$ac_exeext'
8905 { (case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908esac
8909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_try") 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +00008914 ac_cv_lib_imagehlp_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +00008915else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008916 echo "$as_me: failed program was:" >&5
8917sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 ac_cv_lib_imagehlp_main=no
Reid Spencera16b9862006-06-01 16:55:59 +00008920fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008921
Bill Wendling02b47d92009-04-18 11:20:33 +00008922rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008923 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +00008924LIBS=$ac_check_lib_save_LIBS
8925fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008926{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8927echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8928if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +00008929 cat >>confdefs.h <<_ACEOF
8930#define HAVE_LIBIMAGEHLP 1
8931_ACEOF
8932
8933 LIBS="-limagehlp $LIBS"
8934
8935fi
8936
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008937
8938{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8939echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8940if test "${ac_cv_lib_psapi_main+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +00008942else
8943 ac_check_lib_save_LIBS=$LIBS
8944LIBS="-lpsapi $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008945cat >conftest.$ac_ext <<_ACEOF
8946/* confdefs.h. */
8947_ACEOF
8948cat confdefs.h >>conftest.$ac_ext
8949cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +00008950/* end confdefs.h. */
8951
Reid Spencer187b4ad2006-06-01 19:03:21 +00008952
Reid Spencera16b9862006-06-01 16:55:59 +00008953int
8954main ()
8955{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008956return main ();
Reid Spencera16b9862006-06-01 16:55:59 +00008957 ;
8958 return 0;
8959}
8960_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008961rm -f conftest.$ac_objext conftest$ac_exeext
8962if { (ac_try="$ac_link"
8963case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966esac
8967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_link") 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8976 { (case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8979esac
8980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_try") 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest$ac_exeext'
8986 { (case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989esac
8990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_try") 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +00008995 ac_cv_lib_psapi_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +00008996else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008997 echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
9000 ac_cv_lib_psapi_main=no
Reid Spencera16b9862006-06-01 16:55:59 +00009001fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009002
Bill Wendling02b47d92009-04-18 11:20:33 +00009003rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009004 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +00009005LIBS=$ac_check_lib_save_LIBS
9006fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009007{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
9008echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
9009if test $ac_cv_lib_psapi_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +00009010 cat >>confdefs.h <<_ACEOF
9011#define HAVE_LIBPSAPI 1
9012_ACEOF
9013
9014 LIBS="-lpsapi $LIBS"
9015
9016fi
9017
David Majnemer61eae2e2013-10-07 01:00:07 +00009018
9019{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
9020echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
9021if test "${ac_cv_lib_shell32_main+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
9024 ac_check_lib_save_LIBS=$LIBS
9025LIBS="-lshell32 $LIBS"
9026cat >conftest.$ac_ext <<_ACEOF
9027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
9032
9033
9034int
9035main ()
9036{
9037return main ();
9038 ;
9039 return 0;
9040}
9041_ACEOF
9042rm -f conftest.$ac_objext conftest$ac_exeext
9043if { (ac_try="$ac_link"
9044case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9047esac
9048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_link") 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9057 { (case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060esac
9061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_try") 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (case "(($ac_try" in
9068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069 *) ac_try_echo=$ac_try;;
9070esac
9071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072 (eval "$ac_try") 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_cv_lib_shell32_main=yes
9077else
9078 echo "$as_me: failed program was:" >&5
9079sed 's/^/| /' conftest.$ac_ext >&5
9080
9081 ac_cv_lib_shell32_main=no
9082fi
9083
9084rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9086LIBS=$ac_check_lib_save_LIBS
9087fi
9088{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9089echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9090if test $ac_cv_lib_shell32_main = yes; then
9091 cat >>confdefs.h <<_ACEOF
9092#define HAVE_LIBSHELL32 1
9093_ACEOF
9094
9095 LIBS="-lshell32 $LIBS"
9096
9097fi
9098
Reid Spencera16b9862006-06-01 16:55:59 +00009099fi
Reid Spencer1aa7d052005-07-12 15:24:20 +00009100
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009101{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9102echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9103if test "${ac_cv_search_dlopen+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00009105else
9106 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009107cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00009112/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00009113
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009114/* Override any GCC internal prototype to avoid an error.
9115 Use char because int might match the return type of a GCC
9116 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +00009117#ifdef __cplusplus
9118extern "C"
9119#endif
John Criswell3ef61af2003-06-30 21:59:07 +00009120char dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +00009121int
9122main ()
9123{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009124return dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +00009125 ;
9126 return 0;
9127}
9128_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009129for ac_lib in '' dl; do
9130 if test -z "$ac_lib"; then
9131 ac_res="none required"
9132 else
9133 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +00009134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009135 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009136 rm -f conftest.$ac_objext conftest$ac_exeext
9137if { (ac_try="$ac_link"
9138case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141esac
9142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_link") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } &&
9150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9151 { (case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9154esac
9155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_try") 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164esac
9165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009170 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009171else
9172 echo "$as_me: failed program was:" >&5
9173sed 's/^/| /' conftest.$ac_ext >&5
9174
9175
John Criswell3ef61af2003-06-30 21:59:07 +00009176fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009177
Bill Wendling02b47d92009-04-18 11:20:33 +00009178rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009179 conftest$ac_exeext
9180 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009181 break
John Criswell3ef61af2003-06-30 21:59:07 +00009182fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009183done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009184if test "${ac_cv_search_dlopen+set}" = set; then
9185 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009186else
9187 ac_cv_search_dlopen=no
9188fi
9189rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00009190LIBS=$ac_func_search_save_LIBS
9191fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009192{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9193echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009194ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009195if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +00009197
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009198
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009199cat >>confdefs.h <<\_ACEOF
9200#define HAVE_DLOPEN 1
9201_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00009202
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009203HAVE_DLOPEN='1'
9204
9205
John Criswell3ef61af2003-06-30 21:59:07 +00009206else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009207 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9208echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00009209fi
9210
9211
Chandler Carruthef7f9682013-01-04 23:19:55 +00009212{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9213echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9214if test "${ac_cv_search_clock_gettime+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216else
9217 ac_func_search_save_LIBS=$LIBS
9218cat >conftest.$ac_ext <<_ACEOF
9219/* confdefs.h. */
9220_ACEOF
9221cat confdefs.h >>conftest.$ac_ext
9222cat >>conftest.$ac_ext <<_ACEOF
9223/* end confdefs.h. */
9224
9225/* Override any GCC internal prototype to avoid an error.
9226 Use char because int might match the return type of a GCC
9227 builtin and then its argument prototype would still apply. */
9228#ifdef __cplusplus
9229extern "C"
9230#endif
9231char clock_gettime ();
9232int
9233main ()
9234{
9235return clock_gettime ();
9236 ;
9237 return 0;
9238}
9239_ACEOF
9240for ac_lib in '' rt; do
9241 if test -z "$ac_lib"; then
9242 ac_res="none required"
9243 else
9244 ac_res=-l$ac_lib
9245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9246 fi
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248if { (ac_try="$ac_link"
9249case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9252esac
9253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_link") 2>conftest.er1
9255 ac_status=$?
9256 grep -v '^ *+' conftest.er1 >conftest.err
9257 rm -f conftest.er1
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9262 { (case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265esac
9266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_try") 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try='test -s conftest$ac_exeext'
9272 { (case "(($ac_try" in
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9275esac
9276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_try") 2>&5
9278 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 ac_cv_search_clock_gettime=$ac_res
9282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286
9287fi
9288
9289rm -f core conftest.err conftest.$ac_objext \
9290 conftest$ac_exeext
9291 if test "${ac_cv_search_clock_gettime+set}" = set; then
9292 break
9293fi
9294done
9295if test "${ac_cv_search_clock_gettime+set}" = set; then
9296 :
9297else
9298 ac_cv_search_clock_gettime=no
9299fi
9300rm conftest.$ac_ext
9301LIBS=$ac_func_search_save_LIBS
9302fi
9303{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9304echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9305ac_res=$ac_cv_search_clock_gettime
9306if test "$ac_res" != no; then
9307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9308
Chandler Carruthef7f9682013-01-04 23:19:55 +00009309fi
9310
9311
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009312if test "$llvm_cv_enable_terminfo" = "yes" ; then
9313 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9314echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9315if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009316 echo $ECHO_N "(cached) $ECHO_C" >&6
9317else
9318 ac_func_search_save_LIBS=$LIBS
9319cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h. */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h. */
9325
9326/* Override any GCC internal prototype to avoid an error.
9327 Use char because int might match the return type of a GCC
9328 builtin and then its argument prototype would still apply. */
9329#ifdef __cplusplus
9330extern "C"
9331#endif
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009332char setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009333int
9334main ()
9335{
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009336return setupterm ();
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009337 ;
9338 return 0;
9339}
9340_ACEOF
Joerg Sonnenberger4e5a3992013-08-17 11:06:00 +00009341for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009342 if test -z "$ac_lib"; then
9343 ac_res="none required"
9344 else
9345 ac_res=-l$ac_lib
9346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9347 fi
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349if { (ac_try="$ac_link"
9350case "(($ac_try" in
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9353esac
9354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355 (eval "$ac_link") 2>conftest.er1
9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } &&
9362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9363 { (case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366esac
9367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_try") 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; } &&
9372 { ac_try='test -s conftest$ac_exeext'
9373 { (case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376esac
9377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_try") 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009382 ac_cv_search_setupterm=$ac_res
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009383else
9384 echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387
9388fi
9389
9390rm -f core conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009392 if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009393 break
9394fi
9395done
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009396if test "${ac_cv_search_setupterm+set}" = set; then
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009397 :
9398else
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009399 ac_cv_search_setupterm=no
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009400fi
9401rm conftest.$ac_ext
9402LIBS=$ac_func_search_save_LIBS
9403fi
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009404{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9405echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9406ac_res=$ac_cv_search_setupterm
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009407if test "$ac_res" != no; then
9408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9409
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009410
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009411cat >>confdefs.h <<\_ACEOF
Chandler Carruthf11f1e42013-08-12 09:49:17 +00009412#define HAVE_TERMINFO 1
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009413_ACEOF
9414
NAKAMURA Takumi84e85302014-02-09 16:36:42 +00009415HAVE_TERMINFO='1'
9416
9417
Chandler Carruthcad7e5e2013-08-07 08:47:36 +00009418fi
9419
9420fi
9421
Peter Collingbournec7d437c2014-01-31 23:46:14 +00009422if test "$llvm_cv_enable_libedit" = "yes" ; then
9423 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9424echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9425if test "${ac_cv_search_el_init+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428 ac_func_search_save_LIBS=$LIBS
9429cat >conftest.$ac_ext <<_ACEOF
9430/* confdefs.h. */
9431_ACEOF
9432cat confdefs.h >>conftest.$ac_ext
9433cat >>conftest.$ac_ext <<_ACEOF
9434/* end confdefs.h. */
9435
9436/* Override any GCC internal prototype to avoid an error.
9437 Use char because int might match the return type of a GCC
9438 builtin and then its argument prototype would still apply. */
9439#ifdef __cplusplus
9440extern "C"
9441#endif
9442char el_init ();
9443int
9444main ()
9445{
9446return el_init ();
9447 ;
9448 return 0;
9449}
9450_ACEOF
9451for ac_lib in '' edit; do
9452 if test -z "$ac_lib"; then
9453 ac_res="none required"
9454 else
9455 ac_res=-l$ac_lib
9456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9457 fi
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459if { (ac_try="$ac_link"
9460case "(($ac_try" in
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9463esac
9464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_link") 2>conftest.er1
9466 ac_status=$?
9467 grep -v '^ *+' conftest.er1 >conftest.err
9468 rm -f conftest.er1
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } &&
9472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9473 { (case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9476esac
9477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_try") 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; } &&
9482 { ac_try='test -s conftest$ac_exeext'
9483 { (case "(($ac_try" in
9484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485 *) ac_try_echo=$ac_try;;
9486esac
9487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488 (eval "$ac_try") 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 ac_cv_search_el_init=$ac_res
9493else
9494 echo "$as_me: failed program was:" >&5
9495sed 's/^/| /' conftest.$ac_ext >&5
9496
9497
9498fi
9499
9500rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext
9502 if test "${ac_cv_search_el_init+set}" = set; then
9503 break
9504fi
9505done
9506if test "${ac_cv_search_el_init+set}" = set; then
9507 :
9508else
9509 ac_cv_search_el_init=no
9510fi
9511rm conftest.$ac_ext
9512LIBS=$ac_func_search_save_LIBS
9513fi
9514{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9515echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9516ac_res=$ac_cv_search_el_init
9517if test "$ac_res" != no; then
9518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9519
9520cat >>confdefs.h <<\_ACEOF
9521#define HAVE_LIBEDIT 1
9522_ACEOF
9523
9524fi
9525
9526fi
9527
Nick Lewycky86679902009-06-06 06:25:09 +00009528if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009529 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9530echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9531if test "${ac_cv_search_ffi_call+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky11e92142009-02-04 06:27:44 +00009533else
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009534 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009535cat >conftest.$ac_ext <<_ACEOF
9536/* confdefs.h. */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +00009540/* end confdefs.h. */
9541
9542/* Override any GCC internal prototype to avoid an error.
9543 Use char because int might match the return type of a GCC
9544 builtin and then its argument prototype would still apply. */
9545#ifdef __cplusplus
9546extern "C"
9547#endif
9548char ffi_call ();
9549int
9550main ()
9551{
9552return ffi_call ();
9553 ;
9554 return 0;
9555}
9556_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009557for ac_lib in '' ffi; do
9558 if test -z "$ac_lib"; then
9559 ac_res="none required"
9560 else
9561 ac_res=-l$ac_lib
9562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9563 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009564 rm -f conftest.$ac_objext conftest$ac_exeext
9565if { (ac_try="$ac_link"
9566case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9569esac
9570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_link") 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9579 { (case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582esac
9583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_try") 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest$ac_exeext'
9589 { (case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592esac
9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_try") 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009598 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009599else
9600 echo "$as_me: failed program was:" >&5
9601sed 's/^/| /' conftest.$ac_ext >&5
9602
9603
Nick Lewycky11e92142009-02-04 06:27:44 +00009604fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009605
Bill Wendling02b47d92009-04-18 11:20:33 +00009606rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009607 conftest$ac_exeext
9608 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009609 break
Nick Lewycky11e92142009-02-04 06:27:44 +00009610fi
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009611done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009612if test "${ac_cv_search_ffi_call+set}" = set; then
9613 :
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009614else
9615 ac_cv_search_ffi_call=no
9616fi
9617rm conftest.$ac_ext
9618LIBS=$ac_func_search_save_LIBS
9619fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009620{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9621echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009622ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009623if test "$ac_res" != no; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9625
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009626cat >>confdefs.h <<\_ACEOF
9627#define HAVE_FFI_CALL 1
9628_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +00009629
Nick Lewycky11e92142009-02-04 06:27:44 +00009630else
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00009631 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9632echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9633 { (exit 1); exit 1; }; }
Nick Lewycky11e92142009-02-04 06:27:44 +00009634fi
9635
Nick Lewycky86679902009-06-06 06:25:09 +00009636fi
Nick Lewycky11e92142009-02-04 06:27:44 +00009637
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009638{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9639echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9640if test "${ac_cv_search_mallinfo+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00009642else
9643 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009644cat >conftest.$ac_ext <<_ACEOF
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00009649/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00009650
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009651/* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +00009654#ifdef __cplusplus
9655extern "C"
9656#endif
John Criswell3ef61af2003-06-30 21:59:07 +00009657char mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +00009658int
9659main ()
9660{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009661return mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +00009662 ;
9663 return 0;
9664}
9665_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009666for ac_lib in '' malloc; do
9667 if test -z "$ac_lib"; then
9668 ac_res="none required"
9669 else
9670 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +00009671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009672 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009673 rm -f conftest.$ac_objext conftest$ac_exeext
9674if { (ac_try="$ac_link"
9675case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678esac
9679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9688 { (case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9691esac
9692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_try") 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try='test -s conftest$ac_exeext'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701esac
9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009707 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009708else
9709 echo "$as_me: failed program was:" >&5
9710sed 's/^/| /' conftest.$ac_ext >&5
9711
9712
John Criswell3ef61af2003-06-30 21:59:07 +00009713fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009714
Bill Wendling02b47d92009-04-18 11:20:33 +00009715rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009716 conftest$ac_exeext
9717 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009718 break
John Criswell3ef61af2003-06-30 21:59:07 +00009719fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009720done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009721if test "${ac_cv_search_mallinfo+set}" = set; then
9722 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009723else
9724 ac_cv_search_mallinfo=no
9725fi
9726rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00009727LIBS=$ac_func_search_save_LIBS
9728fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009729{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9730echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009731ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009732if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +00009734
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009735cat >>confdefs.h <<\_ACEOF
9736#define HAVE_MALLINFO 1
9737_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00009738
9739fi
9740
9741
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00009742if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009743
9744{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9745echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9746if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer1aa7d052005-07-12 15:24:20 +00009748else
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009749 ac_check_lib_save_LIBS=$LIBS
9750LIBS="-lpthread $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009751cat >conftest.$ac_ext <<_ACEOF
9752/* confdefs.h. */
9753_ACEOF
9754cat confdefs.h >>conftest.$ac_ext
9755cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +00009756/* end confdefs.h. */
9757
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009758/* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
Reid Spencer1aa7d052005-07-12 15:24:20 +00009761#ifdef __cplusplus
9762extern "C"
9763#endif
Reid Spencer1aa7d052005-07-12 15:24:20 +00009764char pthread_mutex_init ();
9765int
9766main ()
9767{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009768return pthread_mutex_init ();
Reid Spencer1aa7d052005-07-12 15:24:20 +00009769 ;
9770 return 0;
9771}
9772_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009773rm -f conftest.$ac_objext conftest$ac_exeext
9774if { (ac_try="$ac_link"
9775case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778esac
9779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788 { (case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791esac
9792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_try") 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801esac
9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_try") 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009807 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer1aa7d052005-07-12 15:24:20 +00009808else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009809 echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer1aa7d052005-07-12 15:24:20 +00009813fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009814
Bill Wendling02b47d92009-04-18 11:20:33 +00009815rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009816 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009817LIBS=$ac_check_lib_save_LIBS
Reid Spencer1aa7d052005-07-12 15:24:20 +00009818fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009819{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9820echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9821if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009822 cat >>confdefs.h <<_ACEOF
9823#define HAVE_LIBPTHREAD 1
Edward O'Callaghana5314b82009-10-13 01:01:38 +00009824_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +00009825
Edward O'Callaghanedea3262009-10-14 11:12:33 +00009826 LIBS="-lpthread $LIBS"
9827
Reid Spencer1aa7d052005-07-12 15:24:20 +00009828fi
9829
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009830 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9831echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9832if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009834else
9835 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009836cat >conftest.$ac_ext <<_ACEOF
9837/* confdefs.h. */
9838_ACEOF
9839cat confdefs.h >>conftest.$ac_ext
9840cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009841/* end confdefs.h. */
9842
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009843/* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009846#ifdef __cplusplus
9847extern "C"
9848#endif
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009849char pthread_mutex_lock ();
9850int
9851main ()
9852{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009853return pthread_mutex_lock ();
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009854 ;
9855 return 0;
9856}
9857_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009858for ac_lib in '' pthread; do
9859 if test -z "$ac_lib"; then
9860 ac_res="none required"
9861 else
9862 ac_res=-l$ac_lib
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009864 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009865 rm -f conftest.$ac_objext conftest$ac_exeext
9866if { (ac_try="$ac_link"
9867case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9870esac
9871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>conftest.er1
9873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
9889 { ac_try='test -s conftest$ac_exeext'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009899 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009900else
9901 echo "$as_me: failed program was:" >&5
9902sed 's/^/| /' conftest.$ac_ext >&5
9903
9904
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009905fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009906
Bill Wendling02b47d92009-04-18 11:20:33 +00009907rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009908 conftest$ac_exeext
9909 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009910 break
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009911fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009912done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009913if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9914 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009915else
9916 ac_cv_search_pthread_mutex_lock=no
9917fi
9918rm conftest.$ac_ext
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009919LIBS=$ac_func_search_save_LIBS
9920fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009921{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9922echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009923ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009924if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009926
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009927cat >>confdefs.h <<\_ACEOF
9928#define HAVE_PTHREAD_MUTEX_LOCK 1
9929_ACEOF
John Criswell71c8d5e2004-09-24 21:19:06 +00009930
9931fi
Brian Gaeke7ee7b402003-12-05 19:29:01 +00009932
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009933 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9934echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9935if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersona149e222009-06-16 18:20:20 +00009937else
9938 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009939cat >conftest.$ac_ext <<_ACEOF
9940/* confdefs.h. */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +00009944/* end confdefs.h. */
9945
9946/* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
9949#ifdef __cplusplus
9950extern "C"
9951#endif
9952char pthread_rwlock_init ();
9953int
9954main ()
9955{
9956return pthread_rwlock_init ();
9957 ;
9958 return 0;
9959}
9960_ACEOF
9961for ac_lib in '' pthread; do
9962 if test -z "$ac_lib"; then
9963 ac_res="none required"
9964 else
9965 ac_res=-l$ac_lib
9966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9967 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009968 rm -f conftest.$ac_objext conftest$ac_exeext
9969if { (ac_try="$ac_link"
9970case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986esac
9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try='test -s conftest$ac_exeext'
9993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996esac
9997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
Owen Andersona149e222009-06-16 18:20:20 +000010002 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010003else
10004 echo "$as_me: failed program was:" >&5
10005sed 's/^/| /' conftest.$ac_ext >&5
10006
10007
Owen Andersona149e222009-06-16 18:20:20 +000010008fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010009
Owen Andersona149e222009-06-16 18:20:20 +000010010rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010011 conftest$ac_exeext
10012 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersona149e222009-06-16 18:20:20 +000010013 break
10014fi
10015done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010016if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10017 :
Owen Andersona149e222009-06-16 18:20:20 +000010018else
10019 ac_cv_search_pthread_rwlock_init=no
10020fi
10021rm conftest.$ac_ext
10022LIBS=$ac_func_search_save_LIBS
10023fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010024{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10025echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersona149e222009-06-16 18:20:20 +000010026ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010027if test "$ac_res" != no; then
Owen Andersona149e222009-06-16 18:20:20 +000010028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10029
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010030cat >>confdefs.h <<\_ACEOF
10031#define HAVE_PTHREAD_RWLOCK_INIT 1
10032_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000010033
10034fi
10035
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010036 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10037echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10038if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson11549832009-06-25 23:10:26 +000010040else
10041 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010042cat >conftest.$ac_ext <<_ACEOF
10043/* confdefs.h. */
10044_ACEOF
10045cat confdefs.h >>conftest.$ac_ext
10046cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000010047/* end confdefs.h. */
10048
10049/* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
10052#ifdef __cplusplus
10053extern "C"
10054#endif
10055char pthread_getspecific ();
10056int
10057main ()
10058{
10059return pthread_getspecific ();
10060 ;
10061 return 0;
10062}
10063_ACEOF
10064for ac_lib in '' pthread; do
10065 if test -z "$ac_lib"; then
10066 ac_res="none required"
10067 else
10068 ac_res=-l$ac_lib
10069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10070 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010071 rm -f conftest.$ac_objext conftest$ac_exeext
10072if { (ac_try="$ac_link"
10073case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10076esac
10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_link") 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089esac
10090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_try") 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; }; then
Owen Anderson11549832009-06-25 23:10:26 +000010105 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010106else
10107 echo "$as_me: failed program was:" >&5
10108sed 's/^/| /' conftest.$ac_ext >&5
10109
10110
Owen Anderson11549832009-06-25 23:10:26 +000010111fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010112
Owen Anderson11549832009-06-25 23:10:26 +000010113rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010114 conftest$ac_exeext
10115 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson11549832009-06-25 23:10:26 +000010116 break
10117fi
10118done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010119if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10120 :
Owen Anderson11549832009-06-25 23:10:26 +000010121else
10122 ac_cv_search_pthread_getspecific=no
10123fi
10124rm conftest.$ac_ext
10125LIBS=$ac_func_search_save_LIBS
10126fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010127{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10128echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson11549832009-06-25 23:10:26 +000010129ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010130if test "$ac_res" != no; then
Owen Anderson11549832009-06-25 23:10:26 +000010131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10132
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010133cat >>confdefs.h <<\_ACEOF
10134#define HAVE_PTHREAD_GETSPECIFIC 1
10135_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000010136
10137fi
10138
Reid Spencerf85fabeb2005-08-24 10:07:20 +000010139fi
Brian Gaeked3de6c02004-02-23 21:30:37 +000010140
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000010141if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10142
10143{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10144echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10145if test "${ac_cv_lib_z_compress2+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148 ac_check_lib_save_LIBS=$LIBS
10149LIBS="-lz $LIBS"
10150cat >conftest.$ac_ext <<_ACEOF
10151/* confdefs.h. */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h. */
10156
10157/* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
10160#ifdef __cplusplus
10161extern "C"
10162#endif
10163char compress2 ();
10164int
10165main ()
10166{
10167return compress2 ();
10168 ;
10169 return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext conftest$ac_exeext
10173if { (ac_try="$ac_link"
10174case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177esac
10178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187 { (case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190esac
10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_try") 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; } &&
10196 { ac_try='test -s conftest$ac_exeext'
10197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 ac_cv_lib_z_compress2=yes
10207else
10208 echo "$as_me: failed program was:" >&5
10209sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 ac_cv_lib_z_compress2=no
10212fi
10213
10214rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10216LIBS=$ac_check_lib_save_LIBS
10217fi
10218{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10219echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10220if test $ac_cv_lib_z_compress2 = yes; then
10221 cat >>confdefs.h <<_ACEOF
10222#define HAVE_LIBZ 1
10223_ACEOF
10224
10225 LIBS="-lz $LIBS"
10226
10227fi
10228
10229fi
10230
Reid Spencer0241e382004-11-25 04:51:04 +000010231
Reid Spencere5f3de32007-01-19 17:41:47 +000010232# Check whether --with-udis86 was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010233if test "${with_udis86+set}" = set; then
Reid Spencere5f3de32007-01-19 17:41:47 +000010234 withval=$with_udis86;
10235 USE_UDIS86=1
10236
10237 case "$withval" in
Reid Spencerdfda0612007-01-20 07:48:49 +000010238 /usr/lib|yes) ;;
Reid Spencere5f3de32007-01-19 17:41:47 +000010239 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10240 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010241
10242{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10243echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10244if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencere5f3de32007-01-19 17:41:47 +000010246else
10247 ac_check_lib_save_LIBS=$LIBS
10248LIBS="-ludis86 $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010249cat >conftest.$ac_ext <<_ACEOF
10250/* confdefs.h. */
10251_ACEOF
10252cat confdefs.h >>conftest.$ac_ext
10253cat >>conftest.$ac_ext <<_ACEOF
Reid Spencere5f3de32007-01-19 17:41:47 +000010254/* end confdefs.h. */
10255
10256/* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10259#ifdef __cplusplus
10260extern "C"
10261#endif
10262char ud_init ();
10263int
10264main ()
10265{
10266return ud_init ();
10267 ;
10268 return 0;
10269}
10270_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010271rm -f conftest.$ac_objext conftest$ac_exeext
10272if { (ac_try="$ac_link"
10273case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276esac
10277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_link") 2>conftest.er1
10279 ac_status=$?
10280 grep -v '^ *+' conftest.er1 >conftest.err
10281 rm -f conftest.er1
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286 { (case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10289esac
10290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_try") 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest$ac_exeext'
10296 { (case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299esac
10300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_try") 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
Reid Spencere5f3de32007-01-19 17:41:47 +000010305 ac_cv_lib_udis86_ud_init=yes
10306else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010307 echo "$as_me: failed program was:" >&5
10308sed 's/^/| /' conftest.$ac_ext >&5
10309
10310 ac_cv_lib_udis86_ud_init=no
Reid Spencere5f3de32007-01-19 17:41:47 +000010311fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010312
Bill Wendling02b47d92009-04-18 11:20:33 +000010313rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010314 conftest$ac_exeext conftest.$ac_ext
Reid Spencere5f3de32007-01-19 17:41:47 +000010315LIBS=$ac_check_lib_save_LIBS
10316fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010317{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10318echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10319if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencere5f3de32007-01-19 17:41:47 +000010320 cat >>confdefs.h <<_ACEOF
10321#define HAVE_LIBUDIS86 1
10322_ACEOF
10323
10324 LIBS="-ludis86 $LIBS"
10325
10326else
10327
10328 echo "Error! You need to have libudis86 around."
10329 exit -1
10330
10331fi
10332
10333
10334else
10335 USE_UDIS86=0
10336
10337fi
10338
10339
10340cat >>confdefs.h <<_ACEOF
10341#define USE_UDIS86 $USE_UDIS86
10342_ACEOF
10343
10344
10345
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010346# Check whether --with-oprofile was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010347if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010348 withval=$with_oprofile;
10349 USE_OPROFILE=1
10350
10351 case "$withval" in
10352 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010353 no) llvm_cv_oppath=
10354 USE_OPROFILE=0
10355 ;;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010356 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher46342fe2012-08-03 17:45:31 +000010357 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010358 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000010359 case $llvm_cv_os_type in
10360 Linux)
10361 if test -n "$llvm_cv_oppath" ; then
10362 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10363 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010364echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10365if test "${ac_cv_search_bfd_init+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010367else
10368 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010369cat >conftest.$ac_ext <<_ACEOF
10370/* confdefs.h. */
10371_ACEOF
10372cat confdefs.h >>conftest.$ac_ext
10373cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010374/* end confdefs.h. */
10375
10376/* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10379#ifdef __cplusplus
10380extern "C"
10381#endif
10382char bfd_init ();
10383int
10384main ()
10385{
10386return bfd_init ();
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391for ac_lib in '' bfd; do
10392 if test -z "$ac_lib"; then
10393 ac_res="none required"
10394 else
10395 ac_res=-l$ac_lib
10396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10397 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010398 rm -f conftest.$ac_objext conftest$ac_exeext
10399if { (ac_try="$ac_link"
10400case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_link") 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_try") 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest$ac_exeext'
10423 { (case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10426esac
10427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_try") 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010432 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010433else
10434 echo "$as_me: failed program was:" >&5
10435sed 's/^/| /' conftest.$ac_ext >&5
10436
10437
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010438fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010439
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010440rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010441 conftest$ac_exeext
10442 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010443 break
10444fi
10445done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010446if test "${ac_cv_search_bfd_init+set}" = set; then
10447 :
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010448else
10449 ac_cv_search_bfd_init=no
10450fi
10451rm conftest.$ac_ext
10452LIBS=$ac_func_search_save_LIBS
10453fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010454{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10455echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010456ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010457if test "$ac_res" != no; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10459
10460fi
10461
Eli Bendersky5262ad22012-03-13 08:33:15 +000010462 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010463echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10464if test "${ac_cv_search_op_open_agent+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010466else
10467 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010468cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h. */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010473/* end confdefs.h. */
10474
10475/* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10478#ifdef __cplusplus
10479extern "C"
10480#endif
10481char op_open_agent ();
10482int
10483main ()
10484{
10485return op_open_agent ();
10486 ;
10487 return 0;
10488}
10489_ACEOF
10490for ac_lib in '' opagent; do
10491 if test -z "$ac_lib"; then
10492 ac_res="none required"
10493 else
10494 ac_res=-l$ac_lib
10495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10496 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010497 rm -f conftest.$ac_objext conftest$ac_exeext
10498if { (ac_try="$ac_link"
10499case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502esac
10503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_link") 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10512 { (case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
10516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_try") 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010531 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010532else
10533 echo "$as_me: failed program was:" >&5
10534sed 's/^/| /' conftest.$ac_ext >&5
10535
10536
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010537fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010538
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010539rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010540 conftest$ac_exeext
10541 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010542 break
10543fi
10544done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010545if test "${ac_cv_search_op_open_agent+set}" = set; then
10546 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010547else
10548 ac_cv_search_op_open_agent=no
10549fi
10550rm conftest.$ac_ext
10551LIBS=$ac_func_search_save_LIBS
10552fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010553{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10554echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010555ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010556if test "$ac_res" != no; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10558
10559else
10560
Eli Bendersky5262ad22012-03-13 08:33:15 +000010561 echo "Error! You need to have libopagent around."
10562 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010563
10564fi
10565
Eli Bendersky5262ad22012-03-13 08:33:15 +000010566 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010567 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10568echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10569if test "${ac_cv_header_opagent_h+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571fi
10572{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10573echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10574else
10575 # Is the header compilable?
10576{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
10577echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10578cat >conftest.$ac_ext <<_ACEOF
10579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
10584$ac_includes_default
10585#include <opagent.h>
10586_ACEOF
10587rm -f conftest.$ac_objext
10588if { (ac_try="$ac_compile"
10589case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592esac
10593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_compile") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10602 { (case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605esac
10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_try") 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest.$ac_objext'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_header_compiler=yes
10622else
10623 echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010625
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010626 ac_header_compiler=no
10627fi
10628
10629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10630{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10631echo "${ECHO_T}$ac_header_compiler" >&6; }
10632
10633# Is the header present?
10634{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
10635echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10636cat >conftest.$ac_ext <<_ACEOF
10637/* confdefs.h. */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */
10642#include <opagent.h>
10643_ACEOF
10644if { (ac_try="$ac_cpp conftest.$ac_ext"
10645case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648esac
10649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } >/dev/null; then
10657 if test -s conftest.err; then
10658 ac_cpp_err=$ac_c_preproc_warn_flag
10659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10660 else
10661 ac_cpp_err=
10662 fi
10663else
10664 ac_cpp_err=yes
10665fi
10666if test -z "$ac_cpp_err"; then
10667 ac_header_preproc=yes
10668else
10669 echo "$as_me: failed program was:" >&5
10670sed 's/^/| /' conftest.$ac_ext >&5
10671
10672 ac_header_preproc=no
10673fi
10674
10675rm -f conftest.err conftest.$ac_ext
10676{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10677echo "${ECHO_T}$ac_header_preproc" >&6; }
10678
10679# So? What about this header?
10680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10681 yes:no: )
10682 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10683echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10685echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10686 ac_header_preproc=yes
10687 ;;
10688 no:yes:* )
10689 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10690echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10692echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10694echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10696echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10698echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10700echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10701 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000010702## ------------------------------------ ##
10703## Report this to http://llvm.org/bugs/ ##
10704## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010705_ASBOX
10706 ) | sed "s/^/$as_me: WARNING: /" >&2
10707 ;;
10708esac
10709{ echo "$as_me:$LINENO: checking for opagent.h" >&5
10710echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10711if test "${ac_cv_header_opagent_h+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714 ac_cv_header_opagent_h=$ac_header_preproc
10715fi
10716{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10717echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10718
10719fi
10720if test $ac_cv_header_opagent_h = yes; then
10721 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010722else
10723
Eli Bendersky5262ad22012-03-13 08:33:15 +000010724 echo "Error! You need to have opagent.h around."
10725 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010726
10727fi
10728
10729
Eli Bendersky5262ad22012-03-13 08:33:15 +000010730 fi ;;
10731 *)
10732 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10733echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10734 { (exit 1); exit 1; }; } ;;
10735 esac
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010736
10737else
10738
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000010739 USE_OPROFILE=0
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010740
10741
10742fi
10743
10744
10745cat >>confdefs.h <<_ACEOF
Eli Bendersky5262ad22012-03-13 08:33:15 +000010746#define LLVM_USE_OPROFILE $USE_OPROFILE
10747_ACEOF
10748
10749
10750
10751# Check whether --with-intel-jitevents was given.
10752if test "${with_intel_jitevents+set}" = set; then
10753 withval=$with_intel_jitevents;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010754 case "$withval" in
10755 yes) USE_INTEL_JITEVENTS=1
10756;;
10757 no) USE_INTEL_JITEVENTS=0
10758;;
10759 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10760echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10761 { (exit 1); exit 1; }; };;
10762 esac
10763
Eli Bendersky5262ad22012-03-13 08:33:15 +000010764 case $llvm_cv_os_type in
10765 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010766 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10767echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10768 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000010769 esac
10770
Eli Bendersky5262ad22012-03-13 08:33:15 +000010771 case "$llvm_cv_target_arch" in
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000010772 x86|x86_64) ;;
10773 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10774echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10775 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000010776 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000010777
10778else
10779
10780 USE_INTEL_JITEVENTS=0
10781
10782
10783fi
10784
10785
10786cat >>confdefs.h <<_ACEOF
10787#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010788_ACEOF
10789
10790
Eric Christopherc807c532012-08-03 19:47:19 +000010791for ac_prog in xml2-config
10792do
10793 # Extract the first word of "$ac_prog", so it can be a program name with args.
10794set dummy $ac_prog; ac_word=$2
10795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10797if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800 if test -n "$XML2CONFIG"; then
10801 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10802else
10803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804for as_dir in $PATH
10805do
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10810 ac_cv_prog_XML2CONFIG="$ac_prog"
10811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 break 2
10813 fi
10814done
10815done
10816IFS=$as_save_IFS
10817
10818fi
10819fi
10820XML2CONFIG=$ac_cv_prog_XML2CONFIG
10821if test -n "$XML2CONFIG"; then
10822 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10823echo "${ECHO_T}$XML2CONFIG" >&6; }
10824else
10825 { echo "$as_me:$LINENO: result: no" >&5
10826echo "${ECHO_T}no" >&6; }
10827fi
10828
10829
10830 test -n "$XML2CONFIG" && break
10831done
10832
10833
10834{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10835echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10836if test "x$XML2CONFIG" = "x"; then
10837 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10838echo "${ECHO_T}xml2-config not found" >&6; }
10839else
10840 LIBXML2_INC=`$XML2CONFIG --cflags`
10841 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10842echo "${ECHO_T}$LIBXML2_INC" >&6; }
10843 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10844echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10845if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847else
10848 ac_check_lib_save_LIBS=$LIBS
10849LIBS="-lxml2 $LIBS"
10850cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
10856
10857/* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860#ifdef __cplusplus
10861extern "C"
10862#endif
10863char xmlReadFile ();
10864int
10865main ()
10866{
10867return xmlReadFile ();
10868 ;
10869 return 0;
10870}
10871_ACEOF
10872rm -f conftest.$ac_objext conftest$ac_exeext
10873if { (ac_try="$ac_link"
10874case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890esac
10891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900esac
10901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_lib_xml2_xmlReadFile=yes
10907else
10908 echo "$as_me: failed program was:" >&5
10909sed 's/^/| /' conftest.$ac_ext >&5
10910
10911 ac_cv_lib_xml2_xmlReadFile=no
10912fi
10913
10914rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916LIBS=$ac_check_lib_save_LIBS
10917fi
10918{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10919echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10920if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10921
10922cat >>confdefs.h <<\_ACEOF
10923#define CLANG_HAVE_LIBXML 1
10924_ACEOF
10925
10926 LIBXML2_LIBS="-lxml2"
10927fi
10928
10929fi
10930
10931
10932
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000010933
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010934
10935
10936
10937
10938
Reid Spencer8bc110c2004-12-25 07:31:29 +000010939ac_header_dirent=no
10940for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010941 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10942{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10943echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000010946else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010947 cat >conftest.$ac_ext <<_ACEOF
10948/* confdefs.h. */
10949_ACEOF
10950cat confdefs.h >>conftest.$ac_ext
10951cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000010952/* end confdefs.h. */
10953#include <sys/types.h>
10954#include <$ac_hdr>
10955
10956int
10957main ()
10958{
10959if ((DIR *) 0)
10960return 0;
10961 ;
10962 return 0;
10963}
10964_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010965rm -f conftest.$ac_objext
10966if { (ac_try="$ac_compile"
10967case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970esac
10971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_compile") 2>conftest.er1
10973 ac_status=$?
10974 grep -v '^ *+' conftest.er1 >conftest.err
10975 rm -f conftest.er1
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980 { (case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10983esac
10984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_try") 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } &&
10989 { ac_try='test -s conftest.$ac_objext'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000010999 eval "$as_ac_Header=yes"
11000else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011001 echo "$as_me: failed program was:" >&5
11002sed 's/^/| /' conftest.$ac_ext >&5
11003
11004 eval "$as_ac_Header=no"
Reid Spencer8bc110c2004-12-25 07:31:29 +000011005fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011006
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000011008fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011009ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011echo "${ECHO_T}$ac_res" >&6; }
11012if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000011013 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011014#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000011015_ACEOF
11016
11017ac_header_dirent=$ac_hdr; break
11018fi
11019
11020done
11021# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11022if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011023 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11024echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11025if test "${ac_cv_search_opendir+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000011027else
11028 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011029cat >conftest.$ac_ext <<_ACEOF
11030/* confdefs.h. */
11031_ACEOF
11032cat confdefs.h >>conftest.$ac_ext
11033cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011034/* end confdefs.h. */
11035
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011036/* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000011039#ifdef __cplusplus
11040extern "C"
11041#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011042char opendir ();
11043int
11044main ()
11045{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011046return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000011047 ;
11048 return 0;
11049}
11050_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011051for ac_lib in '' dir; do
11052 if test -z "$ac_lib"; then
11053 ac_res="none required"
11054 else
11055 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000011056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011057 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011058 rm -f conftest.$ac_objext conftest$ac_exeext
11059if { (ac_try="$ac_link"
11060case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063esac
11064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_link") 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11073 { (case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076esac
11077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_try") 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try='test -s conftest$ac_exeext'
11083 { (case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086esac
11087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_try") 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011092 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011093else
11094 echo "$as_me: failed program was:" >&5
11095sed 's/^/| /' conftest.$ac_ext >&5
11096
11097
Reid Spencer8bc110c2004-12-25 07:31:29 +000011098fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011099
Bill Wendling02b47d92009-04-18 11:20:33 +000011100rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011101 conftest$ac_exeext
11102 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011103 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000011104fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011105done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011106if test "${ac_cv_search_opendir+set}" = set; then
11107 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011108else
11109 ac_cv_search_opendir=no
11110fi
11111rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000011112LIBS=$ac_func_search_save_LIBS
11113fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011114{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11115echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011116ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011117if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000011119
11120fi
11121
11122else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011123 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11124echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11125if test "${ac_cv_search_opendir+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000011127else
11128 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011129cat >conftest.$ac_ext <<_ACEOF
11130/* confdefs.h. */
11131_ACEOF
11132cat confdefs.h >>conftest.$ac_ext
11133cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011134/* end confdefs.h. */
11135
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011136/* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000011139#ifdef __cplusplus
11140extern "C"
11141#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011142char opendir ();
11143int
11144main ()
11145{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011146return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000011147 ;
11148 return 0;
11149}
11150_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011151for ac_lib in '' x; do
11152 if test -z "$ac_lib"; then
11153 ac_res="none required"
11154 else
11155 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000011156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011157 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011158 rm -f conftest.$ac_objext conftest$ac_exeext
11159if { (ac_try="$ac_link"
11160case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163esac
11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_link") 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; } &&
11182 { ac_try='test -s conftest$ac_exeext'
11183 { (case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11186esac
11187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_try") 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011192 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011193else
11194 echo "$as_me: failed program was:" >&5
11195sed 's/^/| /' conftest.$ac_ext >&5
11196
11197
Reid Spencer8bc110c2004-12-25 07:31:29 +000011198fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011199
Bill Wendling02b47d92009-04-18 11:20:33 +000011200rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011201 conftest$ac_exeext
11202 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011203 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000011204fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011205done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011206if test "${ac_cv_search_opendir+set}" = set; then
11207 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011208else
11209 ac_cv_search_opendir=no
11210fi
11211rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000011212LIBS=$ac_func_search_save_LIBS
11213fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011214{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11215echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011216ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011217if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000011219
11220fi
11221
11222fi
11223
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011224{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11225echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11226if test "${ac_cv_header_mmap_anon+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000011228else
11229 ac_ext=c
11230ac_cpp='$CPP $CPPFLAGS'
11231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11233ac_compiler_gnu=$ac_cv_c_compiler_gnu
11234
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011235 cat >conftest.$ac_ext <<_ACEOF
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011240/* end confdefs.h. */
11241#include <sys/mman.h>
11242#include <unistd.h>
11243#include <fcntl.h>
11244int
11245main ()
11246{
11247mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11248 ;
11249 return 0;
11250}
11251_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011252rm -f conftest.$ac_objext
11253if { (ac_try="$ac_compile"
11254case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000011286 ac_cv_header_mmap_anon=yes
11287else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_cv_header_mmap_anon=no
Reid Spencer8bc110c2004-12-25 07:31:29 +000011292fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011293
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000011295 ac_ext=c
11296ac_cpp='$CPP $CPPFLAGS'
11297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11299ac_compiler_gnu=$ac_cv_c_compiler_gnu
11300
11301
11302fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011303{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11304echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000011305if test "$ac_cv_header_mmap_anon" = yes; then
11306
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011307cat >>confdefs.h <<\_ACEOF
11308#define HAVE_MMAP_ANONYMOUS 1
11309_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011310
11311fi
11312
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011313{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11314echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11315if test "${ac_cv_header_stat_broken+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000011317else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011318 cat >conftest.$ac_ext <<_ACEOF
11319/* confdefs.h. */
11320_ACEOF
11321cat confdefs.h >>conftest.$ac_ext
11322cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011323/* end confdefs.h. */
11324#include <sys/types.h>
11325#include <sys/stat.h>
11326
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011327#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011328# if S_ISBLK (S_IFDIR)
11329You lose.
11330# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011331#endif
11332
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011333#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011334# if S_ISBLK (S_IFCHR)
11335You lose.
11336# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011337#endif
11338
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011339#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011340# if S_ISLNK (S_IFREG)
11341You lose.
11342# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011343#endif
11344
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011345#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011346# if S_ISSOCK (S_IFREG)
11347You lose.
11348# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000011349#endif
11350
11351_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11353 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwinaec06332010-01-26 08:50:50 +000011354 ac_cv_header_stat_broken=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011355else
11356 ac_cv_header_stat_broken=no
Mikhail Glushenkov4308aa52009-04-18 09:59:26 +000011357fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011358rm -f conftest*
11359
Reid Spencer8bc110c2004-12-25 07:31:29 +000011360fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011361{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11362echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000011363if test $ac_cv_header_stat_broken = yes; then
11364
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011365cat >>confdefs.h <<\_ACEOF
11366#define STAT_MACROS_BROKEN 1
11367_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000011368
11369fi
11370
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011371{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11372echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11373if test "${ac_cv_header_sys_wait_h+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000011375else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011376 cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h. */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000011381/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000011382#include <sys/types.h>
11383#include <sys/wait.h>
11384#ifndef WEXITSTATUS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011385# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell3ef61af2003-06-30 21:59:07 +000011386#endif
11387#ifndef WIFEXITED
11388# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11389#endif
11390
John Criswell3ef61af2003-06-30 21:59:07 +000011391int
11392main ()
11393{
11394 int s;
11395 wait (&s);
11396 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11397 ;
11398 return 0;
11399}
11400_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011401rm -f conftest.$ac_objext
11402if { (ac_try="$ac_compile"
11403case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406esac
11407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_compile") 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419esac
11420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try='test -s conftest.$ac_objext'
11426 { (case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429esac
11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_try") 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000011435 ac_cv_header_sys_wait_h=yes
11436else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011437 echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 ac_cv_header_sys_wait_h=no
John Criswell3ef61af2003-06-30 21:59:07 +000011441fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011442
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000011444fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011445{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11446echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000011447if test $ac_cv_header_sys_wait_h = yes; then
11448
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011449cat >>confdefs.h <<\_ACEOF
11450#define HAVE_SYS_WAIT_H 1
11451_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000011452
11453fi
11454
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011455{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11456echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11457if test "${ac_cv_header_time+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000011459else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011460 cat >conftest.$ac_ext <<_ACEOF
11461/* confdefs.h. */
11462_ACEOF
11463cat confdefs.h >>conftest.$ac_ext
11464cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000011465/* end confdefs.h. */
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011466#include <sys/types.h>
Reid Spencer0241e382004-11-25 04:51:04 +000011467#include <sys/time.h>
11468#include <time.h>
11469
11470int
11471main ()
11472{
11473if ((struct tm *) 0)
11474return 0;
11475 ;
11476 return 0;
11477}
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011478_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011479rm -f conftest.$ac_objext
11480if { (ac_try="$ac_compile"
11481case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11484esac
11485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_compile") 2>conftest.er1
11487 ac_status=$?
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11494 { (case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497esac
11498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_try") 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11507esac
11508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_try") 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000011513 ac_cv_header_time=yes
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011514else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011515 echo "$as_me: failed program was:" >&5
11516sed 's/^/| /' conftest.$ac_ext >&5
11517
11518 ac_cv_header_time=no
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011519fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011520
Reid Spencer0b52e2f2006-08-04 18:18:08 +000011521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000011522fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011523{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11524echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000011525if test $ac_cv_header_time = yes; then
Brian Gaeke4eea32f2004-02-23 22:07:00 +000011526
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011527cat >>confdefs.h <<\_ACEOF
11528#define TIME_WITH_SYS_TIME 1
11529_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000011530
11531fi
11532
Reid Spencer0241e382004-11-25 04:51:04 +000011533
Benjamin Kramer00622f72013-05-03 15:55:06 +000011534ac_ext=cpp
11535ac_cpp='$CXXCPP $CPPFLAGS'
11536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11539
11540ac_ext=cpp
11541ac_cpp='$CXXCPP $CPPFLAGS'
11542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11545{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11546echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11547if test -z "$CXXCPP"; then
11548 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 # Double quotes because CXXCPP needs to be expanded
11552 for CXXCPP in "$CXX -E" "/lib/cpp"
11553 do
11554 ac_preproc_ok=false
11555for ac_cxx_preproc_warn_flag in '' yes
11556do
11557 # Use a header file that comes with gcc, so configuring glibc
11558 # with a fresh cross-compiler works.
11559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 # <limits.h> exists even on freestanding compilers.
11561 # On the NeXT, cc -E runs the code through the compiler's parser,
11562 # not just through cpp. "Syntax error" is here to catch this case.
11563 cat >conftest.$ac_ext <<_ACEOF
11564/* confdefs.h. */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h. */
11569#ifdef __STDC__
11570# include <limits.h>
11571#else
11572# include <assert.h>
11573#endif
11574 Syntax error
11575_ACEOF
11576if { (ac_try="$ac_cpp conftest.$ac_ext"
11577case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580esac
11581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null; then
11589 if test -s conftest.err; then
11590 ac_cpp_err=$ac_cxx_preproc_warn_flag
11591 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11592 else
11593 ac_cpp_err=
11594 fi
11595else
11596 ac_cpp_err=yes
11597fi
11598if test -z "$ac_cpp_err"; then
11599 :
11600else
11601 echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
11603
11604 # Broken: fails on valid input.
11605continue
11606fi
11607
11608rm -f conftest.err conftest.$ac_ext
11609
11610 # OK, works on sane cases. Now check whether nonexistent headers
11611 # can be detected and how.
11612 cat >conftest.$ac_ext <<_ACEOF
11613/* confdefs.h. */
11614_ACEOF
11615cat confdefs.h >>conftest.$ac_ext
11616cat >>conftest.$ac_ext <<_ACEOF
11617/* end confdefs.h. */
11618#include <ac_nonexistent.h>
11619_ACEOF
11620if { (ac_try="$ac_cpp conftest.$ac_ext"
11621case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624esac
11625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } >/dev/null; then
11633 if test -s conftest.err; then
11634 ac_cpp_err=$ac_cxx_preproc_warn_flag
11635 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11636 else
11637 ac_cpp_err=
11638 fi
11639else
11640 ac_cpp_err=yes
11641fi
11642if test -z "$ac_cpp_err"; then
11643 # Broken: success on invalid input.
11644continue
11645else
11646 echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 # Passes both tests.
11650ac_preproc_ok=:
11651break
11652fi
11653
11654rm -f conftest.err conftest.$ac_ext
11655
11656done
11657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11658rm -f conftest.err conftest.$ac_ext
11659if $ac_preproc_ok; then
11660 break
11661fi
11662
11663 done
11664 ac_cv_prog_CXXCPP=$CXXCPP
11665
11666fi
11667 CXXCPP=$ac_cv_prog_CXXCPP
11668else
11669 ac_cv_prog_CXXCPP=$CXXCPP
11670fi
11671{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
11672echo "${ECHO_T}$CXXCPP" >&6; }
11673ac_preproc_ok=false
11674for ac_cxx_preproc_warn_flag in '' yes
11675do
11676 # Use a header file that comes with gcc, so configuring glibc
11677 # with a fresh cross-compiler works.
11678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679 # <limits.h> exists even on freestanding compilers.
11680 # On the NeXT, cc -E runs the code through the compiler's parser,
11681 # not just through cpp. "Syntax error" is here to catch this case.
11682 cat >conftest.$ac_ext <<_ACEOF
11683/* confdefs.h. */
11684_ACEOF
11685cat confdefs.h >>conftest.$ac_ext
11686cat >>conftest.$ac_ext <<_ACEOF
11687/* end confdefs.h. */
11688#ifdef __STDC__
11689# include <limits.h>
11690#else
11691# include <assert.h>
11692#endif
11693 Syntax error
11694_ACEOF
11695if { (ac_try="$ac_cpp conftest.$ac_ext"
11696case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699esac
11700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11702 ac_status=$?
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } >/dev/null; then
11708 if test -s conftest.err; then
11709 ac_cpp_err=$ac_cxx_preproc_warn_flag
11710 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11711 else
11712 ac_cpp_err=
11713 fi
11714else
11715 ac_cpp_err=yes
11716fi
11717if test -z "$ac_cpp_err"; then
11718 :
11719else
11720 echo "$as_me: failed program was:" >&5
11721sed 's/^/| /' conftest.$ac_ext >&5
11722
11723 # Broken: fails on valid input.
11724continue
11725fi
11726
11727rm -f conftest.err conftest.$ac_ext
11728
11729 # OK, works on sane cases. Now check whether nonexistent headers
11730 # can be detected and how.
11731 cat >conftest.$ac_ext <<_ACEOF
11732/* confdefs.h. */
11733_ACEOF
11734cat confdefs.h >>conftest.$ac_ext
11735cat >>conftest.$ac_ext <<_ACEOF
11736/* end confdefs.h. */
11737#include <ac_nonexistent.h>
11738_ACEOF
11739if { (ac_try="$ac_cpp conftest.$ac_ext"
11740case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11743esac
11744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } >/dev/null; then
11752 if test -s conftest.err; then
11753 ac_cpp_err=$ac_cxx_preproc_warn_flag
11754 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11755 else
11756 ac_cpp_err=
11757 fi
11758else
11759 ac_cpp_err=yes
11760fi
11761if test -z "$ac_cpp_err"; then
11762 # Broken: success on invalid input.
11763continue
11764else
11765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768 # Passes both tests.
11769ac_preproc_ok=:
11770break
11771fi
11772
11773rm -f conftest.err conftest.$ac_ext
11774
11775done
11776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11777rm -f conftest.err conftest.$ac_ext
11778if $ac_preproc_ok; then
11779 :
11780else
11781 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11782See \`config.log' for more details." >&5
11783echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11784See \`config.log' for more details." >&2;}
11785 { (exit 1); exit 1; }; }
11786fi
11787
11788ac_ext=cpp
11789ac_cpp='$CXXCPP $CPPFLAGS'
11790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11793
11794
11795
11796for ac_header in cxxabi.h
11797do
11798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804fi
11805ac_res=`eval echo '${'$as_ac_Header'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807echo "${ECHO_T}$ac_res" >&6; }
11808else
11809 # Is the header compilable?
11810{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11812cat >conftest.$ac_ext <<_ACEOF
11813/* confdefs.h. */
11814_ACEOF
11815cat confdefs.h >>conftest.$ac_ext
11816cat >>conftest.$ac_ext <<_ACEOF
11817/* end confdefs.h. */
11818$ac_includes_default
11819#include <$ac_header>
11820_ACEOF
11821rm -f conftest.$ac_objext
11822if { (ac_try="$ac_compile"
11823case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11826esac
11827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11836 { (case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11839esac
11840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_try") 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; } &&
11845 { ac_try='test -s conftest.$ac_objext'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849esac
11850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_header_compiler=yes
11856else
11857 echo "$as_me: failed program was:" >&5
11858sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 ac_header_compiler=no
11861fi
11862
11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865echo "${ECHO_T}$ac_header_compiler" >&6; }
11866
11867# Is the header present?
11868{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11870cat >conftest.$ac_ext <<_ACEOF
11871/* confdefs.h. */
11872_ACEOF
11873cat confdefs.h >>conftest.$ac_ext
11874cat >>conftest.$ac_ext <<_ACEOF
11875/* end confdefs.h. */
11876#include <$ac_header>
11877_ACEOF
11878if { (ac_try="$ac_cpp conftest.$ac_ext"
11879case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882esac
11883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } >/dev/null; then
11891 if test -s conftest.err; then
11892 ac_cpp_err=$ac_cxx_preproc_warn_flag
11893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11894 else
11895 ac_cpp_err=
11896 fi
11897else
11898 ac_cpp_err=yes
11899fi
11900if test -z "$ac_cpp_err"; then
11901 ac_header_preproc=yes
11902else
11903 echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 ac_header_preproc=no
11907fi
11908
11909rm -f conftest.err conftest.$ac_ext
11910{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11911echo "${ECHO_T}$ac_header_preproc" >&6; }
11912
11913# So? What about this header?
11914case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11915 yes:no: )
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11920 ac_header_preproc=yes
11921 ;;
11922 no:yes:* )
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11930echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11935 ( cat <<\_ASBOX
11936## ------------------------------------ ##
11937## Report this to http://llvm.org/bugs/ ##
11938## ------------------------------------ ##
11939_ASBOX
11940 ) | sed "s/^/$as_me: WARNING: /" >&2
11941 ;;
11942esac
11943{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947else
11948 eval "$as_ac_Header=\$ac_header_preproc"
11949fi
11950ac_res=`eval echo '${'$as_ac_Header'}'`
11951 { echo "$as_me:$LINENO: result: $ac_res" >&5
11952echo "${ECHO_T}$ac_res" >&6; }
11953
11954fi
11955if test `eval echo '${'$as_ac_Header'}'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11958_ACEOF
11959
11960fi
11961
11962done
11963
11964ac_ext=c
11965ac_cpp='$CPP $CPPFLAGS'
11966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011969
11970
11971
11972
11973
11974
Eric Christopher30536382013-07-26 17:13:47 +000011975for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011976do
11977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983fi
11984ac_res=`eval echo '${'$as_ac_Header'}'`
11985 { echo "$as_me:$LINENO: result: $ac_res" >&5
11986echo "${ECHO_T}$ac_res" >&6; }
11987else
11988 # Is the header compilable?
11989{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11990echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11991cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997$ac_includes_default
11998#include <$ac_header>
11999_ACEOF
12000rm -f conftest.$ac_objext
12001if { (ac_try="$ac_compile"
12002case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005esac
12006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_compile") 2>conftest.er1
12008 ac_status=$?
12009 grep -v '^ *+' conftest.er1 >conftest.err
12010 rm -f conftest.er1
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018esac
12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest.$ac_objext'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_header_compiler=yes
12035else
12036 echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038
12039 ac_header_compiler=no
12040fi
12041
12042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12044echo "${ECHO_T}$ac_header_compiler" >&6; }
12045
12046# Is the header present?
12047{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12049cat >conftest.$ac_ext <<_ACEOF
12050/* confdefs.h. */
12051_ACEOF
12052cat confdefs.h >>conftest.$ac_ext
12053cat >>conftest.$ac_ext <<_ACEOF
12054/* end confdefs.h. */
12055#include <$ac_header>
12056_ACEOF
12057if { (ac_try="$ac_cpp conftest.$ac_ext"
12058case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12061esac
12062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } >/dev/null; then
12070 if test -s conftest.err; then
12071 ac_cpp_err=$ac_c_preproc_warn_flag
12072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12073 else
12074 ac_cpp_err=
12075 fi
12076else
12077 ac_cpp_err=yes
12078fi
12079if test -z "$ac_cpp_err"; then
12080 ac_header_preproc=yes
12081else
12082 echo "$as_me: failed program was:" >&5
12083sed 's/^/| /' conftest.$ac_ext >&5
12084
12085 ac_header_preproc=no
12086fi
12087
12088rm -f conftest.err conftest.$ac_ext
12089{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12090echo "${ECHO_T}$ac_header_preproc" >&6; }
12091
12092# So? What about this header?
12093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12094 yes:no: )
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12099 ac_header_preproc=yes
12100 ;;
12101 no:yes:* )
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12114 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012115## ------------------------------------ ##
12116## Report this to http://llvm.org/bugs/ ##
12117## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012118_ASBOX
12119 ) | sed "s/^/$as_me: WARNING: /" >&2
12120 ;;
12121esac
12122{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126else
12127 eval "$as_ac_Header=\$ac_header_preproc"
12128fi
12129ac_res=`eval echo '${'$as_ac_Header'}'`
12130 { echo "$as_me:$LINENO: result: $ac_res" >&5
12131echo "${ECHO_T}$ac_res" >&6; }
12132
12133fi
12134if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000012135 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0241e382004-11-25 04:51:04 +000012137_ACEOF
Brian Gaeke4eea32f2004-02-23 22:07:00 +000012138
12139fi
Brian Gaeke4eea32f2004-02-23 22:07:00 +000012140
Reid Spencer8bc110c2004-12-25 07:31:29 +000012141done
Brian Gaeke4eea32f2004-02-23 22:07:00 +000012142
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012143
12144
12145
12146
12147
12148
Douglas Gregorb81294d2009-05-18 17:21:34 +000012149for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012150do
12151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157fi
12158ac_res=`eval echo '${'$as_ac_Header'}'`
12159 { echo "$as_me:$LINENO: result: $ac_res" >&5
12160echo "${ECHO_T}$ac_res" >&6; }
12161else
12162 # Is the header compilable?
12163{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12165cat >conftest.$ac_ext <<_ACEOF
12166/* confdefs.h. */
12167_ACEOF
12168cat confdefs.h >>conftest.$ac_ext
12169cat >>conftest.$ac_ext <<_ACEOF
12170/* end confdefs.h. */
12171$ac_includes_default
12172#include <$ac_header>
12173_ACEOF
12174rm -f conftest.$ac_objext
12175if { (ac_try="$ac_compile"
12176case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179esac
12180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12189 { (case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12192esac
12193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_try") 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try='test -s conftest.$ac_objext'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202esac
12203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 ac_header_compiler=yes
12209else
12210 echo "$as_me: failed program was:" >&5
12211sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 ac_header_compiler=no
12214fi
12215
12216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12218echo "${ECHO_T}$ac_header_compiler" >&6; }
12219
12220# Is the header present?
12221{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12223cat >conftest.$ac_ext <<_ACEOF
12224/* confdefs.h. */
12225_ACEOF
12226cat confdefs.h >>conftest.$ac_ext
12227cat >>conftest.$ac_ext <<_ACEOF
12228/* end confdefs.h. */
12229#include <$ac_header>
12230_ACEOF
12231if { (ac_try="$ac_cpp conftest.$ac_ext"
12232case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235esac
12236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } >/dev/null; then
12244 if test -s conftest.err; then
12245 ac_cpp_err=$ac_c_preproc_warn_flag
12246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12247 else
12248 ac_cpp_err=
12249 fi
12250else
12251 ac_cpp_err=yes
12252fi
12253if test -z "$ac_cpp_err"; then
12254 ac_header_preproc=yes
12255else
12256 echo "$as_me: failed program was:" >&5
12257sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 ac_header_preproc=no
12260fi
12261
12262rm -f conftest.err conftest.$ac_ext
12263{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12264echo "${ECHO_T}$ac_header_preproc" >&6; }
12265
12266# So? What about this header?
12267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12268 yes:no: )
12269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12273 ac_header_preproc=yes
12274 ;;
12275 no:yes:* )
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12279echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12283echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12288 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012289## ------------------------------------ ##
12290## Report this to http://llvm.org/bugs/ ##
12291## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012292_ASBOX
12293 ) | sed "s/^/$as_me: WARNING: /" >&2
12294 ;;
12295esac
12296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12300else
12301 eval "$as_ac_Header=\$ac_header_preproc"
12302fi
12303ac_res=`eval echo '${'$as_ac_Header'}'`
12304 { echo "$as_me:$LINENO: result: $ac_res" >&5
12305echo "${ECHO_T}$ac_res" >&6; }
12306
12307fi
12308if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000012309 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000012311_ACEOF
12312
12313fi
12314
12315done
12316
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012317
Eric Christopher30536382013-07-26 17:13:47 +000012318for ac_header in utime.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012319do
12320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326fi
12327ac_res=`eval echo '${'$as_ac_Header'}'`
12328 { echo "$as_me:$LINENO: result: $ac_res" >&5
12329echo "${ECHO_T}$ac_res" >&6; }
12330else
12331 # Is the header compilable?
12332{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12333echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12334cat >conftest.$ac_ext <<_ACEOF
12335/* confdefs.h. */
12336_ACEOF
12337cat confdefs.h >>conftest.$ac_ext
12338cat >>conftest.$ac_ext <<_ACEOF
12339/* end confdefs.h. */
12340$ac_includes_default
12341#include <$ac_header>
12342_ACEOF
12343rm -f conftest.$ac_objext
12344if { (ac_try="$ac_compile"
12345case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12348esac
12349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12358 { (case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361esac
12362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_try") 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest.$ac_objext'
12368 { (case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12371esac
12372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_try") 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 ac_header_compiler=yes
12378else
12379 echo "$as_me: failed program was:" >&5
12380sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 ac_header_compiler=no
12383fi
12384
12385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12387echo "${ECHO_T}$ac_header_compiler" >&6; }
12388
12389# Is the header present?
12390{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12392cat >conftest.$ac_ext <<_ACEOF
12393/* confdefs.h. */
12394_ACEOF
12395cat confdefs.h >>conftest.$ac_ext
12396cat >>conftest.$ac_ext <<_ACEOF
12397/* end confdefs.h. */
12398#include <$ac_header>
12399_ACEOF
12400if { (ac_try="$ac_cpp conftest.$ac_ext"
12401case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404esac
12405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12407 ac_status=$?
12408 grep -v '^ *+' conftest.er1 >conftest.err
12409 rm -f conftest.er1
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } >/dev/null; then
12413 if test -s conftest.err; then
12414 ac_cpp_err=$ac_c_preproc_warn_flag
12415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12416 else
12417 ac_cpp_err=
12418 fi
12419else
12420 ac_cpp_err=yes
12421fi
12422if test -z "$ac_cpp_err"; then
12423 ac_header_preproc=yes
12424else
12425 echo "$as_me: failed program was:" >&5
12426sed 's/^/| /' conftest.$ac_ext >&5
12427
12428 ac_header_preproc=no
12429fi
12430
12431rm -f conftest.err conftest.$ac_ext
12432{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12433echo "${ECHO_T}$ac_header_preproc" >&6; }
12434
12435# So? What about this header?
12436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12437 yes:no: )
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12442 ac_header_preproc=yes
12443 ;;
12444 no:yes:* )
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12457 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012458## ------------------------------------ ##
12459## Report this to http://llvm.org/bugs/ ##
12460## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012461_ASBOX
12462 ) | sed "s/^/$as_me: WARNING: /" >&2
12463 ;;
12464esac
12465{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469else
12470 eval "$as_ac_Header=\$ac_header_preproc"
12471fi
12472ac_res=`eval echo '${'$as_ac_Header'}'`
12473 { echo "$as_me:$LINENO: result: $ac_res" >&5
12474echo "${ECHO_T}$ac_res" >&6; }
12475
12476fi
12477if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000012478 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000012480_ACEOF
12481
12482fi
12483
12484done
Reid Spencer8bc110c2004-12-25 07:31:29 +000012485
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012486
12487
12488
12489
Daniel Dunbar7840c542011-02-03 02:40:02 +000012490
12491for 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 +000012492do
12493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499fi
12500ac_res=`eval echo '${'$as_ac_Header'}'`
12501 { echo "$as_me:$LINENO: result: $ac_res" >&5
12502echo "${ECHO_T}$ac_res" >&6; }
12503else
12504 # Is the header compilable?
12505{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12507cat >conftest.$ac_ext <<_ACEOF
12508/* confdefs.h. */
12509_ACEOF
12510cat confdefs.h >>conftest.$ac_ext
12511cat >>conftest.$ac_ext <<_ACEOF
12512/* end confdefs.h. */
12513$ac_includes_default
12514#include <$ac_header>
12515_ACEOF
12516rm -f conftest.$ac_objext
12517if { (ac_try="$ac_compile"
12518case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521esac
12522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_compile") 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest.$ac_objext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_header_compiler=yes
12551else
12552 echo "$as_me: failed program was:" >&5
12553sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 ac_header_compiler=no
12556fi
12557
12558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12560echo "${ECHO_T}$ac_header_compiler" >&6; }
12561
12562# Is the header present?
12563{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12565cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
12571#include <$ac_header>
12572_ACEOF
12573if { (ac_try="$ac_cpp conftest.$ac_ext"
12574case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577esac
12578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } >/dev/null; then
12586 if test -s conftest.err; then
12587 ac_cpp_err=$ac_c_preproc_warn_flag
12588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12589 else
12590 ac_cpp_err=
12591 fi
12592else
12593 ac_cpp_err=yes
12594fi
12595if test -z "$ac_cpp_err"; then
12596 ac_header_preproc=yes
12597else
12598 echo "$as_me: failed program was:" >&5
12599sed 's/^/| /' conftest.$ac_ext >&5
12600
12601 ac_header_preproc=no
12602fi
12603
12604rm -f conftest.err conftest.$ac_ext
12605{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12606echo "${ECHO_T}$ac_header_preproc" >&6; }
12607
12608# So? What about this header?
12609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12610 yes:no: )
12611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12615 ac_header_preproc=yes
12616 ;;
12617 no:yes:* )
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12630 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012631## ------------------------------------ ##
12632## Report this to http://llvm.org/bugs/ ##
12633## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012634_ASBOX
12635 ) | sed "s/^/$as_me: WARNING: /" >&2
12636 ;;
12637esac
12638{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 eval "$as_ac_Header=\$ac_header_preproc"
12644fi
12645ac_res=`eval echo '${'$as_ac_Header'}'`
12646 { echo "$as_me:$LINENO: result: $ac_res" >&5
12647echo "${ECHO_T}$ac_res" >&6; }
12648
12649fi
12650if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000012651 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswellb92c7c22004-07-19 16:12:29 +000012653_ACEOF
John Criswellb92c7c22004-07-19 16:12:29 +000012654
12655fi
John Criswellb92c7c22004-07-19 16:12:29 +000012656
Reid Spencer0241e382004-11-25 04:51:04 +000012657done
12658
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012659
12660
12661
Eric Christopher30536382013-07-26 17:13:47 +000012662for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012663do
12664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670fi
12671ac_res=`eval echo '${'$as_ac_Header'}'`
12672 { echo "$as_me:$LINENO: result: $ac_res" >&5
12673echo "${ECHO_T}$ac_res" >&6; }
12674else
12675 # Is the header compilable?
12676{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12678cat >conftest.$ac_ext <<_ACEOF
12679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
12683/* end confdefs.h. */
12684$ac_includes_default
12685#include <$ac_header>
12686_ACEOF
12687rm -f conftest.$ac_objext
12688if { (ac_try="$ac_compile"
12689case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692esac
12693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_compile") 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702 { (case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12705esac
12706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_try") 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest.$ac_objext'
12712 { (case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715esac
12716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_try") 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_header_compiler=yes
12722else
12723 echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 ac_header_compiler=no
12727fi
12728
12729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12731echo "${ECHO_T}$ac_header_compiler" >&6; }
12732
12733# Is the header present?
12734{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12736cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742#include <$ac_header>
12743_ACEOF
12744if { (ac_try="$ac_cpp conftest.$ac_ext"
12745case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12748esac
12749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } >/dev/null; then
12757 if test -s conftest.err; then
12758 ac_cpp_err=$ac_c_preproc_warn_flag
12759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12760 else
12761 ac_cpp_err=
12762 fi
12763else
12764 ac_cpp_err=yes
12765fi
12766if test -z "$ac_cpp_err"; then
12767 ac_header_preproc=yes
12768else
12769 echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
12772 ac_header_preproc=no
12773fi
12774
12775rm -f conftest.err conftest.$ac_ext
12776{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12777echo "${ECHO_T}$ac_header_preproc" >&6; }
12778
12779# So? What about this header?
12780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12781 yes:no: )
12782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12786 ac_header_preproc=yes
12787 ;;
12788 no:yes:* )
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12792echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12796echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12801 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012802## ------------------------------------ ##
12803## Report this to http://llvm.org/bugs/ ##
12804## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012805_ASBOX
12806 ) | sed "s/^/$as_me: WARNING: /" >&2
12807 ;;
12808esac
12809{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813else
12814 eval "$as_ac_Header=\$ac_header_preproc"
12815fi
12816ac_res=`eval echo '${'$as_ac_Header'}'`
12817 { echo "$as_me:$LINENO: result: $ac_res" >&5
12818echo "${ECHO_T}$ac_res" >&6; }
12819
12820fi
12821if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner973917a2005-11-14 06:57:34 +000012822 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner973917a2005-11-14 06:57:34 +000012824_ACEOF
12825
12826fi
12827
12828done
12829
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000012830
12831for ac_header in valgrind/valgrind.h
12832do
12833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12839fi
12840ac_res=`eval echo '${'$as_ac_Header'}'`
12841 { echo "$as_me:$LINENO: result: $ac_res" >&5
12842echo "${ECHO_T}$ac_res" >&6; }
12843else
12844 # Is the header compilable?
12845{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12847cat >conftest.$ac_ext <<_ACEOF
12848/* confdefs.h. */
12849_ACEOF
12850cat confdefs.h >>conftest.$ac_ext
12851cat >>conftest.$ac_ext <<_ACEOF
12852/* end confdefs.h. */
12853$ac_includes_default
12854#include <$ac_header>
12855_ACEOF
12856rm -f conftest.$ac_objext
12857if { (ac_try="$ac_compile"
12858case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_compile") 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12871 { (case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12874esac
12875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_try") 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest.$ac_objext'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_header_compiler=yes
12891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 ac_header_compiler=no
12896fi
12897
12898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900echo "${ECHO_T}$ac_header_compiler" >&6; }
12901
12902# Is the header present?
12903{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12905cat >conftest.$ac_ext <<_ACEOF
12906/* confdefs.h. */
12907_ACEOF
12908cat confdefs.h >>conftest.$ac_ext
12909cat >>conftest.$ac_ext <<_ACEOF
12910/* end confdefs.h. */
12911#include <$ac_header>
12912_ACEOF
12913if { (ac_try="$ac_cpp conftest.$ac_ext"
12914case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12917esac
12918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12920 ac_status=$?
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } >/dev/null; then
12926 if test -s conftest.err; then
12927 ac_cpp_err=$ac_c_preproc_warn_flag
12928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12929 else
12930 ac_cpp_err=
12931 fi
12932else
12933 ac_cpp_err=yes
12934fi
12935if test -z "$ac_cpp_err"; then
12936 ac_header_preproc=yes
12937else
12938 echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 ac_header_preproc=no
12942fi
12943
12944rm -f conftest.err conftest.$ac_ext
12945{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12946echo "${ECHO_T}$ac_header_preproc" >&6; }
12947
12948# So? What about this header?
12949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12950 yes:no: )
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12954echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12955 ac_header_preproc=yes
12956 ;;
12957 no:yes:* )
12958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12959echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12961echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12963echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12965echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12969echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12970 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000012971## ------------------------------------ ##
12972## Report this to http://llvm.org/bugs/ ##
12973## ------------------------------------ ##
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000012974_ASBOX
12975 ) | sed "s/^/$as_me: WARNING: /" >&2
12976 ;;
12977esac
12978{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12982else
12983 eval "$as_ac_Header=\$ac_header_preproc"
12984fi
12985ac_res=`eval echo '${'$as_ac_Header'}'`
12986 { echo "$as_me:$LINENO: result: $ac_res" >&5
12987echo "${ECHO_T}$ac_res" >&6; }
12988
12989fi
12990if test `eval echo '${'$as_ac_Header'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12993_ACEOF
12994
12995fi
12996
12997done
12998
Dan Gohmandf257772010-09-17 20:08:35 +000012999
13000for ac_header in fenv.h
13001do
13002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008fi
13009ac_res=`eval echo '${'$as_ac_Header'}'`
13010 { echo "$as_me:$LINENO: result: $ac_res" >&5
13011echo "${ECHO_T}$ac_res" >&6; }
13012else
13013 # Is the header compilable?
13014{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13016cat >conftest.$ac_ext <<_ACEOF
13017/* confdefs.h. */
13018_ACEOF
13019cat confdefs.h >>conftest.$ac_ext
13020cat >>conftest.$ac_ext <<_ACEOF
13021/* end confdefs.h. */
13022$ac_includes_default
13023#include <$ac_header>
13024_ACEOF
13025rm -f conftest.$ac_objext
13026if { (ac_try="$ac_compile"
13027case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13030esac
13031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_compile") 2>conftest.er1
13033 ac_status=$?
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13040 { (case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13043esac
13044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_try") 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try='test -s conftest.$ac_objext'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053esac
13054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_try") 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_header_compiler=yes
13060else
13061 echo "$as_me: failed program was:" >&5
13062sed 's/^/| /' conftest.$ac_ext >&5
13063
13064 ac_header_compiler=no
13065fi
13066
13067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13069echo "${ECHO_T}$ac_header_compiler" >&6; }
13070
13071# Is the header present?
13072{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13074cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h. */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h. */
13080#include <$ac_header>
13081_ACEOF
13082if { (ac_try="$ac_cpp conftest.$ac_ext"
13083case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13086esac
13087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13089 ac_status=$?
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } >/dev/null; then
13095 if test -s conftest.err; then
13096 ac_cpp_err=$ac_c_preproc_warn_flag
13097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13098 else
13099 ac_cpp_err=
13100 fi
13101else
13102 ac_cpp_err=yes
13103fi
13104if test -z "$ac_cpp_err"; then
13105 ac_header_preproc=yes
13106else
13107 echo "$as_me: failed program was:" >&5
13108sed 's/^/| /' conftest.$ac_ext >&5
13109
13110 ac_header_preproc=no
13111fi
13112
13113rm -f conftest.err conftest.$ac_ext
13114{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13115echo "${ECHO_T}$ac_header_preproc" >&6; }
13116
13117# So? What about this header?
13118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13119 yes:no: )
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13124 ac_header_preproc=yes
13125 ;;
13126 no:yes:* )
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13130echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13134echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13139 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013140## ------------------------------------ ##
13141## Report this to http://llvm.org/bugs/ ##
13142## ------------------------------------ ##
Dan Gohmandf257772010-09-17 20:08:35 +000013143_ASBOX
13144 ) | sed "s/^/$as_me: WARNING: /" >&2
13145 ;;
13146esac
13147{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151else
13152 eval "$as_ac_Header=\$ac_header_preproc"
13153fi
13154ac_res=`eval echo '${'$as_ac_Header'}'`
13155 { echo "$as_me:$LINENO: result: $ac_res" >&5
13156echo "${ECHO_T}$ac_res" >&6; }
13157
13158fi
13159if test `eval echo '${'$as_ac_Header'}'` = yes; then
13160 cat >>confdefs.h <<_ACEOF
13161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13162_ACEOF
13163
13164fi
13165
13166done
13167
Joerg Sonnenberger8a1177f2013-03-25 13:13:33 +000013168{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13169echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13170if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13172else
13173 cat >conftest.$ac_ext <<_ACEOF
13174/* confdefs.h. */
13175_ACEOF
13176cat confdefs.h >>conftest.$ac_ext
13177cat >>conftest.$ac_ext <<_ACEOF
13178/* end confdefs.h. */
13179#include <fenv.h>
13180
13181int
13182main ()
13183{
13184#ifndef FE_ALL_EXCEPT
13185 char *p = (char *) FE_ALL_EXCEPT;
13186 return !p;
13187#endif
13188
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext
13194if { (ac_try="$ac_compile"
13195case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211esac
13212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest.$ac_objext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221esac
13222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_have_decl_FE_ALL_EXCEPT=yes
13228else
13229 echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 ac_cv_have_decl_FE_ALL_EXCEPT=no
13233fi
13234
13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236fi
13237{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13238echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13239if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13240
13241cat >>confdefs.h <<_ACEOF
13242#define HAVE_DECL_FE_ALL_EXCEPT 1
13243_ACEOF
13244
13245
13246else
13247 cat >>confdefs.h <<_ACEOF
13248#define HAVE_DECL_FE_ALL_EXCEPT 0
13249_ACEOF
13250
13251
13252fi
13253{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13254echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13255if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13257else
13258 cat >conftest.$ac_ext <<_ACEOF
13259/* confdefs.h. */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h. */
13264#include <fenv.h>
13265
13266int
13267main ()
13268{
13269#ifndef FE_INEXACT
13270 char *p = (char *) FE_INEXACT;
13271 return !p;
13272#endif
13273
13274 ;
13275 return 0;
13276}
13277_ACEOF
13278rm -f conftest.$ac_objext
13279if { (ac_try="$ac_compile"
13280case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compile") 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296esac
13297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } &&
13302 { ac_try='test -s conftest.$ac_objext'
13303 { (case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13306esac
13307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_try") 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_have_decl_FE_INEXACT=yes
13313else
13314 echo "$as_me: failed program was:" >&5
13315sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 ac_cv_have_decl_FE_INEXACT=no
13318fi
13319
13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321fi
13322{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13323echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13324if test $ac_cv_have_decl_FE_INEXACT = yes; then
13325
13326cat >>confdefs.h <<_ACEOF
13327#define HAVE_DECL_FE_INEXACT 1
13328_ACEOF
13329
13330
13331else
13332 cat >>confdefs.h <<_ACEOF
13333#define HAVE_DECL_FE_INEXACT 0
13334_ACEOF
13335
13336
13337fi
13338
13339
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000013340if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013341
13342for ac_header in pthread.h
13343do
13344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350fi
13351ac_res=`eval echo '${'$as_ac_Header'}'`
13352 { echo "$as_me:$LINENO: result: $ac_res" >&5
13353echo "${ECHO_T}$ac_res" >&6; }
13354else
13355 # Is the header compilable?
13356{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13358cat >conftest.$ac_ext <<_ACEOF
13359/* confdefs.h. */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
13363/* end confdefs.h. */
13364$ac_includes_default
13365#include <$ac_header>
13366_ACEOF
13367rm -f conftest.$ac_objext
13368if { (ac_try="$ac_compile"
13369case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372esac
13373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_compile") 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385esac
13386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest.$ac_objext'
13392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13395esac
13396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_header_compiler=yes
13402else
13403 echo "$as_me: failed program was:" >&5
13404sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 ac_header_compiler=no
13407fi
13408
13409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13411echo "${ECHO_T}$ac_header_compiler" >&6; }
13412
13413# Is the header present?
13414{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13416cat >conftest.$ac_ext <<_ACEOF
13417/* confdefs.h. */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h. */
13422#include <$ac_header>
13423_ACEOF
13424if { (ac_try="$ac_cpp conftest.$ac_ext"
13425case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428esac
13429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13431 ac_status=$?
13432 grep -v '^ *+' conftest.er1 >conftest.err
13433 rm -f conftest.er1
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } >/dev/null; then
13437 if test -s conftest.err; then
13438 ac_cpp_err=$ac_c_preproc_warn_flag
13439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13440 else
13441 ac_cpp_err=
13442 fi
13443else
13444 ac_cpp_err=yes
13445fi
13446if test -z "$ac_cpp_err"; then
13447 ac_header_preproc=yes
13448else
13449 echo "$as_me: failed program was:" >&5
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
13452 ac_header_preproc=no
13453fi
13454
13455rm -f conftest.err conftest.$ac_ext
13456{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13457echo "${ECHO_T}$ac_header_preproc" >&6; }
13458
13459# So? What about this header?
13460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13461 yes:no: )
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13466 ac_header_preproc=yes
13467 ;;
13468 no:yes:* )
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13481 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013482## ------------------------------------ ##
13483## Report this to http://llvm.org/bugs/ ##
13484## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013485_ASBOX
13486 ) | sed "s/^/$as_me: WARNING: /" >&2
13487 ;;
13488esac
13489{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493else
13494 eval "$as_ac_Header=\$ac_header_preproc"
13495fi
13496ac_res=`eval echo '${'$as_ac_Header'}'`
13497 { echo "$as_me:$LINENO: result: $ac_res" >&5
13498echo "${ECHO_T}$ac_res" >&6; }
13499
13500fi
13501if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000013502 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000013504_ACEOF
13505 HAVE_PTHREAD=1
Reid Spencerd4399922006-12-01 00:37:14 +000013506
13507else
13508 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000013509
13510fi
13511
Reid Spencerb8135562007-08-17 05:45:26 +000013512done
Reid Spencerd4399922006-12-01 00:37:14 +000013513
13514else
13515 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000013516
13517fi
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000013518if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13519
13520for ac_header in zlib.h
13521do
13522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528fi
13529ac_res=`eval echo '${'$as_ac_Header'}'`
13530 { echo "$as_me:$LINENO: result: $ac_res" >&5
13531echo "${ECHO_T}$ac_res" >&6; }
13532else
13533 # Is the header compilable?
13534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13536cat >conftest.$ac_ext <<_ACEOF
13537/* confdefs.h. */
13538_ACEOF
13539cat confdefs.h >>conftest.$ac_ext
13540cat >>conftest.$ac_ext <<_ACEOF
13541/* end confdefs.h. */
13542$ac_includes_default
13543#include <$ac_header>
13544_ACEOF
13545rm -f conftest.$ac_objext
13546if { (ac_try="$ac_compile"
13547case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_compile") 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13560 { (case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563esac
13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_try") 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573esac
13574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_header_compiler=yes
13580else
13581 echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
13583
13584 ac_header_compiler=no
13585fi
13586
13587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589echo "${ECHO_T}$ac_header_compiler" >&6; }
13590
13591# Is the header present?
13592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13594cat >conftest.$ac_ext <<_ACEOF
13595/* confdefs.h. */
13596_ACEOF
13597cat confdefs.h >>conftest.$ac_ext
13598cat >>conftest.$ac_ext <<_ACEOF
13599/* end confdefs.h. */
13600#include <$ac_header>
13601_ACEOF
13602if { (ac_try="$ac_cpp conftest.$ac_ext"
13603case "(($ac_try" in
13604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605 *) ac_try_echo=$ac_try;;
13606esac
13607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13609 ac_status=$?
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } >/dev/null; then
13615 if test -s conftest.err; then
13616 ac_cpp_err=$ac_c_preproc_warn_flag
13617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13618 else
13619 ac_cpp_err=
13620 fi
13621else
13622 ac_cpp_err=yes
13623fi
13624if test -z "$ac_cpp_err"; then
13625 ac_header_preproc=yes
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_header_preproc=no
13631fi
13632
13633rm -f conftest.err conftest.$ac_ext
13634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635echo "${ECHO_T}$ac_header_preproc" >&6; }
13636
13637# So? What about this header?
13638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13639 yes:no: )
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13644 ac_header_preproc=yes
13645 ;;
13646 no:yes:* )
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13659 ( cat <<\_ASBOX
13660## ------------------------------------ ##
13661## Report this to http://llvm.org/bugs/ ##
13662## ------------------------------------ ##
13663_ASBOX
13664 ) | sed "s/^/$as_me: WARNING: /" >&2
13665 ;;
13666esac
13667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672 eval "$as_ac_Header=\$ac_header_preproc"
13673fi
13674ac_res=`eval echo '${'$as_ac_Header'}'`
13675 { echo "$as_me:$LINENO: result: $ac_res" >&5
13676echo "${ECHO_T}$ac_res" >&6; }
13677
13678fi
13679if test `eval echo '${'$as_ac_Header'}'` = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13682_ACEOF
13683 HAVE_LIBZ=1
13684
13685else
13686 HAVE_LIBZ=0
13687
13688fi
13689
13690done
13691
13692else
13693 HAVE_LIBZ=0
13694
13695fi
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000013696
Nick Lewycky86679902009-06-06 06:25:09 +000013697if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013698
13699
13700for ac_header in ffi.h ffi/ffi.h
13701do
13702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708fi
13709ac_res=`eval echo '${'$as_ac_Header'}'`
13710 { echo "$as_me:$LINENO: result: $ac_res" >&5
13711echo "${ECHO_T}$ac_res" >&6; }
13712else
13713 # Is the header compilable?
13714{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13716cat >conftest.$ac_ext <<_ACEOF
13717/* confdefs.h. */
13718_ACEOF
13719cat confdefs.h >>conftest.$ac_ext
13720cat >>conftest.$ac_ext <<_ACEOF
13721/* end confdefs.h. */
13722$ac_includes_default
13723#include <$ac_header>
13724_ACEOF
13725rm -f conftest.$ac_objext
13726if { (ac_try="$ac_compile"
13727case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730esac
13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_compile") 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743esac
13744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753esac
13754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_header_compiler=yes
13760else
13761 echo "$as_me: failed program was:" >&5
13762sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_header_compiler=no
13765fi
13766
13767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13769echo "${ECHO_T}$ac_header_compiler" >&6; }
13770
13771# Is the header present?
13772{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13774cat >conftest.$ac_ext <<_ACEOF
13775/* confdefs.h. */
13776_ACEOF
13777cat confdefs.h >>conftest.$ac_ext
13778cat >>conftest.$ac_ext <<_ACEOF
13779/* end confdefs.h. */
13780#include <$ac_header>
13781_ACEOF
13782if { (ac_try="$ac_cpp conftest.$ac_ext"
13783case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786esac
13787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13789 ac_status=$?
13790 grep -v '^ *+' conftest.er1 >conftest.err
13791 rm -f conftest.er1
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } >/dev/null; then
13795 if test -s conftest.err; then
13796 ac_cpp_err=$ac_c_preproc_warn_flag
13797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13798 else
13799 ac_cpp_err=
13800 fi
13801else
13802 ac_cpp_err=yes
13803fi
13804if test -z "$ac_cpp_err"; then
13805 ac_header_preproc=yes
13806else
13807 echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810 ac_header_preproc=no
13811fi
13812
13813rm -f conftest.err conftest.$ac_ext
13814{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13815echo "${ECHO_T}$ac_header_preproc" >&6; }
13816
13817# So? What about this header?
13818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13819 yes:no: )
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13824 ac_header_preproc=yes
13825 ;;
13826 no:yes:* )
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13830echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13834echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13839 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000013840## ------------------------------------ ##
13841## Report this to http://llvm.org/bugs/ ##
13842## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013843_ASBOX
13844 ) | sed "s/^/$as_me: WARNING: /" >&2
13845 ;;
13846esac
13847{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851else
13852 eval "$as_ac_Header=\$ac_header_preproc"
13853fi
13854ac_res=`eval echo '${'$as_ac_Header'}'`
13855 { echo "$as_me:$LINENO: result: $ac_res" >&5
13856echo "${ECHO_T}$ac_res" >&6; }
13857
13858fi
13859if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky11e92142009-02-04 06:27:44 +000013860 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky11e92142009-02-04 06:27:44 +000013862_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000013863
13864fi
13865
13866done
13867
Nick Lewycky86679902009-06-06 06:25:09 +000013868fi
Nick Lewycky11e92142009-02-04 06:27:44 +000013869
Nick Lewyckyc94134d2009-01-20 00:52:24 +000013870
Eric Christophere9c1bb62010-06-22 21:01:04 +000013871for ac_header in CrashReporterClient.h
13872do
13873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13879fi
13880ac_res=`eval echo '${'$as_ac_Header'}'`
13881 { echo "$as_me:$LINENO: result: $ac_res" >&5
13882echo "${ECHO_T}$ac_res" >&6; }
13883else
13884 # Is the header compilable?
13885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13887cat >conftest.$ac_ext <<_ACEOF
13888/* confdefs.h. */
13889_ACEOF
13890cat confdefs.h >>conftest.$ac_ext
13891cat >>conftest.$ac_ext <<_ACEOF
13892/* end confdefs.h. */
13893$ac_includes_default
13894#include <$ac_header>
13895_ACEOF
13896rm -f conftest.$ac_objext
13897if { (ac_try="$ac_compile"
13898case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13901esac
13902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_compile") 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } &&
13910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13911 { (case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13914esac
13915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_try") 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924esac
13925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_try") 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_header_compiler=yes
13931else
13932 echo "$as_me: failed program was:" >&5
13933sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 ac_header_compiler=no
13936fi
13937
13938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13940echo "${ECHO_T}$ac_header_compiler" >&6; }
13941
13942# Is the header present?
13943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13945cat >conftest.$ac_ext <<_ACEOF
13946/* confdefs.h. */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h. */
13951#include <$ac_header>
13952_ACEOF
13953if { (ac_try="$ac_cpp conftest.$ac_ext"
13954case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13957esac
13958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13960 ac_status=$?
13961 grep -v '^ *+' conftest.er1 >conftest.err
13962 rm -f conftest.er1
13963 cat conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } >/dev/null; then
13966 if test -s conftest.err; then
13967 ac_cpp_err=$ac_c_preproc_warn_flag
13968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13969 else
13970 ac_cpp_err=
13971 fi
13972else
13973 ac_cpp_err=yes
13974fi
13975if test -z "$ac_cpp_err"; then
13976 ac_header_preproc=yes
13977else
13978 echo "$as_me: failed program was:" >&5
13979sed 's/^/| /' conftest.$ac_ext >&5
13980
13981 ac_header_preproc=no
13982fi
13983
13984rm -f conftest.err conftest.$ac_ext
13985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13986echo "${ECHO_T}$ac_header_preproc" >&6; }
13987
13988# So? What about this header?
13989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13990 yes:no: )
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13995 ac_header_preproc=yes
13996 ;;
13997 no:yes:* )
13998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14001echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14005echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14010 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000014011## ------------------------------------ ##
14012## Report this to http://llvm.org/bugs/ ##
14013## ------------------------------------ ##
Eric Christophere9c1bb62010-06-22 21:01:04 +000014014_ASBOX
14015 ) | sed "s/^/$as_me: WARNING: /" >&2
14016 ;;
14017esac
14018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14022else
14023 eval "$as_ac_Header=\$ac_header_preproc"
14024fi
14025ac_res=`eval echo '${'$as_ac_Header'}'`
14026 { echo "$as_me:$LINENO: result: $ac_res" >&5
14027echo "${ECHO_T}$ac_res" >&6; }
14028
14029fi
14030if test `eval echo '${'$as_ac_Header'}'` = yes; then
14031 cat >>confdefs.h <<_ACEOF
14032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14033_ACEOF
14034
14035fi
14036
14037done
14038
14039
Eric Christopherba4f7722010-12-07 02:05:42 +000014040{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14041echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000014042cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014043
14044 /* confdefs.h. */
Eric Christopherca466732010-12-03 07:45:22 +000014045_ACEOF
14046cat confdefs.h >>conftest.$ac_ext
14047cat >>conftest.$ac_ext <<_ACEOF
14048/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014049
14050 extern const char *__crashreporter_info__;
14051 int main() {
14052 __crashreporter_info__ = "test";
14053 return 0;
14054 }
14055
Eric Christopherca466732010-12-03 07:45:22 +000014056
Eric Christopherca466732010-12-03 07:45:22 +000014057_ACEOF
14058rm -f conftest.$ac_objext conftest$ac_exeext
14059if { (ac_try="$ac_link"
14060case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_link") 2>conftest.er1
14066 ac_status=$?
14067 grep -v '^ *+' conftest.er1 >conftest.err
14068 rm -f conftest.er1
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076esac
14077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest$ac_exeext'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014092
Eric Christopherba4f7722010-12-07 02:05:42 +000014093 { echo "$as_me:$LINENO: result: yes" >&5
14094echo "${ECHO_T}yes" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000014095
14096cat >>confdefs.h <<\_ACEOF
14097#define HAVE_CRASHREPORTER_INFO 1
14098_ACEOF
14099
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014100
Eric Christopherba4f7722010-12-07 02:05:42 +000014101else
14102 echo "$as_me: failed program was:" >&5
14103sed 's/^/| /' conftest.$ac_ext >&5
14104
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014105
14106 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopherba4f7722010-12-07 02:05:42 +000014107echo "${ECHO_T}no" >&6; }
14108
14109cat >>confdefs.h <<\_ACEOF
14110#define HAVE_CRASHREPORTER_INFO 0
14111_ACEOF
14112
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000014113
Eric Christopherca466732010-12-03 07:45:22 +000014114fi
Eric Christophere9c1bb62010-06-22 21:01:04 +000014115
Eric Christopherba4f7722010-12-07 02:05:42 +000014116rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118
14119
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000014120
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014121 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14122echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14123if test "${ac_cv_huge_val_sanity+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer128ae102006-11-03 18:04:08 +000014125else
14126
Reid Spencer7b7ab9c2006-11-03 19:49:16 +000014127 ac_ext=cpp
14128ac_cpp='$CXXCPP $CPPFLAGS'
14129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencer128ae102006-11-03 18:04:08 +000014132
Eric Christopherf0ee6a12010-03-02 05:06:54 +000014133 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher8e52bdc2012-04-02 06:54:01 +000014134 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014135 if test "$cross_compiling" = yes; then
Reid Spencer128ae102006-11-03 18:04:08 +000014136 ac_cv_huge_val_sanity=yes
14137else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014138 cat >conftest.$ac_ext <<_ACEOF
14139/* confdefs.h. */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer128ae102006-11-03 18:04:08 +000014143/* end confdefs.h. */
14144#include <math.h>
14145int
14146main ()
14147{
14148double x = HUGE_VAL; return x != x;
14149 ;
14150 return 0;
14151}
14152_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014153rm -f conftest$ac_exeext
14154if { (ac_try="$ac_link"
14155case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158esac
14159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14164 { (case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14167esac
14168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_try") 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
Reid Spencer128ae102006-11-03 18:04:08 +000014173 ac_cv_huge_val_sanity=yes
14174else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014175 echo "$as_me: program exited with status $ac_status" >&5
14176echo "$as_me: failed program was:" >&5
14177sed 's/^/| /' conftest.$ac_ext >&5
14178
14179( exit $ac_status )
14180ac_cv_huge_val_sanity=no
Reid Spencer128ae102006-11-03 18:04:08 +000014181fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014182rm -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 +000014183fi
14184
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014185
Eric Christopherf0ee6a12010-03-02 05:06:54 +000014186 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencer128ae102006-11-03 18:04:08 +000014187 ac_ext=c
14188ac_cpp='$CPP $CPPFLAGS'
14189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14191ac_compiler_gnu=$ac_cv_c_compiler_gnu
14192
14193
14194fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014195{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14196echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencer128ae102006-11-03 18:04:08 +000014197 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14198
14199
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014200{ echo "$as_me:$LINENO: checking for pid_t" >&5
14201echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14202if test "${ac_cv_type_pid_t+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14204else
14205 cat >conftest.$ac_ext <<_ACEOF
14206/* confdefs.h. */
14207_ACEOF
14208cat confdefs.h >>conftest.$ac_ext
14209cat >>conftest.$ac_ext <<_ACEOF
14210/* end confdefs.h. */
14211$ac_includes_default
14212typedef pid_t ac__type_new_;
14213int
14214main ()
14215{
14216if ((ac__type_new_ *) 0)
14217 return 0;
14218if (sizeof (ac__type_new_))
14219 return 0;
14220 ;
14221 return 0;
14222}
14223_ACEOF
14224rm -f conftest.$ac_objext
14225if { (ac_try="$ac_compile"
14226case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229esac
14230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_compile") 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest.$ac_objext'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252esac
14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_cv_type_pid_t=yes
14259else
14260 echo "$as_me: failed program was:" >&5
14261sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000014262
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014263 ac_cv_type_pid_t=no
14264fi
14265
14266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14267fi
14268{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14269echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14270if test $ac_cv_type_pid_t = yes; then
14271 :
John Criswell3ef61af2003-06-30 21:59:07 +000014272else
14273
14274cat >>confdefs.h <<_ACEOF
14275#define pid_t int
14276_ACEOF
14277
14278fi
14279
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014280{ echo "$as_me:$LINENO: checking for size_t" >&5
14281echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14282if test "${ac_cv_type_size_t+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14284else
14285 cat >conftest.$ac_ext <<_ACEOF
14286/* confdefs.h. */
14287_ACEOF
14288cat confdefs.h >>conftest.$ac_ext
14289cat >>conftest.$ac_ext <<_ACEOF
14290/* end confdefs.h. */
14291$ac_includes_default
14292typedef size_t ac__type_new_;
14293int
14294main ()
14295{
14296if ((ac__type_new_ *) 0)
14297 return 0;
14298if (sizeof (ac__type_new_))
14299 return 0;
14300 ;
14301 return 0;
14302}
14303_ACEOF
14304rm -f conftest.$ac_objext
14305if { (ac_try="$ac_compile"
14306case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309esac
14310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_compile") 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14319 { (case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322esac
14323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_try") 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332esac
14333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_try") 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 ac_cv_type_size_t=yes
14339else
14340 echo "$as_me: failed program was:" >&5
14341sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000014342
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014343 ac_cv_type_size_t=no
14344fi
14345
14346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347fi
14348{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14349echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14350if test $ac_cv_type_size_t = yes; then
14351 :
John Criswell3ef61af2003-06-30 21:59:07 +000014352else
14353
14354cat >>confdefs.h <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014355#define size_t unsigned int
John Criswell3ef61af2003-06-30 21:59:07 +000014356_ACEOF
14357
14358fi
14359
Reid Spencer0241e382004-11-25 04:51:04 +000014360
14361cat >>confdefs.h <<_ACEOF
Torok Edwinaec06332010-01-26 08:50:50 +000014362#define RETSIGTYPE void
Reid Spencer0241e382004-11-25 04:51:04 +000014363_ACEOF
14364
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014365{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14366echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14367if test "${ac_cv_struct_tm+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014369else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014370 cat >conftest.$ac_ext <<_ACEOF
14371/* confdefs.h. */
14372_ACEOF
14373cat confdefs.h >>conftest.$ac_ext
14374cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014375/* end confdefs.h. */
14376#include <sys/types.h>
14377#include <time.h>
14378
14379int
14380main ()
14381{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014382struct tm *tp; tp->tm_sec;
Reid Spencer0241e382004-11-25 04:51:04 +000014383 ;
14384 return 0;
14385}
14386_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014387rm -f conftest.$ac_objext
14388if { (ac_try="$ac_compile"
14389case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392esac
14393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_compile") 2>conftest.er1
14395 ac_status=$?
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14402 { (case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405esac
14406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_try") 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; } &&
14411 { ac_try='test -s conftest.$ac_objext'
14412 { (case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14415esac
14416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_try") 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000014421 ac_cv_struct_tm=time.h
14422else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014423 echo "$as_me: failed program was:" >&5
14424sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 ac_cv_struct_tm=sys/time.h
Reid Spencer0241e382004-11-25 04:51:04 +000014427fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014428
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000014430fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014431{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14432echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000014433if test $ac_cv_struct_tm = sys/time.h; then
14434
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014435cat >>confdefs.h <<\_ACEOF
14436#define TM_IN_SYS_TIME 1
14437_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014438
14439fi
14440
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014441{ echo "$as_me:$LINENO: checking for int64_t" >&5
14442echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14443if test "${ac_cv_type_int64_t+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445else
14446 cat >conftest.$ac_ext <<_ACEOF
14447/* confdefs.h. */
14448_ACEOF
14449cat confdefs.h >>conftest.$ac_ext
14450cat >>conftest.$ac_ext <<_ACEOF
14451/* end confdefs.h. */
14452$ac_includes_default
14453typedef int64_t ac__type_new_;
14454int
14455main ()
14456{
14457if ((ac__type_new_ *) 0)
14458 return 0;
14459if (sizeof (ac__type_new_))
14460 return 0;
14461 ;
14462 return 0;
14463}
14464_ACEOF
14465rm -f conftest.$ac_objext
14466if { (ac_try="$ac_compile"
14467case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14470esac
14471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_compile") 2>conftest.er1
14473 ac_status=$?
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14480 { (case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14483esac
14484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_try") 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; } &&
14489 { ac_try='test -s conftest.$ac_objext'
14490 { (case "(($ac_try" in
14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492 *) ac_try_echo=$ac_try;;
14493esac
14494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495 (eval "$ac_try") 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_type_int64_t=yes
14500else
14501 echo "$as_me: failed program was:" >&5
14502sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 ac_cv_type_int64_t=no
14505fi
14506
14507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508fi
14509{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14510echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14511if test $ac_cv_type_int64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000014512
14513cat >>confdefs.h <<_ACEOF
14514#define HAVE_INT64_T 1
14515_ACEOF
14516
14517
14518else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014519 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14520echo "$as_me: error: Type int64_t required but not found" >&2;}
14521 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000014522fi
14523
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014524{ echo "$as_me:$LINENO: checking for uint64_t" >&5
14525echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14526if test "${ac_cv_type_uint64_t+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528else
14529 cat >conftest.$ac_ext <<_ACEOF
14530/* confdefs.h. */
14531_ACEOF
14532cat confdefs.h >>conftest.$ac_ext
14533cat >>conftest.$ac_ext <<_ACEOF
14534/* end confdefs.h. */
14535$ac_includes_default
14536typedef uint64_t ac__type_new_;
14537int
14538main ()
14539{
14540if ((ac__type_new_ *) 0)
14541 return 0;
14542if (sizeof (ac__type_new_))
14543 return 0;
14544 ;
14545 return 0;
14546}
14547_ACEOF
14548rm -f conftest.$ac_objext
14549if { (ac_try="$ac_compile"
14550case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553esac
14554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_compile") 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566esac
14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14576esac
14577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
14582 ac_cv_type_uint64_t=yes
14583else
14584 echo "$as_me: failed program was:" >&5
14585sed 's/^/| /' conftest.$ac_ext >&5
14586
14587 ac_cv_type_uint64_t=no
14588fi
14589
14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591fi
14592{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14593echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14594if test $ac_cv_type_uint64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000014595
14596cat >>confdefs.h <<_ACEOF
14597#define HAVE_UINT64_T 1
14598_ACEOF
14599
14600
14601else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014602 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14603echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14604if test "${ac_cv_type_u_int64_t+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606else
14607 cat >conftest.$ac_ext <<_ACEOF
14608/* confdefs.h. */
14609_ACEOF
14610cat confdefs.h >>conftest.$ac_ext
14611cat >>conftest.$ac_ext <<_ACEOF
14612/* end confdefs.h. */
14613$ac_includes_default
14614typedef u_int64_t ac__type_new_;
14615int
14616main ()
14617{
14618if ((ac__type_new_ *) 0)
14619 return 0;
14620if (sizeof (ac__type_new_))
14621 return 0;
14622 ;
14623 return 0;
14624}
14625_ACEOF
14626rm -f conftest.$ac_objext
14627if { (ac_try="$ac_compile"
14628case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
14645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654esac
14655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_cv_type_u_int64_t=yes
14661else
14662 echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 ac_cv_type_u_int64_t=no
14666fi
14667
14668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669fi
14670{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14671echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14672if test $ac_cv_type_u_int64_t = yes; then
John Criswelld672a3d2004-09-02 18:44:44 +000014673
14674cat >>confdefs.h <<_ACEOF
14675#define HAVE_U_INT64_T 1
14676_ACEOF
14677
14678
Misha Brukmancb46e662004-09-02 23:02:30 +000014679else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014680 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14681echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14682 { (exit 1); exit 1; }; }
Misha Brukmancb46e662004-09-02 23:02:30 +000014683fi
14684
John Criswelld672a3d2004-09-02 18:44:44 +000014685fi
14686
Reid Spencer0241e382004-11-25 04:51:04 +000014687
14688
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014689
14690
14691
14692
14693
14694
14695
Reid Spencera609b652006-01-23 08:15:53 +000014696for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014697do
14698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14699{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14701if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703else
14704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
14710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14712#define $ac_func innocuous_$ac_func
14713
14714/* System header to define __stub macros and hopefully few prototypes,
14715 which can conflict with char $ac_func (); below.
14716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14717 <limits.h> exists even on freestanding compilers. */
14718
14719#ifdef __STDC__
14720# include <limits.h>
14721#else
14722# include <assert.h>
14723#endif
14724
14725#undef $ac_func
14726
14727/* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14730#ifdef __cplusplus
14731extern "C"
14732#endif
14733char $ac_func ();
14734/* The GNU C library defines this for functions which it implements
14735 to always fail with ENOSYS. Some functions are actually named
14736 something starting with __ and the normal name is an alias. */
14737#if defined __stub_$ac_func || defined __stub___$ac_func
14738choke me
14739#endif
14740
14741int
14742main ()
14743{
14744return $ac_func ();
14745 ;
14746 return 0;
14747}
14748_ACEOF
14749rm -f conftest.$ac_objext conftest$ac_exeext
14750if { (ac_try="$ac_link"
14751case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754esac
14755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14764 { (case "(($ac_try" in
14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14767esac
14768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769 (eval "$ac_try") 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest$ac_exeext'
14774 { (case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14777esac
14778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_try") 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 eval "$as_ac_var=yes"
14784else
14785 echo "$as_me: failed program was:" >&5
14786sed 's/^/| /' conftest.$ac_ext >&5
14787
14788 eval "$as_ac_var=no"
14789fi
14790
14791rm -f core conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14793fi
14794ac_res=`eval echo '${'$as_ac_var'}'`
14795 { echo "$as_me:$LINENO: result: $ac_res" >&5
14796echo "${ECHO_T}$ac_res" >&6; }
14797if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000014798 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000014800_ACEOF
14801
14802fi
Reid Spencer0241e382004-11-25 04:51:04 +000014803done
John Criswell3ef61af2003-06-30 21:59:07 +000014804
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014805
14806
14807
14808
Reid Spencerdf523642007-07-13 10:05:30 +000014809for ac_func in powf fmodf strtof round
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014810do
14811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14812{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14814if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817 cat >conftest.$ac_ext <<_ACEOF
14818/* confdefs.h. */
14819_ACEOF
14820cat confdefs.h >>conftest.$ac_ext
14821cat >>conftest.$ac_ext <<_ACEOF
14822/* end confdefs.h. */
14823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14825#define $ac_func innocuous_$ac_func
14826
14827/* System header to define __stub macros and hopefully few prototypes,
14828 which can conflict with char $ac_func (); below.
14829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14830 <limits.h> exists even on freestanding compilers. */
14831
14832#ifdef __STDC__
14833# include <limits.h>
14834#else
14835# include <assert.h>
14836#endif
14837
14838#undef $ac_func
14839
14840/* Override any GCC internal prototype to avoid an error.
14841 Use char because int might match the return type of a GCC
14842 builtin and then its argument prototype would still apply. */
14843#ifdef __cplusplus
14844extern "C"
14845#endif
14846char $ac_func ();
14847/* The GNU C library defines this for functions which it implements
14848 to always fail with ENOSYS. Some functions are actually named
14849 something starting with __ and the normal name is an alias. */
14850#if defined __stub_$ac_func || defined __stub___$ac_func
14851choke me
14852#endif
14853
14854int
14855main ()
14856{
14857return $ac_func ();
14858 ;
14859 return 0;
14860}
14861_ACEOF
14862rm -f conftest.$ac_objext conftest$ac_exeext
14863if { (ac_try="$ac_link"
14864case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14867esac
14868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_link") 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14877 { (case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14880esac
14881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_try") 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest$ac_exeext'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890esac
14891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 eval "$as_ac_var=yes"
14897else
14898 echo "$as_me: failed program was:" >&5
14899sed 's/^/| /' conftest.$ac_ext >&5
14900
14901 eval "$as_ac_var=no"
14902fi
14903
14904rm -f core conftest.err conftest.$ac_objext \
14905 conftest$ac_exeext conftest.$ac_ext
14906fi
14907ac_res=`eval echo '${'$as_ac_var'}'`
14908 { echo "$as_me:$LINENO: result: $ac_res" >&5
14909echo "${ECHO_T}$ac_res" >&6; }
14910if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf523642007-07-13 10:05:30 +000014911 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf523642007-07-13 10:05:30 +000014913_ACEOF
14914
14915fi
14916done
14917
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014918
14919
14920
14921
14922
Owen Anderson132ae8b2013-02-07 00:21:34 +000014923for ac_func in log log2 log10 exp exp2
14924do
14925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14926{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14928if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930else
14931 cat >conftest.$ac_ext <<_ACEOF
14932/* confdefs.h. */
14933_ACEOF
14934cat confdefs.h >>conftest.$ac_ext
14935cat >>conftest.$ac_ext <<_ACEOF
14936/* end confdefs.h. */
14937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14939#define $ac_func innocuous_$ac_func
14940
14941/* System header to define __stub macros and hopefully few prototypes,
14942 which can conflict with char $ac_func (); below.
14943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14944 <limits.h> exists even on freestanding compilers. */
14945
14946#ifdef __STDC__
14947# include <limits.h>
14948#else
14949# include <assert.h>
14950#endif
14951
14952#undef $ac_func
14953
14954/* Override any GCC internal prototype to avoid an error.
14955 Use char because int might match the return type of a GCC
14956 builtin and then its argument prototype would still apply. */
14957#ifdef __cplusplus
14958extern "C"
14959#endif
14960char $ac_func ();
14961/* The GNU C library defines this for functions which it implements
14962 to always fail with ENOSYS. Some functions are actually named
14963 something starting with __ and the normal name is an alias. */
14964#if defined __stub_$ac_func || defined __stub___$ac_func
14965choke me
14966#endif
14967
14968int
14969main ()
14970{
14971return $ac_func ();
14972 ;
14973 return 0;
14974}
14975_ACEOF
14976rm -f conftest.$ac_objext conftest$ac_exeext
14977if { (ac_try="$ac_link"
14978case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981esac
14982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14994esac
14995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest$ac_exeext'
15001 { (case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004esac
15005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_try") 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 eval "$as_ac_var=yes"
15011else
15012 echo "$as_me: failed program was:" >&5
15013sed 's/^/| /' conftest.$ac_ext >&5
15014
15015 eval "$as_ac_var=no"
15016fi
15017
15018rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020fi
15021ac_res=`eval echo '${'$as_ac_var'}'`
15022 { echo "$as_me:$LINENO: result: $ac_res" >&5
15023echo "${ECHO_T}$ac_res" >&6; }
15024if test `eval echo '${'$as_ac_var'}'` = yes; then
15025 cat >>confdefs.h <<_ACEOF
15026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15027_ACEOF
15028
15029fi
15030done
15031
15032
15033
15034
15035
15036
Reid Spenceredd2ccc2007-02-16 19:17:20 +000015037for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015038do
15039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15040{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15042if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044else
15045 cat >conftest.$ac_ext <<_ACEOF
15046/* confdefs.h. */
15047_ACEOF
15048cat confdefs.h >>conftest.$ac_ext
15049cat >>conftest.$ac_ext <<_ACEOF
15050/* end confdefs.h. */
15051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15053#define $ac_func innocuous_$ac_func
15054
15055/* System header to define __stub macros and hopefully few prototypes,
15056 which can conflict with char $ac_func (); below.
15057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15058 <limits.h> exists even on freestanding compilers. */
15059
15060#ifdef __STDC__
15061# include <limits.h>
15062#else
15063# include <assert.h>
15064#endif
15065
15066#undef $ac_func
15067
15068/* Override any GCC internal prototype to avoid an error.
15069 Use char because int might match the return type of a GCC
15070 builtin and then its argument prototype would still apply. */
15071#ifdef __cplusplus
15072extern "C"
15073#endif
15074char $ac_func ();
15075/* The GNU C library defines this for functions which it implements
15076 to always fail with ENOSYS. Some functions are actually named
15077 something starting with __ and the normal name is an alias. */
15078#if defined __stub_$ac_func || defined __stub___$ac_func
15079choke me
15080#endif
15081
15082int
15083main ()
15084{
15085return $ac_func ();
15086 ;
15087 return 0;
15088}
15089_ACEOF
15090rm -f conftest.$ac_objext conftest$ac_exeext
15091if { (ac_try="$ac_link"
15092case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_link") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15105 { (case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108esac
15109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_try") 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest$ac_exeext'
15115 { (case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15118esac
15119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_try") 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
15124 eval "$as_ac_var=yes"
15125else
15126 echo "$as_me: failed program was:" >&5
15127sed 's/^/| /' conftest.$ac_ext >&5
15128
15129 eval "$as_ac_var=no"
15130fi
15131
15132rm -f core conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15134fi
15135ac_res=`eval echo '${'$as_ac_var'}'`
15136 { echo "$as_me:$LINENO: result: $ac_res" >&5
15137echo "${ECHO_T}$ac_res" >&6; }
15138if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spenceredd2ccc2007-02-16 19:17:20 +000015139 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spenceredd2ccc2007-02-16 19:17:20 +000015141_ACEOF
15142
15143fi
15144done
15145
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015146
15147
15148
Reid Spenceredd2ccc2007-02-16 19:17:20 +000015149for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015150do
15151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15152{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156else
15157 cat >conftest.$ac_ext <<_ACEOF
15158/* confdefs.h. */
15159_ACEOF
15160cat confdefs.h >>conftest.$ac_ext
15161cat >>conftest.$ac_ext <<_ACEOF
15162/* end confdefs.h. */
15163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15165#define $ac_func innocuous_$ac_func
15166
15167/* System header to define __stub macros and hopefully few prototypes,
15168 which can conflict with char $ac_func (); below.
15169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15170 <limits.h> exists even on freestanding compilers. */
15171
15172#ifdef __STDC__
15173# include <limits.h>
15174#else
15175# include <assert.h>
15176#endif
15177
15178#undef $ac_func
15179
15180/* Override any GCC internal prototype to avoid an error.
15181 Use char because int might match the return type of a GCC
15182 builtin and then its argument prototype would still apply. */
15183#ifdef __cplusplus
15184extern "C"
15185#endif
15186char $ac_func ();
15187/* The GNU C library defines this for functions which it implements
15188 to always fail with ENOSYS. Some functions are actually named
15189 something starting with __ and the normal name is an alias. */
15190#if defined __stub_$ac_func || defined __stub___$ac_func
15191choke me
15192#endif
15193
15194int
15195main ()
15196{
15197return $ac_func ();
15198 ;
15199 return 0;
15200}
15201_ACEOF
15202rm -f conftest.$ac_objext conftest$ac_exeext
15203if { (ac_try="$ac_link"
15204case "(($ac_try" in
15205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206 *) ac_try_echo=$ac_try;;
15207esac
15208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209 (eval "$ac_link") 2>conftest.er1
15210 ac_status=$?
15211 grep -v '^ *+' conftest.er1 >conftest.err
15212 rm -f conftest.er1
15213 cat conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15217 { (case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220esac
15221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_try") 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest$ac_exeext'
15227 { (case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15230esac
15231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_try") 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; }; then
15236 eval "$as_ac_var=yes"
15237else
15238 echo "$as_me: failed program was:" >&5
15239sed 's/^/| /' conftest.$ac_ext >&5
15240
15241 eval "$as_ac_var=no"
15242fi
15243
15244rm -f core conftest.err conftest.$ac_objext \
15245 conftest$ac_exeext conftest.$ac_ext
15246fi
15247ac_res=`eval echo '${'$as_ac_var'}'`
15248 { echo "$as_me:$LINENO: result: $ac_res" >&5
15249echo "${ECHO_T}$ac_res" >&6; }
15250if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera609b652006-01-23 08:15:53 +000015251 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera609b652006-01-23 08:15:53 +000015253_ACEOF
15254
15255fi
15256done
15257
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015258
15259
15260
15261
15262
Eric Christopherdea3bda2010-04-16 05:14:21 +000015263
Eric Christopher30536382013-07-26 17:13:47 +000015264for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015265do
15266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15267{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15269if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271else
15272 cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
15278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15280#define $ac_func innocuous_$ac_func
15281
15282/* System header to define __stub macros and hopefully few prototypes,
15283 which can conflict with char $ac_func (); below.
15284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15285 <limits.h> exists even on freestanding compilers. */
15286
15287#ifdef __STDC__
15288# include <limits.h>
15289#else
15290# include <assert.h>
15291#endif
15292
15293#undef $ac_func
15294
15295/* Override any GCC internal prototype to avoid an error.
15296 Use char because int might match the return type of a GCC
15297 builtin and then its argument prototype would still apply. */
15298#ifdef __cplusplus
15299extern "C"
15300#endif
15301char $ac_func ();
15302/* The GNU C library defines this for functions which it implements
15303 to always fail with ENOSYS. Some functions are actually named
15304 something starting with __ and the normal name is an alias. */
15305#if defined __stub_$ac_func || defined __stub___$ac_func
15306choke me
15307#endif
15308
15309int
15310main ()
15311{
15312return $ac_func ();
15313 ;
15314 return 0;
15315}
15316_ACEOF
15317rm -f conftest.$ac_objext conftest$ac_exeext
15318if { (ac_try="$ac_link"
15319case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15322esac
15323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_link") 2>conftest.er1
15325 ac_status=$?
15326 grep -v '^ *+' conftest.er1 >conftest.err
15327 rm -f conftest.er1
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15332 { (case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335esac
15336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_try") 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; } &&
15341 { ac_try='test -s conftest$ac_exeext'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 eval "$as_ac_var=yes"
15352else
15353 echo "$as_me: failed program was:" >&5
15354sed 's/^/| /' conftest.$ac_ext >&5
15355
15356 eval "$as_ac_var=no"
15357fi
15358
15359rm -f core conftest.err conftest.$ac_objext \
15360 conftest$ac_exeext conftest.$ac_ext
15361fi
15362ac_res=`eval echo '${'$as_ac_var'}'`
15363 { echo "$as_me:$LINENO: result: $ac_res" >&5
15364echo "${ECHO_T}$ac_res" >&6; }
15365if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000015366 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000015368_ACEOF
15369
15370fi
15371done
Reid Spencera609b652006-01-23 08:15:53 +000015372
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015373
15374
15375
Todd Fiala4ccfe392014-02-05 05:04:36 +000015376for ac_func in strerror strerror_r setenv
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015377do
15378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15379{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15381if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383else
15384 cat >conftest.$ac_ext <<_ACEOF
15385/* confdefs.h. */
15386_ACEOF
15387cat confdefs.h >>conftest.$ac_ext
15388cat >>conftest.$ac_ext <<_ACEOF
15389/* end confdefs.h. */
15390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15392#define $ac_func innocuous_$ac_func
15393
15394/* System header to define __stub macros and hopefully few prototypes,
15395 which can conflict with char $ac_func (); below.
15396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15397 <limits.h> exists even on freestanding compilers. */
15398
15399#ifdef __STDC__
15400# include <limits.h>
15401#else
15402# include <assert.h>
15403#endif
15404
15405#undef $ac_func
15406
15407/* Override any GCC internal prototype to avoid an error.
15408 Use char because int might match the return type of a GCC
15409 builtin and then its argument prototype would still apply. */
15410#ifdef __cplusplus
15411extern "C"
15412#endif
15413char $ac_func ();
15414/* The GNU C library defines this for functions which it implements
15415 to always fail with ENOSYS. Some functions are actually named
15416 something starting with __ and the normal name is an alias. */
15417#if defined __stub_$ac_func || defined __stub___$ac_func
15418choke me
15419#endif
15420
15421int
15422main ()
15423{
15424return $ac_func ();
15425 ;
15426 return 0;
15427}
15428_ACEOF
15429rm -f conftest.$ac_objext conftest$ac_exeext
15430if { (ac_try="$ac_link"
15431case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434esac
15435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_link") 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15444 { (case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447esac
15448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_try") 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest$ac_exeext'
15454 { (case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15457esac
15458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459 (eval "$ac_try") 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 eval "$as_ac_var=yes"
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 eval "$as_ac_var=no"
15469fi
15470
15471rm -f core conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext conftest.$ac_ext
15473fi
15474ac_res=`eval echo '${'$as_ac_var'}'`
15475 { echo "$as_me:$LINENO: result: $ac_res" >&5
15476echo "${ECHO_T}$ac_res" >&6; }
15477if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb6681582004-12-27 06:15:02 +000015478 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb6681582004-12-27 06:15:02 +000015480_ACEOF
15481
15482fi
15483done
15484
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015485
15486
15487
15488
Chris Lattner81479022005-11-14 07:25:50 +000015489for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015490do
15491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15494if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496else
15497 cat >conftest.$ac_ext <<_ACEOF
15498/* confdefs.h. */
15499_ACEOF
15500cat confdefs.h >>conftest.$ac_ext
15501cat >>conftest.$ac_ext <<_ACEOF
15502/* end confdefs.h. */
15503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15505#define $ac_func innocuous_$ac_func
15506
15507/* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15511
15512#ifdef __STDC__
15513# include <limits.h>
15514#else
15515# include <assert.h>
15516#endif
15517
15518#undef $ac_func
15519
15520/* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15523#ifdef __cplusplus
15524extern "C"
15525#endif
15526char $ac_func ();
15527/* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530#if defined __stub_$ac_func || defined __stub___$ac_func
15531choke me
15532#endif
15533
15534int
15535main ()
15536{
15537return $ac_func ();
15538 ;
15539 return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext conftest$ac_exeext
15543if { (ac_try="$ac_link"
15544case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547esac
15548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_link") 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557 { (case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15560esac
15561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_try") 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; } &&
15566 { ac_try='test -s conftest$ac_exeext'
15567 { (case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15570esac
15571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_try") 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 eval "$as_ac_var=yes"
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581 eval "$as_ac_var=no"
15582fi
15583
15584rm -f core conftest.err conftest.$ac_objext \
15585 conftest$ac_exeext conftest.$ac_ext
15586fi
15587ac_res=`eval echo '${'$as_ac_var'}'`
15588 { echo "$as_me:$LINENO: result: $ac_res" >&5
15589echo "${ECHO_T}$ac_res" >&6; }
15590if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000015591 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000015593_ACEOF
15594
15595fi
Reid Spencer0241e382004-11-25 04:51:04 +000015596done
John Criswell3ef61af2003-06-30 21:59:07 +000015597
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015598
15599
15600
15601
Daniel Dunbar7840c542011-02-03 02:40:02 +000015602
15603for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015604do
15605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15606{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15608if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15610else
15611 cat >conftest.$ac_ext <<_ACEOF
15612/* confdefs.h. */
15613_ACEOF
15614cat confdefs.h >>conftest.$ac_ext
15615cat >>conftest.$ac_ext <<_ACEOF
15616/* end confdefs.h. */
15617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15619#define $ac_func innocuous_$ac_func
15620
15621/* System header to define __stub macros and hopefully few prototypes,
15622 which can conflict with char $ac_func (); below.
15623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15624 <limits.h> exists even on freestanding compilers. */
15625
15626#ifdef __STDC__
15627# include <limits.h>
15628#else
15629# include <assert.h>
15630#endif
15631
15632#undef $ac_func
15633
15634/* Override any GCC internal prototype to avoid an error.
15635 Use char because int might match the return type of a GCC
15636 builtin and then its argument prototype would still apply. */
15637#ifdef __cplusplus
15638extern "C"
15639#endif
15640char $ac_func ();
15641/* The GNU C library defines this for functions which it implements
15642 to always fail with ENOSYS. Some functions are actually named
15643 something starting with __ and the normal name is an alias. */
15644#if defined __stub_$ac_func || defined __stub___$ac_func
15645choke me
15646#endif
15647
15648int
15649main ()
15650{
15651return $ac_func ();
15652 ;
15653 return 0;
15654}
15655_ACEOF
15656rm -f conftest.$ac_objext conftest$ac_exeext
15657if { (ac_try="$ac_link"
15658case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15661esac
15662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_link") 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15671 { (case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15674esac
15675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_try") 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest$ac_exeext'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684esac
15685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 eval "$as_ac_var=yes"
15691else
15692 echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5
15694
15695 eval "$as_ac_var=no"
15696fi
15697
15698rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15700fi
15701ac_res=`eval echo '${'$as_ac_var'}'`
15702 { echo "$as_me:$LINENO: result: $ac_res" >&5
15703echo "${ECHO_T}$ac_res" >&6; }
15704if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera31ac4e2006-06-05 16:11:07 +000015705 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera31ac4e2006-06-05 16:11:07 +000015707_ACEOF
15708
15709fi
15710done
15711
Eric Christophera24dc7f2013-07-04 01:10:38 +000015712
15713
15714for ac_func in futimes futimens
15715do
15716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15717{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721else
15722 cat >conftest.$ac_ext <<_ACEOF
15723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
15728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15730#define $ac_func innocuous_$ac_func
15731
15732/* System header to define __stub macros and hopefully few prototypes,
15733 which can conflict with char $ac_func (); below.
15734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15735 <limits.h> exists even on freestanding compilers. */
15736
15737#ifdef __STDC__
15738# include <limits.h>
15739#else
15740# include <assert.h>
15741#endif
15742
15743#undef $ac_func
15744
15745/* Override any GCC internal prototype to avoid an error.
15746 Use char because int might match the return type of a GCC
15747 builtin and then its argument prototype would still apply. */
15748#ifdef __cplusplus
15749extern "C"
15750#endif
15751char $ac_func ();
15752/* The GNU C library defines this for functions which it implements
15753 to always fail with ENOSYS. Some functions are actually named
15754 something starting with __ and the normal name is an alias. */
15755#if defined __stub_$ac_func || defined __stub___$ac_func
15756choke me
15757#endif
15758
15759int
15760main ()
15761{
15762return $ac_func ();
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext conftest$ac_exeext
15768if { (ac_try="$ac_link"
15769case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772esac
15773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15782 { (case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15785esac
15786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_try") 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } &&
15791 { ac_try='test -s conftest$ac_exeext'
15792 { (case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15795esac
15796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_try") 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 eval "$as_ac_var=yes"
15802else
15803 echo "$as_me: failed program was:" >&5
15804sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 eval "$as_ac_var=no"
15807fi
15808
15809rm -f core conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15811fi
15812ac_res=`eval echo '${'$as_ac_var'}'`
15813 { echo "$as_me:$LINENO: result: $ac_res" >&5
15814echo "${ECHO_T}$ac_res" >&6; }
15815if test `eval echo '${'$as_ac_var'}'` = yes; then
15816 cat >>confdefs.h <<_ACEOF
15817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15818_ACEOF
15819
15820fi
15821done
15822
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015823{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15824echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15825if test "${llvm_cv_c_printf_a+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000015827else
Reid Spencerf184a862004-09-19 23:53:36 +000015828 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000015829ac_cpp='$CPP $CPPFLAGS'
15830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15832ac_compiler_gnu=$ac_cv_c_compiler_gnu
15833
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015834 if test "$cross_compiling" = yes; then
Reid Spencer8de46052004-11-27 22:01:43 +000015835 llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000015836else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015837 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerf184a862004-09-19 23:53:36 +000015838
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015839 /* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000015844
John Criswell42859552003-10-13 16:22:01 +000015845#include <stdio.h>
Reid Spencerf184a862004-09-19 23:53:36 +000015846#include <stdlib.h>
15847
John Criswell42859552003-10-13 16:22:01 +000015848int
15849main ()
15850{
15851
Reid Spencerf184a862004-09-19 23:53:36 +000015852volatile double A, B;
15853char Buffer[100];
15854A = 1;
15855A /= 10.0;
15856sprintf(Buffer, "%a", A);
15857B = atof(Buffer);
15858if (A != B)
15859 return (1);
15860if (A != 0x1.999999999999ap-4)
15861 return (1);
15862return (0);
John Criswell42859552003-10-13 16:22:01 +000015863 ;
15864 return 0;
15865}
15866_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015867rm -f conftest$ac_exeext
15868if { (ac_try="$ac_link"
15869case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15872esac
15873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_link") 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15878 { (case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15881esac
15882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883 (eval "$ac_try") 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
Reid Spencer8de46052004-11-27 22:01:43 +000015887 llvm_cv_c_printf_a=yes
John Criswell42859552003-10-13 16:22:01 +000015888else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015889 echo "$as_me: program exited with status $ac_status" >&5
15890echo "$as_me: failed program was:" >&5
15891sed 's/^/| /' conftest.$ac_ext >&5
15892
15893( exit $ac_status )
15894llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000015895fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015896rm -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 +000015897fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000015898
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015899
Reid Spencerf184a862004-09-19 23:53:36 +000015900 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000015901ac_cpp='$CPP $CPPFLAGS'
15902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904ac_compiler_gnu=$ac_cv_c_compiler_gnu
15905
Reid Spencer0241e382004-11-25 04:51:04 +000015906fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015907{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15908echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer8de46052004-11-27 22:01:43 +000015909 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswell42859552003-10-13 16:22:01 +000015910
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015911cat >>confdefs.h <<\_ACEOF
15912#define HAVE_PRINTF_A 1
15913_ACEOF
John Criswell42859552003-10-13 16:22:01 +000015914
Reid Spencerf184a862004-09-19 23:53:36 +000015915 fi
John Criswell42859552003-10-13 16:22:01 +000015916
Reid Spencer0241e382004-11-25 04:51:04 +000015917
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015918
15919 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015920echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15921if test "${ac_cv_func_rand48+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000015923else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015924
15925 ac_ext=cpp
Reid Spencer0241e382004-11-25 04:51:04 +000015926ac_cpp='$CXXCPP $CPPFLAGS'
15927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15930
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015931 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015932/* confdefs.h. */
15933_ACEOF
15934cat confdefs.h >>conftest.$ac_ext
15935cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000015936/* end confdefs.h. */
15937#include <stdlib.h>
15938int
15939main ()
15940{
15941srand48(0);lrand48();drand48();
15942 ;
15943 return 0;
15944}
15945_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015946rm -f conftest.$ac_objext
15947if { (ac_try="$ac_compile"
15948case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15951esac
15952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_compile") 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15961 { (case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964esac
15965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_try") 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; } &&
15970 { ac_try='test -s conftest.$ac_objext'
15971 { (case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974esac
15975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_try") 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000015980 ac_cv_func_rand48=yes
15981else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015982 echo "$as_me: failed program was:" >&5
15983sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 ac_cv_func_rand48=no
Reid Spencer0241e382004-11-25 04:51:04 +000015986fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015987
Reid Spencer0b52e2f2006-08-04 18:18:08 +000015988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015989 ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +000015990ac_cpp='$CPP $CPPFLAGS'
15991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15993ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000015995
Reid Spencer0241e382004-11-25 04:51:04 +000015996fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015997{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15998echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000015999
16000if test "$ac_cv_func_rand48" = "yes" ; then
16001
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016002cat >>confdefs.h <<\_ACEOF
16003#define HAVE_RAND48 1
16004_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000016005
16006fi
John Criswell3b4195f32004-02-13 21:57:29 +000016007
16008
Todd Fiala4ccfe392014-02-05 05:04:36 +000016009{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
16010echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
16011if test "${ac_cv_have_decl_arc4random+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16013else
16014 cat >conftest.$ac_ext <<_ACEOF
16015/* confdefs.h. */
16016_ACEOF
16017cat confdefs.h >>conftest.$ac_ext
16018cat >>conftest.$ac_ext <<_ACEOF
16019/* end confdefs.h. */
16020$ac_includes_default
16021int
16022main ()
16023{
16024#ifndef arc4random
16025 char *p = (char *) arc4random;
16026 return !p;
16027#endif
16028
16029 ;
16030 return 0;
16031}
16032_ACEOF
16033rm -f conftest.$ac_objext
16034if { (ac_try="$ac_compile"
16035case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16038esac
16039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_compile") 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048 { (case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051esac
16052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_try") 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16061esac
16062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_try") 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_cv_have_decl_arc4random=yes
16068else
16069 echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 ac_cv_have_decl_arc4random=no
16073fi
16074
16075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076fi
16077{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16078echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16079if test $ac_cv_have_decl_arc4random = yes; then
16080
16081cat >>confdefs.h <<_ACEOF
16082#define HAVE_DECL_ARC4RANDOM 1
16083_ACEOF
16084
16085
16086else
16087 cat >>confdefs.h <<_ACEOF
16088#define HAVE_DECL_ARC4RANDOM 0
16089_ACEOF
16090
16091
16092fi
16093
16094
16095
NAKAMURA Takumi189111802011-02-09 04:18:48 +000016096{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16097echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16098if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100else
16101 cat >conftest.$ac_ext <<_ACEOF
16102/* confdefs.h. */
16103_ACEOF
16104cat confdefs.h >>conftest.$ac_ext
16105cat >>conftest.$ac_ext <<_ACEOF
16106/* end confdefs.h. */
16107$ac_includes_default
16108int
16109main ()
16110{
16111#ifndef strerror_s
16112 char *p = (char *) strerror_s;
16113 return !p;
16114#endif
16115
16116 ;
16117 return 0;
16118}
16119_ACEOF
16120rm -f conftest.$ac_objext
16121if { (ac_try="$ac_compile"
16122case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_compile") 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16135 { (case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138esac
16139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_try") 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16148esac
16149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_cv_have_decl_strerror_s=yes
16155else
16156 echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 ac_cv_have_decl_strerror_s=no
16160fi
16161
16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163fi
16164{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16165echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16166if test $ac_cv_have_decl_strerror_s = yes; then
16167
16168cat >>confdefs.h <<_ACEOF
16169#define HAVE_DECL_STRERROR_S 1
16170_ACEOF
16171
16172
16173else
16174 cat >>confdefs.h <<_ACEOF
16175#define HAVE_DECL_STRERROR_S 0
16176_ACEOF
16177
16178
16179fi
16180
16181
16182
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000016183if test "$llvm_cv_os_type" = "MingW" ; then
16184 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16185echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16186if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188else
16189 ac_check_lib_save_LIBS=$LIBS
16190LIBS="-lgcc $LIBS"
16191cat >conftest.$ac_ext <<_ACEOF
16192/* confdefs.h. */
16193_ACEOF
16194cat confdefs.h >>conftest.$ac_ext
16195cat >>conftest.$ac_ext <<_ACEOF
16196/* end confdefs.h. */
16197
16198/* Override any GCC internal prototype to avoid an error.
16199 Use char because int might match the return type of a GCC
16200 builtin and then its argument prototype would still apply. */
16201#ifdef __cplusplus
16202extern "C"
16203#endif
16204char _alloca ();
16205int
16206main ()
16207{
16208return _alloca ();
16209 ;
16210 return 0;
16211}
16212_ACEOF
16213rm -f conftest.$ac_objext conftest$ac_exeext
16214if { (ac_try="$ac_link"
16215case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16218esac
16219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_link") 2>conftest.er1
16221 ac_status=$?
16222 grep -v '^ *+' conftest.er1 >conftest.err
16223 rm -f conftest.er1
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
16227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231esac
16232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest$ac_exeext'
16238 { (case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241esac
16242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_try") 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 ac_cv_lib_gcc__alloca=yes
16248else
16249 echo "$as_me: failed program was:" >&5
16250sed 's/^/| /' conftest.$ac_ext >&5
16251
16252 ac_cv_lib_gcc__alloca=no
16253fi
16254
16255rm -f core conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16257LIBS=$ac_check_lib_save_LIBS
16258fi
16259{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16260echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16261if test $ac_cv_lib_gcc__alloca = yes; then
16262
16263cat >>confdefs.h <<\_ACEOF
16264#define HAVE__ALLOCA 1
16265_ACEOF
16266
16267fi
16268
16269 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16270echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16271if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273else
16274 ac_check_lib_save_LIBS=$LIBS
16275LIBS="-lgcc $LIBS"
16276cat >conftest.$ac_ext <<_ACEOF
16277/* confdefs.h. */
16278_ACEOF
16279cat confdefs.h >>conftest.$ac_ext
16280cat >>conftest.$ac_ext <<_ACEOF
16281/* end confdefs.h. */
16282
16283/* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16286#ifdef __cplusplus
16287extern "C"
16288#endif
16289char __alloca ();
16290int
16291main ()
16292{
16293return __alloca ();
16294 ;
16295 return 0;
16296}
16297_ACEOF
16298rm -f conftest.$ac_objext conftest$ac_exeext
16299if { (ac_try="$ac_link"
16300case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303esac
16304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_link") 2>conftest.er1
16306 ac_status=$?
16307 grep -v '^ *+' conftest.er1 >conftest.err
16308 rm -f conftest.er1
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16313 { (case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16316esac
16317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_try") 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; } &&
16322 { ac_try='test -s conftest$ac_exeext'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_try") 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_cv_lib_gcc___alloca=yes
16333else
16334 echo "$as_me: failed program was:" >&5
16335sed 's/^/| /' conftest.$ac_ext >&5
16336
16337 ac_cv_lib_gcc___alloca=no
16338fi
16339
16340rm -f core conftest.err conftest.$ac_objext \
16341 conftest$ac_exeext conftest.$ac_ext
16342LIBS=$ac_check_lib_save_LIBS
16343fi
16344{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16345echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16346if test $ac_cv_lib_gcc___alloca = yes; then
16347
16348cat >>confdefs.h <<\_ACEOF
16349#define HAVE___ALLOCA 1
16350_ACEOF
16351
16352fi
16353
16354 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16355echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16356if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
16358else
16359 ac_check_lib_save_LIBS=$LIBS
16360LIBS="-lgcc $LIBS"
16361cat >conftest.$ac_ext <<_ACEOF
16362/* confdefs.h. */
16363_ACEOF
16364cat confdefs.h >>conftest.$ac_ext
16365cat >>conftest.$ac_ext <<_ACEOF
16366/* end confdefs.h. */
16367
16368/* Override any GCC internal prototype to avoid an error.
16369 Use char because int might match the return type of a GCC
16370 builtin and then its argument prototype would still apply. */
16371#ifdef __cplusplus
16372extern "C"
16373#endif
16374char __chkstk ();
16375int
16376main ()
16377{
16378return __chkstk ();
16379 ;
16380 return 0;
16381}
16382_ACEOF
16383rm -f conftest.$ac_objext conftest$ac_exeext
16384if { (ac_try="$ac_link"
16385case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16388esac
16389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_link") 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16398 { (case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401esac
16402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_try") 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest$ac_exeext'
16408 { (case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411esac
16412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_try") 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_cv_lib_gcc___chkstk=yes
16418else
16419 echo "$as_me: failed program was:" >&5
16420sed 's/^/| /' conftest.$ac_ext >&5
16421
16422 ac_cv_lib_gcc___chkstk=no
16423fi
16424
16425rm -f core conftest.err conftest.$ac_objext \
16426 conftest$ac_exeext conftest.$ac_ext
16427LIBS=$ac_check_lib_save_LIBS
16428fi
16429{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16430echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16431if test $ac_cv_lib_gcc___chkstk = yes; then
16432
16433cat >>confdefs.h <<\_ACEOF
16434#define HAVE___CHKSTK 1
16435_ACEOF
16436
16437fi
16438
16439 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16440echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16441if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443else
16444 ac_check_lib_save_LIBS=$LIBS
16445LIBS="-lgcc $LIBS"
16446cat >conftest.$ac_ext <<_ACEOF
16447/* confdefs.h. */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h. */
16452
16453/* Override any GCC internal prototype to avoid an error.
16454 Use char because int might match the return type of a GCC
16455 builtin and then its argument prototype would still apply. */
16456#ifdef __cplusplus
16457extern "C"
16458#endif
16459char ___chkstk ();
16460int
16461main ()
16462{
16463return ___chkstk ();
16464 ;
16465 return 0;
16466}
16467_ACEOF
16468rm -f conftest.$ac_objext conftest$ac_exeext
16469if { (ac_try="$ac_link"
16470case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16473esac
16474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_link") 2>conftest.er1
16476 ac_status=$?
16477 grep -v '^ *+' conftest.er1 >conftest.err
16478 rm -f conftest.er1
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } &&
16482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16483 { (case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16486esac
16487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16488 (eval "$ac_try") 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; } &&
16492 { ac_try='test -s conftest$ac_exeext'
16493 { (case "(($ac_try" in
16494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16496esac
16497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498 (eval "$ac_try") 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_lib_gcc____chkstk=yes
16503else
16504 echo "$as_me: failed program was:" >&5
16505sed 's/^/| /' conftest.$ac_ext >&5
16506
16507 ac_cv_lib_gcc____chkstk=no
16508fi
16509
16510rm -f core conftest.err conftest.$ac_objext \
16511 conftest$ac_exeext conftest.$ac_ext
16512LIBS=$ac_check_lib_save_LIBS
16513fi
16514{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16515echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16516if test $ac_cv_lib_gcc____chkstk = yes; then
16517
16518cat >>confdefs.h <<\_ACEOF
16519#define HAVE____CHKSTK 1
16520_ACEOF
16521
16522fi
16523
16524
16525 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16526echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16527if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16529else
16530 ac_check_lib_save_LIBS=$LIBS
16531LIBS="-lgcc $LIBS"
16532cat >conftest.$ac_ext <<_ACEOF
16533/* confdefs.h. */
16534_ACEOF
16535cat confdefs.h >>conftest.$ac_ext
16536cat >>conftest.$ac_ext <<_ACEOF
16537/* end confdefs.h. */
16538
16539/* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16542#ifdef __cplusplus
16543extern "C"
16544#endif
16545char __ashldi3 ();
16546int
16547main ()
16548{
16549return __ashldi3 ();
16550 ;
16551 return 0;
16552}
16553_ACEOF
16554rm -f conftest.$ac_objext conftest$ac_exeext
16555if { (ac_try="$ac_link"
16556case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559esac
16560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_link") 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16569 { (case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16572esac
16573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_try") 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try='test -s conftest$ac_exeext'
16579 { (case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582esac
16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_try") 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ac_cv_lib_gcc___ashldi3=yes
16589else
16590 echo "$as_me: failed program was:" >&5
16591sed 's/^/| /' conftest.$ac_ext >&5
16592
16593 ac_cv_lib_gcc___ashldi3=no
16594fi
16595
16596rm -f core conftest.err conftest.$ac_objext \
16597 conftest$ac_exeext conftest.$ac_ext
16598LIBS=$ac_check_lib_save_LIBS
16599fi
16600{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16601echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16602if test $ac_cv_lib_gcc___ashldi3 = yes; then
16603
16604cat >>confdefs.h <<\_ACEOF
16605#define HAVE___ASHLDI3 1
16606_ACEOF
16607
16608fi
16609
16610 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16611echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16612if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16614else
16615 ac_check_lib_save_LIBS=$LIBS
16616LIBS="-lgcc $LIBS"
16617cat >conftest.$ac_ext <<_ACEOF
16618/* confdefs.h. */
16619_ACEOF
16620cat confdefs.h >>conftest.$ac_ext
16621cat >>conftest.$ac_ext <<_ACEOF
16622/* end confdefs.h. */
16623
16624/* Override any GCC internal prototype to avoid an error.
16625 Use char because int might match the return type of a GCC
16626 builtin and then its argument prototype would still apply. */
16627#ifdef __cplusplus
16628extern "C"
16629#endif
16630char __ashrdi3 ();
16631int
16632main ()
16633{
16634return __ashrdi3 ();
16635 ;
16636 return 0;
16637}
16638_ACEOF
16639rm -f conftest.$ac_objext conftest$ac_exeext
16640if { (ac_try="$ac_link"
16641case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644esac
16645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_link") 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
16653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16654 { (case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657esac
16658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_try") 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; } &&
16663 { ac_try='test -s conftest$ac_exeext'
16664 { (case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16667esac
16668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_try") 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_lib_gcc___ashrdi3=yes
16674else
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678 ac_cv_lib_gcc___ashrdi3=no
16679fi
16680
16681rm -f core conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16683LIBS=$ac_check_lib_save_LIBS
16684fi
16685{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16686echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16687if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16688
16689cat >>confdefs.h <<\_ACEOF
16690#define HAVE___ASHRDI3 1
16691_ACEOF
16692
16693fi
16694
16695 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16696echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16697if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16699else
16700 ac_check_lib_save_LIBS=$LIBS
16701LIBS="-lgcc $LIBS"
16702cat >conftest.$ac_ext <<_ACEOF
16703/* confdefs.h. */
16704_ACEOF
16705cat confdefs.h >>conftest.$ac_ext
16706cat >>conftest.$ac_ext <<_ACEOF
16707/* end confdefs.h. */
16708
16709/* Override any GCC internal prototype to avoid an error.
16710 Use char because int might match the return type of a GCC
16711 builtin and then its argument prototype would still apply. */
16712#ifdef __cplusplus
16713extern "C"
16714#endif
16715char __divdi3 ();
16716int
16717main ()
16718{
16719return __divdi3 ();
16720 ;
16721 return 0;
16722}
16723_ACEOF
16724rm -f conftest.$ac_objext conftest$ac_exeext
16725if { (ac_try="$ac_link"
16726case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16729esac
16730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_link") 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16739 { (case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742esac
16743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_try") 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; } &&
16748 { ac_try='test -s conftest$ac_exeext'
16749 { (case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752esac
16753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_try") 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 ac_cv_lib_gcc___divdi3=yes
16759else
16760 echo "$as_me: failed program was:" >&5
16761sed 's/^/| /' conftest.$ac_ext >&5
16762
16763 ac_cv_lib_gcc___divdi3=no
16764fi
16765
16766rm -f core conftest.err conftest.$ac_objext \
16767 conftest$ac_exeext conftest.$ac_ext
16768LIBS=$ac_check_lib_save_LIBS
16769fi
16770{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16771echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16772if test $ac_cv_lib_gcc___divdi3 = yes; then
16773
16774cat >>confdefs.h <<\_ACEOF
16775#define HAVE___DIVDI3 1
16776_ACEOF
16777
16778fi
16779
16780 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16781echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16782if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784else
16785 ac_check_lib_save_LIBS=$LIBS
16786LIBS="-lgcc $LIBS"
16787cat >conftest.$ac_ext <<_ACEOF
16788/* confdefs.h. */
16789_ACEOF
16790cat confdefs.h >>conftest.$ac_ext
16791cat >>conftest.$ac_ext <<_ACEOF
16792/* end confdefs.h. */
16793
16794/* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16797#ifdef __cplusplus
16798extern "C"
16799#endif
16800char __fixdfdi ();
16801int
16802main ()
16803{
16804return __fixdfdi ();
16805 ;
16806 return 0;
16807}
16808_ACEOF
16809rm -f conftest.$ac_objext conftest$ac_exeext
16810if { (ac_try="$ac_link"
16811case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814esac
16815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827esac
16828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest$ac_exeext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837esac
16838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_cv_lib_gcc___fixdfdi=yes
16844else
16845 echo "$as_me: failed program was:" >&5
16846sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 ac_cv_lib_gcc___fixdfdi=no
16849fi
16850
16851rm -f core conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16853LIBS=$ac_check_lib_save_LIBS
16854fi
16855{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16856echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16857if test $ac_cv_lib_gcc___fixdfdi = yes; then
16858
16859cat >>confdefs.h <<\_ACEOF
16860#define HAVE___FIXDFDI 1
16861_ACEOF
16862
16863fi
16864
16865 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16866echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16867if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16869else
16870 ac_check_lib_save_LIBS=$LIBS
16871LIBS="-lgcc $LIBS"
16872cat >conftest.$ac_ext <<_ACEOF
16873/* confdefs.h. */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h. */
16878
16879/* Override any GCC internal prototype to avoid an error.
16880 Use char because int might match the return type of a GCC
16881 builtin and then its argument prototype would still apply. */
16882#ifdef __cplusplus
16883extern "C"
16884#endif
16885char __fixsfdi ();
16886int
16887main ()
16888{
16889return __fixsfdi ();
16890 ;
16891 return 0;
16892}
16893_ACEOF
16894rm -f conftest.$ac_objext conftest$ac_exeext
16895if { (ac_try="$ac_link"
16896case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16899esac
16900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_link") 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest$ac_exeext'
16919 { (case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16922esac
16923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_try") 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_lib_gcc___fixsfdi=yes
16929else
16930 echo "$as_me: failed program was:" >&5
16931sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 ac_cv_lib_gcc___fixsfdi=no
16934fi
16935
16936rm -f core conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16938LIBS=$ac_check_lib_save_LIBS
16939fi
16940{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16941echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16942if test $ac_cv_lib_gcc___fixsfdi = yes; then
16943
16944cat >>confdefs.h <<\_ACEOF
16945#define HAVE___FIXSFDI 1
16946_ACEOF
16947
16948fi
16949
16950 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16951echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16952if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16954else
16955 ac_check_lib_save_LIBS=$LIBS
16956LIBS="-lgcc $LIBS"
16957cat >conftest.$ac_ext <<_ACEOF
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963
16964/* Override any GCC internal prototype to avoid an error.
16965 Use char because int might match the return type of a GCC
16966 builtin and then its argument prototype would still apply. */
16967#ifdef __cplusplus
16968extern "C"
16969#endif
16970char __floatdidf ();
16971int
16972main ()
16973{
16974return __floatdidf ();
16975 ;
16976 return 0;
16977}
16978_ACEOF
16979rm -f conftest.$ac_objext conftest$ac_exeext
16980if { (ac_try="$ac_link"
16981case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16984esac
16985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_link") 2>conftest.er1
16987 ac_status=$?
16988 grep -v '^ *+' conftest.er1 >conftest.err
16989 rm -f conftest.er1
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997esac
16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest$ac_exeext'
17004 { (case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17007esac
17008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_try") 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 ac_cv_lib_gcc___floatdidf=yes
17014else
17015 echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018 ac_cv_lib_gcc___floatdidf=no
17019fi
17020
17021rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17023LIBS=$ac_check_lib_save_LIBS
17024fi
17025{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17026echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17027if test $ac_cv_lib_gcc___floatdidf = yes; then
17028
17029cat >>confdefs.h <<\_ACEOF
17030#define HAVE___FLOATDIDF 1
17031_ACEOF
17032
17033fi
17034
17035 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17036echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17037if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039else
17040 ac_check_lib_save_LIBS=$LIBS
17041LIBS="-lgcc $LIBS"
17042cat >conftest.$ac_ext <<_ACEOF
17043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
17048
17049/* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17052#ifdef __cplusplus
17053extern "C"
17054#endif
17055char __lshrdi3 ();
17056int
17057main ()
17058{
17059return __lshrdi3 ();
17060 ;
17061 return 0;
17062}
17063_ACEOF
17064rm -f conftest.$ac_objext conftest$ac_exeext
17065if { (ac_try="$ac_link"
17066case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069esac
17070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
17072 ac_status=$?
17073 grep -v '^ *+' conftest.er1 >conftest.err
17074 rm -f conftest.er1
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079 { (case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_try") 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092esac
17093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
17098 ac_cv_lib_gcc___lshrdi3=yes
17099else
17100 echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
17103 ac_cv_lib_gcc___lshrdi3=no
17104fi
17105
17106rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17108LIBS=$ac_check_lib_save_LIBS
17109fi
17110{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17111echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17112if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17113
17114cat >>confdefs.h <<\_ACEOF
17115#define HAVE___LSHRDI3 1
17116_ACEOF
17117
17118fi
17119
17120 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17121echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17122if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17124else
17125 ac_check_lib_save_LIBS=$LIBS
17126LIBS="-lgcc $LIBS"
17127cat >conftest.$ac_ext <<_ACEOF
17128/* confdefs.h. */
17129_ACEOF
17130cat confdefs.h >>conftest.$ac_ext
17131cat >>conftest.$ac_ext <<_ACEOF
17132/* end confdefs.h. */
17133
17134/* Override any GCC internal prototype to avoid an error.
17135 Use char because int might match the return type of a GCC
17136 builtin and then its argument prototype would still apply. */
17137#ifdef __cplusplus
17138extern "C"
17139#endif
17140char __moddi3 ();
17141int
17142main ()
17143{
17144return __moddi3 ();
17145 ;
17146 return 0;
17147}
17148_ACEOF
17149rm -f conftest.$ac_objext conftest$ac_exeext
17150if { (ac_try="$ac_link"
17151case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154esac
17155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_link") 2>conftest.er1
17157 ac_status=$?
17158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
17163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17167esac
17168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest$ac_exeext'
17174 { (case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17177esac
17178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_try") 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_cv_lib_gcc___moddi3=yes
17184else
17185 echo "$as_me: failed program was:" >&5
17186sed 's/^/| /' conftest.$ac_ext >&5
17187
17188 ac_cv_lib_gcc___moddi3=no
17189fi
17190
17191rm -f core conftest.err conftest.$ac_objext \
17192 conftest$ac_exeext conftest.$ac_ext
17193LIBS=$ac_check_lib_save_LIBS
17194fi
17195{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17196echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17197if test $ac_cv_lib_gcc___moddi3 = yes; then
17198
17199cat >>confdefs.h <<\_ACEOF
17200#define HAVE___MODDI3 1
17201_ACEOF
17202
17203fi
17204
17205 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17206echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17207if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209else
17210 ac_check_lib_save_LIBS=$LIBS
17211LIBS="-lgcc $LIBS"
17212cat >conftest.$ac_ext <<_ACEOF
17213/* confdefs.h. */
17214_ACEOF
17215cat confdefs.h >>conftest.$ac_ext
17216cat >>conftest.$ac_ext <<_ACEOF
17217/* end confdefs.h. */
17218
17219/* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17222#ifdef __cplusplus
17223extern "C"
17224#endif
17225char __udivdi3 ();
17226int
17227main ()
17228{
17229return __udivdi3 ();
17230 ;
17231 return 0;
17232}
17233_ACEOF
17234rm -f conftest.$ac_objext conftest$ac_exeext
17235if { (ac_try="$ac_link"
17236case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239esac
17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_link") 2>conftest.er1
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252esac
17253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest$ac_exeext'
17259 { (case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17262esac
17263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_try") 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_cv_lib_gcc___udivdi3=yes
17269else
17270 echo "$as_me: failed program was:" >&5
17271sed 's/^/| /' conftest.$ac_ext >&5
17272
17273 ac_cv_lib_gcc___udivdi3=no
17274fi
17275
17276rm -f core conftest.err conftest.$ac_objext \
17277 conftest$ac_exeext conftest.$ac_ext
17278LIBS=$ac_check_lib_save_LIBS
17279fi
17280{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17281echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17282if test $ac_cv_lib_gcc___udivdi3 = yes; then
17283
17284cat >>confdefs.h <<\_ACEOF
17285#define HAVE___UDIVDI3 1
17286_ACEOF
17287
17288fi
17289
17290 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17291echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17292if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17294else
17295 ac_check_lib_save_LIBS=$LIBS
17296LIBS="-lgcc $LIBS"
17297cat >conftest.$ac_ext <<_ACEOF
17298/* confdefs.h. */
17299_ACEOF
17300cat confdefs.h >>conftest.$ac_ext
17301cat >>conftest.$ac_ext <<_ACEOF
17302/* end confdefs.h. */
17303
17304/* Override any GCC internal prototype to avoid an error.
17305 Use char because int might match the return type of a GCC
17306 builtin and then its argument prototype would still apply. */
17307#ifdef __cplusplus
17308extern "C"
17309#endif
17310char __umoddi3 ();
17311int
17312main ()
17313{
17314return __umoddi3 ();
17315 ;
17316 return 0;
17317}
17318_ACEOF
17319rm -f conftest.$ac_objext conftest$ac_exeext
17320if { (ac_try="$ac_link"
17321case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17324esac
17325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_link") 2>conftest.er1
17327 ac_status=$?
17328 grep -v '^ *+' conftest.er1 >conftest.err
17329 rm -f conftest.er1
17330 cat conftest.err >&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } &&
17333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17334 { (case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17337esac
17338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_try") 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest$ac_exeext'
17344 { (case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17347esac
17348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_try") 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_lib_gcc___umoddi3=yes
17354else
17355 echo "$as_me: failed program was:" >&5
17356sed 's/^/| /' conftest.$ac_ext >&5
17357
17358 ac_cv_lib_gcc___umoddi3=no
17359fi
17360
17361rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17363LIBS=$ac_check_lib_save_LIBS
17364fi
17365{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17366echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17367if test $ac_cv_lib_gcc___umoddi3 = yes; then
17368
17369cat >>confdefs.h <<\_ACEOF
17370#define HAVE___UMODDI3 1
17371_ACEOF
17372
17373fi
17374
17375
17376 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17377echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17378if test "${ac_cv_lib_gcc___main+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17380else
17381 ac_check_lib_save_LIBS=$LIBS
17382LIBS="-lgcc $LIBS"
17383cat >conftest.$ac_ext <<_ACEOF
17384/* confdefs.h. */
17385_ACEOF
17386cat confdefs.h >>conftest.$ac_ext
17387cat >>conftest.$ac_ext <<_ACEOF
17388/* end confdefs.h. */
17389
17390/* Override any GCC internal prototype to avoid an error.
17391 Use char because int might match the return type of a GCC
17392 builtin and then its argument prototype would still apply. */
17393#ifdef __cplusplus
17394extern "C"
17395#endif
17396char __main ();
17397int
17398main ()
17399{
17400return __main ();
17401 ;
17402 return 0;
17403}
17404_ACEOF
17405rm -f conftest.$ac_objext conftest$ac_exeext
17406if { (ac_try="$ac_link"
17407case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17410esac
17411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_link") 2>conftest.er1
17413 ac_status=$?
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17420 { (case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423esac
17424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_try") 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17433esac
17434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_try") 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_cv_lib_gcc___main=yes
17440else
17441 echo "$as_me: failed program was:" >&5
17442sed 's/^/| /' conftest.$ac_ext >&5
17443
17444 ac_cv_lib_gcc___main=no
17445fi
17446
17447rm -f core conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
17449LIBS=$ac_check_lib_save_LIBS
17450fi
17451{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17452echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17453if test $ac_cv_lib_gcc___main = yes; then
17454
17455cat >>confdefs.h <<\_ACEOF
17456#define HAVE___MAIN 1
17457_ACEOF
17458
17459fi
17460
17461 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17462echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17463if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17465else
17466 ac_check_lib_save_LIBS=$LIBS
17467LIBS="-lgcc $LIBS"
17468cat >conftest.$ac_ext <<_ACEOF
17469/* confdefs.h. */
17470_ACEOF
17471cat confdefs.h >>conftest.$ac_ext
17472cat >>conftest.$ac_ext <<_ACEOF
17473/* end confdefs.h. */
17474
17475/* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17478#ifdef __cplusplus
17479extern "C"
17480#endif
17481char __cmpdi2 ();
17482int
17483main ()
17484{
17485return __cmpdi2 ();
17486 ;
17487 return 0;
17488}
17489_ACEOF
17490rm -f conftest.$ac_objext conftest$ac_exeext
17491if { (ac_try="$ac_link"
17492case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_link") 2>conftest.er1
17498 ac_status=$?
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508esac
17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest$ac_exeext'
17515 { (case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17518esac
17519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_try") 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_cv_lib_gcc___cmpdi2=yes
17525else
17526 echo "$as_me: failed program was:" >&5
17527sed 's/^/| /' conftest.$ac_ext >&5
17528
17529 ac_cv_lib_gcc___cmpdi2=no
17530fi
17531
17532rm -f core conftest.err conftest.$ac_objext \
17533 conftest$ac_exeext conftest.$ac_ext
17534LIBS=$ac_check_lib_save_LIBS
17535fi
17536{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17537echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17538if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17539
17540cat >>confdefs.h <<\_ACEOF
17541#define HAVE___CMPDI2 1
17542_ACEOF
17543
17544fi
17545
17546fi
17547
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000017548if test "$llvm_cv_os_type" = "MingW" ; then
17549 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17550echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17551 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017552
17553 /* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h. */
17558
17559 #include <windows.h>
17560 #include <imagehlp.h>
17561 extern void foo(PENUMLOADED_MODULES_CALLBACK);
17562 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17563
17564
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000017565_ACEOF
17566rm -f conftest.$ac_objext
17567if { (ac_try="$ac_compile"
17568case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571esac
17572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_compile") 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
17580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17581 { (case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_try") 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest.$ac_objext'
17591 { (case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17594esac
17595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_try") 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600
17601 { echo "$as_me:$LINENO: result: yes" >&5
17602echo "${ECHO_T}yes" >&6; }
17603 llvm_cv_win32_elmcb_pcstr="PCSTR"
17604
17605else
17606 echo "$as_me: failed program was:" >&5
17607sed 's/^/| /' conftest.$ac_ext >&5
17608
17609
17610 { echo "$as_me:$LINENO: result: no" >&5
17611echo "${ECHO_T}no" >&6; }
17612 llvm_cv_win32_elmcb_pcstr="PSTR"
17613
17614fi
17615
17616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17617
17618cat >>confdefs.h <<_ACEOF
17619#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17620_ACEOF
17621
17622fi
17623
Torok Edwinaec06332010-01-26 08:50:50 +000017624
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017625
17626 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017627echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17628if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000017630else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017631
17632 ac_ext=cpp
John Criswell3ef61af2003-06-30 21:59:07 +000017633ac_cpp='$CXXCPP $CPPFLAGS'
17634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17637
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017638 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017643/* end confdefs.h. */
17644#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000017645int
17646main ()
17647{
17648float f; isnan(f);
17649 ;
17650 return 0;
17651}
Brian Gaekec77683c2004-06-22 23:47:13 +000017652_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017653rm -f conftest.$ac_objext
17654if { (ac_try="$ac_compile"
17655case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17658esac
17659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_compile") 2>conftest.er1
17661 ac_status=$?
17662 grep -v '^ *+' conftest.er1 >conftest.err
17663 rm -f conftest.er1
17664 cat conftest.err >&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } &&
17667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671esac
17672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; } &&
17677 { ac_try='test -s conftest.$ac_objext'
17678 { (case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17681esac
17682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_try") 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017687 ac_cv_func_isnan_in_math_h=yes
17688else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017689 echo "$as_me: failed program was:" >&5
17690sed 's/^/| /' conftest.$ac_ext >&5
17691
17692 ac_cv_func_isnan_in_math_h=no
Brian Gaekec77683c2004-06-22 23:47:13 +000017693fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017694
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017696 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000017697ac_cpp='$CPP $CPPFLAGS'
17698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17700ac_compiler_gnu=$ac_cv_c_compiler_gnu
17701
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017702
Brian Gaekec77683c2004-06-22 23:47:13 +000017703fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017704{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17705echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000017706
17707
17708if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017709
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017710cat >>confdefs.h <<\_ACEOF
17711#define HAVE_ISNAN_IN_MATH_H 1
17712_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017713
Reid Spencerf9676532004-10-27 23:03:44 +000017714fi
17715
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017716
17717 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017718echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17719if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000017721else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017722
17723 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000017724ac_cpp='$CXXCPP $CPPFLAGS'
17725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17728
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017729 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017730/* confdefs.h. */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017734/* end confdefs.h. */
17735#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000017736int
17737main ()
17738{
17739float f; isnan(f);
17740 ;
17741 return 0;
17742}
Brian Gaekec77683c2004-06-22 23:47:13 +000017743_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017744rm -f conftest.$ac_objext
17745if { (ac_try="$ac_compile"
17746case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749esac
17750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_compile") 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762esac
17763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest.$ac_objext'
17769 { (case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17772esac
17773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_try") 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017778 ac_cv_func_isnan_in_cmath=yes
17779else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017780 echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 ac_cv_func_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000017784fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017785
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017787 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000017788ac_cpp='$CPP $CPPFLAGS'
17789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791ac_compiler_gnu=$ac_cv_c_compiler_gnu
17792
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017793
Brian Gaekec77683c2004-06-22 23:47:13 +000017794fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017795{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17796echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000017797
17798if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017799
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017800cat >>confdefs.h <<\_ACEOF
17801#define HAVE_ISNAN_IN_CMATH 1
17802_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017803
Reid Spencerf9676532004-10-27 23:03:44 +000017804fi
17805
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017806
17807 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017808echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17809if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000017811else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017812
17813 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000017814ac_cpp='$CXXCPP $CPPFLAGS'
17815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17818
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017819 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017820/* confdefs.h. */
17821_ACEOF
17822cat confdefs.h >>conftest.$ac_ext
17823cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017824/* end confdefs.h. */
17825#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000017826int
17827main ()
17828{
17829float f; std::isnan(f);
17830 ;
17831 return 0;
17832}
Brian Gaekec77683c2004-06-22 23:47:13 +000017833_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017834rm -f conftest.$ac_objext
17835if { (ac_try="$ac_compile"
17836case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17839esac
17840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17842 ac_status=$?
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17852esac
17853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862esac
17863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017868 ac_cv_func_std_isnan_in_cmath=yes
17869else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 ac_cv_func_std_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000017874fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017875
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017877 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000017878ac_cpp='$CPP $CPPFLAGS'
17879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881ac_compiler_gnu=$ac_cv_c_compiler_gnu
17882
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017883
Brian Gaekec77683c2004-06-22 23:47:13 +000017884fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017885{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17886echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000017887
17888if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000017889
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017890cat >>confdefs.h <<\_ACEOF
17891#define HAVE_STD_ISNAN_IN_CMATH 1
17892_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000017893
Reid Spencerf9676532004-10-27 23:03:44 +000017894fi
Brian Gaekec77683c2004-06-22 23:47:13 +000017895
17896
NAKAMURA Takumif7148bd2013-01-30 01:37:49 +000017897
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017898
17899 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017900echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17901if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017903else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017904
17905 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017906ac_cpp='$CXXCPP $CPPFLAGS'
17907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17910
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017911 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017912/* confdefs.h. */
17913_ACEOF
17914cat confdefs.h >>conftest.$ac_ext
17915cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017916/* end confdefs.h. */
17917#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000017918int
17919main ()
17920{
17921float f; isinf(f);
17922 ;
17923 return 0;
17924}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017925_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017926rm -f conftest.$ac_objext
17927if { (ac_try="$ac_compile"
17928case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_compile") 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944esac
17945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest.$ac_objext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954esac
17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017960 ac_cv_func_isinf_in_math_h=yes
17961else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017962 echo "$as_me: failed program was:" >&5
17963sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 ac_cv_func_isinf_in_math_h=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017966fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017967
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017969 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017970ac_cpp='$CPP $CPPFLAGS'
17971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017975
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017976fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017977{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17978echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000017979
17980if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017981
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017982cat >>confdefs.h <<\_ACEOF
17983#define HAVE_ISINF_IN_MATH_H 1
17984_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017985
Reid Spencerf9676532004-10-27 23:03:44 +000017986fi
17987
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017988
17989 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017990echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17991if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017993else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017994
17995 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000017996ac_cpp='$CXXCPP $CPPFLAGS'
17997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18000
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018001 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018002/* confdefs.h. */
18003_ACEOF
18004cat confdefs.h >>conftest.$ac_ext
18005cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018006/* end confdefs.h. */
18007#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000018008int
18009main ()
18010{
18011float f; isinf(f);
18012 ;
18013 return 0;
18014}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018015_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018016rm -f conftest.$ac_objext
18017if { (ac_try="$ac_compile"
18018case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021esac
18022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_compile") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } &&
18030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034esac
18035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; } &&
18040 { ac_try='test -s conftest.$ac_objext'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044esac
18045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018050 ac_cv_func_isinf_in_cmath=yes
18051else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018052 echo "$as_me: failed program was:" >&5
18053sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 ac_cv_func_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018056fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018057
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018059 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018060ac_cpp='$CPP $CPPFLAGS'
18061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063ac_compiler_gnu=$ac_cv_c_compiler_gnu
18064
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018065
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018066fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018067{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18068echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000018069
18070if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018071
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018072cat >>confdefs.h <<\_ACEOF
18073#define HAVE_ISINF_IN_CMATH 1
18074_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018075
Reid Spencerf9676532004-10-27 23:03:44 +000018076fi
18077
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018078
18079 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018080echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18081if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018083else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018084
18085 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018086ac_cpp='$CXXCPP $CPPFLAGS'
18087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18090
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018091 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018092/* confdefs.h. */
18093_ACEOF
18094cat confdefs.h >>conftest.$ac_ext
18095cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018096/* end confdefs.h. */
18097#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000018098int
18099main ()
18100{
Eric Christophereb75cc22012-03-26 02:09:01 +000018101float f; std::isinf(f);
Reid Spencerf9676532004-10-27 23:03:44 +000018102 ;
18103 return 0;
18104}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018105_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018106rm -f conftest.$ac_objext
18107if { (ac_try="$ac_compile"
18108case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18111esac
18112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_compile") 2>conftest.er1
18114 ac_status=$?
18115 grep -v '^ *+' conftest.er1 >conftest.err
18116 rm -f conftest.er1
18117 cat conftest.err >&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
18120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18121 { (case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18124esac
18125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_try") 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest.$ac_objext'
18131 { (case "(($ac_try" in
18132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18134esac
18135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136 (eval "$ac_try") 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018140 ac_cv_func_std_isinf_in_cmath=yes
18141else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018142 echo "$as_me: failed program was:" >&5
18143sed 's/^/| /' conftest.$ac_ext >&5
18144
18145 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018146fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018147
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018149 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018150ac_cpp='$CPP $CPPFLAGS'
18151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18153ac_compiler_gnu=$ac_cv_c_compiler_gnu
18154
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018155
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018156fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018157{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18158echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000018159
18160if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018161
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018162cat >>confdefs.h <<\_ACEOF
18163#define HAVE_STD_ISINF_IN_CMATH 1
18164_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000018165
Reid Spencerf9676532004-10-27 23:03:44 +000018166fi
18167
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018168
18169 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018170echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18171if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekea8704452004-07-21 03:33:58 +000018173else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018174
18175 ac_ext=cpp
Brian Gaekea8704452004-07-21 03:33:58 +000018176ac_cpp='$CXXCPP $CPPFLAGS'
18177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18180
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018181 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018182/* confdefs.h. */
18183_ACEOF
18184cat confdefs.h >>conftest.$ac_ext
18185cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000018186/* end confdefs.h. */
18187#include <ieeefp.h>
Reid Spencerf9676532004-10-27 23:03:44 +000018188int
18189main ()
18190{
18191float f; finite(f);
18192 ;
18193 return 0;
18194}
Brian Gaekea8704452004-07-21 03:33:58 +000018195_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018196rm -f conftest.$ac_objext
18197if { (ac_try="$ac_compile"
18198case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18201esac
18202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_compile") 2>conftest.er1
18204 ac_status=$?
18205 grep -v '^ *+' conftest.er1 >conftest.err
18206 rm -f conftest.er1
18207 cat conftest.err >&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18211 { (case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214esac
18215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_try") 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } &&
18220 { ac_try='test -s conftest.$ac_objext'
18221 { (case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18224esac
18225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_try") 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
Brian Gaekea8704452004-07-21 03:33:58 +000018230 ac_cv_func_finite_in_ieeefp_h=yes
18231else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018232 echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaekea8704452004-07-21 03:33:58 +000018236fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018237
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018239 ac_ext=c
Brian Gaekea8704452004-07-21 03:33:58 +000018240ac_cpp='$CPP $CPPFLAGS'
18241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243ac_compiler_gnu=$ac_cv_c_compiler_gnu
18244
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018245
Brian Gaekea8704452004-07-21 03:33:58 +000018246fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018247{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18248echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000018249
Brian Gaekeae050e02004-10-28 05:06:45 +000018250if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaekea8704452004-07-21 03:33:58 +000018251
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018252cat >>confdefs.h <<\_ACEOF
18253#define HAVE_FINITE_IN_IEEEFP_H 1
18254_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000018255
Reid Spencerf9676532004-10-27 23:03:44 +000018256fi
18257
18258
18259
Reid Spencerdfda0612007-01-20 07:48:49 +000018260if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell3ef61af2003-06-30 21:59:07 +000018261
18262
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018263for ac_header in stdlib.h unistd.h
18264do
18265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18271fi
18272ac_res=`eval echo '${'$as_ac_Header'}'`
18273 { echo "$as_me:$LINENO: result: $ac_res" >&5
18274echo "${ECHO_T}$ac_res" >&6; }
18275else
18276 # Is the header compilable?
18277{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18279cat >conftest.$ac_ext <<_ACEOF
18280/* confdefs.h. */
18281_ACEOF
18282cat confdefs.h >>conftest.$ac_ext
18283cat >>conftest.$ac_ext <<_ACEOF
18284/* end confdefs.h. */
18285$ac_includes_default
18286#include <$ac_header>
18287_ACEOF
18288rm -f conftest.$ac_objext
18289if { (ac_try="$ac_compile"
18290case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_compile") 2>conftest.er1
18296 ac_status=$?
18297 grep -v '^ *+' conftest.er1 >conftest.err
18298 rm -f conftest.er1
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303 { (case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18306esac
18307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_try") 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest.$ac_objext'
18313 { (case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316esac
18317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_try") 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_header_compiler=yes
18323else
18324 echo "$as_me: failed program was:" >&5
18325sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000018326
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018327 ac_header_compiler=no
18328fi
18329
18330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18332echo "${ECHO_T}$ac_header_compiler" >&6; }
18333
18334# Is the header present?
18335{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18337cat >conftest.$ac_ext <<_ACEOF
18338/* confdefs.h. */
18339_ACEOF
18340cat confdefs.h >>conftest.$ac_ext
18341cat >>conftest.$ac_ext <<_ACEOF
18342/* end confdefs.h. */
18343#include <$ac_header>
18344_ACEOF
18345if { (ac_try="$ac_cpp conftest.$ac_ext"
18346case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18349esac
18350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18352 ac_status=$?
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } >/dev/null; then
18358 if test -s conftest.err; then
18359 ac_cpp_err=$ac_c_preproc_warn_flag
18360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18361 else
18362 ac_cpp_err=
18363 fi
18364else
18365 ac_cpp_err=yes
18366fi
18367if test -z "$ac_cpp_err"; then
18368 ac_header_preproc=yes
18369else
18370 echo "$as_me: failed program was:" >&5
18371sed 's/^/| /' conftest.$ac_ext >&5
18372
18373 ac_header_preproc=no
18374fi
18375
18376rm -f conftest.err conftest.$ac_ext
18377{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18378echo "${ECHO_T}$ac_header_preproc" >&6; }
18379
18380# So? What about this header?
18381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18382 yes:no: )
18383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18387 ac_header_preproc=yes
18388 ;;
18389 no:yes:* )
18390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18402 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000018403## ------------------------------------ ##
18404## Report this to http://llvm.org/bugs/ ##
18405## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018406_ASBOX
18407 ) | sed "s/^/$as_me: WARNING: /" >&2
18408 ;;
18409esac
18410{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18414else
18415 eval "$as_ac_Header=\$ac_header_preproc"
18416fi
18417ac_res=`eval echo '${'$as_ac_Header'}'`
18418 { echo "$as_me:$LINENO: result: $ac_res" >&5
18419echo "${ECHO_T}$ac_res" >&6; }
18420
18421fi
18422if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000018423 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018424#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000018425_ACEOF
18426
18427fi
18428
18429done
18430
18431
18432for ac_func in getpagesize
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018433do
18434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18437if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18439else
18440 cat >conftest.$ac_ext <<_ACEOF
18441/* confdefs.h. */
18442_ACEOF
18443cat confdefs.h >>conftest.$ac_ext
18444cat >>conftest.$ac_ext <<_ACEOF
18445/* end confdefs.h. */
18446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18448#define $ac_func innocuous_$ac_func
18449
18450/* System header to define __stub macros and hopefully few prototypes,
18451 which can conflict with char $ac_func (); below.
18452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453 <limits.h> exists even on freestanding compilers. */
18454
18455#ifdef __STDC__
18456# include <limits.h>
18457#else
18458# include <assert.h>
18459#endif
18460
18461#undef $ac_func
18462
18463/* Override any GCC internal prototype to avoid an error.
18464 Use char because int might match the return type of a GCC
18465 builtin and then its argument prototype would still apply. */
18466#ifdef __cplusplus
18467extern "C"
18468#endif
18469char $ac_func ();
18470/* The GNU C library defines this for functions which it implements
18471 to always fail with ENOSYS. Some functions are actually named
18472 something starting with __ and the normal name is an alias. */
18473#if defined __stub_$ac_func || defined __stub___$ac_func
18474choke me
18475#endif
18476
18477int
18478main ()
18479{
18480return $ac_func ();
18481 ;
18482 return 0;
18483}
18484_ACEOF
18485rm -f conftest.$ac_objext conftest$ac_exeext
18486if { (ac_try="$ac_link"
18487case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490esac
18491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_link") 2>conftest.er1
18493 ac_status=$?
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18500 { (case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18503esac
18504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_try") 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest$ac_exeext'
18510 { (case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18513esac
18514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_try") 2>&5
18516 ac_status=$?
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18519 eval "$as_ac_var=yes"
18520else
18521 echo "$as_me: failed program was:" >&5
18522sed 's/^/| /' conftest.$ac_ext >&5
18523
18524 eval "$as_ac_var=no"
18525fi
18526
18527rm -f core conftest.err conftest.$ac_objext \
18528 conftest$ac_exeext conftest.$ac_ext
18529fi
18530ac_res=`eval echo '${'$as_ac_var'}'`
18531 { echo "$as_me:$LINENO: result: $ac_res" >&5
18532echo "${ECHO_T}$ac_res" >&6; }
18533if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000018534 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000018536_ACEOF
18537
18538fi
18539done
18540
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018541{ echo "$as_me:$LINENO: checking for working mmap" >&5
18542echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18543if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000018545else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018546 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000018547 ac_cv_func_mmap_fixed_mapped=no
18548else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018549 cat >conftest.$ac_ext <<_ACEOF
18550/* confdefs.h. */
18551_ACEOF
18552cat confdefs.h >>conftest.$ac_ext
18553cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000018554/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000018555$ac_includes_default
18556/* malloc might have been renamed as rpl_malloc. */
18557#undef malloc
18558
18559/* Thanks to Mike Haertel and Jim Avera for this test.
18560 Here is a matrix of mmap possibilities:
18561 mmap private not fixed
18562 mmap private fixed at somewhere currently unmapped
18563 mmap private fixed at somewhere already mapped
18564 mmap shared not fixed
18565 mmap shared fixed at somewhere currently unmapped
18566 mmap shared fixed at somewhere already mapped
18567 For private mappings, we should verify that changes cannot be read()
18568 back from the file, nor mmap's back from the file at a different
18569 address. (There have been systems where private was not correctly
18570 implemented like the infamous i386 svr4.0, and systems where the
18571 VM page cache was not coherent with the file system buffer cache
18572 like early versions of FreeBSD and possibly contemporary NetBSD.)
18573 For shared mappings, we should conversely verify that changes get
18574 propagated back to all the places they're supposed to be.
18575
18576 Grep wants private fixed already mapped.
18577 The main things grep needs to know about mmap are:
18578 * does it exist and is it safe to write into the mmap'd area
18579 * how to use it (BSD variants) */
18580
18581#include <fcntl.h>
18582#include <sys/mman.h>
18583
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018584#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +000018585char *malloc ();
18586#endif
18587
18588/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018589#if !HAVE_GETPAGESIZE
18590/* Assume that all systems that can run configure have sys/param.h. */
18591# if !HAVE_SYS_PARAM_H
18592# define HAVE_SYS_PARAM_H 1
18593# endif
18594
John Criswell3ef61af2003-06-30 21:59:07 +000018595# ifdef _SC_PAGESIZE
18596# define getpagesize() sysconf(_SC_PAGESIZE)
18597# else /* no _SC_PAGESIZE */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018598# if HAVE_SYS_PARAM_H
John Criswell3ef61af2003-06-30 21:59:07 +000018599# include <sys/param.h>
18600# ifdef EXEC_PAGESIZE
18601# define getpagesize() EXEC_PAGESIZE
18602# else /* no EXEC_PAGESIZE */
18603# ifdef NBPG
18604# define getpagesize() NBPG * CLSIZE
18605# ifndef CLSIZE
18606# define CLSIZE 1
18607# endif /* no CLSIZE */
18608# else /* no NBPG */
18609# ifdef NBPC
18610# define getpagesize() NBPC
18611# else /* no NBPC */
18612# ifdef PAGESIZE
18613# define getpagesize() PAGESIZE
18614# endif /* PAGESIZE */
18615# endif /* no NBPC */
18616# endif /* no NBPG */
18617# endif /* no EXEC_PAGESIZE */
18618# else /* no HAVE_SYS_PARAM_H */
18619# define getpagesize() 8192 /* punt totally */
18620# endif /* no HAVE_SYS_PARAM_H */
18621# endif /* no _SC_PAGESIZE */
18622
18623#endif /* no HAVE_GETPAGESIZE */
18624
18625int
18626main ()
18627{
18628 char *data, *data2, *data3;
18629 int i, pagesize;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018630 int fd;
John Criswell3ef61af2003-06-30 21:59:07 +000018631
18632 pagesize = getpagesize ();
18633
18634 /* First, make a file with some known garbage in it. */
18635 data = (char *) malloc (pagesize);
18636 if (!data)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018637 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018638 for (i = 0; i < pagesize; ++i)
18639 *(data + i) = rand ();
18640 umask (0);
18641 fd = creat ("conftest.mmap", 0600);
18642 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018643 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018644 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018645 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018646 close (fd);
18647
18648 /* Next, try to mmap the file at a fixed address which already has
18649 something else allocated at it. If we can, also make sure that
18650 we see the same garbage. */
18651 fd = open ("conftest.mmap", O_RDWR);
18652 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018653 return 1;
18654 data2 = (char *) malloc (2 * pagesize);
18655 if (!data2)
18656 return 1;
18657 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell3ef61af2003-06-30 21:59:07 +000018658 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencerf184a862004-09-19 23:53:36 +000018659 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018660 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018661 for (i = 0; i < pagesize; ++i)
18662 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018663 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018664
18665 /* Finally, make sure that changes to the mapped area do not
18666 percolate back to the file as seen by read(). (This is a bug on
18667 some variants of i386 svr4.0.) */
18668 for (i = 0; i < pagesize; ++i)
18669 *(data2 + i) = *(data2 + i) + 1;
18670 data3 = (char *) malloc (pagesize);
18671 if (!data3)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018672 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018673 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018674 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018675 for (i = 0; i < pagesize; ++i)
18676 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018677 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000018678 close (fd);
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018679 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +000018680}
18681_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018682rm -f conftest$ac_exeext
18683if { (ac_try="$ac_link"
18684case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687esac
18688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18693 { (case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18696esac
18697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_try") 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000018702 ac_cv_func_mmap_fixed_mapped=yes
18703else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018704 echo "$as_me: program exited with status $ac_status" >&5
18705echo "$as_me: failed program was:" >&5
18706sed 's/^/| /' conftest.$ac_ext >&5
18707
18708( exit $ac_status )
18709ac_cv_func_mmap_fixed_mapped=no
John Criswell3ef61af2003-06-30 21:59:07 +000018710fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018711rm -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 +000018712fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018713
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018714
John Criswell3ef61af2003-06-30 21:59:07 +000018715fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018716{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18717echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000018718if test $ac_cv_func_mmap_fixed_mapped = yes; then
18719
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018720cat >>confdefs.h <<\_ACEOF
18721#define HAVE_MMAP 1
18722_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018723
18724fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018725rm -f conftest.mmap
John Criswell3ef61af2003-06-30 21:59:07 +000018726
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018727 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18728echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18729if test "${ac_cv_func_mmap_file+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000018731else
Reid Spencerf184a862004-09-19 23:53:36 +000018732 ac_ext=c
John Criswell3ef61af2003-06-30 21:59:07 +000018733ac_cpp='$CPP $CPPFLAGS'
18734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18736ac_compiler_gnu=$ac_cv_c_compiler_gnu
18737
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018738 if test "$cross_compiling" = yes; then
Reid Spencer5a6815d2004-09-21 17:14:44 +000018739 ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000018740else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018741 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerac16ea92004-09-20 04:09:56 +000018742
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018743 /* confdefs.h. */
18744_ACEOF
18745cat confdefs.h >>conftest.$ac_ext
18746cat >>conftest.$ac_ext <<_ACEOF
18747/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000018748
John Criswell3ef61af2003-06-30 21:59:07 +000018749#include <sys/types.h>
John Criswelle3a9bd82003-10-09 15:44:28 +000018750#include <sys/mman.h>
John Criswell3ef61af2003-06-30 21:59:07 +000018751#include <fcntl.h>
Reid Spencerac16ea92004-09-20 04:09:56 +000018752
18753int
18754main ()
18755{
John Criswell3ef61af2003-06-30 21:59:07 +000018756
18757 int fd;
Reid Spencerac16ea92004-09-20 04:09:56 +000018758 fd = creat ("foo",0777);
18759 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18760 unlink ("foo");
Reid Spencer5a6815d2004-09-21 17:14:44 +000018761 return (fd != (int) MAP_FAILED);
Reid Spencerac16ea92004-09-20 04:09:56 +000018762 ;
18763 return 0;
18764}
John Criswell3ef61af2003-06-30 21:59:07 +000018765_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018766rm -f conftest$ac_exeext
18767if { (ac_try="$ac_link"
18768case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18771esac
18772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_link") 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780esac
18781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000018786 ac_cv_func_mmap_file=yes
18787else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018788 echo "$as_me: program exited with status $ac_status" >&5
18789echo "$as_me: failed program was:" >&5
18790sed 's/^/| /' conftest.$ac_ext >&5
18791
18792( exit $ac_status )
18793ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000018794fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018795rm -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 +000018796fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018797
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018798
John Criswell3ef61af2003-06-30 21:59:07 +000018799 ac_ext=c
18800ac_cpp='$CPP $CPPFLAGS'
18801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18803ac_compiler_gnu=$ac_cv_c_compiler_gnu
18804
18805
18806fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018807{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18808echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000018809if test "$ac_cv_func_mmap_file" = yes; then
John Criswelle3a9bd82003-10-09 15:44:28 +000018810
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018811cat >>confdefs.h <<\_ACEOF
18812#define HAVE_MMAP_FILE
18813_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000018814
18815 MMAP_FILE=yes
18816
18817fi
18818
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018819 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18820echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18821if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6681582004-12-27 06:15:02 +000018823else
Reid Spencer3d745d42004-12-29 07:07:57 +000018824 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencerb6681582004-12-27 06:15:02 +000018825 ac_cv_need_dev_zero_for_mmap=yes
18826 else
18827 ac_cv_need_dev_zero_for_mmap=no
18828 fi
18829
18830fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018831{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18832echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencerb6681582004-12-27 06:15:02 +000018833if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18834
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018835cat >>confdefs.h <<\_ACEOF
18836#define NEED_DEV_ZERO_FOR_MMAP 1
18837_ACEOF
Reid Spencerb6681582004-12-27 06:15:02 +000018838
18839fi
Reid Spencerf184a862004-09-19 23:53:36 +000018840
Reid Spencerdfda0612007-01-20 07:48:49 +000018841 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18842 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018843 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18844echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000018845 fi
18846 if test "$ac_cv_func_mmap_file" = "no"
18847 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018848 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18849echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000018850 fi
John Criswellb65ddad2003-07-22 21:00:24 +000018851fi
John Criswell3ef61af2003-06-30 21:59:07 +000018852
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018853{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18854echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7eb8112010-07-28 20:26:43 +000018855ac_ext=cpp
18856ac_cpp='$CXXCPP $CPPFLAGS'
18857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18860
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018861cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018862
18863 /* confdefs.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018864_ACEOF
18865cat confdefs.h >>conftest.$ac_ext
18866cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonb9509c52009-05-18 23:58:51 +000018867/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018868
18869 int main() {
18870 volatile unsigned long val = 1;
18871 __sync_synchronize();
18872 __sync_val_compare_and_swap(&val, 1, 0);
18873 __sync_add_and_fetch(&val, 1);
18874 __sync_sub_and_fetch(&val, 1);
18875 return 0;
18876 }
18877
Owen Andersonb9509c52009-05-18 23:58:51 +000018878
18879_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018880rm -f conftest.$ac_objext conftest$ac_exeext
18881if { (ac_try="$ac_link"
18882case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885esac
18886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_link") 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018895 { (case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898esac
18899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest$ac_exeext'
18905 { (case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18908esac
18909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_try") 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
Eric Christopherf7eb8112010-07-28 20:26:43 +000018914
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018915 { echo "$as_me:$LINENO: result: yes" >&5
18916echo "${ECHO_T}yes" >&6; }
Owen Andersonaf5db832009-05-19 22:18:56 +000018917
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018918cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000018919#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018920_ACEOF
Owen Andersonaf5db832009-05-19 22:18:56 +000018921
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018922
Owen Andersonb9509c52009-05-18 23:58:51 +000018923else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018924 echo "$as_me: failed program was:" >&5
18925sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonb9509c52009-05-18 23:58:51 +000018926
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018927
18928 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018929echo "${ECHO_T}no" >&6; }
Owen Andersonb9509c52009-05-18 23:58:51 +000018930
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018931cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000018932#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018933_ACEOF
18934
18935 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18936echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018937
Owen Andersonb9509c52009-05-18 23:58:51 +000018938fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018939
Owen Andersonb9509c52009-05-18 23:58:51 +000018940rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018941 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018942ac_ext=c
18943ac_cpp='$CPP $CPPFLAGS'
18944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946ac_compiler_gnu=$ac_cv_c_compiler_gnu
18947
Owen Andersonb9509c52009-05-18 23:58:51 +000018948
John Criswell3ef61af2003-06-30 21:59:07 +000018949
Nick Lewycky9b3f7162009-09-29 06:18:23 +000018950if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018951 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18952echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18953if test "${llvm_cv_linux_mixed+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky9b3f7162009-09-29 06:18:23 +000018955else
18956 ac_ext=c
18957ac_cpp='$CPP $CPPFLAGS'
18958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960ac_compiler_gnu=$ac_cv_c_compiler_gnu
18961
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018962 cat >conftest.$ac_ext <<_ACEOF
18963/* confdefs.h. */
18964_ACEOF
18965cat confdefs.h >>conftest.$ac_ext
18966cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky9b3f7162009-09-29 06:18:23 +000018967/* end confdefs.h. */
18968#ifndef __x86_64__
18969 error: Not x86-64 even if uname says so!
18970 #endif
18971
18972int
18973main ()
18974{
18975
18976 ;
18977 return 0;
18978}
18979_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018980rm -f conftest.$ac_objext
18981if { (ac_try="$ac_compile"
18982case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18985esac
18986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_compile") 2>conftest.er1
18988 ac_status=$?
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18998esac
18999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest.$ac_objext'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
Nick Lewycky9b3f7162009-09-29 06:18:23 +000019014 llvm_cv_linux_mixed=no
19015else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019016 echo "$as_me: failed program was:" >&5
19017sed 's/^/| /' conftest.$ac_ext >&5
19018
19019 llvm_cv_linux_mixed=yes
Nick Lewycky9b3f7162009-09-29 06:18:23 +000019020fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019021
Nick Lewycky9b3f7162009-09-29 06:18:23 +000019022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023 ac_ext=c
19024ac_cpp='$CPP $CPPFLAGS'
19025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028
19029
19030fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019031{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19032echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky9b3f7162009-09-29 06:18:23 +000019033
19034 if test "$llvm_cv_linux_mixed" = "yes"; then
19035 llvm_cv_target_arch="x86"
19036 ARCH="x86"
19037 fi
19038fi
19039
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019040
Reid Spencer32046f72007-07-30 20:13:24 +000019041for ac_func in __dso_handle
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019042do
19043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19044{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19046if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048else
19049 cat >conftest.$ac_ext <<_ACEOF
19050/* confdefs.h. */
19051_ACEOF
19052cat confdefs.h >>conftest.$ac_ext
19053cat >>conftest.$ac_ext <<_ACEOF
19054/* end confdefs.h. */
19055/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19057#define $ac_func innocuous_$ac_func
19058
19059/* System header to define __stub macros and hopefully few prototypes,
19060 which can conflict with char $ac_func (); below.
19061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19062 <limits.h> exists even on freestanding compilers. */
19063
19064#ifdef __STDC__
19065# include <limits.h>
19066#else
19067# include <assert.h>
19068#endif
19069
19070#undef $ac_func
19071
19072/* Override any GCC internal prototype to avoid an error.
19073 Use char because int might match the return type of a GCC
19074 builtin and then its argument prototype would still apply. */
19075#ifdef __cplusplus
19076extern "C"
19077#endif
19078char $ac_func ();
19079/* The GNU C library defines this for functions which it implements
19080 to always fail with ENOSYS. Some functions are actually named
19081 something starting with __ and the normal name is an alias. */
19082#if defined __stub_$ac_func || defined __stub___$ac_func
19083choke me
19084#endif
19085
19086int
19087main ()
19088{
19089return $ac_func ();
19090 ;
19091 return 0;
19092}
19093_ACEOF
19094rm -f conftest.$ac_objext conftest$ac_exeext
19095if { (ac_try="$ac_link"
19096case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19099esac
19100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>conftest.er1
19102 ac_status=$?
19103 grep -v '^ *+' conftest.er1 >conftest.err
19104 rm -f conftest.er1
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
19108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109 { (case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19112esac
19113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_try") 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19122esac
19123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_try") 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 eval "$as_ac_var=yes"
19129else
19130 echo "$as_me: failed program was:" >&5
19131sed 's/^/| /' conftest.$ac_ext >&5
19132
19133 eval "$as_ac_var=no"
19134fi
19135
19136rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138fi
19139ac_res=`eval echo '${'$as_ac_var'}'`
19140 { echo "$as_me:$LINENO: result: $ac_res" >&5
19141echo "${ECHO_T}$ac_res" >&6; }
19142if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer32046f72007-07-30 20:13:24 +000019143 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer32046f72007-07-30 20:13:24 +000019145_ACEOF
19146
19147fi
19148done
19149
19150
Rafael Espindolafd1355a2014-02-28 18:17:54 +000019151SHLIBEXT=$llvm_shlib_ext
Brian Gaekea2404522004-01-21 19:39:29 +000019152
19153
Jeff Cohenc5e5b272007-01-12 18:22:38 +000019154if test "${prefix}" = "NONE" ; then
Reid Spencer40f1b132006-05-16 08:53:32 +000019155 prefix="/usr/local"
19156fi
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019157eval LLVM_PREFIX="${prefix}";
19158eval LLVM_BINDIR="${prefix}/bin";
Reid Spencer0194c9a2004-11-29 04:56:35 +000019159eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb3762a02010-03-02 05:17:21 +000019160eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer0194c9a2004-11-29 04:56:35 +000019161eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019162eval LLVM_INCLUDEDIR="${prefix}/include";
19163eval LLVM_INFODIR="${prefix}/info";
19164eval LLVM_MANDIR="${prefix}/man";
19165LLVM_CONFIGTIME=`date`
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
Daniel Dunbar9370ecf2012-03-02 16:24:21 +000019176if test "${ENABLE_TIMESTAMPS}" = "0"; then
19177 LLVM_CONFIGTIME="(timestamp not enabled)"
19178fi
19179
Reid Spencer0241e382004-11-25 04:51:04 +000019180
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019181cat >>confdefs.h <<_ACEOF
19182#define LLVM_PREFIX "$LLVM_PREFIX"
19183_ACEOF
19184
19185
19186cat >>confdefs.h <<_ACEOF
19187#define LLVM_BINDIR "$LLVM_BINDIR"
19188_ACEOF
19189
19190
19191cat >>confdefs.h <<_ACEOF
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019192#define LLVM_DATADIR "$LLVM_DATADIR"
19193_ACEOF
19194
19195
19196cat >>confdefs.h <<_ACEOF
Gordon Henriksen80f35e02007-10-03 12:07:14 +000019197#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019198_ACEOF
19199
19200
19201cat >>confdefs.h <<_ACEOF
Reid Spencer288adf12004-08-20 09:10:31 +000019202#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000019203_ACEOF
19204
19205
19206cat >>confdefs.h <<_ACEOF
19207#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19208_ACEOF
19209
19210
19211cat >>confdefs.h <<_ACEOF
19212#define LLVM_INFODIR "$LLVM_INFODIR"
19213_ACEOF
19214
19215
19216cat >>confdefs.h <<_ACEOF
19217#define LLVM_MANDIR "$LLVM_MANDIR"
19218_ACEOF
19219
19220
19221cat >>confdefs.h <<_ACEOF
19222#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19223_ACEOF
19224
19225
Eric Christophere62b4412007-12-01 00:34:39 +000019226cat >>confdefs.h <<_ACEOF
Tim Northoverfee13d12013-05-04 07:36:23 +000019227#define LLVM_HOST_TRIPLE "$host"
NAKAMURA Takumi43652ae2012-07-22 03:04:52 +000019228_ACEOF
19229
19230
19231cat >>confdefs.h <<_ACEOF
Sebastian Popec2fb222011-11-01 21:31:44 +000019232#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christophere62b4412007-12-01 00:34:39 +000019233_ACEOF
19234
19235
Gordon Henriksene61dd672007-10-02 09:50:32 +000019236if test "$BINDINGS_TO_BUILD" = auto ; then
19237 BINDINGS_TO_BUILD=""
19238 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19239 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19240 fi
19241fi
19242BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19243
19244
Gordon Henriksene61dd672007-10-02 09:50:32 +000019245ALL_BINDINGS=ocaml
19246
19247
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019248binding_prereqs_failed=0
19249for a_binding in $BINDINGS_TO_BUILD ; do
19250 case "$a_binding" in
19251 ocaml)
19252 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019253 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19254echo "$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 +000019255 binding_prereqs_failed=1
19256 fi
19257 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019258 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19259echo "$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 +000019260 binding_prereqs_failed=1
19261 fi
19262 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019263 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19264echo "$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 +000019265 fi
19266 if test "x$with_ocaml_libdir" != xauto ; then
19267 OCAML_LIBDIR=$with_ocaml_libdir
19268
19269 else
19270 ocaml_stdlib="`"$OCAMLC" -where`"
19271 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19272 then
19273 # ocaml stdlib is beneath our prefix; use stdlib
19274 OCAML_LIBDIR=$ocaml_stdlib
19275
19276 else
19277 # ocaml stdlib is outside our prefix; use libdir/ocaml
Rafael Espindolab58973f2013-06-11 18:52:11 +000019278 OCAML_LIBDIR=${prefix}/lib/ocaml
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019279
19280 fi
19281 fi
19282 ;;
19283 esac
19284done
19285if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019286 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19287echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19288 { (exit 1); exit 1; }; }
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019289fi
19290
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019291{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19292echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19293if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019295else
19296 ac_ext=cpp
19297ac_cpp='$CXXCPP $CPPFLAGS'
19298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19301
19302 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi652e0132012-02-19 12:05:12 +000019303 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019304 cat >conftest.$ac_ext <<_ACEOF
19305/* confdefs.h. */
19306_ACEOF
19307cat confdefs.h >>conftest.$ac_ext
19308cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019309/* end confdefs.h. */
Benjamin Kramer54671a72011-12-22 22:50:44 +000019310template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019311int
19312main ()
19313{
Benjamin Kramer942b2872011-12-22 22:25:26 +000019314X<int>().f();
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019315 ;
19316 return 0;
19317}
19318_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019319rm -f conftest.$ac_objext
19320if { (ac_try="$ac_compile"
19321case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19324esac
19325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_compile") 2>conftest.er1
19327 ac_status=$?
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19334 { (case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19337esac
19338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_try") 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest.$ac_objext'
19344 { (case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19347esac
19348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_try") 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019353 llvm_cv_cxx_visibility_inlines_hidden=yes
19354else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019355 echo "$as_me: failed program was:" >&5
19356sed 's/^/| /' conftest.$ac_ext >&5
19357
19358 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019359fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019360
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362 CXXFLAGS="$oldcxxflags"
19363 ac_ext=c
19364ac_cpp='$CPP $CPPFLAGS'
19365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367ac_compiler_gnu=$ac_cv_c_compiler_gnu
19368
19369
19370fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019371{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19372echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbar8eec9852008-08-30 01:16:19 +000019373if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19374 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19375
19376else
19377 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19378
19379fi
19380
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000019381
Nick Lewyckyc540cc62009-03-05 08:20:44 +000019382if test "$llvm_cv_link_use_r" = "yes" ; then
19383 RPATH="-Wl,-R"
19384else
19385 RPATH="-Wl,-rpath"
19386fi
19387
19388
19389if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
Bob Wilson8d7e6902013-08-02 22:51:11 +000019390 RDYNAMIC="-rdynamic"
Nick Lewyckyc540cc62009-03-05 08:20:44 +000019391else
19392 RDYNAMIC=""
19393fi
Nick Lewyckyed8472e2009-03-03 04:55:29 +000019394
19395
Reid Spencer0241e382004-11-25 04:51:04 +000019396
Eric Christopher97014d82010-08-08 02:44:25 +000019397ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer0241e382004-11-25 04:51:04 +000019398
Eric Christopher41983c62010-08-08 09:20:39 +000019399
19400
19401
19402
19403
Douglas Gregor1b731d52009-06-16 20:12:29 +000019404ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19405
19406ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19407
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000019408ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19409
Daniel Dunbar32027202009-11-25 04:37:28 +000019410ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19411
Michael J. Spencer447762d2010-11-29 18:16:10 +000019412ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer0241e382004-11-25 04:51:04 +000019413
Reid Spencer0241e382004-11-25 04:51:04 +000019414
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019415ac_config_files="$ac_config_files Makefile.config"
Reid Spencer0241e382004-11-25 04:51:04 +000019416
Eric Christopher49709ad2011-10-26 00:42:12 +000019417
Reid Spencer1277ba22006-08-16 00:45:38 +000019418ac_config_files="$ac_config_files llvm.spec"
19419
19420
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000019421ac_config_files="$ac_config_files docs/doxygen.cfg"
19422
Eric Christopherf1329892012-02-02 00:16:55 +000019423
Dylan Noblesmithe21a3b22012-02-04 02:41:36 +000019424if test "${clang_src_root}" = ""; then
Eric Christopherdc51a5d2012-02-02 01:11:30 +000019425 clang_src_root="$srcdir/tools/clang"
Eric Christopher7f977de2012-02-02 00:19:05 +000019426fi
Eric Christopherf1329892012-02-02 00:16:55 +000019427if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000019428 configh="include/clang/Config/config.h"
19429 doxy="docs/doxygen.cfg"
19430 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopherf1329892012-02-02 00:16:55 +000019431
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000019432 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000019433
19434fi
19435
Torok Edwin229f8d72011-10-14 20:38:02 +000019436ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencer6f682b72006-03-22 15:59:55 +000019437
Eric Christopher49709ad2011-10-26 00:42:12 +000019438
Jordan Rose3c837ab2012-10-01 18:40:32 +000019439test "x$program_prefix" = "xNONE" && program_prefix=""
19440
19441
19442
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019443ac_config_commands="$ac_config_commands setup"
Reid Spencereeedeaf2005-02-24 19:05:19 +000019444
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019445ac_config_commands="$ac_config_commands Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019446
19447
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019448ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer0241e382004-11-25 04:51:04 +000019449
19450
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019451ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019452
19453
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019454ac_config_commands="$ac_config_commands lib/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"
Reid Spencer0241e382004-11-25 04:51:04 +000019458
19459
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019460ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer0241e382004-11-25 04:51:04 +000019461
19462
Bill Wendling7c53a182009-01-04 23:12:30 +000019463ac_config_commands="$ac_config_commands unittests/Makefile"
19464
19465
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019466ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019467
19468
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019469ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019470
19471
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019472ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000019473
19474
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000019475ac_config_commands="$ac_config_commands bindings/Makefile"
19476
19477
19478ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19479
19480
Reid Spencer0241e382004-11-25 04:51:04 +000019481
John Criswell3ef61af2003-06-30 21:59:07 +000019482cat >confcache <<\_ACEOF
19483# This file is a shell script that caches the results of configure
19484# tests run on this system so they can be shared between configure
19485# scripts and configure runs, see configure's option --config-cache.
19486# It is not useful on other systems. If it contains results you don't
19487# want to keep, you may remove or edit it.
19488#
19489# config.status only pays attention to the cache file if you give it
19490# the --recheck option to rerun configure.
19491#
John Criswell3eaf0b42003-09-10 15:17:25 +000019492# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell3ef61af2003-06-30 21:59:07 +000019493# loading this file, other *unset* `ac_cv_foo' will be assigned the
19494# following values.
19495
19496_ACEOF
19497
19498# The following way of writing the cache mishandles newlines in values,
19499# but we know of no workaround that is simple, portable, and efficient.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019500# So, we kill variables containing newlines.
John Criswell3ef61af2003-06-30 21:59:07 +000019501# Ultrix sh set writes to stderr and can't be redirected directly,
19502# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019503(
19504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19505 eval ac_val=\$$ac_var
19506 case $ac_val in #(
19507 *${as_nl}*)
19508 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019509 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19510echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019511 esac
19512 case $ac_var in #(
19513 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019514 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019515 esac ;;
19516 esac
19517 done
19518
John Criswell3ef61af2003-06-30 21:59:07 +000019519 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19521 *${as_nl}ac_space=\ *)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019522 # `set' does not quote correctly, so add quotes (double-quote
19523 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell3ef61af2003-06-30 21:59:07 +000019524 sed -n \
Reid Spencerf184a862004-09-19 23:53:36 +000019525 "s/'/'\\\\''/g;
19526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019527 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +000019528 *)
19529 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +000019531 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019532 esac |
19533 sort
19534) |
John Criswell3ef61af2003-06-30 21:59:07 +000019535 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019536 /^ac_cv_env_/b end
John Criswell3ef61af2003-06-30 21:59:07 +000019537 t clear
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019538 :clear
John Criswell3ef61af2003-06-30 21:59:07 +000019539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19540 t end
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19542 :end' >>confcache
19543if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19544 if test -w "$cache_file"; then
19545 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019546 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19547echo "$as_me: updating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000019548 cat confcache >$cache_file
19549 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019550 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19551echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000019552 fi
19553fi
19554rm -f confcache
19555
19556test "x$prefix" = xNONE && prefix=$ac_default_prefix
19557# Let make expand exec_prefix.
19558test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19559
John Criswell3ef61af2003-06-30 21:59:07 +000019560DEFS=-DHAVE_CONFIG_H
19561
John Criswell3eaf0b42003-09-10 15:17:25 +000019562ac_libobjs=
19563ac_ltlibobjs=
19564for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19565 # 1. Remove the extension, and $U if already installed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019567 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19569 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019570 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19571 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell3eaf0b42003-09-10 15:17:25 +000019572done
19573LIBOBJS=$ac_libobjs
19574
19575LTLIBOBJS=$ac_ltlibobjs
19576
19577
John Criswell3ef61af2003-06-30 21:59:07 +000019578
19579: ${CONFIG_STATUS=./config.status}
19580ac_clean_files_save=$ac_clean_files
19581ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019582{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19583echo "$as_me: creating $CONFIG_STATUS" >&6;}
19584cat >$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019585#! $SHELL
19586# Generated by $as_me.
19587# Run this file to recreate the current configuration.
19588# Compiler output produced by configure, useful for debugging
19589# configure, is in config.log if it exists.
19590
19591debug=false
John Criswell3eaf0b42003-09-10 15:17:25 +000019592ac_cs_recheck=false
19593ac_cs_silent=false
John Criswell3ef61af2003-06-30 21:59:07 +000019594SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019595_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019596
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019597cat >>$CONFIG_STATUS <<\_ACEOF
19598## --------------------- ##
19599## M4sh Initialization. ##
19600## --------------------- ##
19601
19602# Be Bourne compatible
19603if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3ef61af2003-06-30 21:59:07 +000019604 emulate sh
19605 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019606 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000019607 # is contrary to our usage. Disable this feature.
19608 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019609 setopt NO_GLOB_SUBST
19610else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019611 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3ef61af2003-06-30 21:59:07 +000019612fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019613BIN_SH=xpg4; export BIN_SH # for Tru64
19614DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3ef61af2003-06-30 21:59:07 +000019615
John Criswell3ef61af2003-06-30 21:59:07 +000019616
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019617# PATH needs CR
19618# Avoid depending upon Character Ranges.
19619as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19620as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19621as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19622as_cr_digits='0123456789'
19623as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3ef61af2003-06-30 21:59:07 +000019624
19625# The user is always right.
19626if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019627 echo "#! /bin/sh" >conf$$.sh
19628 echo "exit 0" >>conf$$.sh
19629 chmod +x conf$$.sh
19630 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19631 PATH_SEPARATOR=';'
19632 else
19633 PATH_SEPARATOR=:
19634 fi
19635 rm -f conf$$.sh
19636fi
19637
19638# Support unset when possible.
19639if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19640 as_unset=unset
19641else
19642 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019643fi
John Criswell3ef61af2003-06-30 21:59:07 +000019644
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019645
19646# IFS
19647# We need space, tab and new line, in precisely that order. Quoting is
19648# there to prevent editors from complaining about space-tab.
19649# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19650# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019651as_nl='
19652'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019653IFS=" "" $as_nl"
19654
19655# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019656case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019657 *[\\/]* ) as_myself=$0 ;;
19658 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3ef61af2003-06-30 21:59:07 +000019659for as_dir in $PATH
19660do
19661 IFS=$as_save_IFS
19662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019663 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19664done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019665IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +000019666
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019667 ;;
19668esac
19669# We did not find ourselves, most probably we were run as `sh COMMAND'
19670# in which case we are not to be found in the path.
19671if test "x$as_myself" = x; then
19672 as_myself=$0
19673fi
19674if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019675 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19676 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019677fi
19678
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019679# Work around bugs in pre-3.0 UWIN ksh.
19680for as_var in ENV MAIL MAILPATH
19681do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019682done
19683PS1='$ '
19684PS2='> '
19685PS4='+ '
19686
19687# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019688for as_var in \
19689 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19690 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19691 LC_TELEPHONE LC_TIME
19692do
19693 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19694 eval $as_var=C; export $as_var
19695 else
19696 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +000019697 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019698done
Torok Edwinaec06332010-01-26 08:50:50 +000019699
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019700# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019701if expr a : '\(a\)' >/dev/null 2>&1 &&
19702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19703 as_expr=expr
19704else
19705 as_expr=false
19706fi
19707
19708if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19709 as_basename=basename
19710else
19711 as_basename=false
19712fi
19713
19714
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019715# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019716as_me=`$as_basename -- "$0" ||
19717$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19718 X"$0" : 'X\(//\)$' \| \
19719 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019720echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019721 sed '/^.*\/\([^/][^/]*\)\/*$/{
19722 s//\1/
19723 q
19724 }
19725 /^X\/\(\/\/\)$/{
19726 s//\1/
19727 q
19728 }
19729 /^X\/\(\/\).*/{
19730 s//\1/
19731 q
19732 }
19733 s/.*/./; q'`
19734
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019735# CDPATH.
19736$as_unset CDPATH
19737
19738
19739
19740 as_lineno_1=$LINENO
19741 as_lineno_2=$LINENO
19742 test "x$as_lineno_1" != "x$as_lineno_2" &&
19743 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19744
19745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19746 # uniformly replaced by the line number. The first 'sed' inserts a
19747 # line-number line after each line using $LINENO; the second 'sed'
19748 # does the real work. The second script uses 'N' to pair each
19749 # line-number line with the line containing $LINENO, and appends
19750 # trailing '-' during substitution so that $LINENO is not a special
19751 # case at line end.
19752 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19753 # scripts with optimization help from Paolo Bonzini. Blame Lee
19754 # E. McMahon (1931-1989) for sed's syntax. :-)
19755 sed -n '
19756 p
19757 /[$]LINENO/=
19758 ' <$as_myself |
19759 sed '
19760 s/[$]LINENO.*/&-/
19761 t lineno
19762 b
19763 :lineno
19764 N
19765 :loop
19766 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19767 t loop
19768 s/-\n.*//
19769 ' >$as_me.lineno &&
19770 chmod +x "$as_me.lineno" ||
19771 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19772 { (exit 1); exit 1; }; }
19773
19774 # Don't try to exec as it changes $[0], causing all sort of problems
19775 # (the dirname of $[0] is not the place where we might find the
19776 # original and so on. Autoconf is especially sensitive to this).
19777 . "./$as_me.lineno"
19778 # Exit status is that of the last command.
19779 exit
19780}
19781
19782
19783if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19784 as_dirname=dirname
19785else
19786 as_dirname=false
19787fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019788
19789ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019790case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019791-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019792 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019793 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019794 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019795 esac;;
19796*)
19797 ECHO_N='-n';;
John Criswell3ef61af2003-06-30 21:59:07 +000019798esac
19799
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019800if expr a : '\(a\)' >/dev/null 2>&1 &&
19801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19802 as_expr=expr
19803else
19804 as_expr=false
19805fi
19806
John Criswell3ef61af2003-06-30 21:59:07 +000019807rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019808if test -d conf$$.dir; then
19809 rm -f conf$$.dir/conf$$.file
19810else
19811 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019812 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019813fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019814echo >conf$$.file
19815if ln -s conf$$.file conf$$ 2>/dev/null; then
19816 as_ln_s='ln -s'
19817 # ... but there are two gotchas:
19818 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19819 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19820 # In both cases, we have to default to `cp -p'.
19821 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3ef61af2003-06-30 21:59:07 +000019822 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019823elif ln conf$$.file conf$$ 2>/dev/null; then
19824 as_ln_s=ln
John Criswell3ef61af2003-06-30 21:59:07 +000019825else
19826 as_ln_s='cp -p'
19827fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019828rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19829rmdir conf$$.dir 2>/dev/null
John Criswell3ef61af2003-06-30 21:59:07 +000019830
John Criswell3eaf0b42003-09-10 15:17:25 +000019831if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019832 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +000019833else
Reid Spencerf184a862004-09-19 23:53:36 +000019834 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +000019835 as_mkdir_p=false
19836fi
19837
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019838# Find out whether ``test -x'' works. Don't use a zero-byte file, as
19839# systems may use methods other than mode bits to determine executability.
19840cat >conf$$.file <<_ASEOF
19841#! /bin/sh
19842exit 0
19843_ASEOF
19844chmod +x conf$$.file
19845if test -x conf$$.file >/dev/null 2>&1; then
19846 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019847else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019848 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019849fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019850rm -f conf$$.file
John Criswell3ef61af2003-06-30 21:59:07 +000019851
19852# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +000019853as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000019854
19855# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +000019856as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000019857
19858
John Criswell3ef61af2003-06-30 21:59:07 +000019859exec 6>&1
19860
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019861# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell3ef61af2003-06-30 21:59:07 +000019862# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019863# values after options handling.
19864ac_log="
Tom Stellarde6ba81d2014-03-03 15:22:00 +000019865This file was extended by LLVM $as_me 3.5.0svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019866generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +000019867
19868 CONFIG_FILES = $CONFIG_FILES
19869 CONFIG_HEADERS = $CONFIG_HEADERS
19870 CONFIG_LINKS = $CONFIG_LINKS
19871 CONFIG_COMMANDS = $CONFIG_COMMANDS
19872 $ $0 $@
19873
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019874on `(hostname || uname -n) 2>/dev/null | sed 1q`
19875"
19876
John Criswell3ef61af2003-06-30 21:59:07 +000019877_ACEOF
19878
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019879cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019880# Files that config.status was made for.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019881config_files="$ac_config_files"
19882config_headers="$ac_config_headers"
19883config_commands="$ac_config_commands"
John Criswell3ef61af2003-06-30 21:59:07 +000019884
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019885_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019886
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019887cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019888ac_cs_usage="\
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019889\`$as_me' instantiates files from templates according to the
19890current configuration.
John Criswell3ef61af2003-06-30 21:59:07 +000019891
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019892Usage: $0 [OPTIONS] [FILE]...
John Criswell3ef61af2003-06-30 21:59:07 +000019893
19894 -h, --help print this help, then exit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019895 -V, --version print version number, then exit
19896 -q, --quiet do not print progress messages
John Criswell3ef61af2003-06-30 21:59:07 +000019897 -d, --debug don't remove temporary files
19898 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019899 --file=FILE[:TEMPLATE]
19900 instantiate the configuration file FILE
19901 --header=FILE[:TEMPLATE]
19902 instantiate the configuration header FILE
John Criswell3ef61af2003-06-30 21:59:07 +000019903
19904Configuration files:
19905$config_files
19906
19907Configuration headers:
19908$config_headers
19909
John Criswell3bac9bc2003-09-06 15:17:13 +000019910Configuration commands:
19911$config_commands
19912
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019913Report bugs to <bug-autoconf@gnu.org>."
John Criswell3ef61af2003-06-30 21:59:07 +000019914
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019915_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019916cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000019917ac_cs_version="\\
Tom Stellarde6ba81d2014-03-03 15:22:00 +000019918LLVM config.status 3.5.0svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019919configured by $0, generated by GNU Autoconf 2.60,
19920 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell3ef61af2003-06-30 21:59:07 +000019921
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019922Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +000019923This config.status script is free software; the Free Software Foundation
19924gives unlimited permission to copy, distribute and modify it."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019925
19926ac_pwd='$ac_pwd'
19927srcdir='$srcdir'
19928INSTALL='$INSTALL'
John Criswell3ef61af2003-06-30 21:59:07 +000019929_ACEOF
19930
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019931cat >>$CONFIG_STATUS <<\_ACEOF
19932# If no file are specified by the user, then we need to provide default
19933# value. By we need to know if files were specified by the user.
John Criswell3ef61af2003-06-30 21:59:07 +000019934ac_need_defaults=:
19935while test $# != 0
19936do
19937 case $1 in
19938 --*=*)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019939 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19940 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell3eaf0b42003-09-10 15:17:25 +000019941 ac_shift=:
John Criswell3ef61af2003-06-30 21:59:07 +000019942 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019943 *)
John Criswell3eaf0b42003-09-10 15:17:25 +000019944 ac_option=$1
19945 ac_optarg=$2
19946 ac_shift=shift
19947 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019948 esac
19949
John Criswell3eaf0b42003-09-10 15:17:25 +000019950 case $ac_option in
John Criswell3ef61af2003-06-30 21:59:07 +000019951 # Handling of the options.
John Criswell3eaf0b42003-09-10 15:17:25 +000019952 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19953 ac_cs_recheck=: ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019954 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019955 echo "$ac_cs_version"; exit ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019956 --debug | --debu | --deb | --de | --d | -d )
John Criswell3ef61af2003-06-30 21:59:07 +000019957 debug=: ;;
19958 --file | --fil | --fi | --f )
John Criswell3eaf0b42003-09-10 15:17:25 +000019959 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019960 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000019961 ac_need_defaults=false;;
19962 --header | --heade | --head | --hea )
John Criswell3eaf0b42003-09-10 15:17:25 +000019963 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019964 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000019965 ac_need_defaults=false;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019966 --he | --h)
19967 # Conflict between --help and --header
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019968 { echo "$as_me: error: ambiguous option: $1
19969Try \`$0 --help' for more information." >&2
19970 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019971 --help | --hel | -h )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019972 echo "$ac_cs_usage"; exit ;;
John Criswell3eaf0b42003-09-10 15:17:25 +000019973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19974 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19975 ac_cs_silent=: ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019976
19977 # This is an error.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019978 -*) { echo "$as_me: error: unrecognized option: $1
19979Try \`$0 --help' for more information." >&2
19980 { (exit 1); exit 1; }; } ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019981
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019982 *) ac_config_targets="$ac_config_targets $1"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019983 ac_need_defaults=false ;;
John Criswell3ef61af2003-06-30 21:59:07 +000019984
19985 esac
19986 shift
19987done
19988
John Criswell3eaf0b42003-09-10 15:17:25 +000019989ac_configure_extra_args=
19990
19991if $ac_cs_silent; then
19992 exec 6>/dev/null
19993 ac_configure_extra_args="$ac_configure_extra_args --silent"
19994fi
19995
19996_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019997cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000019998if \$ac_cs_recheck; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019999 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20000 CONFIG_SHELL=$SHELL
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020001 export CONFIG_SHELL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020002 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell3eaf0b42003-09-10 15:17:25 +000020003fi
20004
John Criswell3ef61af2003-06-30 21:59:07 +000020005_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020006cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020007exec 5>>config.log
20008{
20009 echo
20010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20011## Running $as_me. ##
20012_ASBOX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020013 echo "$ac_log"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020014} >&5
John Criswell3ef61af2003-06-30 21:59:07 +000020015
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020016_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020017cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3bac9bc2003-09-06 15:17:13 +000020018#
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020019# INIT-COMMANDS
John Criswell3bac9bc2003-09-06 15:17:13 +000020020#
Reid Spencereeedeaf2005-02-24 19:05:19 +000020021llvm_src="${srcdir}"
John Criswell3bac9bc2003-09-06 15:17:13 +000020022
20023_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000020024
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020025cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020026
20027# Handling of arguments.
John Criswell3ef61af2003-06-30 21:59:07 +000020028for ac_config_target in $ac_config_targets
20029do
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020030 case $ac_config_target in
20031 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christopher97014d82010-08-08 02:44:25 +000020032 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1b731d52009-06-16 20:12:29 +000020033 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20034 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000020035 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar32027202009-11-25 04:37:28 +000020036 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer447762d2010-11-29 18:16:10 +000020037 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020038 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1277ba22006-08-16 00:45:38 +000020039 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000020040 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000020041 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20042 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher49709ad2011-10-26 00:42:12 +000020043 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020044 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20045 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20046 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20047 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20048 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020049 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20050 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000020051 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020052 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20053 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20054 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000020055 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20056 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020057
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020058 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20059echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20060 { (exit 1); exit 1; }; };;
John Criswell3ef61af2003-06-30 21:59:07 +000020061 esac
20062done
20063
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020064
John Criswell3ef61af2003-06-30 21:59:07 +000020065# If the user did not use the arguments to specify the items to instantiate,
20066# then the envvar interface is used. Set only those that are not.
20067# We use the long form for the default assignment because of an extremely
20068# bizarre bug on SunOS 4.1.3.
20069if $ac_need_defaults; then
20070 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20071 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswell3bac9bc2003-09-06 15:17:13 +000020072 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell3ef61af2003-06-30 21:59:07 +000020073fi
20074
John Criswell3eaf0b42003-09-10 15:17:25 +000020075# Have a temporary directory for convenience. Make it in the build tree
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020076# simply because there is no reason against having it here, and in addition,
John Criswell3eaf0b42003-09-10 15:17:25 +000020077# creating and moving files from /tmp can sometimes cause problems.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020078# Hook for its removal unless debugging.
20079# Note that there is a small window in which the directory will not be cleaned:
20080# after its creation but before its name has been assigned to `$tmp'.
John Criswell3ef61af2003-06-30 21:59:07 +000020081$debug ||
20082{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020083 tmp=
20084 trap 'exit_status=$?
20085 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20086' 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020087 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell3ef61af2003-06-30 21:59:07 +000020088}
John Criswell3ef61af2003-06-30 21:59:07 +000020089# Create a (secure) tmp directory for tmp files.
John Criswell3eaf0b42003-09-10 15:17:25 +000020090
John Criswell3ef61af2003-06-30 21:59:07 +000020091{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell3ef61af2003-06-30 21:59:07 +000020093 test -n "$tmp" && test -d "$tmp"
20094} ||
20095{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020096 tmp=./conf$$-$RANDOM
20097 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020098} ||
20099{
20100 echo "$me: cannot create a temporary directory in ." >&2
20101 { (exit 1); exit 1; }
20102}
John Criswell3ef61af2003-06-30 21:59:07 +000020103
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020104#
20105# Set up the sed scripts for CONFIG_FILES section.
20106#
20107
20108# No need to generate the scripts if there are no CONFIG_FILES.
20109# This happens for instance when ./config.status config.h
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020110if test -n "$CONFIG_FILES"; then
John Criswell3ef61af2003-06-30 21:59:07 +000020111
20112_ACEOF
20113
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020114
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020115
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020116ac_delim='%!_!# '
20117for ac_last_try in false false false false false :; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020118 cat >conf$$subs.sed <<_ACEOF
20119SHELL!$SHELL$ac_delim
20120PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20121PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20122PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20123PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20124PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20125PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20126exec_prefix!$exec_prefix$ac_delim
20127prefix!$prefix$ac_delim
20128program_transform_name!$program_transform_name$ac_delim
20129bindir!$bindir$ac_delim
20130sbindir!$sbindir$ac_delim
20131libexecdir!$libexecdir$ac_delim
20132datarootdir!$datarootdir$ac_delim
20133datadir!$datadir$ac_delim
20134sysconfdir!$sysconfdir$ac_delim
20135sharedstatedir!$sharedstatedir$ac_delim
20136localstatedir!$localstatedir$ac_delim
20137includedir!$includedir$ac_delim
20138oldincludedir!$oldincludedir$ac_delim
20139docdir!$docdir$ac_delim
20140infodir!$infodir$ac_delim
20141htmldir!$htmldir$ac_delim
20142dvidir!$dvidir$ac_delim
20143pdfdir!$pdfdir$ac_delim
20144psdir!$psdir$ac_delim
20145libdir!$libdir$ac_delim
20146localedir!$localedir$ac_delim
20147mandir!$mandir$ac_delim
20148DEFS!$DEFS$ac_delim
20149ECHO_C!$ECHO_C$ac_delim
20150ECHO_N!$ECHO_N$ac_delim
20151ECHO_T!$ECHO_T$ac_delim
20152LIBS!$LIBS$ac_delim
20153build_alias!$build_alias$ac_delim
20154host_alias!$host_alias$ac_delim
20155target_alias!$target_alias$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020156LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20157LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
Tom Stellarde6ba81d2014-03-03 15:22:00 +000020158LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20159LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020160LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000020161CC!$CC$ac_delim
20162CFLAGS!$CFLAGS$ac_delim
20163LDFLAGS!$LDFLAGS$ac_delim
20164CPPFLAGS!$CPPFLAGS$ac_delim
20165ac_ct_CC!$ac_ct_CC$ac_delim
20166EXEEXT!$EXEEXT$ac_delim
20167OBJEXT!$OBJEXT$ac_delim
20168CXX!$CXX$ac_delim
20169CXXFLAGS!$CXXFLAGS$ac_delim
20170ac_ct_CXX!$ac_ct_CXX$ac_delim
20171CPP!$CPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020172subdirs!$subdirs$ac_delim
Tobias Grosserea9dca42010-10-30 00:54:26 +000020173ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20174LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020175build!$build$ac_delim
20176build_cpu!$build_cpu$ac_delim
20177build_vendor!$build_vendor$ac_delim
20178build_os!$build_os$ac_delim
20179host!$host$ac_delim
20180host_cpu!$host_cpu$ac_delim
20181host_vendor!$host_vendor$ac_delim
20182host_os!$host_os$ac_delim
20183target!$target$ac_delim
20184target_cpu!$target_cpu$ac_delim
20185target_vendor!$target_vendor$ac_delim
20186target_os!$target_os$ac_delim
20187OS!$OS$ac_delim
20188HOST_OS!$HOST_OS$ac_delim
20189TARGET_OS!$TARGET_OS$ac_delim
20190LINKALL!$LINKALL$ac_delim
20191NOLINKALL!$NOLINKALL$ac_delim
20192LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20193LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20194ARCH!$ARCH$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020195LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000020196HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020197LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20198BUILD_CC!$BUILD_CC$ac_delim
20199BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20200BUILD_CXX!$BUILD_CXX$ac_delim
20201CVSBUILD!$CVSBUILD$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000020202ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Chandler Carruthbbae5122014-03-01 03:33:08 +000020203ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
Eric Christopherf1bd7702013-06-25 01:12:25 +000020204ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020205ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
Rafael Espindolae33f06c2014-03-10 16:58:35 +000020206CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020207ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20208ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020209ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20210ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20211DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000020212ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020213ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20214EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20215DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020216_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020217
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020218 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020219 break
20220 elif $ac_last_try; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020221 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20222echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20223 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020224 else
20225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell3ef61af2003-06-30 21:59:07 +000020226 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020227done
20228
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020229ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20230if test -n "$ac_eof"; then
20231 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20232 ac_eof=`expr $ac_eof + 1`
20233fi
20234
20235cat >>$CONFIG_STATUS <<_ACEOF
20236cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20237/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020238_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020239sed '
20240s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20241s/^/s,@/; s/!/@,|#_!!_#|/
20242:n
20243t n
20244s/'"$ac_delim"'$/,g/; t
20245s/$/\\/; p
20246N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20247' >>$CONFIG_STATUS <conf$$subs.sed
20248rm -f conf$$subs.sed
20249cat >>$CONFIG_STATUS <<_ACEOF
20250CEOF$ac_eof
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020251_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020252
20253
20254ac_delim='%!_!# '
20255for ac_last_try in false false false false false :; do
20256 cat >conf$$subs.sed <<_ACEOF
Rafael Espindolae33f06c2014-03-10 16:58:35 +000020257DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Tom Stellarde6ba81d2014-03-03 15:22:00 +000020258KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20259JIT!$JIT$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020260TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20261TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20262ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20263ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020264LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000020265ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000020266LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000020267ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000020268ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000020269ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000020270ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020271ALL_TARGETS!$ALL_TARGETS$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000020272TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20273LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20274LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +000020275LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumic6fce172010-12-29 03:59:03 +000020276LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000020277OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000020278EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbar3b95df82011-06-16 22:30:41 +000020279EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumi914f1922011-10-16 02:54:26 +000020280CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000020281BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020282ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
Bob Wilson3f354702011-11-28 07:59:52 +000020283INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020284ifGNUmake!$ifGNUmake$ac_delim
20285LN_S!$LN_S$ac_delim
Rafael Espindolafd1355a2014-02-28 18:17:54 +000020286NM!$NM$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020287CMP!$CMP$ac_delim
20288CP!$CP$ac_delim
20289DATE!$DATE$ac_delim
20290FIND!$FIND$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000020291GREP!$GREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020292MKDIR!$MKDIR$ac_delim
20293MV!$MV$ac_delim
20294RANLIB!$RANLIB$ac_delim
20295AR!$AR$ac_delim
20296RM!$RM$ac_delim
20297SED!$SED$ac_delim
20298TAR!$TAR$ac_delim
20299BINPWD!$BINPWD$ac_delim
20300GRAPHVIZ!$GRAPHVIZ$ac_delim
20301DOT!$DOT$ac_delim
20302FDP!$FDP$ac_delim
20303NEATO!$NEATO$ac_delim
20304TWOPI!$TWOPI$ac_delim
20305CIRCO!$CIRCO$ac_delim
20306GV!$GV$ac_delim
20307DOTTY!$DOTTY$ac_delim
Matt Arsenaultfe56cc62013-07-08 20:24:54 +000020308XDOT!$XDOT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020309INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20310INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20311INSTALL_DATA!$INSTALL_DATA$ac_delim
20312BZIP2!$BZIP2$ac_delim
mike-me08af302010-05-06 23:45:43 +000020313CAT!$CAT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020314DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000020315GROFF!$GROFF$ac_delim
Eric Christopher77560892010-12-10 01:31:51 +000020316GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000020317PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020318ZIP!$ZIP$ac_delim
20319OCAMLC!$OCAMLC$ac_delim
20320OCAMLOPT!$OCAMLOPT$ac_delim
20321OCAMLDEP!$OCAMLDEP$ac_delim
20322OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000020323GAS!$GAS$ac_delim
Dan Gohmanb7edb422010-06-01 14:56:56 +000020324HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Eric Christopherd7ed36b2014-01-09 01:09:57 +000020325EGREP!$EGREP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020326NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20327NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola42e94d12012-02-28 23:32:06 +000020328COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000020329NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20330NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000020331PYTHON!$PYTHON$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020332HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20333HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020334USE_UDIS86!$USE_UDIS86$ac_delim
20335USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky5262ad22012-03-13 08:33:15 +000020336USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopherc807c532012-08-03 19:47:19 +000020337XML2CONFIG!$XML2CONFIG$ac_delim
20338LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20339LIBXML2_INC!$LIBXML2_INC$ac_delim
Benjamin Kramer00622f72013-05-03 15:55:06 +000020340CXXCPP!$CXXCPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020341HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000020342HAVE_LIBZ!$HAVE_LIBZ$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020343HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20344MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020345SHLIBEXT!$SHLIBEXT$ac_delim
20346LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20347LLVM_BINDIR!$LLVM_BINDIR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020348LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20349LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20350LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
Rafael Espindola11ac8532014-02-28 16:16:51 +000020351LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
Rafael Espindolafd1355a2014-02-28 18:17:54 +000020352LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20353LLVM_MANDIR!$LLVM_MANDIR$ac_delim
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020354_ACEOF
20355
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020356 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020357 break
20358 elif $ac_last_try; then
20359 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20360echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20361 { (exit 1); exit 1; }; }
20362 else
20363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20364 fi
20365done
20366
20367ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20368if test -n "$ac_eof"; then
20369 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20370 ac_eof=`expr $ac_eof + 1`
20371fi
20372
20373cat >>$CONFIG_STATUS <<_ACEOF
20374cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020375/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20376_ACEOF
20377sed '
20378s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20379s/^/s,@/; s/!/@,|#_!!_#|/
20380:n
20381t n
20382s/'"$ac_delim"'$/,g/; t
20383s/$/\\/; p
20384N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20385' >>$CONFIG_STATUS <conf$$subs.sed
20386rm -f conf$$subs.sed
20387cat >>$CONFIG_STATUS <<_ACEOF
20388CEOF$ac_eof
20389_ACEOF
20390
20391
20392ac_delim='%!_!# '
20393for ac_last_try in false false false false false :; do
20394 cat >conf$$subs.sed <<_ACEOF
Rafael Espindolae33f06c2014-03-10 16:58:35 +000020395LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Tom Stellarde6ba81d2014-03-03 15:22:00 +000020396BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20397ALL_BINDINGS!$ALL_BINDINGS$ac_delim
NAKAMURA Takumi84e85302014-02-09 16:36:42 +000020398OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20399ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000020400RPATH!$RPATH$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000020401RDYNAMIC!$RDYNAMIC$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000020402program_prefix!$program_prefix$ac_delim
20403LIBOBJS!$LIBOBJS$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020404LTLIBOBJS!$LTLIBOBJS$ac_delim
20405_ACEOF
20406
Rafael Espindolae33f06c2014-03-10 16:58:35 +000020407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020408 break
20409 elif $ac_last_try; then
20410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20411echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20412 { (exit 1); exit 1; }; }
20413 else
20414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20415 fi
20416done
20417
20418ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20419if test -n "$ac_eof"; then
20420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20421 ac_eof=`expr $ac_eof + 1`
20422fi
20423
20424cat >>$CONFIG_STATUS <<_ACEOF
20425cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose2998d252012-09-26 00:01:00 +000020426/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grosser61cb2452010-11-10 16:31:34 +000020427_ACEOF
20428sed '
20429s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20430s/^/s,@/; s/!/@,|#_!!_#|/
20431:n
20432t n
20433s/'"$ac_delim"'$/,g/; t
20434s/$/\\/; p
20435N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20436' >>$CONFIG_STATUS <conf$$subs.sed
20437rm -f conf$$subs.sed
20438cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose2998d252012-09-26 00:01:00 +000020439:end
20440s/|#_!!_#|//g
Tobias Grosser61cb2452010-11-10 16:31:34 +000020441CEOF$ac_eof
20442_ACEOF
20443
20444
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020445# VPATH may cause trouble with some makes, so we remove $(srcdir),
20446# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20447# trailing colons and then remove the whole line if VPATH becomes empty
20448# (actually we leave an empty line to preserve line numbers).
20449if test "x$srcdir" = x.; then
20450 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20451s/:*\$(srcdir):*/:/
20452s/:*\${srcdir}:*/:/
20453s/:*@srcdir@:*/:/
20454s/^\([^=]*=[ ]*\):*/\1/
20455s/:*$//
20456s/^[^=]*=[ ]*$//
20457}'
20458fi
20459
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020460cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000020461fi # test -n "$CONFIG_FILES"
20462
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020463
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020464for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020465do
20466 case $ac_tag in
20467 :[FHLC]) ac_mode=$ac_tag; continue;;
20468 esac
20469 case $ac_mode$ac_tag in
20470 :[FHL]*:*);;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020471 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20472echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20473 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020474 :[FH]-) ac_tag=-:-;;
20475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20476 esac
20477 ac_save_IFS=$IFS
20478 IFS=:
20479 set x $ac_tag
20480 IFS=$ac_save_IFS
20481 shift
20482 ac_file=$1
20483 shift
20484
20485 case $ac_mode in
20486 :L) ac_source=$1;;
20487 :[FH])
20488 ac_file_inputs=
20489 for ac_f
20490 do
20491 case $ac_f in
20492 -) ac_f="$tmp/stdin";;
20493 *) # Look for the file first in the build tree, then in the source tree
20494 # (if the path is not absolute). The absolute path cannot be DOS-style,
20495 # because $ac_f cannot contain `:'.
20496 test -f "$ac_f" ||
20497 case $ac_f in
20498 [\\/$]*) false;;
20499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20500 esac ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020501 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20502echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20503 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020504 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020505 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020506 done
20507
20508 # Let's still pretend it is `configure' which instantiates (i.e., don't
20509 # use $as_me), people would be surprised to read:
20510 # /* config.h. Generated by config.status. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020511 configure_input="Generated from "`IFS=:
20512 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020513 if test x"$ac_file" != x-; then
20514 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020515 { echo "$as_me:$LINENO: creating $ac_file" >&5
20516echo "$as_me: creating $ac_file" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020517 fi
20518
20519 case $ac_tag in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020520 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020521 esac
20522 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000020523 esac
20524
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020525 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell3ef61af2003-06-30 21:59:07 +000020526$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencerf184a862004-09-19 23:53:36 +000020527 X"$ac_file" : 'X\(//\)[^/]' \| \
20528 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020530echo X"$ac_file" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20532 s//\1/
20533 q
20534 }
20535 /^X\(\/\/\)[^/].*/{
20536 s//\1/
20537 q
20538 }
20539 /^X\(\/\/\)$/{
20540 s//\1/
20541 q
20542 }
20543 /^X\(\/\).*/{
20544 s//\1/
20545 q
20546 }
20547 s/.*/./; q'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020548 { as_dir="$ac_dir"
20549 case $as_dir in #(
20550 -*) as_dir=./$as_dir;;
20551 esac
20552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20553 as_dirs=
20554 while :; do
20555 case $as_dir in #(
20556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20557 *) as_qdir=$as_dir;;
20558 esac
20559 as_dirs="'$as_qdir' $as_dirs"
20560 as_dir=`$as_dirname -- "$as_dir" ||
20561$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20562 X"$as_dir" : 'X\(//\)[^/]' \| \
20563 X"$as_dir" : 'X\(//\)$' \| \
20564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20565echo X"$as_dir" |
20566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20567 s//\1/
20568 q
20569 }
20570 /^X\(\/\/\)[^/].*/{
20571 s//\1/
20572 q
20573 }
20574 /^X\(\/\/\)$/{
20575 s//\1/
20576 q
20577 }
20578 /^X\(\/\).*/{
20579 s//\1/
20580 q
20581 }
20582 s/.*/./; q'`
20583 test -d "$as_dir" && break
20584 done
20585 test -z "$as_dirs" || eval "mkdir $as_dirs"
20586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20587echo "$as_me: error: cannot create directory $as_dir" >&2;}
20588 { (exit 1); exit 1; }; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000020589 ac_builddir=.
20590
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020591case "$ac_dir" in
20592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20593*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020595 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020597 case $ac_top_builddir_sub in
20598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20600 esac ;;
20601esac
20602ac_abs_top_builddir=$ac_pwd
20603ac_abs_builddir=$ac_pwd$ac_dir_suffix
20604# for backward compatibility:
20605ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +000020606
20607case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020608 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +000020609 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020610 ac_top_srcdir=$ac_top_builddir_sub
20611 ac_abs_top_srcdir=$ac_pwd ;;
20612 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +000020613 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020614 ac_top_srcdir=$srcdir
20615 ac_abs_top_srcdir=$srcdir ;;
20616 *) # Relative name.
20617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20618 ac_top_srcdir=$ac_top_build_prefix$srcdir
20619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +000020620esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +000020622
John Criswell3ef61af2003-06-30 21:59:07 +000020623
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020624 case $ac_mode in
20625 :F)
20626 #
20627 # CONFIG_FILE
20628 #
John Criswell3ef61af2003-06-30 21:59:07 +000020629
20630 case $INSTALL in
20631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell3ef61af2003-06-30 21:59:07 +000020633 esac
John Criswell3ef61af2003-06-30 21:59:07 +000020634_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020635
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020636cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020637# If the template does not know about datarootdir, expand it.
20638# FIXME: This hack should be removed a few years after 2.60.
20639ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020640
20641case `sed -n '/datarootdir/ {
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020642 p
20643 q
20644}
20645/@datadir@/p
20646/@docdir@/p
20647/@infodir@/p
20648/@localedir@/p
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020649/@mandir@/p
20650' $ac_file_inputs` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020651*datarootdir*) ac_datarootdir_seen=yes;;
20652*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020653 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20654echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020655_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020656cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020657 ac_datarootdir_hack='
20658 s&@datadir@&$datadir&g
20659 s&@docdir@&$docdir&g
20660 s&@infodir@&$infodir&g
20661 s&@localedir@&$localedir&g
20662 s&@mandir@&$mandir&g
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020663 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020664esac
20665_ACEOF
20666
20667# Neutralize VPATH when `$srcdir' = `.'.
20668# Shell code in configure.ac might set extrasub.
20669# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020670cat >>$CONFIG_STATUS <<_ACEOF
20671 sed "$ac_vpsub
John Criswell3ef61af2003-06-30 21:59:07 +000020672$extrasub
20673_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020674cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000020675:t
20676/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020677s&@configure_input@&$configure_input&;t t
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020678s&@top_builddir@&$ac_top_builddir_sub&;t t
20679s&@srcdir@&$ac_srcdir&;t t
20680s&@abs_srcdir@&$ac_abs_srcdir&;t t
20681s&@top_srcdir@&$ac_top_srcdir&;t t
20682s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20683s&@builddir@&$ac_builddir&;t t
20684s&@abs_builddir@&$ac_abs_builddir&;t t
20685s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20686s&@INSTALL@&$ac_INSTALL&;t t
20687$ac_datarootdir_hack
Roman Divackyf2bb66b2012-12-13 16:07:19 +000020688" $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 +000020689
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020690test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020693 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020694which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020695echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020696which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000020697
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020698 rm -f "$tmp/stdin"
John Criswell3ef61af2003-06-30 21:59:07 +000020699 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020700 -) cat "$tmp/out"; rm -f "$tmp/out";;
20701 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20702 esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020703 ;;
20704 :H)
20705 #
20706 # CONFIG_HEADER
20707 #
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020708_ACEOF
20709
20710# Transform confdefs.h into a sed script `conftest.defines', that
20711# substitutes the proper values into config.h.in to produce config.h.
20712rm -f conftest.defines conftest.tail
20713# First, append a space to every undef/define line, to ease matching.
20714echo 's/$/ /' >conftest.defines
20715# Then, protect against being on the right side of a sed subst, or in
20716# an unquoted here document, in config.status. If some macros were
20717# called several times there might be several #defines for the same
20718# symbol, which is useless. But do not sort them, since the last
20719# AC_DEFINE must be honored.
20720ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20721# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20722# NAME is the cpp macro being defined, VALUE is the value it is being given.
20723# PARAMS is the parameter list in the macro definition--in most cases, it's
20724# just an empty string.
20725ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20726ac_dB='\\)[ (].*,\\1define\\2'
20727ac_dC=' '
20728ac_dD=' ,'
20729
20730uniq confdefs.h |
20731 sed -n '
20732 t rset
20733 :rset
20734 s/^[ ]*#[ ]*define[ ][ ]*//
20735 t ok
20736 d
20737 :ok
20738 s/[\\&,]/\\&/g
20739 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20740 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20741 ' >>conftest.defines
20742
20743# Remove the space that was appended to ease matching.
20744# Then replace #undef with comments. This is necessary, for
20745# example, in the case of _POSIX_SOURCE, which is predefined and required
20746# on some systems where configure will not decide to define it.
20747# (The regexp can be short, since the line contains either #define or #undef.)
20748echo 's/ $//
20749s,^[ #]*u.*,/* & */,' >>conftest.defines
20750
20751# Break up conftest.defines:
20752ac_max_sed_lines=50
20753
20754# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20755# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20756# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20757# et cetera.
20758ac_in='$ac_file_inputs'
20759ac_out='"$tmp/out1"'
20760ac_nxt='"$tmp/out2"'
20761
20762while :
20763do
20764 # Write a here document:
20765 cat >>$CONFIG_STATUS <<_ACEOF
20766 # First, check the format of the line:
20767 cat >"\$tmp/defines.sed" <<\\CEOF
20768/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20769/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20770b
20771:def
20772_ACEOF
20773 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20774 echo 'CEOF
20775 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20776 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20777 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20778 grep . conftest.tail >/dev/null || break
20779 rm -f conftest.defines
20780 mv conftest.tail conftest.defines
20781done
20782rm -f conftest.defines conftest.tail
20783
20784echo "ac_result=$ac_in" >>$CONFIG_STATUS
20785cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000020786 if test x"$ac_file" != x-; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020787 echo "/* $configure_input */" >"$tmp/config.h"
20788 cat "$ac_result" >>"$tmp/config.h"
20789 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20790 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20791echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000020792 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020793 rm -f $ac_file
20794 mv "$tmp/config.h" $ac_file
John Criswell3ef61af2003-06-30 21:59:07 +000020795 fi
20796 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020797 echo "/* $configure_input */"
20798 cat "$ac_result"
John Criswell3ef61af2003-06-30 21:59:07 +000020799 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020800 rm -f "$tmp/out12"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020801 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000020802
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020803 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20804echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020805 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000020806 esac
John Criswell3ef61af2003-06-30 21:59:07 +000020807
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020808
20809 case $ac_file$ac_mode in
20810 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020811 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020812 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwind70eebe2009-08-28 16:12:48 +000020813 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020814 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020815 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020816 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020817 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020818 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020819 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020820 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwind70eebe2009-08-28 16:12:48 +000020821 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000020822 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020823 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020824 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020825 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020826 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020827 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020828 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020829 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000020830 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000020831 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000020832 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwind70eebe2009-08-28 16:12:48 +000020833 ${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 +000020834
20835 esac
20836done # for ac_tag
20837
John Criswell3ef61af2003-06-30 21:59:07 +000020838
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020839{ (exit 0); exit 0; }
John Criswell3ef61af2003-06-30 21:59:07 +000020840_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020841chmod +x $CONFIG_STATUS
John Criswell3ef61af2003-06-30 21:59:07 +000020842ac_clean_files=$ac_clean_files_save
20843
20844
20845# configure is writing to config.log, and then calls config.status.
20846# config.status does its own redirection, appending to config.log.
20847# Unfortunately, on DOS this fails, as config.log is still kept open
20848# by configure, so config.status won't be able to write to it; its
20849# output is simply discarded. So we exec the FD to /dev/null,
20850# effectively closing config.log, so it can be properly (re)opened and
20851# appended to by config.status. When coming back to configure, we
20852# need to make the FD available again.
20853if test "$no_create" != yes; then
20854 ac_cs_success=:
John Criswell3eaf0b42003-09-10 15:17:25 +000020855 ac_config_status_args=
20856 test "$silent" = yes &&
20857 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell3ef61af2003-06-30 21:59:07 +000020858 exec 5>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +000020859 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell3ef61af2003-06-30 21:59:07 +000020860 exec 5>>config.log
20861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20862 # would make configure fail if this is the last instruction.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020863 $ac_cs_success || { (exit 1); exit 1; }
John Criswell3ef61af2003-06-30 21:59:07 +000020864fi
20865
John Criswell2b3771e2003-09-30 15:55:44 +000020866#
20867# CONFIG_SUBDIRS section.
20868#
20869if test "$no_recursion" != yes; then
20870
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020871 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell2b3771e2003-09-30 15:55:44 +000020872 ac_sub_configure_args=
20873 ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020874 eval "set x $ac_configure_args"
20875 shift
20876 for ac_arg
20877 do
John Criswell2b3771e2003-09-30 15:55:44 +000020878 if test -n "$ac_prev"; then
20879 ac_prev=
20880 continue
20881 fi
20882 case $ac_arg in
20883 -cache-file | --cache-file | --cache-fil | --cache-fi \
20884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20885 ac_prev=cache_file ;;
20886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20888 | --c=*)
20889 ;;
20890 --config-cache | -C)
20891 ;;
20892 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20893 ac_prev=srcdir ;;
20894 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20895 ;;
20896 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20897 ac_prev=prefix ;;
20898 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20899 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020900 *)
20901 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020902 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020903 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020904 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell2b3771e2003-09-30 15:55:44 +000020905 esac
20906 done
20907
20908 # Always prepend --prefix to ensure using the same prefix
20909 # in subdir configurations.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020910 ac_arg="--prefix=$prefix"
20911 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020912 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020913 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020914 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell2b3771e2003-09-30 15:55:44 +000020915
20916 ac_popdir=`pwd`
20917 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20918
20919 # Do not complain, so a configure script can configure whichever
20920 # parts of a large source tree are present.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020921 test -d "$srcdir/$ac_dir" || continue
John Criswell2b3771e2003-09-30 15:55:44 +000020922
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020923 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020924 echo "$as_me:$LINENO: $ac_msg" >&5
20925 echo "$ac_msg" >&6
20926 { as_dir="$ac_dir"
20927 case $as_dir in #(
20928 -*) as_dir=./$as_dir;;
20929 esac
20930 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20931 as_dirs=
20932 while :; do
20933 case $as_dir in #(
20934 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20935 *) as_qdir=$as_dir;;
20936 esac
20937 as_dirs="'$as_qdir' $as_dirs"
20938 as_dir=`$as_dirname -- "$as_dir" ||
20939$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940 X"$as_dir" : 'X\(//\)[^/]' \| \
20941 X"$as_dir" : 'X\(//\)$' \| \
20942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20943echo X"$as_dir" |
20944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20945 s//\1/
20946 q
20947 }
20948 /^X\(\/\/\)[^/].*/{
20949 s//\1/
20950 q
20951 }
20952 /^X\(\/\/\)$/{
20953 s//\1/
20954 q
20955 }
20956 /^X\(\/\).*/{
20957 s//\1/
20958 q
20959 }
20960 s/.*/./; q'`
20961 test -d "$as_dir" && break
20962 done
20963 test -z "$as_dirs" || eval "mkdir $as_dirs"
20964 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20965echo "$as_me: error: cannot create directory $as_dir" >&2;}
20966 { (exit 1); exit 1; }; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000020967 ac_builddir=.
20968
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020969case "$ac_dir" in
20970.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20971*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020973 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020974 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020975 case $ac_top_builddir_sub in
20976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20978 esac ;;
20979esac
20980ac_abs_top_builddir=$ac_pwd
20981ac_abs_builddir=$ac_pwd$ac_dir_suffix
20982# for backward compatibility:
20983ac_top_builddir=$ac_top_build_prefix
John Criswell2b3771e2003-09-30 15:55:44 +000020984
20985case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020986 .) # We are building in place.
John Criswell2b3771e2003-09-30 15:55:44 +000020987 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020988 ac_top_srcdir=$ac_top_builddir_sub
20989 ac_abs_top_srcdir=$ac_pwd ;;
20990 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell2b3771e2003-09-30 15:55:44 +000020991 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020992 ac_top_srcdir=$srcdir
20993 ac_abs_top_srcdir=$srcdir ;;
20994 *) # Relative name.
20995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20996 ac_top_srcdir=$ac_top_build_prefix$srcdir
20997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell2b3771e2003-09-30 15:55:44 +000020998esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020999ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell2b3771e2003-09-30 15:55:44 +000021000
21001
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021002 cd "$ac_dir"
John Criswell2b3771e2003-09-30 15:55:44 +000021003
21004 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021005 if test -f "$ac_srcdir/configure.gnu"; then
21006 ac_sub_configure=$ac_srcdir/configure.gnu
21007 elif test -f "$ac_srcdir/configure"; then
21008 ac_sub_configure=$ac_srcdir/configure
21009 elif test -f "$ac_srcdir/configure.in"; then
21010 # This should be Cygnus configure.
21011 ac_sub_configure=$ac_aux_dir/configure
John Criswell2b3771e2003-09-30 15:55:44 +000021012 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021013 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21014echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell2b3771e2003-09-30 15:55:44 +000021015 ac_sub_configure=
21016 fi
21017
21018 # The recursion is here.
21019 if test -n "$ac_sub_configure"; then
21020 # Make the cache file name correct relative to the subdirectory.
21021 case $cache_file in
21022 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021023 *) # Relative name.
21024 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell2b3771e2003-09-30 15:55:44 +000021025 esac
21026
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021027 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21028echo "$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 +000021029 # The eval makes quoting arguments work.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021030 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21031 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021032 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21033echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21034 { (exit 1); exit 1; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000021035 fi
21036
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021037 cd "$ac_popdir"
John Criswell2b3771e2003-09-30 15:55:44 +000021038 done
21039fi
21040