blob: 857d4608433bd34c05d9b77b85c1e56a121e1e32 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-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 Spencer5e1d9a52004-11-25 04:51:04 +000011#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-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 Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-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 Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-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 Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-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 Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-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 Yasskin1611ebb2010-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 Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-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 Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-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 Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-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 Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-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 Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-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 Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-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 Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-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 Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-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 Criswell0c38eaf2003-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 Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-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 Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-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 Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-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 Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-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 Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-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 Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-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 Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-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
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000687ENABLE_CXX11
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000688ENABLE_OPTIMIZED
689ENABLE_PROFILING
690DISABLE_ASSERTIONS
691ENABLE_EXPENSIVE_CHECKS
692EXPENSIVE_CHECKS
693DEBUG_RUNTIME
694DEBUG_SYMBOLS
695JIT
696TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000697ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000699LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000700ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000701ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000702ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000703ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000704ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000705TARGETS_TO_BUILD
706LLVM_ENUM_TARGETS
707LLVM_ENUM_ASM_PRINTERS
708LLVM_ENUM_ASM_PARSERS
709LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000710OPTIMIZE_OPTION
711EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000712EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000713CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000714BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000715INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000716NM
717ifGNUmake
718LN_S
719CMP
720CP
721DATE
722FIND
723MKDIR
724MV
725RANLIB
726AR
727RM
728SED
729TAR
730BINPWD
731GRAPHVIZ
732DOT
733FDP
734NEATO
735TWOPI
736CIRCO
737GV
738DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000739XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000740INSTALL_PROGRAM
741INSTALL_SCRIPT
742INSTALL_DATA
743BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000744CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000746GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000747GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000748PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000754GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000755HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000763COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764USE_UDIS86
765USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000766USE_INTEL_JITEVENTS
767INTEL_JITEVENTS_INCDIR
768INTEL_JITEVENTS_LIBDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000769HAVE_PTHREAD
770HUGE_VAL_SANITY
771MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000773SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVM_PREFIX
775LLVM_BINDIR
776LLVM_LIBDIR
777LLVM_DATADIR
778LLVM_DOCSDIR
779LLVM_ETCDIR
780LLVM_INCLUDEDIR
781LLVM_INFODIR
782LLVM_MANDIR
783LLVM_CONFIGTIME
784BINDINGS_TO_BUILD
785ALL_BINDINGS
786OCAML_LIBDIR
787ENABLE_VISIBILITY_INLINES_HIDDEN
788RPATH
789RDYNAMIC
790LIBOBJS
791LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000792ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000800CXX
801CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000802CCC
803CPP'
John Criswell0157f502010-03-19 21:31:39 +0000804ac_subdirs_all='projects/llvm-gcc
805projects/test-suite
806projects/llvm-test
807projects/poolalloc
808projects/llvm-poolalloc
809projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000811projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-java
814projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000815projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000816projects/llvm-kernel
817tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000844# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000853includedir='${prefix}/include'
854oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000864
865ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000866ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000871 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000872 ac_prev=
873 continue
874 fi
875
Reid Spencera773bd52006-08-04 18:18:08 +0000876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
John Criswell7a73b802003-06-30 21:59:07 +0000880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
Reid Spencera773bd52006-08-04 18:18:08 +0000883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000908 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000910 datadir=$ac_optarg ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
John Criswell7a73b802003-06-30 21:59:07 +0000919 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000921 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000937
938 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000940 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
Reid Spencera773bd52006-08-04 18:18:08 +0000972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
John Criswell7a73b802003-06-30 21:59:07 +0000978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
Reid Spencera773bd52006-08-04 18:18:08 +00001002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
John Criswell7a73b802003-06-30 21:59:07 +00001007 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001008 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
Reid Spencera773bd52006-08-04 18:18:08 +00001076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
John Criswell7a73b802003-06-30 21:59:07 +00001086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001137 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001143
1144 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001182 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001200fi
1201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001207do
Reid Spencera773bd52006-08-04 18:18:08 +00001208 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001209 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001212 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
Reid Spencera773bd52006-08-04 18:18:08 +00001241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249
1250
John Criswell7a73b802003-06-30 21:59:07 +00001251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001254 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001279 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
Reid Spencera773bd52006-08-04 18:18:08 +00001285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
John Criswell7a73b802003-06-30 21:59:07 +00001311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001319\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
John Criswell7a73b802003-06-30 21:59:07 +00001339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001385 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001392 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001393 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001394 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001407 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001410 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001411 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001412 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001413 --enable-shared Build a shared library and link tools against it
1414 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001416 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001422 xcore, msp430, nvptx, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001425 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001426 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001427
1428Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001431 --with-optimize-option Select the compiler options to use for optimized
1432 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001433 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001434 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001437 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1440 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001441 --with-c-include-dirs Colon separated list of directories clang will
1442 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001443 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001444 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001447 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001448 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001449 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001450 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001451 --with-oprofile=<prefix>
1452 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001453 --with-intel-jitevents=<vtune-amplifier-dir>
1454 Specify location of run-time support library for
1455 Intel JIT API
1456 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001459 CC C compiler command
1460 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001464 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001467 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations.
1471
Eric Christopherf33ab862011-12-21 00:52:44 +00001472Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001473_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001474ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001475fi
1476
1477if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001480 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001481 ac_builddir=.
1482
Reid Spencera773bd52006-08-04 18:18:08 +00001483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001487 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001498
1499case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001500 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001501 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001512esac
Reid Spencera773bd52006-08-04 18:18:08 +00001513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001514
Reid Spencera773bd52006-08-04 18:18:08 +00001515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001523 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001527 done
1528fi
1529
Reid Spencera773bd52006-08-04 18:18:08 +00001530test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001531if $ac_init_version; then
1532 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001533LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001536Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15372002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001540
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001541Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001543 exit
John Criswell7a73b802003-06-30 21:59:07 +00001544fi
Reid Spencera773bd52006-08-04 18:18:08 +00001545cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001546This file contains any messages produced by compilers while
1547running configure, to aid debugging if configure makes a mistake.
1548
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001549It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001550generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001551
1552 $ $0 $@
1553
1554_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001555exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001556{
1557cat <<_ASUNAME
1558## --------- ##
1559## Platform. ##
1560## --------- ##
1561
1562hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570
1571/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001574/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001575/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1578
1579_ASUNAME
1580
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001586 echo "PATH: $as_dir"
1587done
Reid Spencera773bd52006-08-04 18:18:08 +00001588IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001589
1590} >&5
1591
1592cat >&5 <<_ACEOF
1593
1594
1595## ----------- ##
1596## Core tests. ##
1597## ----------- ##
1598
1599_ACEOF
1600
1601
1602# Keep a trace of the command line.
1603# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001604# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001605# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001606# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001607ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001608ac_configure_args0=
1609ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001610ac_must_keep_next=false
1611for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001612do
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 for ac_arg
1614 do
1615 case $ac_arg in
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1619 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001620 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 esac
1623 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001628 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001630 case $ac_arg in
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 esac
1638 ;;
1639 -* ) ac_must_keep_next=true ;;
1640 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ;;
1644 esac
1645 done
John Criswell7a73b802003-06-30 21:59:07 +00001646done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001649
1650# When interrupted or exit'd, cleanup temporary files, and complete
1651# config.log. We remove comments because anyway the quotes in there
1652# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001653# WARNING: Use '\'' to represent an apostrophe within the trap.
1654# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001655trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1657 {
1658 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001659
John Criswell7a73b802003-06-30 21:59:07 +00001660 cat <<\_ASBOX
1661## ---------------- ##
1662## Cache variables. ##
1663## ---------------- ##
1664_ASBOX
1665 echo
1666 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001667(
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1670 case $ac_val in #(
1671 *${as_nl}*)
1672 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001675 esac
1676 case $ac_var in #(
1677 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001678 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac ;;
1680 esac
1681 done
John Criswell7a73b802003-06-30 21:59:07 +00001682 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001685 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001689 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001692 esac |
1693 sort
1694)
John Criswell7a73b802003-06-30 21:59:07 +00001695 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001696
1697 cat <<\_ASBOX
1698## ----------------- ##
1699## Output variables. ##
1700## ----------------- ##
1701_ASBOX
1702 echo
1703 for ac_var in $ac_subst_vars
1704 do
Reid Spencera773bd52006-08-04 18:18:08 +00001705 eval ac_val=\$$ac_var
1706 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001708 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001709 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 done | sort
1711 echo
1712
1713 if test -n "$ac_subst_files"; then
1714 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001715## ------------------- ##
1716## File substitutions. ##
1717## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001718_ASBOX
1719 echo
1720 for ac_var in $ac_subst_files
1721 do
Reid Spencera773bd52006-08-04 18:18:08 +00001722 eval ac_val=\$$ac_var
1723 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001725 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001726 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 done | sort
1728 echo
1729 fi
1730
John Criswell7a73b802003-06-30 21:59:07 +00001731 if test -s confdefs.h; then
1732 cat <<\_ASBOX
1733## ----------- ##
1734## confdefs.h. ##
1735## ----------- ##
1736_ASBOX
1737 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001738 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001739 echo
1740 fi
1741 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001744 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001747 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001748' 0
John Criswell7a73b802003-06-30 21:59:07 +00001749for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001751done
1752ac_signal=0
1753
1754# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001755rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001756
1757# Predefined preprocessor variables.
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_NAME "$PACKAGE_NAME"
1761_ACEOF
1762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001763
John Criswell7a73b802003-06-30 21:59:07 +00001764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766_ACEOF
1767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001768
John Criswell7a73b802003-06-30 21:59:07 +00001769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_VERSION "$PACKAGE_VERSION"
1771_ACEOF
1772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773
John Criswell7a73b802003-06-30 21:59:07 +00001774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_STRING "$PACKAGE_STRING"
1776_ACEOF
1777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001778
John Criswell7a73b802003-06-30 21:59:07 +00001779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781_ACEOF
1782
1783
1784# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001786if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001788elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794shift
1795for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001796do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001800 sed 's/^/| /' "$ac_site_file" >&5
1801 . "$ac_site_file"
1802 fi
1803done
1804
1805if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001811 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001814 esac
1815 fi
1816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001819 >$cache_file
1820fi
1821
1822# Check that the precious variables saved in the cache have kept the same
1823# value.
1824ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001825for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001830 case $ac_old_set,$ac_new_set in
1831 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 ac_cache_corrupted=: ;;
1835 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,);;
1840 *)
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001849 fi;;
1850 esac
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1853 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001855 *) ac_arg=$ac_var=$ac_new_val ;;
1856 esac
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001860 esac
1861 fi
1862done
1863if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
Reid Spencera773bd52006-08-04 18:18:08 +00001894
John Criswell7a73b802003-06-30 21:59:07 +00001895ac_ext=c
1896ac_cpp='$CPP $CPPFLAGS'
1897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001903cat >>confdefs.h <<\_ACEOF
1904#define LLVM_VERSION_MAJOR 3
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001909#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001910_ACEOF
1911
1912
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001913LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001914
1915
1916
1917
1918
1919
1920
John Criswell7a73b802003-06-30 21:59:07 +00001921ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001922for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001923 if test -f "$ac_dir/install-sh"; then
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/install-sh -c"
1926 break
1927 elif test -f "$ac_dir/install.sh"; then
1928 ac_aux_dir=$ac_dir
1929 ac_install_sh="$ac_aux_dir/install.sh -c"
1930 break
1931 elif test -f "$ac_dir/shtool"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/shtool install -c"
1934 break
1935 fi
John Criswell7a73b802003-06-30 21:59:07 +00001936done
1937if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001938 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1939echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1940 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001941fi
Reid Spencera773bd52006-08-04 18:18:08 +00001942
1943# These three variables are undocumented and unsupported,
1944# and are intended to be withdrawn in a future Autoconf release.
1945# They can cause serious problems if a builder's source tree is in a directory
1946# whose full name contains unusual characters.
1947ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1948ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1949ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1950
John Criswell7a73b802003-06-30 21:59:07 +00001951
John Criswell392aaa32003-07-22 19:18:09 +00001952
Reid Spencer2706f8c2004-09-19 23:53:36 +00001953if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001954 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001955 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1956echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1957 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001958 fi
John Criswell93e1c722003-09-15 17:04:06 +00001959fi
1960
Nick Lewycky83fc4472009-09-29 05:48:51 +00001961ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001962ac_cpp='$CPP $CPPFLAGS'
1963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001966if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001967 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001968 do
1969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1973if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001975else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001978else
1979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980for as_dir in $PATH
1981do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001988 break 2
1989 fi
1990done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991done
Reid Spencera773bd52006-08-04 18:18:08 +00001992IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001993
1994fi
1995fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001996CC=$ac_cv_prog_CC
1997if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001998 { echo "$as_me:$LINENO: result: $CC" >&5
1999echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002001 { echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002003fi
2004
Reid Spencera773bd52006-08-04 18:18:08 +00002005
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002006 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002007 done
2008fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002009if test -z "$CC"; then
2010 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002011 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002012do
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002019else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002020 if test -n "$ac_ct_CC"; then
2021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002022else
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002032 break 2
2033 fi
2034done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035done
Reid Spencera773bd52006-08-04 18:18:08 +00002036IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002037
2038fi
2039fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002042 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002045 { echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002047fi
2048
Reid Spencera773bd52006-08-04 18:18:08 +00002049
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002051done
John Criswell7a73b802003-06-30 21:59:07 +00002052
Reid Spencera773bd52006-08-04 18:18:08 +00002053 if test "x$ac_ct_CC" = x; then
2054 CC=""
2055 else
2056 case $cross_compiling:$ac_tool_warned in
2057yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002058{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2059whose name does not start with the host triplet. If you think this
2060configuration is useful to you, please write to autoconf@gnu.org." >&5
2061echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2062whose name does not start with the host triplet. If you think this
2063configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002064ac_tool_warned=yes ;;
2065esac
2066 CC=$ac_ct_CC
2067 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068fi
2069
John Criswell7a73b802003-06-30 21:59:07 +00002070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&5
2073echo "$as_me: error: no acceptable C compiler found in \$PATH
2074See \`config.log' for more details." >&2;}
2075 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002076
John Criswell7a73b802003-06-30 21:59:07 +00002077# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078echo "$as_me:$LINENO: checking for C compiler version" >&5
2079ac_compiler=`set X $ac_compile; echo $2`
2080{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002081case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002087 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090{ (ac_try="$ac_compiler -v >&5"
2091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
2095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -v >&5") 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100{ (ac_try="$ac_compiler -V >&5"
2101case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104esac
2105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler -V >&5") 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002111cat >conftest.$ac_ext <<_ACEOF
2112/* confdefs.h. */
2113_ACEOF
2114cat confdefs.h >>conftest.$ac_ext
2115cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002116/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002117
John Criswell7a73b802003-06-30 21:59:07 +00002118int
2119main ()
2120{
2121
2122 ;
2123 return 0;
2124}
2125_ACEOF
2126ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002127ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002128# Try to create an executable without -o first, disregard a.out.
2129# It will help us diagnose broken compilers, and finding out an intuition
2130# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002131{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2132echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2133ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2134#
2135# List of possible output files, starting from the most likely.
2136# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2137# only as a last resort. b.out is created by i960 compilers.
2138ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2139#
2140# The IRIX 6 linker writes into existing files which may not be
2141# executable, retaining their permissions. Remove them first so a
2142# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002143ac_rmfiles=
2144for ac_file in $ac_files
2145do
2146 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002148 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2149 esac
2150done
2151rm -f $ac_rmfiles
2152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002153if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002154case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002159 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002160 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002163 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2164# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2165# in a Makefile. We should not override ac_cv_exeext if it was cached,
2166# so that the user can short-circuit this test for compilers unknown to
2167# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002168for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002169do
2170 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002171 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002173 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002174 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002175 # We found the default executable, but exeext='' is most
2176 # certainly right.
2177 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002178 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002179 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002180 then :; else
2181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 fi
2183 # We set ac_cv_exeext here because the later test for it is not
2184 # safe: cross compilers may not add the suffix if given an `-o'
2185 # argument, so we may need to know it at that point already.
2186 # Even if this section looks crufty: it has the advantage of
2187 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002190 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002191 esac
2192done
Reid Spencera773bd52006-08-04 18:18:08 +00002193test "$ac_cv_exeext" = no && ac_cv_exeext=
2194
John Criswell7a73b802003-06-30 21:59:07 +00002195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002197sed 's/^/| /' conftest.$ac_ext >&5
2198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002199{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200See \`config.log' for more details." >&5
2201echo "$as_me: error: C compiler cannot create executables
2202See \`config.log' for more details." >&2;}
2203 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002204fi
John Criswell7a73b802003-06-30 21:59:07 +00002205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002206ac_exeext=$ac_cv_exeext
2207{ echo "$as_me:$LINENO: result: $ac_file" >&5
2208echo "${ECHO_T}$ac_file" >&6; }
2209
2210# Check that the compiler produces executables we can run. If not, either
2211# the compiler is broken, or we cross compile.
2212{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2214# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215# If not cross compiling, check that we can run a simple program.
2216if test "$cross_compiling" != yes; then
2217 if { ac_try='./$ac_file'
2218 { (case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221esac
2222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2223 (eval "$ac_try") 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 cross_compiling=no
2228 else
2229 if test "$cross_compiling" = maybe; then
2230 cross_compiling=yes
2231 else
2232 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233If you meant to cross compile, use \`--host'.
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: cannot run C compiled programs.
2236If you meant to cross compile, use \`--host'.
2237See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2239 fi
2240 fi
2241fi
2242{ echo "$as_me:$LINENO: result: yes" >&5
2243echo "${ECHO_T}yes" >&6; }
2244
2245rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002246ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002247# Check that the compiler produces executables we can run. If not, either
2248# the compiler is broken, or we cross compile.
2249{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2251{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252echo "${ECHO_T}$cross_compiling" >&6; }
2253
2254{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2256if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002257case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002262 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002263 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268# work properly (i.e., refer to `conftest.exe'), while it won't with
2269# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002270for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002272 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002275 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002276 * ) break;;
2277 esac
2278done
2279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002280 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&5
2282echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002285fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002286
2287rm -f conftest$ac_cv_exeext
2288{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002290
2291rm -f conftest.$ac_ext
2292EXEEXT=$ac_cv_exeext
2293ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002294{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2296if test "${ac_cv_objext+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002298else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299 cat >conftest.$ac_ext <<_ACEOF
2300/* confdefs.h. */
2301_ACEOF
2302cat confdefs.h >>conftest.$ac_ext
2303cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002305
John Criswell7a73b802003-06-30 21:59:07 +00002306int
2307main ()
2308{
2309
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002315if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002316case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002321 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002322 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002325 for ac_file in conftest.o conftest.obj conftest.*; do
2326 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002327 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330 break;;
2331 esac
2332done
2333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002335sed 's/^/| /' conftest.$ac_ext >&5
2336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343
John Criswell7a73b802003-06-30 21:59:07 +00002344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002348OBJEXT=$ac_cv_objext
2349ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002350{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2352if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002355 cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h. */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002361
John Criswell7a73b802003-06-30 21:59:07 +00002362int
2363main ()
2364{
2365#ifndef __GNUC__
2366 choke me
2367#endif
2368
2369 ;
2370 return 0;
2371}
2372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002373rm -f conftest.$ac_objext
2374if { (ac_try="$ac_compile"
2375case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378esac
2379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380 (eval "$ac_compile") 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401esac
2402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_try") 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002407 ac_compiler_gnu=yes
2408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409 echo "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414
Reid Spencera773bd52006-08-04 18:18:08 +00002415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002417
2418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002419{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2421GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422ac_test_CFLAGS=${CFLAGS+set}
2423ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2425echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2426if test "${ac_cv_prog_cc_g+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002428else
Reid Spencera773bd52006-08-04 18:18:08 +00002429 ac_save_c_werror_flag=$ac_c_werror_flag
2430 ac_c_werror_flag=yes
2431 ac_cv_prog_cc_g=no
2432 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002433 cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h. */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002438/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002439
John Criswell7a73b802003-06-30 21:59:07 +00002440int
2441main ()
2442{
2443
2444 ;
2445 return 0;
2446}
2447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448rm -f conftest.$ac_objext
2449if { (ac_try="$ac_compile"
2450case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453esac
2454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compile") 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476esac
2477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_try") 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484 echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 CFLAGS=""
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002493/* end confdefs.h. */
2494
2495int
2496main ()
2497{
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002503rm -f conftest.$ac_objext
2504if { (ac_try="$ac_compile"
2505case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508esac
2509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>conftest.er1
2511 ac_status=$?
2512 grep -v '^ *+' conftest.er1 >conftest.err
2513 rm -f conftest.er1
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 :
Torok Edwin871384f2010-01-26 08:50:50 +00002538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002539 echo "$as_me: failed program was:" >&5
2540sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002543 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h. */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002549/* end confdefs.h. */
2550
2551int
2552main ()
2553{
2554
2555 ;
2556 return 0;
2557}
2558_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559rm -f conftest.$ac_objext
2560if { (ac_try="$ac_compile"
2561case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2564esac
2565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_compile") 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_try") 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002593 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002594else
2595 echo "$as_me: failed program was:" >&5
2596sed 's/^/| /' conftest.$ac_ext >&5
2597
2598
John Criswell7a73b802003-06-30 21:59:07 +00002599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600
Reid Spencera773bd52006-08-04 18:18:08 +00002601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603
Reid Spencera773bd52006-08-04 18:18:08 +00002604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606
Reid Spencera773bd52006-08-04 18:18:08 +00002607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ac_c_werror_flag=$ac_save_c_werror_flag
2609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002610{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2611echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612if test "$ac_test_CFLAGS" = set; then
2613 CFLAGS=$ac_save_CFLAGS
2614elif test $ac_cv_prog_cc_g = yes; then
2615 if test "$GCC" = yes; then
2616 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002617 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002619 fi
2620else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621 if test "$GCC" = yes; then
2622 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002623 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002625 fi
2626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2628echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2629if test "${ac_cv_prog_cc_c89+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631else
Reid Spencera773bd52006-08-04 18:18:08 +00002632 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h. */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639/* end confdefs.h. */
2640#include <stdarg.h>
2641#include <stdio.h>
2642#include <sys/types.h>
2643#include <sys/stat.h>
2644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2645struct buf { int x; };
2646FILE * (*rcsopen) (struct buf *, struct stat *, int);
2647static char *e (p, i)
2648 char **p;
2649 int i;
2650{
2651 return p[i];
2652}
2653static char *f (char * (*g) (char **, int), char **p, ...)
2654{
2655 char *s;
2656 va_list v;
2657 va_start (v,p);
2658 s = g (p, va_arg (v,int));
2659 va_end (v);
2660 return s;
2661}
2662
2663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2664 function prototypes and stuff, but not '\xHH' hex character constants.
2665 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002666 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2668 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002669 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2671
Reid Spencera773bd52006-08-04 18:18:08 +00002672/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2673 inside strings and character constants. */
2674#define FOO(x) 'x'
2675int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2676
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002677int test (int i, double x);
2678struct s1 {int (*f) (int a);};
2679struct s2 {int (*f) (double a);};
2680int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2681int argc;
2682char **argv;
2683int
2684main ()
2685{
2686return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2687 ;
2688 return 0;
2689}
2690_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002691for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693do
2694 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002695 rm -f conftest.$ac_objext
2696if { (ac_try="$ac_compile"
2697case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700esac
2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002729 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002730else
2731 echo "$as_me: failed program was:" >&5
2732sed 's/^/| /' conftest.$ac_ext >&5
2733
2734
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002736
Reid Spencera773bd52006-08-04 18:18:08 +00002737rm -f core conftest.err conftest.$ac_objext
2738 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002739done
Reid Spencera773bd52006-08-04 18:18:08 +00002740rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002741CC=$ac_save_CC
2742
2743fi
Reid Spencera773bd52006-08-04 18:18:08 +00002744# AC_CACHE_VAL
2745case "x$ac_cv_prog_cc_c89" in
2746 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747 { echo "$as_me:$LINENO: result: none needed" >&5
2748echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002749 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002750 { echo "$as_me:$LINENO: result: unsupported" >&5
2751echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002753 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2755echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002756esac
2757
John Criswell0c38eaf2003-09-10 15:17:25 +00002758
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002759ac_ext=c
2760ac_cpp='$CPP $CPPFLAGS'
2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764
Eric Christopherffee5722011-09-16 20:36:25 +00002765ac_ext=cpp
2766ac_cpp='$CXXCPP $CPPFLAGS'
2767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2770if test -z "$CXX"; then
2771 if test -n "$CCC"; then
2772 CXX=$CCC
2773 else
2774 if test -n "$ac_tool_prefix"; then
2775 for ac_prog in clang++ llvm-g++ g++
2776 do
2777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781if test "${ac_cv_prog_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784 if test -n "$CXX"; then
2785 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804CXX=$ac_cv_prog_CXX
2805if test -n "$CXX"; then
2806 { echo "$as_me:$LINENO: result: $CXX" >&5
2807echo "${ECHO_T}$CXX" >&6; }
2808else
2809 { echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6; }
2811fi
2812
2813
2814 test -n "$CXX" && break
2815 done
2816fi
2817if test -z "$CXX"; then
2818 ac_ct_CXX=$CXX
2819 for ac_prog in clang++ llvm-g++ g++
2820do
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822set dummy $ac_prog; ac_word=$2
2823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827else
2828 if test -n "$ac_ct_CXX"; then
2829 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_CXX="$ac_prog"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842done
2843done
2844IFS=$as_save_IFS
2845
2846fi
2847fi
2848ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2849if test -n "$ac_ct_CXX"; then
2850 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2851echo "${ECHO_T}$ac_ct_CXX" >&6; }
2852else
2853 { echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6; }
2855fi
2856
2857
2858 test -n "$ac_ct_CXX" && break
2859done
2860
2861 if test "x$ac_ct_CXX" = x; then
2862 CXX="g++"
2863 else
2864 case $cross_compiling:$ac_tool_warned in
2865yes:)
2866{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2867whose name does not start with the host triplet. If you think this
2868configuration is useful to you, please write to autoconf@gnu.org." >&5
2869echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2870whose name does not start with the host triplet. If you think this
2871configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2872ac_tool_warned=yes ;;
2873esac
2874 CXX=$ac_ct_CXX
2875 fi
2876fi
2877
2878 fi
2879fi
2880# Provide some information about the compiler.
2881echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2882ac_compiler=`set X $ac_compile; echo $2`
2883{ (ac_try="$ac_compiler --version >&5"
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler --version >&5") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893{ (ac_try="$ac_compiler -v >&5"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -v >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903{ (ac_try="$ac_compiler -V >&5"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -V >&5") 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913
2914{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2915echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2916if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h. */
2925
2926int
2927main ()
2928{
2929#ifndef __GNUC__
2930 choke me
2931#endif
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937rm -f conftest.$ac_objext
2938if { (ac_try="$ac_compile"
2939case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942esac
2943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_try") 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_compiler_gnu=yes
2972else
2973 echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 ac_compiler_gnu=no
2977fi
2978
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2981
2982fi
2983{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2984echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2985GXX=`test $ac_compiler_gnu = yes && echo yes`
2986ac_test_CXXFLAGS=${CXXFLAGS+set}
2987ac_save_CXXFLAGS=$CXXFLAGS
2988{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2989echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2990if test "${ac_cv_prog_cxx_g+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2994 ac_cxx_werror_flag=yes
2995 ac_cv_prog_cxx_g=no
2996 CXXFLAGS="-g"
2997 cat >conftest.$ac_ext <<_ACEOF
2998/* confdefs.h. */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h. */
3003
3004int
3005main ()
3006{
3007
3008 ;
3009 return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (ac_try="$ac_compile"
3014case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 ac_cv_prog_cxx_g=yes
3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 CXXFLAGS=""
3052 cat >conftest.$ac_ext <<_ACEOF
3053/* confdefs.h. */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h. */
3058
3059int
3060main ()
3061{
3062
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067rm -f conftest.$ac_objext
3068if { (ac_try="$ac_compile"
3069case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 :
3102else
3103 echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3107 CXXFLAGS="-g"
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext
3124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 ac_cv_prog_cxx_g=yes
3158else
3159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162
3163fi
3164
3165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166fi
3167
3168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169fi
3170
3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3173fi
3174{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3175echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3176if test "$ac_test_CXXFLAGS" = set; then
3177 CXXFLAGS=$ac_save_CXXFLAGS
3178elif test $ac_cv_prog_cxx_g = yes; then
3179 if test "$GXX" = yes; then
3180 CXXFLAGS="-g -O2"
3181 else
3182 CXXFLAGS="-g"
3183 fi
3184else
3185 if test "$GXX" = yes; then
3186 CXXFLAGS="-O2"
3187 else
3188 CXXFLAGS=
3189 fi
3190fi
3191ac_ext=c
3192ac_cpp='$CPP $CPPFLAGS'
3193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003196
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003202{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3203echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204# On Suns, sometimes $CPP names a directory.
3205if test -n "$CPP" && test -d "$CPP"; then
3206 CPP=
3207fi
3208if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003209 if test "${ac_cv_prog_CPP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003211else
3212 # Double quotes because CPP needs to be expanded
3213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3214 do
3215 ac_preproc_ok=false
3216for ac_c_preproc_warn_flag in '' yes
3217do
3218 # Use a header file that comes with gcc, so configuring glibc
3219 # with a fresh cross-compiler works.
3220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3221 # <limits.h> exists even on freestanding compilers.
3222 # On the NeXT, cc -E runs the code through the compiler's parser,
3223 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224 cat >conftest.$ac_ext <<_ACEOF
3225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229/* end confdefs.h. */
3230#ifdef __STDC__
3231# include <limits.h>
3232#else
3233# include <assert.h>
3234#endif
3235 Syntax error
3236_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003237if { (ac_try="$ac_cpp conftest.$ac_ext"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null; then
3250 if test -s conftest.err; then
3251 ac_cpp_err=$ac_c_preproc_warn_flag
3252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3253 else
3254 ac_cpp_err=
3255 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003257 ac_cpp_err=yes
3258fi
3259if test -z "$ac_cpp_err"; then
3260 :
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 # Broken: fails on valid input.
3266continue
3267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003268
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269rm -f conftest.err conftest.$ac_ext
3270
Reid Spencera773bd52006-08-04 18:18:08 +00003271 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003273 cat >conftest.$ac_ext <<_ACEOF
3274/* confdefs.h. */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278/* end confdefs.h. */
3279#include <ac_nonexistent.h>
3280_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003281if { (ac_try="$ac_cpp conftest.$ac_ext"
3282case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285esac
3286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3288 ac_status=$?
3289 grep -v '^ *+' conftest.er1 >conftest.err
3290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297 else
3298 ac_cpp_err=
3299 fi
3300else
3301 ac_cpp_err=yes
3302fi
3303if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304 # Broken: success on invalid input.
3305continue
3306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003307 echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310 # Passes both tests.
3311ac_preproc_ok=:
3312break
3313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315rm -f conftest.err conftest.$ac_ext
3316
3317done
3318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3319rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003320if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321 break
3322fi
3323
3324 done
3325 ac_cv_prog_CPP=$CPP
3326
3327fi
3328 CPP=$ac_cv_prog_CPP
3329else
3330 ac_cv_prog_CPP=$CPP
3331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003332{ echo "$as_me:$LINENO: result: $CPP" >&5
3333echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334ac_preproc_ok=false
3335for ac_c_preproc_warn_flag in '' yes
3336do
3337 # Use a header file that comes with gcc, so configuring glibc
3338 # with a fresh cross-compiler works.
3339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3340 # <limits.h> exists even on freestanding compilers.
3341 # On the NeXT, cc -E runs the code through the compiler's parser,
3342 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003343 cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348/* end confdefs.h. */
3349#ifdef __STDC__
3350# include <limits.h>
3351#else
3352# include <assert.h>
3353#endif
3354 Syntax error
3355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356if { (ac_try="$ac_cpp conftest.$ac_ext"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_c_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3372 else
3373 ac_cpp_err=
3374 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003376 ac_cpp_err=yes
3377fi
3378if test -z "$ac_cpp_err"; then
3379 :
3380else
3381 echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384 # Broken: fails on valid input.
3385continue
3386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388rm -f conftest.err conftest.$ac_ext
3389
Reid Spencera773bd52006-08-04 18:18:08 +00003390 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003391 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003392 cat >conftest.$ac_ext <<_ACEOF
3393/* confdefs.h. */
3394_ACEOF
3395cat confdefs.h >>conftest.$ac_ext
3396cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397/* end confdefs.h. */
3398#include <ac_nonexistent.h>
3399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400if { (ac_try="$ac_cpp conftest.$ac_ext"
3401case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
3405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416 else
3417 ac_cpp_err=
3418 fi
3419else
3420 ac_cpp_err=yes
3421fi
3422if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423 # Broken: success on invalid input.
3424continue
3425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426 echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429 # Passes both tests.
3430ac_preproc_ok=:
3431break
3432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003433
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434rm -f conftest.err conftest.$ac_ext
3435
3436done
3437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003439if $ac_preproc_ok; then
3440 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003442 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443See \`config.log' for more details." >&5
3444echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447fi
3448
John Criswell7a73b802003-06-30 21:59:07 +00003449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
John Criswell7a73b802003-06-30 21:59:07 +00003455
Eric Christopherffee5722011-09-16 20:36:25 +00003456
3457
3458if test -d ${srcdir}/projects/llvm-gcc ; then
3459 subdirs="$subdirs projects/llvm-gcc"
3460
3461fi
3462
3463if test -d ${srcdir}/projects/test-suite ; then
3464 subdirs="$subdirs projects/test-suite"
3465
3466fi
3467
3468if test -d ${srcdir}/projects/llvm-test ; then
3469 subdirs="$subdirs projects/llvm-test"
3470
3471fi
3472
3473if test -d ${srcdir}/projects/poolalloc ; then
3474 subdirs="$subdirs projects/poolalloc"
3475
3476fi
3477
3478if test -d ${srcdir}/projects/llvm-poolalloc ; then
3479 subdirs="$subdirs projects/llvm-poolalloc"
3480
3481fi
3482
3483for i in `ls ${srcdir}/projects`
3484do
3485 if test -d ${srcdir}/projects/${i} ; then
3486 case ${i} in
3487 sample) subdirs="$subdirs projects/sample"
3488 ;;
3489 privbracket) subdirs="$subdirs projects/privbracket"
3490 ;;
3491 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3492 ;;
3493 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3494;;
3495 llvm-java) subdirs="$subdirs projects/llvm-java"
3496 ;;
3497 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3498 ;;
3499 safecode) subdirs="$subdirs projects/safecode"
3500 ;;
3501 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3502 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003503 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003504 llvm-gcc) ;;
3505 test-suite) ;;
3506 llvm-test) ;;
3507 poolalloc) ;;
3508 llvm-poolalloc) ;;
3509 *)
3510 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3511echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3512 ;;
3513 esac
3514 fi
3515done
3516
3517# Check whether --enable-polly was given.
3518if test "${enable_polly+set}" = set; then
3519 enableval=$enable_polly;
3520else
3521 enableval=default
3522fi
3523
3524case "$enableval" in
3525 yes) ENABLE_POLLY=1
3526 ;;
3527 no) ENABLE_POLLY=0
3528 ;;
3529 default) ENABLE_POLLY=1
3530 ;;
3531 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3532echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3533 { (exit 1); exit 1; }; } ;;
3534esac
3535
3536
3537if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3538 LLVM_HAS_POLLY=1
3539
3540 subdirs="$subdirs tools/polly"
3541
3542fi
3543
3544
3545# Make sure we can run config.sub.
3546$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3547 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3548echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3549 { (exit 1); exit 1; }; }
3550
3551{ echo "$as_me:$LINENO: checking build system type" >&5
3552echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3553if test "${ac_cv_build+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 ac_build_alias=$build_alias
3557test "x$ac_build_alias" = x &&
3558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3559test "x$ac_build_alias" = x &&
3560 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3561echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3562 { (exit 1); exit 1; }; }
3563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3564 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3565echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3566 { (exit 1); exit 1; }; }
3567
3568fi
3569{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3570echo "${ECHO_T}$ac_cv_build" >&6; }
3571case $ac_cv_build in
3572*-*-*) ;;
3573*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3574echo "$as_me: error: invalid value of canonical build" >&2;}
3575 { (exit 1); exit 1; }; };;
3576esac
3577build=$ac_cv_build
3578ac_save_IFS=$IFS; IFS='-'
3579set x $ac_cv_build
3580shift
3581build_cpu=$1
3582build_vendor=$2
3583shift; shift
3584# Remember, the first character of IFS is used to create $*,
3585# except with old shells:
3586build_os=$*
3587IFS=$ac_save_IFS
3588case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3589
3590
3591{ echo "$as_me:$LINENO: checking host system type" >&5
3592echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3593if test "${ac_cv_host+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595else
3596 if test "x$host_alias" = x; then
3597 ac_cv_host=$ac_cv_build
3598else
3599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3600 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3601echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3602 { (exit 1); exit 1; }; }
3603fi
3604
3605fi
3606{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3607echo "${ECHO_T}$ac_cv_host" >&6; }
3608case $ac_cv_host in
3609*-*-*) ;;
3610*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3611echo "$as_me: error: invalid value of canonical host" >&2;}
3612 { (exit 1); exit 1; }; };;
3613esac
3614host=$ac_cv_host
3615ac_save_IFS=$IFS; IFS='-'
3616set x $ac_cv_host
3617shift
3618host_cpu=$1
3619host_vendor=$2
3620shift; shift
3621# Remember, the first character of IFS is used to create $*,
3622# except with old shells:
3623host_os=$*
3624IFS=$ac_save_IFS
3625case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3626
3627
3628{ echo "$as_me:$LINENO: checking target system type" >&5
3629echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3630if test "${ac_cv_target+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633 if test "x$target_alias" = x; then
3634 ac_cv_target=$ac_cv_host
3635else
3636 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3637 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3638echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3639 { (exit 1); exit 1; }; }
3640fi
3641
3642fi
3643{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3644echo "${ECHO_T}$ac_cv_target" >&6; }
3645case $ac_cv_target in
3646*-*-*) ;;
3647*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3648echo "$as_me: error: invalid value of canonical target" >&2;}
3649 { (exit 1); exit 1; }; };;
3650esac
3651target=$ac_cv_target
3652ac_save_IFS=$IFS; IFS='-'
3653set x $ac_cv_target
3654shift
3655target_cpu=$1
3656target_vendor=$2
3657shift; shift
3658# Remember, the first character of IFS is used to create $*,
3659# except with old shells:
3660target_os=$*
3661IFS=$ac_save_IFS
3662case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3663
3664
3665# The aliases save the names the user supplied, while $host etc.
3666# will get canonicalized.
3667test -n "$target_alias" &&
3668 test "$program_prefix$program_suffix$program_transform_name" = \
3669 NONENONEs,x,x, &&
3670 program_prefix=${target_alias}-
3671
3672{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3673echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3674if test "${llvm_cv_os_type+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677 case $host in
3678 *-*-aix*)
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="AIX"
3682 llvm_cv_platform_type="Unix" ;;
3683 *-*-irix*)
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="IRIX"
3687 llvm_cv_platform_type="Unix" ;;
3688 *-*-cygwin*)
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="Cygwin"
3692 llvm_cv_platform_type="Unix" ;;
3693 *-*-darwin*)
3694 llvm_cv_link_all_option="-Wl,-all_load"
3695 llvm_cv_no_link_all_option="-Wl,-noall_load"
3696 llvm_cv_os_type="Darwin"
3697 llvm_cv_platform_type="Unix" ;;
3698 *-*-minix*)
3699 llvm_cv_link_all_option="-Wl,-all_load"
3700 llvm_cv_no_link_all_option="-Wl,-noall_load"
3701 llvm_cv_os_type="Minix"
3702 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003703 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="FreeBSD"
3707 llvm_cv_platform_type="Unix" ;;
3708 *-*-openbsd*)
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="OpenBSD"
3712 llvm_cv_platform_type="Unix" ;;
3713 *-*-netbsd*)
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="NetBSD"
3717 llvm_cv_platform_type="Unix" ;;
3718 *-*-dragonfly*)
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="DragonFly"
3722 llvm_cv_platform_type="Unix" ;;
3723 *-*-hpux*)
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="HP-UX"
3727 llvm_cv_platform_type="Unix" ;;
3728 *-*-interix*)
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="Interix"
3732 llvm_cv_platform_type="Unix" ;;
3733 *-*-linux*)
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="Linux"
3737 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003738 *-*-gnu*)
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="GNU"
3742 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003743 *-*-solaris*)
3744 llvm_cv_link_all_option="-Wl,-z,allextract"
3745 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3746 llvm_cv_os_type="SunOS"
3747 llvm_cv_platform_type="Unix" ;;
3748 *-*-auroraux*)
3749 llvm_cv_link_all_option="-Wl,-z,allextract"
3750 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3751 llvm_cv_os_type="AuroraUX"
3752 llvm_cv_platform_type="Unix" ;;
3753 *-*-win32*)
3754 llvm_cv_link_all_option="-Wl,--whole-archive"
3755 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3756 llvm_cv_os_type="Win32"
3757 llvm_cv_platform_type="Win32" ;;
3758 *-*-mingw*)
3759 llvm_cv_link_all_option="-Wl,--whole-archive"
3760 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761 llvm_cv_os_type="MingW"
3762 llvm_cv_platform_type="Win32" ;;
3763 *-*-haiku*)
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="Haiku"
3767 llvm_cv_platform_type="Unix" ;;
3768 *-unknown-eabi*)
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="Freestanding"
3772 llvm_cv_platform_type="Unix" ;;
3773 *-unknown-elf*)
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Freestanding"
3777 llvm_cv_platform_type="Unix" ;;
3778 *)
3779 llvm_cv_link_all_option=""
3780 llvm_cv_no_link_all_option=""
3781 llvm_cv_os_type="Unknown"
3782 llvm_cv_platform_type="Unknown" ;;
3783esac
3784fi
3785{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3786echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3787
3788{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3789echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3790if test "${llvm_cv_target_os_type+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 case $target in
3794 *-*-aix*)
3795 llvm_cv_target_os_type="AIX" ;;
3796 *-*-irix*)
3797 llvm_cv_target_os_type="IRIX" ;;
3798 *-*-cygwin*)
3799 llvm_cv_target_os_type="Cygwin" ;;
3800 *-*-darwin*)
3801 llvm_cv_target_os_type="Darwin" ;;
3802 *-*-minix*)
3803 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003804 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003805 llvm_cv_target_os_type="FreeBSD" ;;
3806 *-*-openbsd*)
3807 llvm_cv_target_os_type="OpenBSD" ;;
3808 *-*-netbsd*)
3809 llvm_cv_target_os_type="NetBSD" ;;
3810 *-*-dragonfly*)
3811 llvm_cv_target_os_type="DragonFly" ;;
3812 *-*-hpux*)
3813 llvm_cv_target_os_type="HP-UX" ;;
3814 *-*-interix*)
3815 llvm_cv_target_os_type="Interix" ;;
3816 *-*-linux*)
3817 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003818 *-*-gnu*)
3819 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003820 *-*-solaris*)
3821 llvm_cv_target_os_type="SunOS" ;;
3822 *-*-auroraux*)
3823 llvm_cv_target_os_type="AuroraUX" ;;
3824 *-*-win32*)
3825 llvm_cv_target_os_type="Win32" ;;
3826 *-*-mingw*)
3827 llvm_cv_target_os_type="MingW" ;;
3828 *-*-haiku*)
3829 llvm_cv_target_os_type="Haiku" ;;
3830 *-*-rtems*)
3831 llvm_cv_target_os_type="RTEMS" ;;
3832 *-*-nacl*)
3833 llvm_cv_target_os_type="NativeClient" ;;
3834 *-unknown-eabi*)
3835 llvm_cv_target_os_type="Freestanding" ;;
3836 *)
3837 llvm_cv_target_os_type="Unknown" ;;
3838esac
3839fi
3840{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3841echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3842
3843if test "$llvm_cv_os_type" = "Unknown" ; then
3844 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3845echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3846 { (exit 1); exit 1; }; }
3847fi
3848
3849OS=$llvm_cv_os_type
3850
3851HOST_OS=$llvm_cv_os_type
3852
3853TARGET_OS=$llvm_cv_target_os_type
3854
3855
3856LINKALL=$llvm_cv_link_all_option
3857
3858NOLINKALL=$llvm_cv_no_link_all_option
3859
3860
3861case $llvm_cv_platform_type in
3862 Unix)
3863
3864cat >>confdefs.h <<\_ACEOF
3865#define LLVM_ON_UNIX 1
3866_ACEOF
3867
3868 LLVM_ON_UNIX=1
3869
3870 LLVM_ON_WIN32=0
3871
3872 ;;
3873 Win32)
3874
3875cat >>confdefs.h <<\_ACEOF
3876#define LLVM_ON_WIN32 1
3877_ACEOF
3878
3879 LLVM_ON_UNIX=0
3880
3881 LLVM_ON_WIN32=1
3882
3883 ;;
3884esac
3885
3886{ echo "$as_me:$LINENO: checking target architecture" >&5
3887echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3888if test "${llvm_cv_target_arch+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 case $target in
3892 i?86-*) llvm_cv_target_arch="x86" ;;
3893 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3894 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3895 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003896 arm*-*) llvm_cv_target_arch="ARM" ;;
3897 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003898 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003899 xcore-*) llvm_cv_target_arch="XCore" ;;
3900 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003901 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003902 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003903 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003904 *) llvm_cv_target_arch="Unknown" ;;
3905esac
3906fi
3907{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3908echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3909
3910if test "$llvm_cv_target_arch" = "Unknown" ; then
3911 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3912echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3913fi
3914
Eric Christopherffee5722011-09-16 20:36:25 +00003915case "$llvm_cv_target_arch" in
3916 x86) LLVM_NATIVE_ARCH="X86" ;;
3917 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3918 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3919esac
3920
3921ARCH=$llvm_cv_target_arch
3922
3923
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003924case $host in
3925 i?86-*) host_arch="x86" ;;
3926 amd64-* | x86_64-*) host_arch="x86_64" ;;
3927 sparc*-*) host_arch="Sparc" ;;
3928 powerpc*-*) host_arch="PowerPC" ;;
3929 arm*-*) host_arch="ARM" ;;
3930 mips-*) host_arch="Mips" ;;
3931 mipsel-*) host_arch="Mips" ;;
3932 xcore-*) host_arch="XCore" ;;
3933 msp430-*) host_arch="MSP430" ;;
3934 hexagon-*) host_arch="Hexagon" ;;
3935 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003936 *) host_arch="Unknown" ;;
3937esac
3938
3939if test "$host_arch" = "Unknown" ; then
3940 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3941echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3942fi
3943
3944HOST_ARCH=$host_arch
3945
3946
Eric Christopherffee5722011-09-16 20:36:25 +00003947
3948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003949{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3950echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3951if test "${ac_cv_path_GREP+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003954 # Extract the first word of "grep ggrep" to use in msg output
3955if test -z "$GREP"; then
3956set dummy grep ggrep; ac_prog_name=$2
3957if test "${ac_cv_path_GREP+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
Reid Spencera773bd52006-08-04 18:18:08 +00003960 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961# Loop through the user's path and test for each of PROGNAME-LIST
3962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003963for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003964do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967 for ac_prog in grep ggrep; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3970 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3971 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003972 # Check for GNU $ac_path_GREP
3973case `"$ac_path_GREP" --version 2>&1` in
3974*GNU*)
3975 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3976*)
3977 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003978 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003979 while :
3980 do
3981 cat "conftest.in" "conftest.in" >"conftest.tmp"
3982 mv "conftest.tmp" "conftest.in"
3983 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003985 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003988 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3989 # Best one so far, save it but keep looking for a better one
3990 ac_cv_path_GREP="$ac_path_GREP"
3991 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003992 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003993 # 10*(2^10) chars as input seems more than enough
3994 test $ac_count -gt 10 && break
3995 done
3996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997esac
3998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999
4000 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004001 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002done
4003
4004done
Reid Spencera773bd52006-08-04 18:18:08 +00004005IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004006
4007
4008fi
4009
4010GREP="$ac_cv_path_GREP"
4011if test -z "$GREP"; then
4012 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4013echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4014 { (exit 1); exit 1; }; }
4015fi
4016
Reid Spencera773bd52006-08-04 18:18:08 +00004017else
4018 ac_cv_path_GREP=$GREP
4019fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004021
Reid Spencera773bd52006-08-04 18:18:08 +00004022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004023{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4024echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004025 GREP="$ac_cv_path_GREP"
4026
4027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028{ echo "$as_me:$LINENO: checking for egrep" >&5
4029echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4030if test "${ac_cv_path_EGREP+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004032else
4033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4034 then ac_cv_path_EGREP="$GREP -E"
4035 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004036 # Extract the first word of "egrep" to use in msg output
4037if test -z "$EGREP"; then
4038set dummy egrep; ac_prog_name=$2
4039if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
Reid Spencera773bd52006-08-04 18:18:08 +00004042 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043# Loop through the user's path and test for each of PROGNAME-LIST
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004045for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004049 for ac_prog in egrep; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4052 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4053 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004054 # Check for GNU $ac_path_EGREP
4055case `"$ac_path_EGREP" --version 2>&1` in
4056*GNU*)
4057 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4058*)
4059 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004060 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004061 while :
4062 do
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004066 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004067 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004069 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004070 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_EGREP="$ac_path_EGREP"
4073 ac_path_EGREP_max=$ac_count
4074 fi
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4077 done
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079esac
4080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004081
4082 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004083 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084done
4085
4086done
Reid Spencera773bd52006-08-04 18:18:08 +00004087IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004088
4089
4090fi
4091
4092EGREP="$ac_cv_path_EGREP"
4093if test -z "$EGREP"; then
4094 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4095echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4096 { (exit 1); exit 1; }; }
4097fi
4098
Reid Spencera773bd52006-08-04 18:18:08 +00004099else
4100 ac_cv_path_EGREP=$EGREP
4101fi
4102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004103
Reid Spencera773bd52006-08-04 18:18:08 +00004104 fi
4105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004106{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4107echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004108 EGREP="$ac_cv_path_EGREP"
4109
4110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4112echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4113if test "${ac_cv_header_stdc+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004115else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116 cat >conftest.$ac_ext <<_ACEOF
4117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004122#include <stdlib.h>
4123#include <stdarg.h>
4124#include <string.h>
4125#include <float.h>
4126
John Criswell0c38eaf2003-09-10 15:17:25 +00004127int
4128main ()
4129{
4130
4131 ;
4132 return 0;
4133}
John Criswell7a73b802003-06-30 21:59:07 +00004134_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135rm -f conftest.$ac_objext
4136if { (ac_try="$ac_compile"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004169 ac_cv_header_stdc=yes
4170else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004176
Reid Spencera773bd52006-08-04 18:18:08 +00004177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004178
4179if test $ac_cv_header_stdc = yes; then
4180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004181 cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h. */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004186/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004187#include <string.h>
4188
4189_ACEOF
4190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004191 $EGREP "memchr" >/dev/null 2>&1; then
4192 :
John Criswell7a73b802003-06-30 21:59:07 +00004193else
4194 ac_cv_header_stdc=no
4195fi
4196rm -f conftest*
4197
4198fi
4199
4200if test $ac_cv_header_stdc = yes; then
4201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004202 cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004208#include <stdlib.h>
4209
4210_ACEOF
4211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004212 $EGREP "free" >/dev/null 2>&1; then
4213 :
John Criswell7a73b802003-06-30 21:59:07 +00004214else
4215 ac_cv_header_stdc=no
4216fi
4217rm -f conftest*
4218
4219fi
4220
4221if test $ac_cv_header_stdc = yes; then
4222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004223 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004224 :
4225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004226 cat >conftest.$ac_ext <<_ACEOF
4227/* confdefs.h. */
4228_ACEOF
4229cat confdefs.h >>conftest.$ac_ext
4230cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004232#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004233#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004234#if ((' ' & 0x0FF) == 0x020)
4235# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4236# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4237#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004238# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004239 (('a' <= (c) && (c) <= 'i') \
4240 || ('j' <= (c) && (c) <= 'r') \
4241 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004242# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4243#endif
4244
4245#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4246int
4247main ()
4248{
4249 int i;
4250 for (i = 0; i < 256; i++)
4251 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004252 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004253 return 2;
4254 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004255}
4256_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257rm -f conftest$ac_exeext
4258if { (ac_try="$ac_link"
4259case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262esac
4263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_link") 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271esac
4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 :
John Criswell7a73b802003-06-30 21:59:07 +00004278else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004279 echo "$as_me: program exited with status $ac_status" >&5
4280echo "$as_me: failed program was:" >&5
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
4283( exit $ac_status )
4284ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004285fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004287fi
4288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289
John Criswell7a73b802003-06-30 21:59:07 +00004290fi
4291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4293echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004294if test $ac_cv_header_stdc = yes; then
4295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004296cat >>confdefs.h <<\_ACEOF
4297#define STDC_HEADERS 1
4298_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004299
4300fi
4301
Reid Spencera773bd52006-08-04 18:18:08 +00004302# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004303
4304
4305
4306
4307
4308
4309
4310
4311
Reid Spencera773bd52006-08-04 18:18:08 +00004312for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4313 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004314do
4315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4316{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321 cat >conftest.$ac_ext <<_ACEOF
4322/* confdefs.h. */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h. */
4327$ac_includes_default
4328
4329#include <$ac_header>
4330_ACEOF
4331rm -f conftest.$ac_objext
4332if { (ac_try="$ac_compile"
4333case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336esac
4337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_compile") 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4346 { (case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349esac
4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_try") 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 eval "$as_ac_Header=yes"
4366else
4367 echo "$as_me: failed program was:" >&5
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 eval "$as_ac_Header=no"
4371fi
4372
4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374fi
4375ac_res=`eval echo '${'$as_ac_Header'}'`
4376 { echo "$as_me:$LINENO: result: $ac_res" >&5
4377echo "${ECHO_T}$ac_res" >&6; }
4378if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004379 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004381_ACEOF
4382
4383fi
4384
4385done
4386
4387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004388{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4389echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4390if test "${ac_cv_c_bigendian+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004393 # See if sys/param.h defines the BYTE_ORDER macro.
4394cat >conftest.$ac_ext <<_ACEOF
4395/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004396_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004397cat confdefs.h >>conftest.$ac_ext
4398cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004399/* end confdefs.h. */
4400#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004402
4403int
4404main ()
4405{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4407 bogus endian macros
4408#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004409
4410 ;
4411 return 0;
4412}
4413_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414rm -f conftest.$ac_objext
4415if { (ac_try="$ac_compile"
4416case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4419esac
4420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 (eval "$ac_compile") 2>conftest.er1
4422 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4429 { (case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432esac
4433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_try") 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; } &&
4438 { ac_try='test -s conftest.$ac_objext'
4439 { (case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442esac
4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_try") 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004448 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004449cat >conftest.$ac_ext <<_ACEOF
4450/* confdefs.h. */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004454/* end confdefs.h. */
4455#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004456#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004457
4458int
4459main ()
4460{
4461#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004462 not big endian
4463#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004464
4465 ;
4466 return 0;
4467}
4468_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004469rm -f conftest.$ac_objext
4470if { (ac_try="$ac_compile"
4471case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474esac
4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487esac
4488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497esac
4498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004503 ac_cv_c_bigendian=yes
4504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004505 echo "$as_me: failed program was:" >&5
4506sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508 ac_cv_c_bigendian=no
4509fi
4510
4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512else
4513 echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 # It does not; compile a test program.
4517if test "$cross_compiling" = yes; then
4518 # try to guess the endianness by grepping values into an object file
4519 ac_cv_c_bigendian=unknown
4520 cat >conftest.$ac_ext <<_ACEOF
4521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h. */
4526short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4527short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4528void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4529short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4530short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4531void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004532int
4533main ()
4534{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004536 ;
4537 return 0;
4538}
4539_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004540rm -f conftest.$ac_objext
4541if { (ac_try="$ac_compile"
4542case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545esac
4546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_compile") 2>conftest.er1
4548 ac_status=$?
4549 grep -v '^ *+' conftest.er1 >conftest.err
4550 rm -f conftest.er1
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4555 { (case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558esac
4559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_try") 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004575 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576fi
4577if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4578 if test "$ac_cv_c_bigendian" = unknown; then
4579 ac_cv_c_bigendian=no
4580 else
4581 # finding both strings is unlikely to happen, but who knows?
4582 ac_cv_c_bigendian=unknown
4583 fi
4584fi
Reid Spencera773bd52006-08-04 18:18:08 +00004585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004586 echo "$as_me: failed program was:" >&5
4587sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004589
Torok Edwin871384f2010-01-26 08:50:50 +00004590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591
Reid Spencera773bd52006-08-04 18:18:08 +00004592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594 cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004599/* end confdefs.h. */
4600$ac_includes_default
4601int
4602main ()
4603{
4604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004605 /* Are we little or big endian? From Harbison&Steele. */
4606 union
4607 {
4608 long int l;
4609 char c[sizeof (long int)];
4610 } u;
4611 u.l = 1;
4612 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004613
4614 ;
4615 return 0;
4616}
4617_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618rm -f conftest$ac_exeext
4619if { (ac_try="$ac_link"
4620case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623esac
4624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625 (eval "$ac_link") 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4629 { (case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632esac
4633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 (eval "$ac_try") 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004638 ac_cv_c_bigendian=no
4639else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004640 echo "$as_me: program exited with status $ac_status" >&5
4641echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644( exit $ac_status )
4645ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004648fi
4649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650
Reid Spencera773bd52006-08-04 18:18:08 +00004651fi
4652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654fi
4655{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4656echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4657case $ac_cv_c_bigendian in
4658 yes)
4659 ENDIAN=big
4660 ;;
4661 no)
4662 ENDIAN=little
4663 ;;
4664 *)
4665 { { echo "$as_me:$LINENO: error: unknown endianness
4666presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4667echo "$as_me: error: unknown endianness
4668presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4669 { (exit 1); exit 1; }; } ;;
4670esac
Reid Spencera773bd52006-08-04 18:18:08 +00004671
4672
4673if test "$cross_compiling" = yes; then
4674 LLVM_CROSS_COMPILING=1
4675
4676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4678echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4679if test "${ac_cv_build_exeext+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004681else
4682 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4683 ac_cv_build_exeext=.exe
4684else
4685 ac_build_prefix=${build_alias}-
4686
4687 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4688set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004693else
4694 if test -n "$BUILD_CC"; then
4695 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004704 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004706 break 2
4707 fi
4708done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004709done
Reid Spencera773bd52006-08-04 18:18:08 +00004710IFS=$as_save_IFS
4711
4712fi
4713fi
4714BUILD_CC=$ac_cv_prog_BUILD_CC
4715if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4717echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719 { echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004721fi
4722
4723
4724 if test -z "$BUILD_CC"; then
4725 # Extract the first word of "gcc", so it can be a program name with args.
4726set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004731else
4732 if test -n "$BUILD_CC"; then
4733 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4734else
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004742 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004744 break 2
4745 fi
4746done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004747done
Reid Spencera773bd52006-08-04 18:18:08 +00004748IFS=$as_save_IFS
4749
4750fi
4751fi
4752BUILD_CC=$ac_cv_prog_BUILD_CC
4753if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004754 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4755echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004757 { echo "$as_me:$LINENO: result: no" >&5
4758echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004759fi
4760
4761
4762 if test -z "$BUILD_CC"; then
4763 # Extract the first word of "cc", so it can be a program name with args.
4764set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004769else
4770 if test -n "$BUILD_CC"; then
4771 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4772else
4773 ac_prog_rejected=no
4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH
4776do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4782 ac_prog_rejected=yes
4783 continue
4784 fi
4785 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004787 break 2
4788 fi
4789done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004790done
Reid Spencera773bd52006-08-04 18:18:08 +00004791IFS=$as_save_IFS
4792
4793if test $ac_prog_rejected = yes; then
4794 # We found a bogon in the path, so make sure we never use it.
4795 set dummy $ac_cv_prog_BUILD_CC
4796 shift
4797 if test $# != 0; then
4798 # We chose a different compiler from the bogus one.
4799 # However, it has the same basename, so the bogon will be chosen
4800 # first if we set BUILD_CC to just the basename; use the full file name.
4801 shift
4802 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4803 fi
4804fi
4805fi
4806fi
4807BUILD_CC=$ac_cv_prog_BUILD_CC
4808if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004809 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4810echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812 { echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004814fi
4815
4816
4817 fi
4818 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004819 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4820echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4821 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004822 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4823 rm -f conftest*
4824 echo 'int main () { return 0; }' > conftest.$ac_ext
4825 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004826 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004827 (eval $ac_build_link) 2>&5
4828 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004831 for file in conftest.*; do
4832 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004833 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004834 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4835 esac
4836 done
4837 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4839echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4840 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004841 fi
4842 rm -f conftest*
4843 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4844fi
4845fi
4846
4847BUILD_EXEEXT=""
4848test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004849{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4850echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004851ac_build_exeext=$BUILD_EXEEXT
4852
Jim Grosbach673612e2008-10-02 22:56:44 +00004853 ac_build_prefix=${build_alias}-
4854 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4855set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004860else
4861 if test -n "$BUILD_CXX"; then
4862 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4863else
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004871 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004873 break 2
4874 fi
4875done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004876done
Jim Grosbach673612e2008-10-02 22:56:44 +00004877IFS=$as_save_IFS
4878
4879fi
4880fi
4881BUILD_CXX=$ac_cv_prog_BUILD_CXX
4882if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4884echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886 { echo "$as_me:$LINENO: result: no" >&5
4887echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004888fi
4889
4890
4891 if test -z "$BUILD_CXX"; then
4892 # Extract the first word of "g++", so it can be a program name with args.
4893set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004898else
4899 if test -n "$BUILD_CXX"; then
4900 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004909 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004911 break 2
4912 fi
4913done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004914done
Jim Grosbach673612e2008-10-02 22:56:44 +00004915IFS=$as_save_IFS
4916
4917fi
4918fi
4919BUILD_CXX=$ac_cv_prog_BUILD_CXX
4920if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004921 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4922echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924 { echo "$as_me:$LINENO: result: no" >&5
4925echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004926fi
4927
4928
4929 if test -z "$BUILD_CXX"; then
4930 # Extract the first word of "c++", so it can be a program name with args.
4931set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004936else
4937 if test -n "$BUILD_CXX"; then
4938 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4939else
4940 ac_prog_rejected=no
4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4949 ac_prog_rejected=yes
4950 continue
4951 fi
4952 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004954 break 2
4955 fi
4956done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004957done
Jim Grosbach673612e2008-10-02 22:56:44 +00004958IFS=$as_save_IFS
4959
4960if test $ac_prog_rejected = yes; then
4961 # We found a bogon in the path, so make sure we never use it.
4962 set dummy $ac_cv_prog_BUILD_CXX
4963 shift
4964 if test $# != 0; then
4965 # We chose a different compiler from the bogus one.
4966 # However, it has the same basename, so the bogon will be chosen
4967 # first if we set BUILD_CXX to just the basename; use the full file name.
4968 shift
4969 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4970 fi
4971fi
4972fi
4973fi
4974BUILD_CXX=$ac_cv_prog_BUILD_CXX
4975if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004976 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4977echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004979 { echo "$as_me:$LINENO: result: no" >&5
4980echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004981fi
4982
4983
4984 fi
4985 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004986else
4987 LLVM_CROSS_COMPILING=0
4988
4989fi
4990
Dan Gohman56fb5f92010-08-04 16:25:01 +00004991if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004992 cvsbuild="yes"
4993 optimize="no"
4994 CVSBUILD=CVSBUILD=1
4995
4996else
4997 cvsbuild="no"
4998 optimize="yes"
4999fi
5000
5001
Eric Christopherbee515f2011-11-11 22:51:42 +00005002# Check whether --enable-libcpp was given.
5003if test "${enable_libcpp+set}" = set; then
5004 enableval=$enable_libcpp;
5005else
5006 enableval=default
5007fi
5008
5009case "$enableval" in
5010 yes) ENABLE_LIBCPP=1
5011 ;;
5012 no) ENABLE_LIBCPP=0
5013 ;;
5014 default) ENABLE_LIBCPP=0
5015;;
5016 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5017echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5018 { (exit 1); exit 1; }; } ;;
5019esac
5020
Eric Christopher82120022012-08-03 19:47:14 +00005021# Check whether --enable-cxx11 was given.
5022if test "${enable_cxx11+set}" = set; then
5023 enableval=$enable_cxx11;
5024else
5025 enableval=default
5026fi
5027
5028case "$enableval" in
5029 yes) ENABLE_CXX11=1
5030 ;;
5031 no) ENABLE_CXX11=0
5032 ;;
5033 default) ENABLE_CXX11=0
5034;;
5035 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5036echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5038esac
5039
Reid Spencera773bd52006-08-04 18:18:08 +00005040# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005041if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005042 enableval=$enable_optimized;
5043else
5044 enableval=$optimize
5045fi
5046
5047if test ${enableval} = "no" ; then
5048 ENABLE_OPTIMIZED=
5049
5050else
5051 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5052
5053fi
5054
David Greene2a5a12c2009-04-17 14:50:39 +00005055# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005057 enableval=$enable_profiling;
5058else
5059 enableval="no"
5060fi
5061
5062if test ${enableval} = "no" ; then
5063 ENABLE_PROFILING=
5064
5065else
5066 ENABLE_PROFILING=ENABLE_PROFILING=1
5067
5068fi
5069
Reid Spencera773bd52006-08-04 18:18:08 +00005070# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005071if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005072 enableval=$enable_assertions;
5073else
5074 enableval="yes"
5075fi
5076
5077if test ${enableval} = "yes" ; then
5078 DISABLE_ASSERTIONS=
5079
5080else
5081 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5082
5083fi
5084
David Greenea696d242007-06-28 19:36:08 +00005085# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005086if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005087 enableval=$enable_expensive_checks;
5088else
5089 enableval="no"
5090fi
5091
5092if test ${enableval} = "yes" ; then
5093 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5094
5095 EXPENSIVE_CHECKS=yes
5096
5097else
5098 ENABLE_EXPENSIVE_CHECKS=
5099
5100 EXPENSIVE_CHECKS=no
5101
5102fi
5103
Reid Spencer8b2e1412006-11-17 03:32:33 +00005104# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005105if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005106 enableval=$enable_debug_runtime;
5107else
5108 enableval=no
5109fi
5110
5111if test ${enableval} = "no" ; then
5112 DEBUG_RUNTIME=
5113
5114else
5115 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5116
5117fi
5118
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005119# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005120if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005121 enableval=$enable_debug_symbols;
5122else
5123 enableval=no
5124fi
5125
5126if test ${enableval} = "no" ; then
5127 DEBUG_SYMBOLS=
5128
5129else
5130 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5131
5132fi
5133
Reid Spencera773bd52006-08-04 18:18:08 +00005134# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005135if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005136 enableval=$enable_jit;
5137else
5138 enableval=default
5139fi
5140
5141if test ${enableval} = "no"
5142then
5143 JIT=
5144
5145else
5146 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005147 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005148 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005149 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005150 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005151 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005152 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005153 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005154 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005155 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005156 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005157 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005158 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005159 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005160 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005161 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005162 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005163 Hexagon) TARGET_HAS_JIT=0
5164 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005165 MBlaze) TARGET_HAS_JIT=0
5166 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005167 NVPTX) TARGET_HAS_JIT=0
5168 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005169 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005170 ;;
5171 esac
5172fi
5173
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005174# Check whether --enable-docs was given.
5175if test "${enable_docs+set}" = set; then
5176 enableval=$enable_docs;
5177else
5178 enableval=default
5179fi
5180
5181case "$enableval" in
5182 yes) ENABLE_DOCS=1
5183 ;;
5184 no) ENABLE_DOCS=0
5185 ;;
5186 default) ENABLE_DOCS=1
5187 ;;
5188 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5189echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5191esac
5192
Reid Spencera773bd52006-08-04 18:18:08 +00005193# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005194if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005195 enableval=$enable_doxygen;
5196else
5197 enableval=default
5198fi
5199
5200case "$enableval" in
5201 yes) ENABLE_DOXYGEN=1
5202 ;;
5203 no) ENABLE_DOXYGEN=0
5204 ;;
5205 default) ENABLE_DOXYGEN=0
5206 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5208echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005210esac
5211
5212# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005214 enableval=$enable_threads;
5215else
Reid Spencer65c5d752006-11-05 17:08:18 +00005216 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005217fi
5218
5219case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005220 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005221 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005222 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005223 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005224 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005225 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5227echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5228 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005229esac
5230
Owen Andersona8603702009-05-19 22:18:56 +00005231cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005232#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005233_ACEOF
5234
5235
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005236# Check whether --enable-pthreads was given.
5237if test "${enable_pthreads+set}" = set; then
5238 enableval=$enable_pthreads;
5239else
5240 enableval=default
5241fi
5242
5243case "$enableval" in
5244 yes) ENABLE_PTHREADS=1
5245 ;;
5246 no) ENABLE_PTHREADS=0
5247 ;;
5248 default) ENABLE_PTHREADS=1
5249 ;;
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5251echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5253esac
5254
Reid Spencer89b0d992006-12-16 22:07:52 +00005255# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005256if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005257 enableval=$enable_pic;
5258else
5259 enableval=default
5260fi
5261
5262case "$enableval" in
5263 yes) ENABLE_PIC=1
5264 ;;
5265 no) ENABLE_PIC=0
5266 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005267 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005268 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5270echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005272esac
5273
5274cat >>confdefs.h <<_ACEOF
5275#define ENABLE_PIC $ENABLE_PIC
5276_ACEOF
5277
5278
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005279# Check whether --enable-shared was given.
5280if test "${enable_shared+set}" = set; then
5281 enableval=$enable_shared;
5282else
5283 enableval=default
5284fi
5285
5286case "$enableval" in
5287 yes) ENABLE_SHARED=1
5288 ;;
5289 no) ENABLE_SHARED=0
5290 ;;
5291 default) ENABLE_SHARED=0
5292 ;;
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5294echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5296esac
5297
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005298# Check whether --enable-embed-stdcxx was given.
5299if test "${enable_embed_stdcxx+set}" = set; then
5300 enableval=$enable_embed_stdcxx;
5301else
5302 enableval=default
5303fi
5304
5305case "$enableval" in
5306 yes) ENABLE_EMBED_STDCXX=1
5307 ;;
5308 no) ENABLE_EMBED_STDCXX=0
5309 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005310 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005311 ;;
5312 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5313echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5314 { (exit 1); exit 1; }; } ;;
5315esac
5316
Daniel Dunbardd464df2010-05-10 20:11:56 +00005317# Check whether --enable-timestamps was given.
5318if test "${enable_timestamps+set}" = set; then
5319 enableval=$enable_timestamps;
5320else
5321 enableval=default
5322fi
5323
5324case "$enableval" in
5325 yes) ENABLE_TIMESTAMPS=1
5326 ;;
5327 no) ENABLE_TIMESTAMPS=0
5328 ;;
5329 default) ENABLE_TIMESTAMPS=1
5330 ;;
5331 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5332echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5333 { (exit 1); exit 1; }; } ;;
5334esac
5335
5336cat >>confdefs.h <<_ACEOF
5337#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5338_ACEOF
5339
5340
Reid Spencera773bd52006-08-04 18:18:08 +00005341TARGETS_TO_BUILD=""
5342# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005343if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005344 enableval=$enable_targets;
5345else
5346 enableval=all
5347fi
5348
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005349if test "$enableval" = host-only ; then
5350 enableval=host
5351fi
Reid Spencera773bd52006-08-04 18:18:08 +00005352case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005353 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005354 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5355 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005356 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5357 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5358 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5359 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005360 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5361 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005362 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005363 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005364 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5365 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005366 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005367 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005368 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005369 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005370 host) case "$llvm_cv_target_arch" in
5371 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5372 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5373 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5374 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005375 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5376 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005377 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005378 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005379 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5380 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005381 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005382 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005383 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5384echo "$as_me: error: Can not set target to build" >&2;}
5385 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005386 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005387 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5388echo "$as_me: error: Unrecognized target $a_target" >&2;}
5389 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005390 esac
5391 done
5392 ;;
5393esac
Reid Spencera773bd52006-08-04 18:18:08 +00005394TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5395
5396
Douglas Gregor0711c302009-06-17 00:43:20 +00005397for a_target in $TARGETS_TO_BUILD; do
5398 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5399
5400cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005401#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5402_ACEOF
5403
5404 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5405 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005406 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005407 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005408 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5409 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5410 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005411 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5412 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5413 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005414
5415cat >>confdefs.h <<_ACEOF
5416#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005417_ACEOF
5418
5419
5420cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005421#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5422_ACEOF
5423
5424
5425cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005426#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005427_ACEOF
5428
5429
5430cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005431#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005432_ACEOF
5433
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005434 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005435
5436cat >>confdefs.h <<_ACEOF
5437#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5438_ACEOF
5439
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005440 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005441 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5442
5443cat >>confdefs.h <<_ACEOF
5444#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5445_ACEOF
5446
5447 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005448 fi
5449done
5450
Douglas Gregor1555a232009-06-16 20:12:29 +00005451LLVM_ENUM_TARGETS=""
5452LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005453LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005454LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005455for target_to_build in $TARGETS_TO_BUILD; do
5456 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005457 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005458 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5459 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005460 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5461 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5462 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005463 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5464 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5465 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005466done
5467
5468
5469
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005470
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005471
Reid Spencera773bd52006-08-04 18:18:08 +00005472
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005473# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005474if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005475 withval=$with_optimize_option;
5476else
5477 withval=default
5478fi
5479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005480{ echo "$as_me:$LINENO: checking optimization flags" >&5
5481echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005482case "$withval" in
5483 default)
5484 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005485 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005486 MingW) optimize_option=-O2 ;;
5487 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005488 esac ;;
5489 *) optimize_option="$withval" ;;
5490esac
5491OPTIMIZE_OPTION=$optimize_option
5492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5494echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005495
5496
Reid Spencera773bd52006-08-04 18:18:08 +00005497# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005498if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005499 withval=$with_extra_options;
5500else
5501 withval=default
5502fi
5503
5504case "$withval" in
5505 default) EXTRA_OPTIONS= ;;
5506 *) EXTRA_OPTIONS=$withval ;;
5507esac
5508EXTRA_OPTIONS=$EXTRA_OPTIONS
5509
5510
Daniel Dunbared344d22011-06-16 22:30:41 +00005511
5512# Check whether --with-extra-ld-options was given.
5513if test "${with_extra_ld_options+set}" = set; then
5514 withval=$with_extra_ld_options;
5515else
5516 withval=default
5517fi
5518
5519case "$withval" in
5520 default) EXTRA_LD_OPTIONS= ;;
5521 *) EXTRA_LD_OPTIONS=$withval ;;
5522esac
5523EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5524
5525
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005526# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005527if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005528 enableval=$enable_bindings;
5529else
5530 enableval=default
5531fi
5532
5533BINDINGS_TO_BUILD=""
5534case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005535 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005536 all ) BINDINGS_TO_BUILD="ocaml" ;;
5537 none | no) BINDINGS_TO_BUILD="" ;;
5538 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5539 case "$a_binding" in
5540 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005541 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5542echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5543 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005544 esac
5545 done
5546 ;;
5547esac
5548
Reid Spencera773bd52006-08-04 18:18:08 +00005549
Gordon Henriksenf0915682007-10-02 16:42:22 +00005550# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005551if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005552 withval=$with_ocaml_libdir;
5553else
5554 withval=auto
5555fi
5556
5557case "$withval" in
5558 auto) with_ocaml_libdir="$withval" ;;
5559 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005560 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5561echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5562 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005563esac
5564
5565
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005566# Check whether --with-clang-srcdir was given.
5567if test "${with_clang_srcdir+set}" = set; then
5568 withval=$with_clang_srcdir;
5569else
5570 withval="-"
5571fi
5572
5573case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005574 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005575 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5576 *) clang_src_root="$ac_pwd/$withval" ;;
5577esac
5578CLANG_SRC_ROOT=$clang_src_root
5579
5580
5581
Chandler Carruth6b241162010-10-19 08:21:25 +00005582# Check whether --with-clang-resource-dir was given.
5583if test "${with_clang_resource_dir+set}" = set; then
5584 withval=$with_clang_resource_dir;
5585else
5586 withval=""
5587fi
5588
5589
5590cat >>confdefs.h <<_ACEOF
5591#define CLANG_RESOURCE_DIR "$withval"
5592_ACEOF
5593
5594
5595
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005596# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005597if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005598 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005599else
5600 withval=""
5601fi
5602
5603
5604cat >>confdefs.h <<_ACEOF
5605#define C_INCLUDE_DIRS "$withval"
5606_ACEOF
5607
5608
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005609# Clang normally uses the system c++ headers and libraries. With this option,
5610# clang will use the ones provided by a gcc installation instead. This option should
5611# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005612
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005613# Check whether --with-gcc-toolchain was given.
5614if test "${with_gcc_toolchain+set}" = set; then
5615 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005616else
5617 withval=""
5618fi
5619
5620
5621cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005622#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005623_ACEOF
5624
5625
5626
Sebastian Pope4f1b372012-04-30 20:06:58 +00005627# Check whether --with-default-sysroot was given.
5628if test "${with_default_sysroot+set}" = set; then
5629 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005630else
5631 withval=""
5632fi
5633
5634
5635cat >>confdefs.h <<_ACEOF
5636#define DEFAULT_SYSROOT "$withval"
5637_ACEOF
5638
5639
5640
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005641# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005642if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005643 withval=$with_binutils_include;
5644else
5645 withval=default
5646fi
5647
5648case "$withval" in
5649 default) WITH_BINUTILS_INCDIR=default ;;
5650 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005651 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5652echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5653 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005654esac
5655if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5656 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5657
5658 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5659 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5661echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5662 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005663 fi
5664fi
5665
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005666
5667# Check whether --with-bug-report-url was given.
5668if test "${with_bug_report_url+set}" = set; then
5669 withval=$with_bug_report_url;
5670else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005671 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005672fi
5673
5674
5675cat >>confdefs.h <<_ACEOF
5676#define BUG_REPORT_URL "$withval"
5677_ACEOF
5678
5679
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005680# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005681if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005682 enableval=$enable_libffi; case "$enableval" in
5683 yes) llvm_cv_enable_libffi="yes" ;;
5684 no) llvm_cv_enable_libffi="no" ;;
5685 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005686echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5687 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005688 esac
5689else
5690 llvm_cv_enable_libffi=no
5691fi
5692
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005693
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005694
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005695# Check whether --with-internal-prefix was given.
5696if test "${with_internal_prefix+set}" = set; then
5697 withval=$with_internal_prefix;
5698else
5699 withval=""
5700fi
5701
5702INTERNAL_PREFIX=$withval
5703
5704
5705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005706{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5707echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5708if test "${lt_cv_path_NM+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005710else
5711 if test -n "$NM"; then
5712 # Let the user override the test.
5713 lt_cv_path_NM="$NM"
5714else
5715 lt_nm_to_check="${ac_tool_prefix}nm"
5716 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5717 lt_nm_to_check="$lt_nm_to_check nm"
5718 fi
5719 for lt_tmp_nm in $lt_nm_to_check; do
5720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5721 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5722 IFS="$lt_save_ifs"
5723 test -z "$ac_dir" && ac_dir=.
5724 tmp_nm="$ac_dir/$lt_tmp_nm"
5725 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5726 # Check to see if the nm accepts a BSD-compat flag.
5727 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5728 # nm: unknown option "B" ignored
5729 # Tru64's nm complains that /dev/null is an invalid object file
5730 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5731 */dev/null* | *'Invalid file or object type'*)
5732 lt_cv_path_NM="$tmp_nm -B"
5733 break
5734 ;;
5735 *)
5736 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5737 */dev/null*)
5738 lt_cv_path_NM="$tmp_nm -p"
5739 break
5740 ;;
5741 *)
5742 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5743 continue # so that we can try to find one that supports BSD flags
5744 ;;
5745 esac
5746 ;;
5747 esac
5748 fi
5749 done
5750 IFS="$lt_save_ifs"
5751 done
5752 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5753fi
5754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5756echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005757NM="$lt_cv_path_NM"
5758
5759
5760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761{ echo "$as_me:$LINENO: checking for GNU make" >&5
5762echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5763if test "${llvm_cv_gnu_make_command+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005765else
5766 llvm_cv_gnu_make_command=''
5767 for a in "$MAKE" make gmake gnumake ; do
5768 if test -z "$a" ; then continue ; fi ;
5769 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5770 then
5771 llvm_cv_gnu_make_command=$a ;
5772 break;
5773 fi
5774 done
5775fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5777echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005778 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5779 ifGNUmake='' ;
5780 else
5781 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005782 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5783echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005784 fi
5785
5786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5788echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005789LN_S=$as_ln_s
5790if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005791 { echo "$as_me:$LINENO: result: yes" >&5
5792echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5795echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005796fi
5797
5798# Extract the first word of "cmp", so it can be a program name with args.
5799set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802if test "${ac_cv_path_CMP+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005804else
5805 case $CMP in
5806 [\\/]* | ?:[\\/]*)
5807 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5808 ;;
5809 *)
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005817 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005819 break 2
5820 fi
5821done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822done
Reid Spencera773bd52006-08-04 18:18:08 +00005823IFS=$as_save_IFS
5824
5825 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5826 ;;
5827esac
5828fi
5829CMP=$ac_cv_path_CMP
5830if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005831 { echo "$as_me:$LINENO: result: $CMP" >&5
5832echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005834 { echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005836fi
5837
5838
5839# Extract the first word of "cp", so it can be a program name with args.
5840set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843if test "${ac_cv_path_CP+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005845else
5846 case $CP in
5847 [\\/]* | ?:[\\/]*)
5848 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5849 ;;
5850 *)
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005858 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005860 break 2
5861 fi
5862done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863done
Reid Spencera773bd52006-08-04 18:18:08 +00005864IFS=$as_save_IFS
5865
5866 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5867 ;;
5868esac
5869fi
5870CP=$ac_cv_path_CP
5871if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872 { echo "$as_me:$LINENO: result: $CP" >&5
5873echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875 { echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005877fi
5878
5879
5880# Extract the first word of "date", so it can be a program name with args.
5881set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884if test "${ac_cv_path_DATE+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005886else
5887 case $DATE in
5888 [\\/]* | ?:[\\/]*)
5889 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5890 ;;
5891 *)
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005899 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005901 break 2
5902 fi
5903done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904done
Reid Spencera773bd52006-08-04 18:18:08 +00005905IFS=$as_save_IFS
5906
5907 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5908 ;;
5909esac
5910fi
5911DATE=$ac_cv_path_DATE
5912if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005913 { echo "$as_me:$LINENO: result: $DATE" >&5
5914echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005916 { echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005918fi
5919
5920
5921# Extract the first word of "find", so it can be a program name with args.
5922set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925if test "${ac_cv_path_FIND+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005927else
5928 case $FIND in
5929 [\\/]* | ?:[\\/]*)
5930 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5931 ;;
5932 *)
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005940 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005942 break 2
5943 fi
5944done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945done
Reid Spencera773bd52006-08-04 18:18:08 +00005946IFS=$as_save_IFS
5947
5948 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5949 ;;
5950esac
5951fi
5952FIND=$ac_cv_path_FIND
5953if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005954 { echo "$as_me:$LINENO: result: $FIND" >&5
5955echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005957 { echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005959fi
5960
5961
5962# Extract the first word of "grep", so it can be a program name with args.
5963set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966if test "${ac_cv_path_GREP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005968else
5969 case $GREP in
5970 [\\/]* | ?:[\\/]*)
5971 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5972 ;;
5973 *)
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005981 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005983 break 2
5984 fi
5985done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986done
Reid Spencera773bd52006-08-04 18:18:08 +00005987IFS=$as_save_IFS
5988
5989 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5990 ;;
5991esac
5992fi
5993GREP=$ac_cv_path_GREP
5994if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005995 { echo "$as_me:$LINENO: result: $GREP" >&5
5996echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005998 { echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006000fi
6001
6002
6003# Extract the first word of "mkdir", so it can be a program name with args.
6004set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007if test "${ac_cv_path_MKDIR+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006009else
6010 case $MKDIR in
6011 [\\/]* | ?:[\\/]*)
6012 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6013 ;;
6014 *)
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006022 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006024 break 2
6025 fi
6026done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027done
Reid Spencera773bd52006-08-04 18:18:08 +00006028IFS=$as_save_IFS
6029
6030 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6031 ;;
6032esac
6033fi
6034MKDIR=$ac_cv_path_MKDIR
6035if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6037echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006039 { echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006041fi
6042
6043
6044# Extract the first word of "mv", so it can be a program name with args.
6045set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048if test "${ac_cv_path_MV+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006050else
6051 case $MV in
6052 [\\/]* | ?:[\\/]*)
6053 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6054 ;;
6055 *)
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006063 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006065 break 2
6066 fi
6067done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068done
Reid Spencera773bd52006-08-04 18:18:08 +00006069IFS=$as_save_IFS
6070
6071 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6072 ;;
6073esac
6074fi
6075MV=$ac_cv_path_MV
6076if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006077 { echo "$as_me:$LINENO: result: $MV" >&5
6078echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006080 { echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006082fi
6083
6084
6085if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6087set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090if test "${ac_cv_prog_RANLIB+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006092else
6093 if test -n "$RANLIB"; then
6094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006105 break 2
6106 fi
6107done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108done
Reid Spencera773bd52006-08-04 18:18:08 +00006109IFS=$as_save_IFS
6110
6111fi
6112fi
6113RANLIB=$ac_cv_prog_RANLIB
6114if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006115 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6116echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006118 { echo "$as_me:$LINENO: result: no" >&5
6119echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006120fi
6121
6122
6123fi
6124if test -z "$ac_cv_prog_RANLIB"; then
6125 ac_ct_RANLIB=$RANLIB
6126 # Extract the first word of "ranlib", so it can be a program name with args.
6127set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6130if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006132else
6133 if test -n "$ac_ct_RANLIB"; then
6134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006143 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006145 break 2
6146 fi
6147done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006148done
Reid Spencera773bd52006-08-04 18:18:08 +00006149IFS=$as_save_IFS
6150
6151fi
6152fi
6153ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6154if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006155 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6156echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006157else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158 { echo "$as_me:$LINENO: result: no" >&5
6159echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006160fi
6161
6162 if test "x$ac_ct_RANLIB" = x; then
6163 RANLIB=":"
6164 else
6165 case $cross_compiling:$ac_tool_warned in
6166yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6168whose name does not start with the host triplet. If you think this
6169configuration is useful to you, please write to autoconf@gnu.org." >&5
6170echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6171whose name does not start with the host triplet. If you think this
6172configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006173ac_tool_warned=yes ;;
6174esac
6175 RANLIB=$ac_ct_RANLIB
6176 fi
6177else
6178 RANLIB="$ac_cv_prog_RANLIB"
6179fi
6180
Torok Edwin871384f2010-01-26 08:50:50 +00006181if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6183set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186if test "${ac_cv_prog_AR+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006188else
6189 if test -n "$AR"; then
6190 ac_cv_prog_AR="$AR" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006199 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006201 break 2
6202 fi
6203done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006204done
Torok Edwin871384f2010-01-26 08:50:50 +00006205IFS=$as_save_IFS
6206
6207fi
6208fi
6209AR=$ac_cv_prog_AR
6210if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006211 { echo "$as_me:$LINENO: result: $AR" >&5
6212echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006214 { echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006216fi
6217
6218
6219fi
6220if test -z "$ac_cv_prog_AR"; then
6221 ac_ct_AR=$AR
6222 # Extract the first word of "ar", so it can be a program name with args.
6223set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006228else
6229 if test -n "$ac_ct_AR"; then
6230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006239 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006241 break 2
6242 fi
6243done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006244done
Torok Edwin871384f2010-01-26 08:50:50 +00006245IFS=$as_save_IFS
6246
6247fi
6248fi
6249ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6252echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254 { echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006256fi
6257
6258 if test "x$ac_ct_AR" = x; then
6259 AR="false"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006263{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6264whose name does not start with the host triplet. If you think this
6265configuration is useful to you, please write to autoconf@gnu.org." >&5
6266echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6267whose name does not start with the host triplet. If you think this
6268configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006269ac_tool_warned=yes ;;
6270esac
6271 AR=$ac_ct_AR
6272 fi
6273else
6274 AR="$ac_cv_prog_AR"
6275fi
6276
Reid Spencera773bd52006-08-04 18:18:08 +00006277# Extract the first word of "rm", so it can be a program name with args.
6278set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281if test "${ac_cv_path_RM+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006283else
6284 case $RM in
6285 [\\/]* | ?:[\\/]*)
6286 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6287 ;;
6288 *)
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006296 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006298 break 2
6299 fi
6300done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301done
Reid Spencera773bd52006-08-04 18:18:08 +00006302IFS=$as_save_IFS
6303
6304 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6305 ;;
6306esac
6307fi
6308RM=$ac_cv_path_RM
6309if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310 { echo "$as_me:$LINENO: result: $RM" >&5
6311echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006313 { echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006315fi
6316
6317
6318# Extract the first word of "sed", so it can be a program name with args.
6319set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322if test "${ac_cv_path_SED+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006324else
6325 case $SED in
6326 [\\/]* | ?:[\\/]*)
6327 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6328 ;;
6329 *)
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006337 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006339 break 2
6340 fi
6341done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342done
Reid Spencera773bd52006-08-04 18:18:08 +00006343IFS=$as_save_IFS
6344
6345 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6346 ;;
6347esac
6348fi
6349SED=$ac_cv_path_SED
6350if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006351 { echo "$as_me:$LINENO: result: $SED" >&5
6352echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006354 { echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006356fi
6357
6358
6359# Extract the first word of "tar", so it can be a program name with args.
6360set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363if test "${ac_cv_path_TAR+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006365else
6366 case $TAR in
6367 [\\/]* | ?:[\\/]*)
6368 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6369 ;;
6370 *)
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006378 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006380 break 2
6381 fi
6382done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383done
Reid Spencera773bd52006-08-04 18:18:08 +00006384IFS=$as_save_IFS
6385
6386 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6387 ;;
6388esac
6389fi
6390TAR=$ac_cv_path_TAR
6391if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006392 { echo "$as_me:$LINENO: result: $TAR" >&5
6393echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006395 { echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006397fi
6398
6399
6400# Extract the first word of "pwd", so it can be a program name with args.
6401set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404if test "${ac_cv_path_BINPWD+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006406else
6407 case $BINPWD in
6408 [\\/]* | ?:[\\/]*)
6409 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6410 ;;
6411 *)
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006419 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006421 break 2
6422 fi
6423done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424done
Reid Spencera773bd52006-08-04 18:18:08 +00006425IFS=$as_save_IFS
6426
6427 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6428 ;;
6429esac
6430fi
6431BINPWD=$ac_cv_path_BINPWD
6432if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6434echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436 { echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006438fi
6439
6440
6441
6442# Extract the first word of "Graphviz", so it can be a program name with args.
6443set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006448else
6449 case $GRAPHVIZ in
6450 [\\/]* | ?:[\\/]*)
6451 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6452 ;;
6453 *)
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006461 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006463 break 2
6464 fi
6465done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006466done
Reid Spencera773bd52006-08-04 18:18:08 +00006467IFS=$as_save_IFS
6468
6469 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6470 ;;
6471esac
6472fi
6473GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6474if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006475 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6476echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 { echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006480fi
6481
6482
6483if test "$GRAPHVIZ" != "echo Graphviz" ; then
6484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006485cat >>confdefs.h <<\_ACEOF
6486#define HAVE_GRAPHVIZ 1
6487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006488
Jeff Cohen28783c32007-01-12 18:22:38 +00006489 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006490 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6491 fi
6492
6493cat >>confdefs.h <<_ACEOF
6494#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6495_ACEOF
6496
6497fi
6498# Extract the first word of "dot", so it can be a program name with args.
6499set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502if test "${ac_cv_path_DOT+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006504else
6505 case $DOT in
6506 [\\/]* | ?:[\\/]*)
6507 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6508 ;;
6509 *)
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006517 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006519 break 2
6520 fi
6521done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006522done
Reid Spencera773bd52006-08-04 18:18:08 +00006523IFS=$as_save_IFS
6524
6525 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6526 ;;
6527esac
6528fi
6529DOT=$ac_cv_path_DOT
6530if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006531 { echo "$as_me:$LINENO: result: $DOT" >&5
6532echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534 { echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006536fi
6537
6538
6539if test "$DOT" != "echo dot" ; then
6540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006541cat >>confdefs.h <<\_ACEOF
6542#define HAVE_DOT 1
6543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006544
Jeff Cohen28783c32007-01-12 18:22:38 +00006545 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006546 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6547 fi
6548
6549cat >>confdefs.h <<_ACEOF
6550#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6551_ACEOF
6552
6553fi
David Greenef0b9eff2009-07-09 17:16:26 +00006554# Extract the first word of "fdp", so it can be a program name with args.
6555set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558if test "${ac_cv_path_FDP+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006560else
6561 case $FDP in
6562 [\\/]* | ?:[\\/]*)
6563 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6564 ;;
6565 *)
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006573 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006575 break 2
6576 fi
6577done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006578done
David Greenef0b9eff2009-07-09 17:16:26 +00006579IFS=$as_save_IFS
6580
6581 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6582 ;;
6583esac
6584fi
6585FDP=$ac_cv_path_FDP
6586if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006587 { echo "$as_me:$LINENO: result: $FDP" >&5
6588echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590 { echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006592fi
6593
6594
6595if test "$FDP" != "echo fdp" ; then
6596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006597cat >>confdefs.h <<\_ACEOF
6598#define HAVE_FDP 1
6599_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006600
6601 if test "$llvm_cv_os_type" = "MingW" ; then
6602 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6603 fi
6604
6605cat >>confdefs.h <<_ACEOF
6606#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6607_ACEOF
6608
6609fi
6610# Extract the first word of "neato", so it can be a program name with args.
6611set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614if test "${ac_cv_path_NEATO+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006616else
6617 case $NEATO in
6618 [\\/]* | ?:[\\/]*)
6619 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6620 ;;
6621 *)
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006629 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006631 break 2
6632 fi
6633done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006634done
David Greenef0b9eff2009-07-09 17:16:26 +00006635IFS=$as_save_IFS
6636
6637 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6638 ;;
6639esac
6640fi
6641NEATO=$ac_cv_path_NEATO
6642if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006643 { echo "$as_me:$LINENO: result: $NEATO" >&5
6644echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646 { echo "$as_me:$LINENO: result: no" >&5
6647echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006648fi
6649
6650
6651if test "$NEATO" != "echo neato" ; then
6652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006653cat >>confdefs.h <<\_ACEOF
6654#define HAVE_NEATO 1
6655_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006656
6657 if test "$llvm_cv_os_type" = "MingW" ; then
6658 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6659 fi
6660
6661cat >>confdefs.h <<_ACEOF
6662#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6663_ACEOF
6664
6665fi
6666# Extract the first word of "twopi", so it can be a program name with args.
6667set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670if test "${ac_cv_path_TWOPI+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006672else
6673 case $TWOPI in
6674 [\\/]* | ?:[\\/]*)
6675 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6676 ;;
6677 *)
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006685 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006687 break 2
6688 fi
6689done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006690done
David Greenef0b9eff2009-07-09 17:16:26 +00006691IFS=$as_save_IFS
6692
6693 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6694 ;;
6695esac
6696fi
6697TWOPI=$ac_cv_path_TWOPI
6698if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006699 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6700echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702 { echo "$as_me:$LINENO: result: no" >&5
6703echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006704fi
6705
6706
6707if test "$TWOPI" != "echo twopi" ; then
6708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709cat >>confdefs.h <<\_ACEOF
6710#define HAVE_TWOPI 1
6711_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006712
6713 if test "$llvm_cv_os_type" = "MingW" ; then
6714 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6715 fi
6716
6717cat >>confdefs.h <<_ACEOF
6718#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6719_ACEOF
6720
6721fi
6722# Extract the first word of "circo", so it can be a program name with args.
6723set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726if test "${ac_cv_path_CIRCO+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006728else
6729 case $CIRCO in
6730 [\\/]* | ?:[\\/]*)
6731 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6732 ;;
6733 *)
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006741 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006743 break 2
6744 fi
6745done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006746done
David Greenef0b9eff2009-07-09 17:16:26 +00006747IFS=$as_save_IFS
6748
6749 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6750 ;;
6751esac
6752fi
6753CIRCO=$ac_cv_path_CIRCO
6754if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6756echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758 { echo "$as_me:$LINENO: result: no" >&5
6759echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006760fi
6761
6762
6763if test "$CIRCO" != "echo circo" ; then
6764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765cat >>confdefs.h <<\_ACEOF
6766#define HAVE_CIRCO 1
6767_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006768
6769 if test "$llvm_cv_os_type" = "MingW" ; then
6770 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6771 fi
6772
6773cat >>confdefs.h <<_ACEOF
6774#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6775_ACEOF
6776
6777fi
Reid Spencera773bd52006-08-04 18:18:08 +00006778for ac_prog in gv gsview32
6779do
6780 # Extract the first word of "$ac_prog", so it can be a program name with args.
6781set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784if test "${ac_cv_path_GV+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006786else
6787 case $GV in
6788 [\\/]* | ?:[\\/]*)
6789 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6790 ;;
6791 *)
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006799 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006801 break 2
6802 fi
6803done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804done
Reid Spencera773bd52006-08-04 18:18:08 +00006805IFS=$as_save_IFS
6806
6807 ;;
6808esac
6809fi
6810GV=$ac_cv_path_GV
6811if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006812 { echo "$as_me:$LINENO: result: $GV" >&5
6813echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815 { echo "$as_me:$LINENO: result: no" >&5
6816echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006817fi
6818
6819
6820 test -n "$GV" && break
6821done
6822test -n "$GV" || GV="echo gv"
6823
6824if test "$GV" != "echo gv" ; then
6825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826cat >>confdefs.h <<\_ACEOF
6827#define HAVE_GV 1
6828_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006829
Jeff Cohen28783c32007-01-12 18:22:38 +00006830 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006831 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832 fi
6833
6834cat >>confdefs.h <<_ACEOF
6835#define LLVM_PATH_GV "$GV${EXEEXT}"
6836_ACEOF
6837
6838fi
6839# Extract the first word of "dotty", so it can be a program name with args.
6840set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843if test "${ac_cv_path_DOTTY+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006845else
6846 case $DOTTY in
6847 [\\/]* | ?:[\\/]*)
6848 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6849 ;;
6850 *)
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006858 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006860 break 2
6861 fi
6862done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863done
Reid Spencera773bd52006-08-04 18:18:08 +00006864IFS=$as_save_IFS
6865
6866 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6867 ;;
6868esac
6869fi
6870DOTTY=$ac_cv_path_DOTTY
6871if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006872 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6873echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006877fi
6878
6879
6880if test "$DOTTY" != "echo dotty" ; then
6881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882cat >>confdefs.h <<\_ACEOF
6883#define HAVE_DOTTY 1
6884_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006885
Jeff Cohen28783c32007-01-12 18:22:38 +00006886 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006887 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6888 fi
6889
6890cat >>confdefs.h <<_ACEOF
6891#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6892_ACEOF
6893
6894fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006895# Extract the first word of "xdot.py", so it can be a program name with args.
6896set dummy xdot.py; ac_word=$2
6897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899if test "${ac_cv_path_XDOT_PY+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901else
6902 case $XDOT_PY in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6905 ;;
6906 *)
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918done
6919done
6920IFS=$as_save_IFS
6921
6922 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6923 ;;
6924esac
6925fi
6926XDOT_PY=$ac_cv_path_XDOT_PY
6927if test -n "$XDOT_PY"; then
6928 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6929echo "${ECHO_T}$XDOT_PY" >&6; }
6930else
6931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
6933fi
6934
6935
6936if test "$XDOT_PY" != "echo xdot.py" ; then
6937
6938cat >>confdefs.h <<\_ACEOF
6939#define HAVE_XDOT_PY 1
6940_ACEOF
6941
6942 if test "$llvm_cv_os_type" = "MingW" ; then
6943 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6944 fi
6945
6946cat >>confdefs.h <<_ACEOF
6947#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6948_ACEOF
6949
6950fi
Reid Spencera773bd52006-08-04 18:18:08 +00006951
Reid Spencera773bd52006-08-04 18:18:08 +00006952# Find a good install program. We prefer a C program (faster),
6953# so one script is as good as another. But avoid the broken or
6954# incompatible versions:
6955# SysV /etc/install, /usr/sbin/install
6956# SunOS /usr/etc/install
6957# IRIX /sbin/install
6958# AIX /bin/install
6959# AmigaOS /C/install, which installs bootblocks on floppy discs
6960# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6961# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6962# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6963# OS/2's system install, which has a completely different semantic
6964# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6966echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006967if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006968if test "${ac_cv_path_install+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006970else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976 # Account for people who put trailing slashes in PATH elements.
6977case $as_dir/ in
6978 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006979 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006980 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006981 /usr/ucb/* ) ;;
6982 *)
6983 # OSF1 and SCO ODT 3.0 have their own names for install.
6984 # Don't use installbsd from OSF since it installs stuff as root
6985 # by default.
6986 for ac_prog in ginstall scoinst install; do
6987 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006989 if test $ac_prog = install &&
6990 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6991 # AIX install. It has an incompatible calling convention.
6992 :
6993 elif test $ac_prog = install &&
6994 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6995 # program-specific install script used by HP pwplus--don't use.
6996 :
6997 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6999 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007000 fi
7001 fi
7002 done
7003 done
7004 ;;
7005esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006done
Reid Spencera773bd52006-08-04 18:18:08 +00007007IFS=$as_save_IFS
7008
7009
7010fi
7011 if test "${ac_cv_path_install+set}" = set; then
7012 INSTALL=$ac_cv_path_install
7013 else
7014 # As a last resort, use the slow shell script. Don't cache a
7015 # value for INSTALL within a source directory, because that will
7016 # break other packages using the cache if that directory is
7017 # removed, or if the value is a relative name.
7018 INSTALL=$ac_install_sh
7019 fi
7020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7022echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007023
7024# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7025# It thinks the first close brace ends the variable substitution.
7026test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7027
7028test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7029
7030test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7031
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007032case "$INSTALL" in
7033 [\\/$]* | ?:[\\/]* ) ;;
7034 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7035esac
Reid Spencera773bd52006-08-04 18:18:08 +00007036
7037# Extract the first word of "bzip2", so it can be a program name with args.
7038set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041if test "${ac_cv_path_BZIP2+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007043else
7044 case $BZIP2 in
7045 [\\/]* | ?:[\\/]*)
7046 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7047 ;;
7048 *)
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007056 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007058 break 2
7059 fi
7060done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061done
Reid Spencera773bd52006-08-04 18:18:08 +00007062IFS=$as_save_IFS
7063
Reid Spencera773bd52006-08-04 18:18:08 +00007064 ;;
7065esac
7066fi
7067BZIP2=$ac_cv_path_BZIP2
7068if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7070echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007072 { echo "$as_me:$LINENO: result: no" >&5
7073echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007074fi
7075
7076
mike-m68cb3192010-05-06 23:45:43 +00007077# Extract the first word of "cat", so it can be a program name with args.
7078set dummy cat; ac_word=$2
7079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081if test "${ac_cv_path_CAT+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084 case $CAT in
7085 [\\/]* | ?:[\\/]*)
7086 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7087 ;;
7088 *)
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100done
7101done
7102IFS=$as_save_IFS
7103
7104 ;;
7105esac
7106fi
7107CAT=$ac_cv_path_CAT
7108if test -n "$CAT"; then
7109 { echo "$as_me:$LINENO: result: $CAT" >&5
7110echo "${ECHO_T}$CAT" >&6; }
7111else
7112 { echo "$as_me:$LINENO: result: no" >&5
7113echo "${ECHO_T}no" >&6; }
7114fi
7115
7116
Reid Spencera773bd52006-08-04 18:18:08 +00007117# Extract the first word of "doxygen", so it can be a program name with args.
7118set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121if test "${ac_cv_path_DOXYGEN+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007123else
7124 case $DOXYGEN in
7125 [\\/]* | ?:[\\/]*)
7126 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7127 ;;
7128 *)
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007136 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007138 break 2
7139 fi
7140done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007141done
Reid Spencera773bd52006-08-04 18:18:08 +00007142IFS=$as_save_IFS
7143
Reid Spencera773bd52006-08-04 18:18:08 +00007144 ;;
7145esac
7146fi
7147DOXYGEN=$ac_cv_path_DOXYGEN
7148if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007149 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7150echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007151else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007152 { echo "$as_me:$LINENO: result: no" >&5
7153echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007154fi
7155
7156
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007157# Extract the first word of "groff", so it can be a program name with args.
7158set dummy groff; ac_word=$2
7159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161if test "${ac_cv_path_GROFF+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163else
7164 case $GROFF in
7165 [\\/]* | ?:[\\/]*)
7166 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7167 ;;
7168 *)
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180done
7181done
7182IFS=$as_save_IFS
7183
7184 ;;
7185esac
7186fi
7187GROFF=$ac_cv_path_GROFF
7188if test -n "$GROFF"; then
7189 { echo "$as_me:$LINENO: result: $GROFF" >&5
7190echo "${ECHO_T}$GROFF" >&6; }
7191else
7192 { echo "$as_me:$LINENO: result: no" >&5
7193echo "${ECHO_T}no" >&6; }
7194fi
7195
7196
Reid Spencera773bd52006-08-04 18:18:08 +00007197# Extract the first word of "gzip", so it can be a program name with args.
7198set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007199{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007201if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007203else
Eric Christopher031d3072010-12-10 01:31:51 +00007204 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007205 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007206 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007207 ;;
7208 *)
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007216 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007218 break 2
7219 fi
7220done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221done
Reid Spencera773bd52006-08-04 18:18:08 +00007222IFS=$as_save_IFS
7223
Reid Spencera773bd52006-08-04 18:18:08 +00007224 ;;
7225esac
7226fi
Eric Christopher031d3072010-12-10 01:31:51 +00007227GZIPBIN=$ac_cv_path_GZIPBIN
7228if test -n "$GZIPBIN"; then
7229 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7230echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007232 { echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007234fi
7235
7236
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007237# Extract the first word of "pdfroff", so it can be a program name with args.
7238set dummy pdfroff; ac_word=$2
7239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241if test "${ac_cv_path_PDFROFF+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
7244 case $PDFROFF in
7245 [\\/]* | ?:[\\/]*)
7246 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7247 ;;
7248 *)
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260done
7261done
7262IFS=$as_save_IFS
7263
7264 ;;
7265esac
7266fi
7267PDFROFF=$ac_cv_path_PDFROFF
7268if test -n "$PDFROFF"; then
7269 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7270echo "${ECHO_T}$PDFROFF" >&6; }
7271else
7272 { echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6; }
7274fi
7275
7276
Reid Spencera773bd52006-08-04 18:18:08 +00007277# Extract the first word of "zip", so it can be a program name with args.
7278set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281if test "${ac_cv_path_ZIP+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007283else
7284 case $ZIP in
7285 [\\/]* | ?:[\\/]*)
7286 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7287 ;;
7288 *)
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007296 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007298 break 2
7299 fi
7300done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007301done
Reid Spencera773bd52006-08-04 18:18:08 +00007302IFS=$as_save_IFS
7303
Reid Spencera773bd52006-08-04 18:18:08 +00007304 ;;
7305esac
7306fi
7307ZIP=$ac_cv_path_ZIP
7308if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007309 { echo "$as_me:$LINENO: result: $ZIP" >&5
7310echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007312 { echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007314fi
7315
7316
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007317for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007318do
7319 # Extract the first word of "$ac_prog", so it can be a program name with args.
7320set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323if test "${ac_cv_path_OCAMLC+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007325else
7326 case $OCAMLC in
7327 [\\/]* | ?:[\\/]*)
7328 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7329 ;;
7330 *)
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007338 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007340 break 2
7341 fi
7342done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007344IFS=$as_save_IFS
7345
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007346 ;;
7347esac
7348fi
7349OCAMLC=$ac_cv_path_OCAMLC
7350if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007351 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7352echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354 { echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007356fi
7357
7358
Gordon Henriksene7072162008-03-07 18:20:01 +00007359 test -n "$OCAMLC" && break
7360done
7361
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007362for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007363do
7364 # Extract the first word of "$ac_prog", so it can be a program name with args.
7365set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007370else
7371 case $OCAMLOPT in
7372 [\\/]* | ?:[\\/]*)
7373 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7374 ;;
7375 *)
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377for as_dir in $PATH
7378do
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007383 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007385 break 2
7386 fi
7387done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007389IFS=$as_save_IFS
7390
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007391 ;;
7392esac
7393fi
7394OCAMLOPT=$ac_cv_path_OCAMLOPT
7395if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007396 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7397echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399 { echo "$as_me:$LINENO: result: no" >&5
7400echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007401fi
7402
7403
Gordon Henriksene7072162008-03-07 18:20:01 +00007404 test -n "$OCAMLOPT" && break
7405done
7406
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007407for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007408do
7409 # Extract the first word of "$ac_prog", so it can be a program name with args.
7410set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007415else
7416 case $OCAMLDEP in
7417 [\\/]* | ?:[\\/]*)
7418 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7419 ;;
7420 *)
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422for as_dir in $PATH
7423do
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007428 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007430 break 2
7431 fi
7432done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007434IFS=$as_save_IFS
7435
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007436 ;;
7437esac
7438fi
7439OCAMLDEP=$ac_cv_path_OCAMLDEP
7440if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007441 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7442echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444 { echo "$as_me:$LINENO: result: no" >&5
7445echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007446fi
7447
7448
Gordon Henriksene7072162008-03-07 18:20:01 +00007449 test -n "$OCAMLDEP" && break
7450done
7451
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007452for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007453do
7454 # Extract the first word of "$ac_prog", so it can be a program name with args.
7455set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007460else
7461 case $OCAMLDOC in
7462 [\\/]* | ?:[\\/]*)
7463 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7464 ;;
7465 *)
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007473 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007475 break 2
7476 fi
7477done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007478done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007479IFS=$as_save_IFS
7480
7481 ;;
7482esac
7483fi
7484OCAMLDOC=$ac_cv_path_OCAMLDOC
7485if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7487echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007491fi
7492
7493
7494 test -n "$OCAMLDOC" && break
7495done
7496
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007497for ac_prog in gas as
7498do
7499 # Extract the first word of "$ac_prog", so it can be a program name with args.
7500set dummy $ac_prog; ac_word=$2
7501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503if test "${ac_cv_path_GAS+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506 case $GAS in
7507 [\\/]* | ?:[\\/]*)
7508 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7509 ;;
7510 *)
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522done
7523done
7524IFS=$as_save_IFS
7525
7526 ;;
7527esac
7528fi
7529GAS=$ac_cv_path_GAS
7530if test -n "$GAS"; then
7531 { echo "$as_me:$LINENO: result: $GAS" >&5
7532echo "${ECHO_T}$GAS" >&6; }
7533else
7534 { echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6; }
7536fi
7537
7538
7539 test -n "$GAS" && break
7540done
7541
Reid Spencera773bd52006-08-04 18:18:08 +00007542
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007543{ echo "$as_me:$LINENO: checking for linker version" >&5
7544echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7545if test "${llvm_cv_link_version+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548
7549 version_string="$(ld -v 2>&1 | head -1)"
7550
7551 # Check for ld64.
7552 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007553 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007554 else
7555 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7556 fi
7557
7558fi
7559{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7560echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7561
7562cat >>confdefs.h <<_ACEOF
7563#define HOST_LINK_VERSION "$llvm_cv_link_version"
7564_ACEOF
7565
7566
7567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7569echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7570if test "${llvm_cv_link_use_r+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007572else
7573 ac_ext=c
7574ac_cpp='$CPP $CPPFLAGS'
7575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578
7579 oldcflags="$CFLAGS"
7580 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581 cat >conftest.$ac_ext <<_ACEOF
7582/* confdefs.h. */
7583_ACEOF
7584cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007586/* end confdefs.h. */
7587
7588int
7589main ()
7590{
Dan Gohman39ed6782010-04-25 00:12:20 +00007591
Reid Spencera773bd52006-08-04 18:18:08 +00007592 ;
7593 return 0;
7594}
7595_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007596rm -f conftest.$ac_objext conftest$ac_exeext
7597if { (ac_try="$ac_link"
7598case "(($ac_try" in
7599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600 *) ac_try_echo=$ac_try;;
7601esac
7602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603 (eval "$ac_link") 2>conftest.er1
7604 ac_status=$?
7605 grep -v '^ *+' conftest.er1 >conftest.err
7606 rm -f conftest.er1
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7611 { (case "(($ac_try" in
7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7614esac
7615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_try") 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (case "(($ac_try" in
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7624esac
7625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_try") 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007630 llvm_cv_link_use_r=yes
7631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632 echo "$as_me: failed program was:" >&5
7633sed 's/^/| /' conftest.$ac_ext >&5
7634
7635 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007637
Bill Wendlingebcceee2009-04-18 11:20:33 +00007638rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007639 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007640 CFLAGS="$oldcflags"
7641 ac_ext=c
7642ac_cpp='$CPP $CPPFLAGS'
7643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646
7647
7648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007649{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7650echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007651if test "$llvm_cv_link_use_r" = yes ; then
7652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653cat >>confdefs.h <<\_ACEOF
7654#define HAVE_LINK_R 1
7655_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007656
7657 fi
7658
7659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007660{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7661echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7662if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007664else
7665 ac_ext=c
7666ac_cpp='$CPP $CPPFLAGS'
7667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670
7671 oldcflags="$CFLAGS"
7672 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673 cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h. */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007678/* end confdefs.h. */
7679
7680int
7681main ()
7682{
Dan Gohman39ed6782010-04-25 00:12:20 +00007683
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007684 ;
7685 return 0;
7686}
7687_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007688rm -f conftest.$ac_objext conftest$ac_exeext
7689if { (ac_try="$ac_link"
7690case "(($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_link") 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7703 { (case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706esac
7707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_try") 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest$ac_exeext'
7713 { (case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716esac
7717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_try") 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007722 llvm_cv_link_use_export_dynamic=yes
7723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724 echo "$as_me: failed program was:" >&5
7725sed 's/^/| /' conftest.$ac_ext >&5
7726
7727 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007729
Bill Wendlingebcceee2009-04-18 11:20:33 +00007730rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007731 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007732 CFLAGS="$oldcflags"
7733 ac_ext=c
7734ac_cpp='$CPP $CPPFLAGS'
7735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739
7740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7742echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007743if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745cat >>confdefs.h <<\_ACEOF
7746#define HAVE_LINK_EXPORT_DYNAMIC 1
7747_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007748
7749 fi
7750
7751
Dan Gohmanda612d62010-06-01 14:56:56 +00007752{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7753echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7754if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757 ac_ext=c
7758ac_cpp='$CPP $CPPFLAGS'
7759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763 oldcflags="$CFLAGS"
7764
7765 # The following code is from the autoconf manual,
7766 # "11.13: Limitations of Usual Tools".
7767 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7768 # Use mktemp if possible; otherwise fall back on mkdir,
7769 # with $RANDOM to make collisions less likely.
7770 : ${TMPDIR=/tmp}
7771 {
7772 tmp=`
7773 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7774 ` &&
7775 test -n "$tmp" && test -d "$tmp"
7776 } || {
7777 tmp=$TMPDIR/foo$$-$RANDOM
7778 (umask 077 && mkdir "$tmp")
7779 } || exit $?
7780
Dan Gohmanda612d62010-06-01 14:56:56 +00007781 echo "{" > "$tmp/export.map"
7782 echo " global: main;" >> "$tmp/export.map"
7783 echo " local: *;" >> "$tmp/export.map"
7784 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007785
Dan Gohmanda612d62010-06-01 14:56:56 +00007786 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007787 cat >conftest.$ac_ext <<_ACEOF
7788/* confdefs.h. */
7789_ACEOF
7790cat confdefs.h >>conftest.$ac_ext
7791cat >>conftest.$ac_ext <<_ACEOF
7792/* end confdefs.h. */
7793
7794int
7795main ()
7796{
Dan Gohman39ed6782010-04-25 00:12:20 +00007797
Dan Gohman391569c2010-04-16 22:59:06 +00007798 ;
7799 return 0;
7800}
7801_ACEOF
7802rm -f conftest.$ac_objext conftest$ac_exeext
7803if { (ac_try="$ac_link"
7804case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807esac
7808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809 (eval "$ac_link") 2>conftest.er1
7810 ac_status=$?
7811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7817 { (case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7820esac
7821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_try") 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830esac
7831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_try") 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007836 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007837else
7838 echo "$as_me: failed program was:" >&5
7839sed 's/^/| /' conftest.$ac_ext >&5
7840
Dan Gohman943005e2010-06-01 16:22:27 +00007841 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007842fi
7843
7844rm -f core conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007846 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007847 rmdir "$tmp"
7848 CFLAGS="$oldcflags"
7849 ac_ext=c
7850ac_cpp='$CPP $CPPFLAGS'
7851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854
7855
7856fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007857{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7858echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7859if test "$llvm_cv_link_use_version_script" = yes ; then
7860 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007861
7862 fi
7863
7864
Reid Spencera773bd52006-08-04 18:18:08 +00007865
7866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7868echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7869if test "${ac_cv_c_const+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872 cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h. */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007877/* end confdefs.h. */
7878
7879int
7880main ()
7881{
7882/* FIXME: Include the comments suggested by Paul. */
7883#ifndef __cplusplus
7884 /* Ultrix mips cc rejects this. */
7885 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007886 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007887 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888 char const *const *ccp;
7889 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007890 /* NEC SVR4.0.2 mips cc rejects this. */
7891 struct point {int x, y;};
7892 static struct point const zero = {0,0};
7893 /* AIX XL C 1.02.0.0 rejects this.
7894 It does not let you subtract one const X* pointer from another in
7895 an arm of an if-expression whose if-part is not a constant
7896 expression */
7897 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007898 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007899 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007900 ++ccp;
7901 p = (char**) ccp;
7902 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007903 { /* SCO 3.2v4 cc rejects this. */
7904 char *t;
7905 char const *s = 0 ? (char *) 0 : (char const *) 0;
7906
7907 *t++ = 0;
7908 if (s) return 0;
7909 }
7910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7911 int x[] = {25, 17};
7912 const int *foo = &x[0];
7913 ++foo;
7914 }
7915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7916 typedef const int *iptr;
7917 iptr p = 0;
7918 ++p;
7919 }
7920 { /* AIX XL C 1.02.0.0 rejects this saying
7921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7922 struct s { int j; const int *ap[3]; };
7923 struct s *b; b->j = 5;
7924 }
7925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7926 const int foo = 10;
7927 if (!foo) return 0;
7928 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007929 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007930#endif
7931
7932 ;
7933 return 0;
7934}
7935_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007936rm -f conftest.$ac_objext
7937if { (ac_try="$ac_compile"
7938case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954esac
7955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_try") 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest.$ac_objext'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007970 ac_cv_c_const=yes
7971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00007976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007977
Reid Spencera773bd52006-08-04 18:18:08 +00007978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007980{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7981echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007982if test $ac_cv_c_const = no; then
7983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007984cat >>confdefs.h <<\_ACEOF
7985#define const
7986_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007987
7988fi
7989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990
7991
7992
7993
7994
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007995ac_header_dirent=no
7996for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7998{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7999echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008003 cat >conftest.$ac_ext <<_ACEOF
8004/* confdefs.h. */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008008/* end confdefs.h. */
8009#include <sys/types.h>
8010#include <$ac_hdr>
8011
8012int
8013main ()
8014{
8015if ((DIR *) 0)
8016return 0;
8017 ;
8018 return 0;
8019}
8020_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008021rm -f conftest.$ac_objext
8022if { (ac_try="$ac_compile"
8023case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026esac
8027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039esac
8040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008055 eval "$as_ac_Header=yes"
8056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008057 echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008062
Reid Spencera773bd52006-08-04 18:18:08 +00008063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065ac_res=`eval echo '${'$as_ac_Header'}'`
8066 { echo "$as_me:$LINENO: result: $ac_res" >&5
8067echo "${ECHO_T}$ac_res" >&6; }
8068if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008069 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008070#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008071_ACEOF
8072
8073ac_header_dirent=$ac_hdr; break
8074fi
8075
8076done
8077# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8078if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008079 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8080echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8081if test "${ac_cv_search_opendir+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008083else
8084 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008085cat >conftest.$ac_ext <<_ACEOF
8086/* confdefs.h. */
8087_ACEOF
8088cat confdefs.h >>conftest.$ac_ext
8089cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008090/* end confdefs.h. */
8091
Reid Spencera773bd52006-08-04 18:18:08 +00008092/* Override any GCC internal prototype to avoid an error.
8093 Use char because int might match the return type of a GCC
8094 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008095#ifdef __cplusplus
8096extern "C"
8097#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008098char opendir ();
8099int
8100main ()
8101{
Reid Spencera773bd52006-08-04 18:18:08 +00008102return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008103 ;
8104 return 0;
8105}
8106_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008107for ac_lib in '' dir; do
8108 if test -z "$ac_lib"; then
8109 ac_res="none required"
8110 else
8111 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008113 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114 rm -f conftest.$ac_objext conftest$ac_exeext
8115if { (ac_try="$ac_link"
8116case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119esac
8120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_link") 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142esac
8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008148 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149else
8150 echo "$as_me: failed program was:" >&5
8151sed 's/^/| /' conftest.$ac_ext >&5
8152
8153
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155
Bill Wendlingebcceee2009-04-18 11:20:33 +00008156rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157 conftest$ac_exeext
8158 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008159 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008160fi
John Criswell7a73b802003-06-30 21:59:07 +00008161done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162if test "${ac_cv_search_opendir+set}" = set; then
8163 :
Reid Spencera773bd52006-08-04 18:18:08 +00008164else
8165 ac_cv_search_opendir=no
8166fi
8167rm conftest.$ac_ext
8168LIBS=$ac_func_search_save_LIBS
8169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008170{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8171echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008172ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008173if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008175
Reid Spencera773bd52006-08-04 18:18:08 +00008176fi
8177
8178else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008179 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8180echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8181if test "${ac_cv_search_opendir+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008183else
8184 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008185cat >conftest.$ac_ext <<_ACEOF
8186/* confdefs.h. */
8187_ACEOF
8188cat confdefs.h >>conftest.$ac_ext
8189cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008190/* end confdefs.h. */
8191
8192/* Override any GCC internal prototype to avoid an error.
8193 Use char because int might match the return type of a GCC
8194 builtin and then its argument prototype would still apply. */
8195#ifdef __cplusplus
8196extern "C"
8197#endif
8198char opendir ();
8199int
8200main ()
8201{
8202return opendir ();
8203 ;
8204 return 0;
8205}
8206_ACEOF
8207for ac_lib in '' x; do
8208 if test -z "$ac_lib"; then
8209 ac_res="none required"
8210 else
8211 ac_res=-l$ac_lib
8212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8213 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214 rm -f conftest.$ac_objext conftest$ac_exeext
8215if { (ac_try="$ac_link"
8216case "(($ac_try" in
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8219esac
8220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_link") 2>conftest.er1
8222 ac_status=$?
8223 grep -v '^ *+' conftest.er1 >conftest.err
8224 rm -f conftest.er1
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8229 { (case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8232esac
8233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_try") 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; } &&
8238 { ac_try='test -s conftest$ac_exeext'
8239 { (case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242esac
8243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_try") 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008248 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249else
8250 echo "$as_me: failed program was:" >&5
8251sed 's/^/| /' conftest.$ac_ext >&5
8252
8253
Reid Spencera773bd52006-08-04 18:18:08 +00008254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008255
Bill Wendlingebcceee2009-04-18 11:20:33 +00008256rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257 conftest$ac_exeext
8258 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008259 break
8260fi
8261done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008262if test "${ac_cv_search_opendir+set}" = set; then
8263 :
Reid Spencera773bd52006-08-04 18:18:08 +00008264else
8265 ac_cv_search_opendir=no
8266fi
8267rm conftest.$ac_ext
8268LIBS=$ac_func_search_save_LIBS
8269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008270{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8271echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008272ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008273if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8275
8276fi
8277
8278fi
John Criswell7a73b802003-06-30 21:59:07 +00008279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008280
John Criswell7a73b802003-06-30 21:59:07 +00008281for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008282do
8283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289fi
8290ac_res=`eval echo '${'$as_ac_Header'}'`
8291 { echo "$as_me:$LINENO: result: $ac_res" >&5
8292echo "${ECHO_T}$ac_res" >&6; }
8293else
8294 # Is the header compilable?
8295{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8297cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
8303$ac_includes_default
8304#include <$ac_header>
8305_ACEOF
8306rm -f conftest.$ac_objext
8307if { (ac_try="$ac_compile"
8308case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311esac
8312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_compile") 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8321 { (case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_try") 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; } &&
8330 { ac_try='test -s conftest.$ac_objext'
8331 { (case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334esac
8335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_try") 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_header_compiler=yes
8341else
8342 echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 ac_header_compiler=no
8346fi
8347
8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8350echo "${ECHO_T}$ac_header_compiler" >&6; }
8351
8352# Is the header present?
8353{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8355cat >conftest.$ac_ext <<_ACEOF
8356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
8361#include <$ac_header>
8362_ACEOF
8363if { (ac_try="$ac_cpp conftest.$ac_ext"
8364case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367esac
8368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } >/dev/null; then
8376 if test -s conftest.err; then
8377 ac_cpp_err=$ac_c_preproc_warn_flag
8378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8379 else
8380 ac_cpp_err=
8381 fi
8382else
8383 ac_cpp_err=yes
8384fi
8385if test -z "$ac_cpp_err"; then
8386 ac_header_preproc=yes
8387else
8388 echo "$as_me: failed program was:" >&5
8389sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 ac_header_preproc=no
8392fi
8393
8394rm -f conftest.err conftest.$ac_ext
8395{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8396echo "${ECHO_T}$ac_header_preproc" >&6; }
8397
8398# So? What about this header?
8399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8400 yes:no: )
8401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8405 ac_header_preproc=yes
8406 ;;
8407 no:yes:* )
8408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8415echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8420 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008421## ------------------------------------ ##
8422## Report this to http://llvm.org/bugs/ ##
8423## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424_ASBOX
8425 ) | sed "s/^/$as_me: WARNING: /" >&2
8426 ;;
8427esac
8428{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432else
8433 eval "$as_ac_Header=\$ac_header_preproc"
8434fi
8435ac_res=`eval echo '${'$as_ac_Header'}'`
8436 { echo "$as_me:$LINENO: result: $ac_res" >&5
8437echo "${ECHO_T}$ac_res" >&6; }
8438
8439fi
8440if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008441 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008443_ACEOF
8444
8445fi
8446
8447done
8448
Reid Spencera773bd52006-08-04 18:18:08 +00008449# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008450if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008451 enableval=$enable_ltdl_install;
8452fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008453
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455
8456
8457if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008458 INSTALL_LTDL_TRUE=
8459 INSTALL_LTDL_FALSE='#'
8460else
8461 INSTALL_LTDL_TRUE='#'
8462 INSTALL_LTDL_FALSE=
8463fi
8464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008465
8466
8467if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008468 CONVENIENCE_LTDL_TRUE=
8469 CONVENIENCE_LTDL_FALSE='#'
8470else
8471 CONVENIENCE_LTDL_TRUE='#'
8472 CONVENIENCE_LTDL_FALSE=
8473fi
8474
8475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008476{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8477echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008478library_names_spec=
8479libname_spec='lib$name'
8480soname_spec=
8481shrext_cmds=".so"
8482postinstall_cmds=
8483postuninstall_cmds=
8484finish_cmds=
8485finish_eval=
8486shlibpath_var=
8487shlibpath_overrides_runpath=unknown
8488version_type=none
8489dynamic_linker="$host_os ld.so"
8490sys_lib_dlsearch_path_spec="/lib /usr/lib"
8491if test "$GCC" = yes; then
8492 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8493 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8494 # if the path contains ";" then we assume it to be the separator
8495 # otherwise default to the standard path separator (i.e. ":") - it is
8496 # assumed that no part of a normal pathname contains ";" but that should
8497 # okay in the real world where ";" in dirpaths is itself problematic.
8498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8499 else
8500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8501 fi
8502else
8503 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8504fi
8505need_lib_prefix=unknown
8506hardcode_into_libs=no
8507
8508# when you set need_version to no, make sure it does not cause -set_version
8509# flags to be left without arguments
8510need_version=unknown
8511
8512case $host_os in
8513aix3*)
8514 version_type=linux
8515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8516 shlibpath_var=LIBPATH
8517
8518 # AIX 3 has no versioning support, so we append a major version to the name.
8519 soname_spec='${libname}${release}${shared_ext}$major'
8520 ;;
8521
8522aix4* | aix5*)
8523 version_type=linux
8524 need_lib_prefix=no
8525 need_version=no
8526 hardcode_into_libs=yes
8527 if test "$host_cpu" = ia64; then
8528 # AIX 5 supports IA64
8529 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8530 shlibpath_var=LD_LIBRARY_PATH
8531 else
8532 # With GCC up to 2.95.x, collect2 would create an import file
8533 # for dependence libraries. The import file would start with
8534 # the line `#! .'. This would cause the generated library to
8535 # depend on `.', always an invalid library. This was fixed in
8536 # development snapshots of GCC prior to 3.0.
8537 case $host_os in
8538 aix4 | aix4.[01] | aix4.[01].*)
8539 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8540 echo ' yes '
8541 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8542 :
8543 else
8544 can_build_shared=no
8545 fi
8546 ;;
8547 esac
8548 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8549 # soname into executable. Probably we can add versioning support to
8550 # collect2, so additional links can be useful in future.
8551 if test "$aix_use_runtimelinking" = yes; then
8552 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8553 # instead of lib<name>.a to let people know that these are not
8554 # typical AIX shared libraries.
8555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556 else
8557 # We preserve .a as extension for shared libraries through AIX4.2
8558 # and later when we are not doing run time linking.
8559 library_names_spec='${libname}${release}.a $libname.a'
8560 soname_spec='${libname}${release}${shared_ext}$major'
8561 fi
8562 shlibpath_var=LIBPATH
8563 fi
8564 ;;
8565
8566amigaos*)
8567 library_names_spec='$libname.ixlibrary $libname.a'
8568 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8569 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8570 ;;
8571
8572beos*)
8573 library_names_spec='${libname}${shared_ext}'
8574 dynamic_linker="$host_os ld.so"
8575 shlibpath_var=LIBRARY_PATH
8576 ;;
8577
8578bsdi[45]*)
8579 version_type=linux
8580 need_version=no
8581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8582 soname_spec='${libname}${release}${shared_ext}$major'
8583 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8584 shlibpath_var=LD_LIBRARY_PATH
8585 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8586 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8587 # the default ld.so.conf also contains /usr/contrib/lib and
8588 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8589 # libtool to hard-code these into programs
8590 ;;
8591
8592cygwin* | mingw* | pw32*)
8593 version_type=windows
8594 shrext_cmds=".dll"
8595 need_version=no
8596 need_lib_prefix=no
8597
8598 case $GCC,$host_os in
8599 yes,cygwin* | yes,mingw* | yes,pw32*)
8600 library_names_spec='$libname.dll.a'
8601 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8602 postinstall_cmds='base_file=`basename \${file}`~
8603 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8604 dldir=$destdir/`dirname \$dlpath`~
8605 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008606 $install_prog $dir/$dlname \$dldir/$dlname~
8607 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8609 dlpath=$dir/\$dldll~
8610 $rm \$dlpath'
8611 shlibpath_overrides_runpath=yes
8612
8613 case $host_os in
8614 cygwin*)
8615 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8616 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8617 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8618 ;;
8619 mingw*)
8620 # MinGW DLLs use traditional 'lib' prefix
8621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8622 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8623 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8624 # It is most probably a Windows format PATH printed by
8625 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8626 # path with ; separators, and with drive letters. We can handle the
8627 # drive letters (cygwin fileutils understands them), so leave them,
8628 # especially as we might pass files found there to a mingw objdump,
8629 # which wouldn't understand a cygwinified path. Ahh.
8630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8631 else
8632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8633 fi
8634 ;;
8635 pw32*)
8636 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008637 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008638 ;;
8639 esac
8640 ;;
8641
8642 *)
8643 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8644 ;;
8645 esac
8646 dynamic_linker='Win32 ld.exe'
8647 # FIXME: first we should search . and the directory the executable is in
8648 shlibpath_var=PATH
8649 ;;
8650
8651darwin* | rhapsody*)
8652 dynamic_linker="$host_os dyld"
8653 version_type=darwin
8654 need_lib_prefix=no
8655 need_version=no
8656 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8657 soname_spec='${libname}${release}${major}$shared_ext'
8658 shlibpath_overrides_runpath=yes
8659 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008660 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008661 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8662 if test "$GCC" = yes; then
8663 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8664 else
8665 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8666 fi
8667 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8668 ;;
8669
8670dgux*)
8671 version_type=linux
8672 need_lib_prefix=no
8673 need_version=no
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8675 soname_spec='${libname}${release}${shared_ext}$major'
8676 shlibpath_var=LD_LIBRARY_PATH
8677 ;;
8678
Eric Christopher360fa9a2011-10-26 00:42:12 +00008679freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008680 dynamic_linker=no
8681 ;;
8682
8683kfreebsd*-gnu)
8684 version_type=linux
8685 need_lib_prefix=no
8686 need_version=no
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8688 soname_spec='${libname}${release}${shared_ext}$major'
8689 shlibpath_var=LD_LIBRARY_PATH
8690 shlibpath_overrides_runpath=no
8691 hardcode_into_libs=yes
8692 dynamic_linker='GNU ld.so'
8693 ;;
8694
Reid Spencera773bd52006-08-04 18:18:08 +00008695freebsd* | dragonfly*)
8696 # DragonFly does not have aout. When/if they implement a new
8697 # versioning mechanism, adjust this.
8698 if test -x /usr/bin/objformat; then
8699 objformat=`/usr/bin/objformat`
8700 else
8701 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008702 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008703 *) objformat=elf ;;
8704 esac
8705 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008706 version_type=freebsd-$objformat
8707 case $version_type in
8708 freebsd-elf*)
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8710 need_version=no
8711 need_lib_prefix=no
8712 ;;
8713 freebsd-*)
8714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8715 need_version=yes
8716 ;;
8717 esac
8718 shlibpath_var=LD_LIBRARY_PATH
8719 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008720 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008721 shlibpath_overrides_runpath=yes
8722 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008723 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008724 shlibpath_overrides_runpath=yes
8725 hardcode_into_libs=yes
8726 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008727 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8728 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008729 shlibpath_overrides_runpath=no
8730 hardcode_into_libs=yes
8731 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008732 freebsd*) # from 4.6 on
8733 shlibpath_overrides_runpath=yes
8734 hardcode_into_libs=yes
8735 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008736 esac
8737 ;;
8738
8739gnu*)
8740 version_type=linux
8741 need_lib_prefix=no
8742 need_version=no
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 hardcode_into_libs=yes
8747 ;;
8748
8749hpux9* | hpux10* | hpux11*)
8750 # Give a soname corresponding to the major version so that dld.sl refuses to
8751 # link against other versions.
8752 version_type=sunos
8753 need_lib_prefix=no
8754 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008755 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008756 ia64*)
8757 shrext_cmds='.so'
8758 hardcode_into_libs=yes
8759 dynamic_linker="$host_os dld.so"
8760 shlibpath_var=LD_LIBRARY_PATH
8761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8763 soname_spec='${libname}${release}${shared_ext}$major'
8764 if test "X$HPUX_IA64_MODE" = X32; then
8765 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8766 else
8767 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8768 fi
8769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8770 ;;
8771 hppa*64*)
8772 shrext_cmds='.sl'
8773 hardcode_into_libs=yes
8774 dynamic_linker="$host_os dld.sl"
8775 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8781 ;;
8782 *)
8783 shrext_cmds='.sl'
8784 dynamic_linker="$host_os dld.sl"
8785 shlibpath_var=SHLIB_PATH
8786 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 ;;
8790 esac
8791 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8792 postinstall_cmds='chmod 555 $lib'
8793 ;;
8794
Reid Spencera773bd52006-08-04 18:18:08 +00008795interix3*)
8796 version_type=linux
8797 need_lib_prefix=no
8798 need_version=no
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8802 shlibpath_var=LD_LIBRARY_PATH
8803 shlibpath_overrides_runpath=no
8804 hardcode_into_libs=yes
8805 ;;
8806
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008807irix5* | irix6* | nonstopux*)
8808 case $host_os in
8809 nonstopux*) version_type=nonstopux ;;
8810 *)
8811 if test "$lt_cv_prog_gnu_ld" = yes; then
8812 version_type=linux
8813 else
8814 version_type=irix
8815 fi ;;
8816 esac
8817 need_lib_prefix=no
8818 need_version=no
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8821 case $host_os in
8822 irix5* | nonstopux*)
8823 libsuff= shlibsuff=
8824 ;;
8825 *)
8826 case $LD in # libtool.m4 will add one of these switches to LD
8827 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8828 libsuff= shlibsuff= libmagic=32-bit;;
8829 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8830 libsuff=32 shlibsuff=N32 libmagic=N32;;
8831 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8832 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8833 *) libsuff= shlibsuff= libmagic=never-match;;
8834 esac
8835 ;;
8836 esac
8837 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8838 shlibpath_overrides_runpath=no
8839 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8840 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8841 hardcode_into_libs=yes
8842 ;;
8843
8844# No shared lib support for Linux oldld, aout, or coff.
8845linux*oldld* | linux*aout* | linux*coff*)
8846 dynamic_linker=no
8847 ;;
8848
8849# This must be Linux ELF.
8850linux*)
8851 version_type=linux
8852 need_lib_prefix=no
8853 need_version=no
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 shlibpath_overrides_runpath=no
8859 # This implies no fast_install, which is unacceptable.
8860 # Some rework will be needed to allow for fast_install
8861 # before this can be enabled.
8862 hardcode_into_libs=yes
8863
8864 # Append ld.so.conf contents to the search path
8865 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008866 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008867 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8868 fi
8869
8870 # We used to test for /lib/ld.so.1 and disable shared libraries on
8871 # powerpc, because MkLinux only supported shared libraries with the
8872 # GNU dynamic linker. Since this was broken with cross compilers,
8873 # most powerpc-linux boxes support dynamic linking these days and
8874 # people can always --disable-shared, the test was removed, and we
8875 # assume the GNU/Linux dynamic linker is in use.
8876 dynamic_linker='GNU/Linux ld.so'
8877 ;;
8878
8879knetbsd*-gnu)
8880 version_type=linux
8881 need_lib_prefix=no
8882 need_version=no
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 shlibpath_var=LD_LIBRARY_PATH
8886 shlibpath_overrides_runpath=no
8887 hardcode_into_libs=yes
8888 dynamic_linker='GNU ld.so'
8889 ;;
8890
8891netbsd*)
8892 version_type=sunos
8893 need_lib_prefix=no
8894 need_version=no
8895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8898 dynamic_linker='NetBSD (a.out) ld.so'
8899 else
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 dynamic_linker='NetBSD ld.elf_so'
8903 fi
8904 shlibpath_var=LD_LIBRARY_PATH
8905 shlibpath_overrides_runpath=yes
8906 hardcode_into_libs=yes
8907 ;;
8908
8909newsos6)
8910 version_type=linux
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912 shlibpath_var=LD_LIBRARY_PATH
8913 shlibpath_overrides_runpath=yes
8914 ;;
8915
8916nto-qnx*)
8917 version_type=linux
8918 need_lib_prefix=no
8919 need_version=no
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=yes
8924 ;;
8925
8926openbsd*)
8927 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008928 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008929 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008930 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8931 case $host_os in
8932 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8933 *) need_version=no ;;
8934 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8939 case $host_os in
8940 openbsd2.[89] | openbsd2.[89].*)
8941 shlibpath_overrides_runpath=no
8942 ;;
8943 *)
8944 shlibpath_overrides_runpath=yes
8945 ;;
8946 esac
8947 else
8948 shlibpath_overrides_runpath=yes
8949 fi
8950 ;;
8951
8952os2*)
8953 libname_spec='$name'
8954 shrext_cmds=".dll"
8955 need_lib_prefix=no
8956 library_names_spec='$libname${shared_ext} $libname.a'
8957 dynamic_linker='OS/2 ld.exe'
8958 shlibpath_var=LIBPATH
8959 ;;
8960
8961osf3* | osf4* | osf5*)
8962 version_type=osf
8963 need_lib_prefix=no
8964 need_version=no
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 shlibpath_var=LD_LIBRARY_PATH
8968 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8969 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8970 ;;
8971
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008972solaris*)
8973 version_type=linux
8974 need_lib_prefix=no
8975 need_version=no
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8980 hardcode_into_libs=yes
8981 # ldd complains unless libraries are executable
8982 postinstall_cmds='chmod +x $lib'
8983 ;;
8984
8985sunos4*)
8986 version_type=sunos
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8988 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8991 if test "$with_gnu_ld" = yes; then
8992 need_lib_prefix=no
8993 fi
8994 need_version=yes
8995 ;;
8996
Reid Spencera773bd52006-08-04 18:18:08 +00008997sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008998 version_type=linux
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 case $host_vendor in
9003 sni)
9004 shlibpath_overrides_runpath=no
9005 need_lib_prefix=no
9006 export_dynamic_flag_spec='${wl}-Blargedynsym'
9007 runpath_var=LD_RUN_PATH
9008 ;;
9009 siemens)
9010 need_lib_prefix=no
9011 ;;
9012 motorola)
9013 need_lib_prefix=no
9014 need_version=no
9015 shlibpath_overrides_runpath=no
9016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9017 ;;
9018 esac
9019 ;;
9020
9021sysv4*MP*)
9022 if test -d /usr/nec ;then
9023 version_type=linux
9024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9025 soname_spec='$libname${shared_ext}.$major'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 fi
9028 ;;
9029
Reid Spencera773bd52006-08-04 18:18:08 +00009030sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9031 version_type=freebsd-elf
9032 need_lib_prefix=no
9033 need_version=no
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 hardcode_into_libs=yes
9038 if test "$with_gnu_ld" = yes; then
9039 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9040 shlibpath_overrides_runpath=no
9041 else
9042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9043 shlibpath_overrides_runpath=yes
9044 case $host_os in
9045 sco3.2v5*)
9046 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9047 ;;
9048 esac
9049 fi
9050 sys_lib_dlsearch_path_spec='/usr/lib'
9051 ;;
9052
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009053uts4*)
9054 version_type=linux
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 ;;
9059
9060*)
9061 dynamic_linker=no
9062 ;;
9063esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009064{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9065echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009066test "$dynamic_linker" = no && can_build_shared=no
9067
Reid Spencera773bd52006-08-04 18:18:08 +00009068variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9069if test "$GCC" = yes; then
9070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9071fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009072
Reid Spencera773bd52006-08-04 18:18:08 +00009073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009074{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9075echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9076if test "${libltdl_cv_shlibext+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009078else
9079
9080module=yes
9081eval libltdl_cv_shlibext=$shrext_cmds
9082
9083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009084{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9085echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009086if test -n "$libltdl_cv_shlibext"; then
9087
9088cat >>confdefs.h <<_ACEOF
9089#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9090_ACEOF
9091
9092fi
9093
9094
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009095{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9096echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9097if test "${libltdl_cv_shlibpath_var+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009099else
9100 libltdl_cv_shlibpath_var="$shlibpath_var"
9101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009102{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9103echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009104if test -n "$libltdl_cv_shlibpath_var"; then
9105
9106cat >>confdefs.h <<_ACEOF
9107#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9108_ACEOF
9109
9110fi
9111
9112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009113{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9114echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9115if test "${libltdl_cv_sys_search_path+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009117else
9118 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009120{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9121echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009122if test -n "$libltdl_cv_sys_search_path"; then
9123 sys_search_path=
9124 for dir in $libltdl_cv_sys_search_path; do
9125 if test -z "$sys_search_path"; then
9126 sys_search_path="$dir"
9127 else
9128 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9129 fi
9130 done
9131
9132cat >>confdefs.h <<_ACEOF
9133#define LTDL_SYSSEARCHPATH "$sys_search_path"
9134_ACEOF
9135
9136fi
9137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009138{ echo "$as_me:$LINENO: checking for objdir" >&5
9139echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9140if test "${libltdl_cv_objdir+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009142else
9143 libltdl_cv_objdir="$objdir"
9144 if test -n "$objdir"; then
9145 :
9146 else
9147 rm -f .libs 2>/dev/null
9148 mkdir .libs 2>/dev/null
9149 if test -d .libs; then
9150 libltdl_cv_objdir=.libs
9151 else
9152 # MS-DOS does not allow filenames that begin with a dot.
9153 libltdl_cv_objdir=_libs
9154 fi
9155 rmdir .libs 2>/dev/null
9156 fi
9157
9158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009159{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9160echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009161
9162cat >>confdefs.h <<_ACEOF
9163#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9164_ACEOF
9165
9166
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009167
9168
9169
9170
9171# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009172{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9173echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9174if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009176else
9177
9178# These are sane defaults that work on at least a few old systems.
9179# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9180
9181# Character class describing NM global symbol codes.
9182symcode='[BCDEGRST]'
9183
9184# Regexp to match symbols that can be accessed directly from C.
9185sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9186
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009187# Transform an extracted symbol line into a proper C declaration
9188lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9189
9190# Transform an extracted symbol line into symbol name and symbol address
9191lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9192
9193# Define system-specific variables.
9194case $host_os in
9195aix*)
9196 symcode='[BCDT]'
9197 ;;
9198cygwin* | mingw* | pw32*)
9199 symcode='[ABCDGISTW]'
9200 ;;
9201hpux*) # Its linker distinguishes data from code symbols
9202 if test "$host_cpu" = ia64; then
9203 symcode='[ABCDEGRST]'
9204 fi
9205 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9206 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9207 ;;
9208linux*)
9209 if test "$host_cpu" = ia64; then
9210 symcode='[ABCDGIRSTW]'
9211 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9212 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9213 fi
9214 ;;
9215irix* | nonstopux*)
9216 symcode='[BCDEGRST]'
9217 ;;
9218osf*)
9219 symcode='[BCDEGQRST]'
9220 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009221solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009222 symcode='[BDRT]'
9223 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009224sco3.2v5*)
9225 symcode='[DT]'
9226 ;;
9227sysv4.2uw2*)
9228 symcode='[DT]'
9229 ;;
9230sysv5* | sco5v6* | unixware* | OpenUNIX*)
9231 symcode='[ABDT]'
9232 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009233sysv4)
9234 symcode='[DFNSTU]'
9235 ;;
9236esac
9237
9238# Handle CRLF in mingw tool chain
9239opt_cr=
9240case $build_os in
9241mingw*)
9242 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9243 ;;
9244esac
9245
9246# If we're using GNU nm, then use its standard symbol codes.
9247case `$NM -V 2>&1` in
9248*GNU* | *'with BFD'*)
9249 symcode='[ABCDGIRSTW]' ;;
9250esac
9251
9252# Try without a prefix undercore, then with it.
9253for ac_symprfx in "" "_"; do
9254
Reid Spencera773bd52006-08-04 18:18:08 +00009255 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9256 symxfrm="\\1 $ac_symprfx\\2 \\2"
9257
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009259 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009260
9261 # Check to see that the pipe works correctly.
9262 pipe_works=no
9263
9264 rm -f conftest*
9265 cat > conftest.$ac_ext <<EOF
9266#ifdef __cplusplus
9267extern "C" {
9268#endif
9269char nm_test_var;
9270void nm_test_func(){}
9271#ifdef __cplusplus
9272}
9273#endif
9274int main(){nm_test_var='a';nm_test_func();return(0);}
9275EOF
9276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009278 (eval $ac_compile) 2>&5
9279 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282 # Now try to grab the symbols.
9283 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009284 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9286 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009289 # Try sorting and uniquifying the output.
9290 if sort "$nlist" | uniq > "$nlist"T; then
9291 mv -f "$nlist"T "$nlist"
9292 else
9293 rm -f "$nlist"T
9294 fi
9295
9296 # Make sure that we snagged all the symbols we need.
9297 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9298 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9299 cat <<EOF > conftest.$ac_ext
9300#ifdef __cplusplus
9301extern "C" {
9302#endif
9303
9304EOF
9305 # Now generate the symbol file.
9306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9307
9308 cat <<EOF >> conftest.$ac_ext
9309#if defined (__STDC__) && __STDC__
9310# define lt_ptr_t void *
9311#else
9312# define lt_ptr_t char *
9313# define const
9314#endif
9315
9316/* The mapping between symbol names and symbols. */
9317const struct {
9318 const char *name;
9319 lt_ptr_t address;
9320}
9321lt_preloaded_symbols[] =
9322{
9323EOF
9324 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9325 cat <<\EOF >> conftest.$ac_ext
9326 {0, (lt_ptr_t) 0}
9327};
9328
9329#ifdef __cplusplus
9330}
9331#endif
9332EOF
9333 # Now try linking the two files.
9334 mv conftest.$ac_objext conftstm.$ac_objext
9335 lt_save_LIBS="$LIBS"
9336 lt_save_CFLAGS="$CFLAGS"
9337 LIBS="conftstm.$ac_objext"
9338 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009340 (eval $ac_link) 2>&5
9341 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344 pipe_works=yes
9345 fi
9346 LIBS="$lt_save_LIBS"
9347 CFLAGS="$lt_save_CFLAGS"
9348 else
9349 echo "cannot find nm_test_func in $nlist" >&5
9350 fi
9351 else
9352 echo "cannot find nm_test_var in $nlist" >&5
9353 fi
9354 else
9355 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9356 fi
9357 else
9358 echo "$progname: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9360 fi
9361 rm -f conftest* conftst*
9362
9363 # Do not use the global_symbol_pipe unless it works.
9364 if test "$pipe_works" = yes; then
9365 break
9366 else
9367 lt_cv_sys_global_symbol_pipe=
9368 fi
9369done
9370
9371fi
9372
9373if test -z "$lt_cv_sys_global_symbol_pipe"; then
9374 lt_cv_sys_global_symbol_to_cdecl=
9375fi
9376if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009377 { echo "$as_me:$LINENO: result: failed" >&5
9378echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009380 { echo "$as_me:$LINENO: result: ok" >&5
9381echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382fi
9383
9384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009385{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9386echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9387if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009389else
9390 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9391 libltdl_cv_preloaded_symbols=yes
9392 else
9393 libltdl_cv_preloaded_symbols=no
9394 fi
9395
9396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009397{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9398echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009401cat >>confdefs.h <<\_ACEOF
9402#define HAVE_PRELOADED_SYMBOLS 1
9403_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009404
9405fi
9406
9407LIBADD_DL=
9408
9409ac_ext=c
9410ac_cpp='$CPP $CPPFLAGS'
9411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9413ac_compiler_gnu=$ac_cv_c_compiler_gnu
9414
9415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009416{ echo "$as_me:$LINENO: checking for shl_load" >&5
9417echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9418if test "${ac_cv_func_shl_load+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420else
9421 cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h. */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
9426/* end confdefs.h. */
9427/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9429#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009431/* System header to define __stub macros and hopefully few prototypes,
9432 which can conflict with char shl_load (); below.
9433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9434 <limits.h> exists even on freestanding compilers. */
9435
9436#ifdef __STDC__
9437# include <limits.h>
9438#else
9439# include <assert.h>
9440#endif
9441
9442#undef shl_load
9443
9444/* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9447#ifdef __cplusplus
9448extern "C"
9449#endif
9450char shl_load ();
9451/* The GNU C library defines this for functions which it implements
9452 to always fail with ENOSYS. Some functions are actually named
9453 something starting with __ and the normal name is an alias. */
9454#if defined __stub_shl_load || defined __stub___shl_load
9455choke me
9456#endif
9457
9458int
9459main ()
9460{
9461return shl_load ();
9462 ;
9463 return 0;
9464}
9465_ACEOF
9466rm -f conftest.$ac_objext conftest$ac_exeext
9467if { (ac_try="$ac_link"
9468case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9471esac
9472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_link") 2>conftest.er1
9474 ac_status=$?
9475 grep -v '^ *+' conftest.er1 >conftest.err
9476 rm -f conftest.er1
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } &&
9480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9481 { (case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484esac
9485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_try") 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest$ac_exeext'
9491 { (case "(($ac_try" in
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9494esac
9495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_try") 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_cv_func_shl_load=yes
9501else
9502 echo "$as_me: failed program was:" >&5
9503sed 's/^/| /' conftest.$ac_ext >&5
9504
9505 ac_cv_func_shl_load=no
9506fi
9507
9508rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510fi
9511{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9512echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9513if test $ac_cv_func_shl_load = yes; then
9514
9515cat >>confdefs.h <<\_ACEOF
9516#define HAVE_SHL_LOAD 1
9517_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518
9519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009520 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9521echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9522if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524else
9525 ac_check_lib_save_LIBS=$LIBS
9526LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009527cat >conftest.$ac_ext <<_ACEOF
9528/* confdefs.h. */
9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009532/* end confdefs.h. */
9533
Reid Spencera773bd52006-08-04 18:18:08 +00009534/* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537#ifdef __cplusplus
9538extern "C"
9539#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009540char shl_load ();
9541int
9542main ()
9543{
Reid Spencera773bd52006-08-04 18:18:08 +00009544return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545 ;
9546 return 0;
9547}
9548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009549rm -f conftest.$ac_objext conftest$ac_exeext
9550if { (ac_try="$ac_link"
9551case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554esac
9555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9564 { (case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567esac
9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_try") 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577esac
9578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_try") 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009583 ac_cv_lib_dld_shl_load=yes
9584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009585 echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009589fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009590
Bill Wendlingebcceee2009-04-18 11:20:33 +00009591rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009592 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009593LIBS=$ac_check_lib_save_LIBS
9594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009595{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9596echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9597if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009599cat >>confdefs.h <<\_ACEOF
9600#define HAVE_SHL_LOAD 1
9601_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602
9603 LIBADD_DL="$LIBADD_DL -ldld"
9604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009605 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9606echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9607if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609else
9610 ac_check_lib_save_LIBS=$LIBS
9611LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009612cat >conftest.$ac_ext <<_ACEOF
9613/* confdefs.h. */
9614_ACEOF
9615cat confdefs.h >>conftest.$ac_ext
9616cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617/* end confdefs.h. */
9618
Reid Spencera773bd52006-08-04 18:18:08 +00009619/* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622#ifdef __cplusplus
9623extern "C"
9624#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625char dlopen ();
9626int
9627main ()
9628{
Reid Spencera773bd52006-08-04 18:18:08 +00009629return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630 ;
9631 return 0;
9632}
9633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009634rm -f conftest.$ac_objext conftest$ac_exeext
9635if { (ac_try="$ac_link"
9636case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639esac
9640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652esac
9653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest$ac_exeext'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668 ac_cv_lib_dl_dlopen=yes
9669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009670 echo "$as_me: failed program was:" >&5
9671sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009675
Bill Wendlingebcceee2009-04-18 11:20:33 +00009676rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009677 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009678LIBS=$ac_check_lib_save_LIBS
9679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009680{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9681echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9682if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009684cat >>confdefs.h <<\_ACEOF
9685#define HAVE_LIBDL 1
9686_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009687
9688 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009690 cat >conftest.$ac_ext <<_ACEOF
9691/* confdefs.h. */
9692_ACEOF
9693cat confdefs.h >>conftest.$ac_ext
9694cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695/* end confdefs.h. */
9696#if HAVE_DLFCN_H
9697# include <dlfcn.h>
9698#endif
9699
9700int
9701main ()
9702{
9703dlopen(0, 0);
9704 ;
9705 return 0;
9706}
9707_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009708rm -f conftest.$ac_objext conftest$ac_exeext
9709if { (ac_try="$ac_link"
9710case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713esac
9714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_link") 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726esac
9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
9733 { (case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9736esac
9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_try") 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009743cat >>confdefs.h <<\_ACEOF
9744#define HAVE_LIBDL 1
9745_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009746 libltdl_cv_func_dlopen="yes"
9747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009748 echo "$as_me: failed program was:" >&5
9749sed 's/^/| /' conftest.$ac_ext >&5
9750
9751 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9752echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9753if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755else
9756 ac_check_lib_save_LIBS=$LIBS
9757LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009758cat >conftest.$ac_ext <<_ACEOF
9759/* confdefs.h. */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763/* end confdefs.h. */
9764
Reid Spencera773bd52006-08-04 18:18:08 +00009765/* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768#ifdef __cplusplus
9769extern "C"
9770#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009771char dlopen ();
9772int
9773main ()
9774{
Reid Spencera773bd52006-08-04 18:18:08 +00009775return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776 ;
9777 return 0;
9778}
9779_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009780rm -f conftest.$ac_objext conftest$ac_exeext
9781if { (ac_try="$ac_link"
9782case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785esac
9786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798esac
9799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814 ac_cv_lib_svld_dlopen=yes
9815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009816 echo "$as_me: failed program was:" >&5
9817sed 's/^/| /' conftest.$ac_ext >&5
9818
9819 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009821
Bill Wendlingebcceee2009-04-18 11:20:33 +00009822rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009823 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824LIBS=$ac_check_lib_save_LIBS
9825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009826{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9827echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9828if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009830cat >>confdefs.h <<\_ACEOF
9831#define HAVE_LIBDL 1
9832_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833
9834 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009836 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9837echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9838if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840else
9841 ac_check_lib_save_LIBS=$LIBS
9842LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009843cat >conftest.$ac_ext <<_ACEOF
9844/* confdefs.h. */
9845_ACEOF
9846cat confdefs.h >>conftest.$ac_ext
9847cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848/* end confdefs.h. */
9849
Reid Spencera773bd52006-08-04 18:18:08 +00009850/* Override any GCC internal prototype to avoid an error.
9851 Use char because int might match the return type of a GCC
9852 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853#ifdef __cplusplus
9854extern "C"
9855#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856char dld_link ();
9857int
9858main ()
9859{
Reid Spencera773bd52006-08-04 18:18:08 +00009860return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861 ;
9862 return 0;
9863}
9864_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009865rm -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 Spencer2bc7bd52004-11-29 12:29:58 +00009899 ac_cv_lib_dld_dld_link=yes
9900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009901 echo "$as_me: failed program was:" >&5
9902sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009906
Bill Wendlingebcceee2009-04-18 11:20:33 +00009907rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009908 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909LIBS=$ac_check_lib_save_LIBS
9910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009911{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9912echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9913if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009915cat >>confdefs.h <<\_ACEOF
9916#define HAVE_DLD 1
9917_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918
9919 LIBADD_DL="$LIBADD_DL -ldld"
9920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009921 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9922echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9923if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926 cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h. */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h. */
9932/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9934#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009936/* System header to define __stub macros and hopefully few prototypes,
9937 which can conflict with char _dyld_func_lookup (); below.
9938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9939 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009941#ifdef __STDC__
9942# include <limits.h>
9943#else
9944# include <assert.h>
9945#endif
9946
9947#undef _dyld_func_lookup
9948
9949/* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9952#ifdef __cplusplus
9953extern "C"
9954#endif
9955char _dyld_func_lookup ();
9956/* The GNU C library defines this for functions which it implements
9957 to always fail with ENOSYS. Some functions are actually named
9958 something starting with __ and the normal name is an alias. */
9959#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9960choke me
9961#endif
9962
9963int
9964main ()
9965{
9966return _dyld_func_lookup ();
9967 ;
9968 return 0;
9969}
9970_ACEOF
9971rm -f conftest.$ac_objext conftest$ac_exeext
9972if { (ac_try="$ac_link"
9973case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_link") 2>conftest.er1
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989esac
9990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest$ac_exeext'
9996 { (case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
9999esac
10000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_try") 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_cv_func__dyld_func_lookup=yes
10006else
10007 echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011fi
Reid Spencera773bd52006-08-04 18:18:08 +000010012
Bill Wendlingebcceee2009-04-18 11:20:33 +000010013rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010014 conftest$ac_exeext conftest.$ac_ext
10015fi
10016{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10017echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10018if test $ac_cv_func__dyld_func_lookup = yes; then
10019
10020cat >>confdefs.h <<\_ACEOF
10021#define HAVE_DYLD 1
10022_ACEOF
10023
10024fi
10025
10026
10027fi
10028
10029
10030fi
10031
10032
10033fi
10034
10035rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037
10038fi
10039
10040
10041fi
10042
10043
10044fi
10045
10046
10047if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10048then
10049 lt_save_LIBS="$LIBS"
10050 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010051
10052for ac_func in dlerror
10053do
10054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10055{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10057if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060 cat >conftest.$ac_ext <<_ACEOF
10061/* confdefs.h. */
10062_ACEOF
10063cat confdefs.h >>conftest.$ac_ext
10064cat >>conftest.$ac_ext <<_ACEOF
10065/* end confdefs.h. */
10066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10068#define $ac_func innocuous_$ac_func
10069
10070/* System header to define __stub macros and hopefully few prototypes,
10071 which can conflict with char $ac_func (); below.
10072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10073 <limits.h> exists even on freestanding compilers. */
10074
10075#ifdef __STDC__
10076# include <limits.h>
10077#else
10078# include <assert.h>
10079#endif
10080
10081#undef $ac_func
10082
10083/* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10086#ifdef __cplusplus
10087extern "C"
10088#endif
10089char $ac_func ();
10090/* The GNU C library defines this for functions which it implements
10091 to always fail with ENOSYS. Some functions are actually named
10092 something starting with __ and the normal name is an alias. */
10093#if defined __stub_$ac_func || defined __stub___$ac_func
10094choke me
10095#endif
10096
10097int
10098main ()
10099{
10100return $ac_func ();
10101 ;
10102 return 0;
10103}
10104_ACEOF
10105rm -f conftest.$ac_objext conftest$ac_exeext
10106if { (ac_try="$ac_link"
10107case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133esac
10134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 eval "$as_ac_var=yes"
10140else
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 eval "$as_ac_var=no"
10145fi
10146
10147rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149fi
10150ac_res=`eval echo '${'$as_ac_var'}'`
10151 { echo "$as_me:$LINENO: result: $ac_res" >&5
10152echo "${ECHO_T}$ac_res" >&6; }
10153if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156_ACEOF
10157
10158fi
10159done
10160
10161 LIBS="$lt_save_LIBS"
10162fi
10163ac_ext=c
10164ac_cpp='$CPP $CPPFLAGS'
10165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10167ac_compiler_gnu=$ac_cv_c_compiler_gnu
10168
10169
10170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010171{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10172echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10173if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175else
10176 ac_cv_sys_symbol_underscore=no
10177 cat > conftest.$ac_ext <<EOF
10178void nm_test_func(){}
10179int main(){nm_test_func;return 0;}
10180EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182 (eval $ac_compile) 2>&5
10183 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186 # Now try to grab the symbols.
10187 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010188 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010189 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10190 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193 # See whether the symbols have a leading underscore.
10194 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10195 ac_cv_sys_symbol_underscore=yes
10196 else
10197 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10198 :
10199 else
10200 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10201 fi
10202 fi
10203 else
10204 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10205 fi
10206 else
10207 echo "configure: failed program was:" >&5
10208 cat conftest.c >&5
10209 fi
10210 rm -rf conftest*
10211
10212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010213{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10214echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010215
10216
10217if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10218 if test x"$libltdl_cv_func_dlopen" = xyes ||
10219 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010220 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10221echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10222if test "${libltdl_cv_need_uscore+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224else
10225 libltdl_cv_need_uscore=unknown
10226 save_LIBS="$LIBS"
10227 LIBS="$LIBS $LIBADD_DL"
10228 if test "$cross_compiling" = yes; then :
10229 libltdl_cv_need_uscore=cross
10230else
10231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10232 lt_status=$lt_dlunknown
10233 cat > conftest.$ac_ext <<EOF
Eric Christopher82120022012-08-03 19:47:14 +000010234#line 10234 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235#include "confdefs.h"
10236
10237#if HAVE_DLFCN_H
10238#include <dlfcn.h>
10239#endif
10240
10241#include <stdio.h>
10242
10243#ifdef RTLD_GLOBAL
10244# define LT_DLGLOBAL RTLD_GLOBAL
10245#else
10246# ifdef DL_GLOBAL
10247# define LT_DLGLOBAL DL_GLOBAL
10248# else
10249# define LT_DLGLOBAL 0
10250# endif
10251#endif
10252
10253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10254 find out it does not work in some platform. */
10255#ifndef LT_DLLAZY_OR_NOW
10256# ifdef RTLD_LAZY
10257# define LT_DLLAZY_OR_NOW RTLD_LAZY
10258# else
10259# ifdef DL_LAZY
10260# define LT_DLLAZY_OR_NOW DL_LAZY
10261# else
10262# ifdef RTLD_NOW
10263# define LT_DLLAZY_OR_NOW RTLD_NOW
10264# else
10265# ifdef DL_NOW
10266# define LT_DLLAZY_OR_NOW DL_NOW
10267# else
10268# define LT_DLLAZY_OR_NOW 0
10269# endif
10270# endif
10271# endif
10272# endif
10273#endif
10274
10275#ifdef __cplusplus
10276extern "C" void exit (int);
10277#endif
10278
10279void fnord() { int i=42;}
10280int main ()
10281{
10282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10283 int status = $lt_dlunknown;
10284
10285 if (self)
10286 {
10287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10288 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10289 /* dlclose (self); */
10290 }
Reid Spencera773bd52006-08-04 18:18:08 +000010291 else
10292 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293
10294 exit (status);
10295}
10296EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298 (eval $ac_link) 2>&5
10299 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010302 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010303 lt_status=$?
10304 case x$lt_status in
10305 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10306 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010307 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308 esac
10309 else :
10310 # compilation failed
10311
10312 fi
10313fi
10314rm -fr conftest*
10315
10316 LIBS="$save_LIBS"
10317
10318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010319{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10320echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321 fi
10322fi
10323
10324if test x"$libltdl_cv_need_uscore" = xyes; then
10325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010326cat >>confdefs.h <<\_ACEOF
10327#define NEED_USCORE 1
10328_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010329
10330fi
10331
10332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010333{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10334echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10335if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010337else
10338 # PORTME does your system automatically load deplibs for dlopen?
10339 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10340 # For now, we just catch OSes we know something about -- in the
10341 # future, we'll try test this programmatically.
10342 libltdl_cv_sys_dlopen_deplibs=unknown
10343 case "$host_os" in
10344 aix3*|aix4.1.*|aix4.2.*)
10345 # Unknown whether this is true for these versions of AIX, but
10346 # we want this `case' here to explicitly catch those versions.
10347 libltdl_cv_sys_dlopen_deplibs=unknown
10348 ;;
10349 aix[45]*)
10350 libltdl_cv_sys_dlopen_deplibs=yes
10351 ;;
10352 darwin*)
10353 # Assuming the user has installed a libdl from somewhere, this is true
10354 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10355 libltdl_cv_sys_dlopen_deplibs=yes
10356 ;;
10357 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10358 # GNU and its variants, using gnu ld.so (Glibc)
10359 libltdl_cv_sys_dlopen_deplibs=yes
10360 ;;
10361 hpux10*|hpux11*)
10362 libltdl_cv_sys_dlopen_deplibs=yes
10363 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010364 interix*)
10365 libltdl_cv_sys_dlopen_deplibs=yes
10366 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367 irix[12345]*|irix6.[01]*)
10368 # Catch all versions of IRIX before 6.2, and indicate that we don't
10369 # know how it worked for any of those versions.
10370 libltdl_cv_sys_dlopen_deplibs=unknown
10371 ;;
10372 irix*)
10373 # The case above catches anything before 6.2, and it's known that
10374 # at 6.2 and later dlopen does load deplibs.
10375 libltdl_cv_sys_dlopen_deplibs=yes
10376 ;;
10377 netbsd*)
10378 libltdl_cv_sys_dlopen_deplibs=yes
10379 ;;
10380 openbsd*)
10381 libltdl_cv_sys_dlopen_deplibs=yes
10382 ;;
10383 osf[1234]*)
10384 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10385 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010386 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 libltdl_cv_sys_dlopen_deplibs=no
10388 ;;
10389 osf5.0|osf5.0a|osf5.1)
10390 # dlopen *does* load deplibs and with the right loader patch applied
10391 # it even uses RPATH in a shared library to search for shared objects
10392 # that the library depends on, but there's no easy way to know if that
10393 # patch is installed. Since this is the case, all we can really
10394 # say is unknown -- it depends on the patch being installed. If
10395 # it is, this changes to `yes'. Without it, it would be `no'.
10396 libltdl_cv_sys_dlopen_deplibs=unknown
10397 ;;
10398 osf*)
10399 # the two cases above should catch all versions of osf <= 5.1. Read
10400 # the comments above for what we know about them.
10401 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10402 # is used to find them so we can finally say `yes'.
10403 libltdl_cv_sys_dlopen_deplibs=yes
10404 ;;
10405 solaris*)
10406 libltdl_cv_sys_dlopen_deplibs=yes
10407 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10409 libltdl_cv_sys_dlopen_deplibs=yes
10410 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 esac
10412
10413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010414{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10415echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010418cat >>confdefs.h <<\_ACEOF
10419#define LTDL_DLOPEN_DEPLIBS 1
10420_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421
10422fi
10423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010424
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010426do
10427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433fi
10434ac_res=`eval echo '${'$as_ac_Header'}'`
10435 { echo "$as_me:$LINENO: result: $ac_res" >&5
10436echo "${ECHO_T}$ac_res" >&6; }
10437else
10438 # Is the header compilable?
10439{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10441cat >conftest.$ac_ext <<_ACEOF
10442/* confdefs.h. */
10443_ACEOF
10444cat confdefs.h >>conftest.$ac_ext
10445cat >>conftest.$ac_ext <<_ACEOF
10446/* end confdefs.h. */
10447$ac_includes_default
10448#include <$ac_header>
10449_ACEOF
10450rm -f conftest.$ac_objext
10451if { (ac_try="$ac_compile"
10452case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455esac
10456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_compile") 2>conftest.er1
10458 ac_status=$?
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10465 { (case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468esac
10469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; } &&
10474 { ac_try='test -s conftest.$ac_objext'
10475 { (case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478esac
10479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_try") 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_header_compiler=yes
10485else
10486 echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_header_compiler=no
10490fi
10491
10492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10494echo "${ECHO_T}$ac_header_compiler" >&6; }
10495
10496# Is the header present?
10497{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10499cat >conftest.$ac_ext <<_ACEOF
10500/* confdefs.h. */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h. */
10505#include <$ac_header>
10506_ACEOF
10507if { (ac_try="$ac_cpp conftest.$ac_ext"
10508case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10511esac
10512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10514 ac_status=$?
10515 grep -v '^ *+' conftest.er1 >conftest.err
10516 rm -f conftest.er1
10517 cat conftest.err >&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } >/dev/null; then
10520 if test -s conftest.err; then
10521 ac_cpp_err=$ac_c_preproc_warn_flag
10522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10523 else
10524 ac_cpp_err=
10525 fi
10526else
10527 ac_cpp_err=yes
10528fi
10529if test -z "$ac_cpp_err"; then
10530 ac_header_preproc=yes
10531else
10532 echo "$as_me: failed program was:" >&5
10533sed 's/^/| /' conftest.$ac_ext >&5
10534
10535 ac_header_preproc=no
10536fi
10537
10538rm -f conftest.err conftest.$ac_ext
10539{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10540echo "${ECHO_T}$ac_header_preproc" >&6; }
10541
10542# So? What about this header?
10543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10544 yes:no: )
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10549 ac_header_preproc=yes
10550 ;;
10551 no:yes:* )
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10555echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10559echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10564 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010565## ------------------------------------ ##
10566## Report this to http://llvm.org/bugs/ ##
10567## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010568_ASBOX
10569 ) | sed "s/^/$as_me: WARNING: /" >&2
10570 ;;
10571esac
10572{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576else
10577 eval "$as_ac_Header=\$ac_header_preproc"
10578fi
10579ac_res=`eval echo '${'$as_ac_Header'}'`
10580 { echo "$as_me:$LINENO: result: $ac_res" >&5
10581echo "${ECHO_T}$ac_res" >&6; }
10582
10583fi
10584if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010587_ACEOF
10588
10589fi
10590
10591done
10592
10593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010594{ echo "$as_me:$LINENO: checking for error_t" >&5
10595echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10596if test "${ac_cv_type_error_t+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598else
10599 cat >conftest.$ac_ext <<_ACEOF
10600/* confdefs.h. */
10601_ACEOF
10602cat confdefs.h >>conftest.$ac_ext
10603cat >>conftest.$ac_ext <<_ACEOF
10604/* end confdefs.h. */
10605#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010606# include <argz.h>
10607#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010608
10609typedef error_t ac__type_new_;
10610int
10611main ()
10612{
10613if ((ac__type_new_ *) 0)
10614 return 0;
10615if (sizeof (ac__type_new_))
10616 return 0;
10617 ;
10618 return 0;
10619}
10620_ACEOF
10621rm -f conftest.$ac_objext
10622if { (ac_try="$ac_compile"
10623case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10626esac
10627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_compile") 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10636 { (case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10639esac
10640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_try") 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10649esac
10650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_try") 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_type_error_t=yes
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 ac_cv_type_error_t=no
10661fi
10662
10663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664fi
10665{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10666echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10667if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668
10669cat >>confdefs.h <<_ACEOF
10670#define HAVE_ERROR_T 1
10671_ACEOF
10672
10673
10674else
10675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010676cat >>confdefs.h <<\_ACEOF
10677#define error_t int
10678_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679
10680fi
10681
10682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010683
10684
10685
10686
10687
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010688for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010689do
10690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696 cat >conftest.$ac_ext <<_ACEOF
10697/* confdefs.h. */
10698_ACEOF
10699cat confdefs.h >>conftest.$ac_ext
10700cat >>conftest.$ac_ext <<_ACEOF
10701/* end confdefs.h. */
10702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10704#define $ac_func innocuous_$ac_func
10705
10706/* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char $ac_func (); below.
10708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10709 <limits.h> exists even on freestanding compilers. */
10710
10711#ifdef __STDC__
10712# include <limits.h>
10713#else
10714# include <assert.h>
10715#endif
10716
10717#undef $ac_func
10718
10719/* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10722#ifdef __cplusplus
10723extern "C"
10724#endif
10725char $ac_func ();
10726/* The GNU C library defines this for functions which it implements
10727 to always fail with ENOSYS. Some functions are actually named
10728 something starting with __ and the normal name is an alias. */
10729#if defined __stub_$ac_func || defined __stub___$ac_func
10730choke me
10731#endif
10732
10733int
10734main ()
10735{
10736return $ac_func ();
10737 ;
10738 return 0;
10739}
10740_ACEOF
10741rm -f conftest.$ac_objext conftest$ac_exeext
10742if { (ac_try="$ac_link"
10743case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746esac
10747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756 { (case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759esac
10760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_try") 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; } &&
10765 { ac_try='test -s conftest$ac_exeext'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 eval "$as_ac_var=yes"
10776else
10777 echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 eval "$as_ac_var=no"
10781fi
10782
10783rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785fi
10786ac_res=`eval echo '${'$as_ac_var'}'`
10787 { echo "$as_me:$LINENO: result: $ac_res" >&5
10788echo "${ECHO_T}$ac_res" >&6; }
10789if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010792_ACEOF
10793
10794fi
10795done
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010816
10817
10818
10819
10820
10821
10822
10823
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10825 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826do
10827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833fi
10834ac_res=`eval echo '${'$as_ac_Header'}'`
10835 { echo "$as_me:$LINENO: result: $ac_res" >&5
10836echo "${ECHO_T}$ac_res" >&6; }
10837else
10838 # Is the header compilable?
10839{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10841cat >conftest.$ac_ext <<_ACEOF
10842/* confdefs.h. */
10843_ACEOF
10844cat confdefs.h >>conftest.$ac_ext
10845cat >>conftest.$ac_ext <<_ACEOF
10846/* end confdefs.h. */
10847$ac_includes_default
10848#include <$ac_header>
10849_ACEOF
10850rm -f conftest.$ac_objext
10851if { (ac_try="$ac_compile"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest.$ac_objext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_header_compiler=yes
10885else
10886 echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
10889 ac_header_compiler=no
10890fi
10891
10892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10894echo "${ECHO_T}$ac_header_compiler" >&6; }
10895
10896# Is the header present?
10897{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10899cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h. */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h. */
10905#include <$ac_header>
10906_ACEOF
10907if { (ac_try="$ac_cpp conftest.$ac_ext"
10908case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911esac
10912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } >/dev/null; then
10920 if test -s conftest.err; then
10921 ac_cpp_err=$ac_c_preproc_warn_flag
10922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10923 else
10924 ac_cpp_err=
10925 fi
10926else
10927 ac_cpp_err=yes
10928fi
10929if test -z "$ac_cpp_err"; then
10930 ac_header_preproc=yes
10931else
10932 echo "$as_me: failed program was:" >&5
10933sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 ac_header_preproc=no
10936fi
10937
10938rm -f conftest.err conftest.$ac_ext
10939{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10940echo "${ECHO_T}$ac_header_preproc" >&6; }
10941
10942# So? What about this header?
10943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10944 yes:no: )
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10949 ac_header_preproc=yes
10950 ;;
10951 no:yes:* )
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10964 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010965## ------------------------------------ ##
10966## Report this to http://llvm.org/bugs/ ##
10967## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010968_ASBOX
10969 ) | sed "s/^/$as_me: WARNING: /" >&2
10970 ;;
10971esac
10972{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977 eval "$as_ac_Header=\$ac_header_preproc"
10978fi
10979ac_res=`eval echo '${'$as_ac_Header'}'`
10980 { echo "$as_me:$LINENO: result: $ac_res" >&5
10981echo "${ECHO_T}$ac_res" >&6; }
10982
10983fi
10984if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987_ACEOF
10988
10989fi
10990
10991done
10992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010993
10994
10995
10996
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010997for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010998do
10999as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005fi
11006ac_res=`eval echo '${'$as_ac_Header'}'`
11007 { echo "$as_me:$LINENO: result: $ac_res" >&5
11008echo "${ECHO_T}$ac_res" >&6; }
11009else
11010 # Is the header compilable?
11011{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11012echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11013cat >conftest.$ac_ext <<_ACEOF
11014/* confdefs.h. */
11015_ACEOF
11016cat confdefs.h >>conftest.$ac_ext
11017cat >>conftest.$ac_ext <<_ACEOF
11018/* end confdefs.h. */
11019$ac_includes_default
11020#include <$ac_header>
11021_ACEOF
11022rm -f conftest.$ac_objext
11023if { (ac_try="$ac_compile"
11024case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_compile") 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040esac
11041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest.$ac_objext'
11047 { (case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050esac
11051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052 (eval "$ac_try") 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 ac_header_compiler=yes
11057else
11058 echo "$as_me: failed program was:" >&5
11059sed 's/^/| /' conftest.$ac_ext >&5
11060
11061 ac_header_compiler=no
11062fi
11063
11064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11066echo "${ECHO_T}$ac_header_compiler" >&6; }
11067
11068# Is the header present?
11069{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11071cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
11076/* end confdefs.h. */
11077#include <$ac_header>
11078_ACEOF
11079if { (ac_try="$ac_cpp conftest.$ac_ext"
11080case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083esac
11084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11086 ac_status=$?
11087 grep -v '^ *+' conftest.er1 >conftest.err
11088 rm -f conftest.er1
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } >/dev/null; then
11092 if test -s conftest.err; then
11093 ac_cpp_err=$ac_c_preproc_warn_flag
11094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11095 else
11096 ac_cpp_err=
11097 fi
11098else
11099 ac_cpp_err=yes
11100fi
11101if test -z "$ac_cpp_err"; then
11102 ac_header_preproc=yes
11103else
11104 echo "$as_me: failed program was:" >&5
11105sed 's/^/| /' conftest.$ac_ext >&5
11106
11107 ac_header_preproc=no
11108fi
11109
11110rm -f conftest.err conftest.$ac_ext
11111{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11112echo "${ECHO_T}$ac_header_preproc" >&6; }
11113
11114# So? What about this header?
11115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11116 yes:no: )
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11121 ac_header_preproc=yes
11122 ;;
11123 no:yes:* )
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11136 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011137## ------------------------------------ ##
11138## Report this to http://llvm.org/bugs/ ##
11139## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011140_ASBOX
11141 ) | sed "s/^/$as_me: WARNING: /" >&2
11142 ;;
11143esac
11144{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149 eval "$as_ac_Header=\$ac_header_preproc"
11150fi
11151ac_res=`eval echo '${'$as_ac_Header'}'`
11152 { echo "$as_me:$LINENO: result: $ac_res" >&5
11153echo "${ECHO_T}$ac_res" >&6; }
11154
11155fi
11156if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011157 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011159_ACEOF
11160
11161fi
11162
11163done
11164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011165
11166
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011167for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011168do
11169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175fi
11176ac_res=`eval echo '${'$as_ac_Header'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178echo "${ECHO_T}$ac_res" >&6; }
11179else
11180 # Is the header compilable?
11181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11183cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */
11189$ac_includes_default
11190#include <$ac_header>
11191_ACEOF
11192rm -f conftest.$ac_objext
11193if { (ac_try="$ac_compile"
11194case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197esac
11198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } &&
11206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11207 { (case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210esac
11211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_try") 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11220esac
11221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222 (eval "$ac_try") 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_header_compiler=yes
11227else
11228 echo "$as_me: failed program was:" >&5
11229sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 ac_header_compiler=no
11232fi
11233
11234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236echo "${ECHO_T}$ac_header_compiler" >&6; }
11237
11238# Is the header present?
11239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11241cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
11247#include <$ac_header>
11248_ACEOF
11249if { (ac_try="$ac_cpp conftest.$ac_ext"
11250case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11253esac
11254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } >/dev/null; then
11262 if test -s conftest.err; then
11263 ac_cpp_err=$ac_c_preproc_warn_flag
11264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11265 else
11266 ac_cpp_err=
11267 fi
11268else
11269 ac_cpp_err=yes
11270fi
11271if test -z "$ac_cpp_err"; then
11272 ac_header_preproc=yes
11273else
11274 echo "$as_me: failed program was:" >&5
11275sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 ac_header_preproc=no
11278fi
11279
11280rm -f conftest.err conftest.$ac_ext
11281{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11282echo "${ECHO_T}$ac_header_preproc" >&6; }
11283
11284# So? What about this header?
11285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11286 yes:no: )
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11291 ac_header_preproc=yes
11292 ;;
11293 no:yes:* )
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11306 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011307## ------------------------------------ ##
11308## Report this to http://llvm.org/bugs/ ##
11309## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011310_ASBOX
11311 ) | sed "s/^/$as_me: WARNING: /" >&2
11312 ;;
11313esac
11314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11318else
11319 eval "$as_ac_Header=\$ac_header_preproc"
11320fi
11321ac_res=`eval echo '${'$as_ac_Header'}'`
11322 { echo "$as_me:$LINENO: result: $ac_res" >&5
11323echo "${ECHO_T}$ac_res" >&6; }
11324
11325fi
11326if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011329_ACEOF
11330 break
11331fi
11332
11333done
11334
11335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011336
11337
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011339do
11340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11343if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345else
11346 cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h. */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h. */
11352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11354#define $ac_func innocuous_$ac_func
11355
11356/* System header to define __stub macros and hopefully few prototypes,
11357 which can conflict with char $ac_func (); below.
11358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11359 <limits.h> exists even on freestanding compilers. */
11360
11361#ifdef __STDC__
11362# include <limits.h>
11363#else
11364# include <assert.h>
11365#endif
11366
11367#undef $ac_func
11368
11369/* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372#ifdef __cplusplus
11373extern "C"
11374#endif
11375char $ac_func ();
11376/* The GNU C library defines this for functions which it implements
11377 to always fail with ENOSYS. Some functions are actually named
11378 something starting with __ and the normal name is an alias. */
11379#if defined __stub_$ac_func || defined __stub___$ac_func
11380choke me
11381#endif
11382
11383int
11384main ()
11385{
11386return $ac_func ();
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391rm -f conftest.$ac_objext conftest$ac_exeext
11392if { (ac_try="$ac_link"
11393case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_link") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409esac
11410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11425 eval "$as_ac_var=yes"
11426else
11427 echo "$as_me: failed program was:" >&5
11428sed 's/^/| /' conftest.$ac_ext >&5
11429
11430 eval "$as_ac_var=no"
11431fi
11432
11433rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435fi
11436ac_res=`eval echo '${'$as_ac_var'}'`
11437 { echo "$as_me:$LINENO: result: $ac_res" >&5
11438echo "${ECHO_T}$ac_res" >&6; }
11439if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011441#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011442_ACEOF
11443 break
11444fi
11445done
11446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011447
11448
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011450do
11451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11456else
11457 cat >conftest.$ac_ext <<_ACEOF
11458/* confdefs.h. */
11459_ACEOF
11460cat confdefs.h >>conftest.$ac_ext
11461cat >>conftest.$ac_ext <<_ACEOF
11462/* end confdefs.h. */
11463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11465#define $ac_func innocuous_$ac_func
11466
11467/* System header to define __stub macros and hopefully few prototypes,
11468 which can conflict with char $ac_func (); below.
11469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11470 <limits.h> exists even on freestanding compilers. */
11471
11472#ifdef __STDC__
11473# include <limits.h>
11474#else
11475# include <assert.h>
11476#endif
11477
11478#undef $ac_func
11479
11480/* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11483#ifdef __cplusplus
11484extern "C"
11485#endif
11486char $ac_func ();
11487/* The GNU C library defines this for functions which it implements
11488 to always fail with ENOSYS. Some functions are actually named
11489 something starting with __ and the normal name is an alias. */
11490#if defined __stub_$ac_func || defined __stub___$ac_func
11491choke me
11492#endif
11493
11494int
11495main ()
11496{
11497return $ac_func ();
11498 ;
11499 return 0;
11500}
11501_ACEOF
11502rm -f conftest.$ac_objext conftest$ac_exeext
11503if { (ac_try="$ac_link"
11504case "(($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_link") 2>conftest.er1
11510 ac_status=$?
11511 grep -v '^ *+' conftest.er1 >conftest.err
11512 rm -f conftest.er1
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } &&
11516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11517 { (case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11520esac
11521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_try") 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try='test -s conftest$ac_exeext'
11527 { (case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11530esac
11531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_try") 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 eval "$as_ac_var=yes"
11537else
11538 echo "$as_me: failed program was:" >&5
11539sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 eval "$as_ac_var=no"
11542fi
11543
11544rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext
11546fi
11547ac_res=`eval echo '${'$as_ac_var'}'`
11548 { echo "$as_me:$LINENO: result: $ac_res" >&5
11549echo "${ECHO_T}$ac_res" >&6; }
11550if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553_ACEOF
11554 break
11555fi
11556done
11557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011558
11559
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011561do
11562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11563{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11565if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568 cat >conftest.$ac_ext <<_ACEOF
11569/* confdefs.h. */
11570_ACEOF
11571cat confdefs.h >>conftest.$ac_ext
11572cat >>conftest.$ac_ext <<_ACEOF
11573/* end confdefs.h. */
11574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11576#define $ac_func innocuous_$ac_func
11577
11578/* System header to define __stub macros and hopefully few prototypes,
11579 which can conflict with char $ac_func (); below.
11580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11581 <limits.h> exists even on freestanding compilers. */
11582
11583#ifdef __STDC__
11584# include <limits.h>
11585#else
11586# include <assert.h>
11587#endif
11588
11589#undef $ac_func
11590
11591/* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594#ifdef __cplusplus
11595extern "C"
11596#endif
11597char $ac_func ();
11598/* The GNU C library defines this for functions which it implements
11599 to always fail with ENOSYS. Some functions are actually named
11600 something starting with __ and the normal name is an alias. */
11601#if defined __stub_$ac_func || defined __stub___$ac_func
11602choke me
11603#endif
11604
11605int
11606main ()
11607{
11608return $ac_func ();
11609 ;
11610 return 0;
11611}
11612_ACEOF
11613rm -f conftest.$ac_objext conftest$ac_exeext
11614if { (ac_try="$ac_link"
11615case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618esac
11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_link") 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest$ac_exeext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 eval "$as_ac_var=yes"
11648else
11649 echo "$as_me: failed program was:" >&5
11650sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 eval "$as_ac_var=no"
11653fi
11654
11655rm -f core conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
11657fi
11658ac_res=`eval echo '${'$as_ac_var'}'`
11659 { echo "$as_me:$LINENO: result: $ac_res" >&5
11660echo "${ECHO_T}$ac_res" >&6; }
11661if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664_ACEOF
11665 break
11666fi
11667done
11668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011669
11670
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011672do
11673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 cat >conftest.$ac_ext <<_ACEOF
11680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
11685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11687#define $ac_func innocuous_$ac_func
11688
11689/* System header to define __stub macros and hopefully few prototypes,
11690 which can conflict with char $ac_func (); below.
11691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692 <limits.h> exists even on freestanding compilers. */
11693
11694#ifdef __STDC__
11695# include <limits.h>
11696#else
11697# include <assert.h>
11698#endif
11699
11700#undef $ac_func
11701
11702/* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11705#ifdef __cplusplus
11706extern "C"
11707#endif
11708char $ac_func ();
11709/* The GNU C library defines this for functions which it implements
11710 to always fail with ENOSYS. Some functions are actually named
11711 something starting with __ and the normal name is an alias. */
11712#if defined __stub_$ac_func || defined __stub___$ac_func
11713choke me
11714#endif
11715
11716int
11717main ()
11718{
11719return $ac_func ();
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext conftest$ac_exeext
11725if { (ac_try="$ac_link"
11726case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729esac
11730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_link") 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11739 { (case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742esac
11743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_try") 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try='test -s conftest$ac_exeext'
11749 { (case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752esac
11753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_try") 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 eval "$as_ac_var=yes"
11759else
11760 echo "$as_me: failed program was:" >&5
11761sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 eval "$as_ac_var=no"
11764fi
11765
11766rm -f core conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11768fi
11769ac_res=`eval echo '${'$as_ac_var'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771echo "${ECHO_T}$ac_res" >&6; }
11772if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775_ACEOF
11776
11777fi
11778done
11779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011780
11781
11782
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011784do
11785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791 cat >conftest.$ac_ext <<_ACEOF
11792/* confdefs.h. */
11793_ACEOF
11794cat confdefs.h >>conftest.$ac_ext
11795cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h. */
11797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799#define $ac_func innocuous_$ac_func
11800
11801/* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11805
11806#ifdef __STDC__
11807# include <limits.h>
11808#else
11809# include <assert.h>
11810#endif
11811
11812#undef $ac_func
11813
11814/* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11817#ifdef __cplusplus
11818extern "C"
11819#endif
11820char $ac_func ();
11821/* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824#if defined __stub_$ac_func || defined __stub___$ac_func
11825choke me
11826#endif
11827
11828int
11829main ()
11830{
11831return $ac_func ();
11832 ;
11833 return 0;
11834}
11835_ACEOF
11836rm -f conftest.$ac_objext conftest$ac_exeext
11837if { (ac_try="$ac_link"
11838case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_link") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11854esac
11855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 eval "$as_ac_var=yes"
11871else
11872 echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 eval "$as_ac_var=no"
11876fi
11877
11878rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880fi
11881ac_res=`eval echo '${'$as_ac_var'}'`
11882 { echo "$as_me:$LINENO: result: $ac_res" >&5
11883echo "${ECHO_T}$ac_res" >&6; }
11884if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011885 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887_ACEOF
11888
11889fi
11890done
11891
11892
Douglas Gregor01746742009-05-11 18:05:52 +000011893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011894{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11895echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011896
Reid Spencer86901802004-12-08 23:07:27 +000011897ICC=no
11898IXX=no
11899case $CC in
11900 icc*|icpc*)
11901 ICC=yes
11902 IXX=yes
11903 ;;
11904 *)
11905 ;;
11906esac
11907
Duraid Madina937c60a2006-02-15 07:57:42 +000011908if test "$GCC" != "yes" && test "$ICC" != "yes"
11909then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011910 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11911echo "$as_me: error: gcc|icc required but not found" >&2;}
11912 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011913fi
11914
11915if test "$GXX" != "yes" && test "$IXX" != "yes"
11916then
Eric Christopher73e36da2010-12-08 02:02:14 +000011917 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11918echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011919 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011920fi
11921
Reid Spencer86901802004-12-08 23:07:27 +000011922if test "$GCC" = "yes"
11923then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011924 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000011925#if !defined(__GNUC__) || __GNUC__ < 3
11926#error Unsupported GCC version
11927#endif
11928
11929_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011930rm -f conftest.$ac_objext
11931if { (ac_try="$ac_compile"
11932case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11935esac
11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_compile") 2>conftest.er1
11938 ac_status=$?
11939 grep -v '^ *+' conftest.er1 >conftest.err
11940 rm -f conftest.er1
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
11944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11945 { (case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948esac
11949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_try") 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest.$ac_objext'
11955 { (case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958esac
11959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_try") 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11964 :
Chris Lattner399c7c72008-02-05 19:43:53 +000011965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011966 echo "$as_me: failed program was:" >&5
11967sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11970echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11971 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000011972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011973
Chris Lattner399c7c72008-02-05 19:43:53 +000011974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011975fi
11976
11977if test -z "$llvm_cv_gnu_make_command"
11978then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011979 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11980echo "$as_me: error: GNU Make required but not found" >&2;}
11981 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011982fi
11983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011984{ echo "$as_me:$LINENO: result: ok" >&5
11985echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011987{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
11988echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011989NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000011990
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011991NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000011992
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011993COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11994
11995{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11996echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000011997
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000011998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011999
12000{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12001echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12002if test "${ac_cv_lib_m_sin+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012004else
12005 ac_check_lib_save_LIBS=$LIBS
12006LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012007cat >conftest.$ac_ext <<_ACEOF
12008/* confdefs.h. */
12009_ACEOF
12010cat confdefs.h >>conftest.$ac_ext
12011cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012012/* end confdefs.h. */
12013
Reid Spencera773bd52006-08-04 18:18:08 +000012014/* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012017#ifdef __cplusplus
12018extern "C"
12019#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012020char sin ();
12021int
12022main ()
12023{
Reid Spencera773bd52006-08-04 18:18:08 +000012024return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012025 ;
12026 return 0;
12027}
12028_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012029rm -f conftest.$ac_objext conftest$ac_exeext
12030if { (ac_try="$ac_link"
12031case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034esac
12035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_link") 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047esac
12048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012063 ac_cv_lib_m_sin=yes
12064else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012065 echo "$as_me: failed program was:" >&5
12066sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012070
Bill Wendlingebcceee2009-04-18 11:20:33 +000012071rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012072 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012073LIBS=$ac_check_lib_save_LIBS
12074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012075{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12076echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12077if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012078 cat >>confdefs.h <<_ACEOF
12079#define HAVE_LIBM 1
12080_ACEOF
12081
12082 LIBS="-lm $LIBS"
12083
12084fi
12085
Jeff Cohen28783c32007-01-12 18:22:38 +000012086if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012087
12088{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12089echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12090if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012092else
12093 ac_check_lib_save_LIBS=$LIBS
12094LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012095cat >conftest.$ac_ext <<_ACEOF
12096/* confdefs.h. */
12097_ACEOF
12098cat confdefs.h >>conftest.$ac_ext
12099cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012100/* end confdefs.h. */
12101
Reid Spencer48fdf912006-06-01 19:03:21 +000012102
Reid Spencer484fc8e2006-06-01 16:55:59 +000012103int
12104main ()
12105{
Reid Spencera773bd52006-08-04 18:18:08 +000012106return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012107 ;
12108 return 0;
12109}
12110_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012111rm -f conftest.$ac_objext conftest$ac_exeext
12112if { (ac_try="$ac_link"
12113case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_link") 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129esac
12130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139esac
12140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012145 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012147 echo "$as_me: failed program was:" >&5
12148sed 's/^/| /' conftest.$ac_ext >&5
12149
12150 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012152
Bill Wendlingebcceee2009-04-18 11:20:33 +000012153rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012154 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012155LIBS=$ac_check_lib_save_LIBS
12156fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012157{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12158echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12159if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012160 cat >>confdefs.h <<_ACEOF
12161#define HAVE_LIBIMAGEHLP 1
12162_ACEOF
12163
12164 LIBS="-limagehlp $LIBS"
12165
12166fi
12167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012168
12169{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12170echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12171if test "${ac_cv_lib_psapi_main+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012173else
12174 ac_check_lib_save_LIBS=$LIBS
12175LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012176cat >conftest.$ac_ext <<_ACEOF
12177/* confdefs.h. */
12178_ACEOF
12179cat confdefs.h >>conftest.$ac_ext
12180cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012181/* end confdefs.h. */
12182
Reid Spencer48fdf912006-06-01 19:03:21 +000012183
Reid Spencer484fc8e2006-06-01 16:55:59 +000012184int
12185main ()
12186{
Reid Spencera773bd52006-08-04 18:18:08 +000012187return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012188 ;
12189 return 0;
12190}
12191_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012192rm -f conftest.$ac_objext conftest$ac_exeext
12193if { (ac_try="$ac_link"
12194case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197esac
12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_link") 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest$ac_exeext'
12217 { (case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12220esac
12221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_try") 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012226 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012228 echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012233
Bill Wendlingebcceee2009-04-18 11:20:33 +000012234rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012235 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012236LIBS=$ac_check_lib_save_LIBS
12237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12239echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12240if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012241 cat >>confdefs.h <<_ACEOF
12242#define HAVE_LIBPSAPI 1
12243_ACEOF
12244
12245 LIBS="-lpsapi $LIBS"
12246
12247fi
12248
12249fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012251{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12252echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12253if test "${ac_cv_search_dlopen+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012255else
12256 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012257cat >conftest.$ac_ext <<_ACEOF
12258/* confdefs.h. */
12259_ACEOF
12260cat confdefs.h >>conftest.$ac_ext
12261cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012262/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012263
Reid Spencera773bd52006-08-04 18:18:08 +000012264/* Override any GCC internal prototype to avoid an error.
12265 Use char because int might match the return type of a GCC
12266 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012267#ifdef __cplusplus
12268extern "C"
12269#endif
John Criswell7a73b802003-06-30 21:59:07 +000012270char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012271int
12272main ()
12273{
Reid Spencera773bd52006-08-04 18:18:08 +000012274return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012275 ;
12276 return 0;
12277}
12278_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012279for ac_lib in '' dl; do
12280 if test -z "$ac_lib"; then
12281 ac_res="none required"
12282 else
12283 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012285 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012286 rm -f conftest.$ac_objext conftest$ac_exeext
12287if { (ac_try="$ac_link"
12288case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291esac
12292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_link") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12304esac
12305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012320 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321else
12322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325
John Criswell7a73b802003-06-30 21:59:07 +000012326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012327
Bill Wendlingebcceee2009-04-18 11:20:33 +000012328rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012329 conftest$ac_exeext
12330 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012331 break
John Criswell7a73b802003-06-30 21:59:07 +000012332fi
Reid Spencera773bd52006-08-04 18:18:08 +000012333done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012334if test "${ac_cv_search_dlopen+set}" = set; then
12335 :
Reid Spencera773bd52006-08-04 18:18:08 +000012336else
12337 ac_cv_search_dlopen=no
12338fi
12339rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012340LIBS=$ac_func_search_save_LIBS
12341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012342{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12343echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012344ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012345if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012348cat >>confdefs.h <<\_ACEOF
12349#define HAVE_DLOPEN 1
12350_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012351
12352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012353 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12354echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012355fi
12356
12357
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012358if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012359 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12360echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12361if test "${ac_cv_search_ffi_call+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012363else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012364 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012365cat >conftest.$ac_ext <<_ACEOF
12366/* confdefs.h. */
12367_ACEOF
12368cat confdefs.h >>conftest.$ac_ext
12369cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012370/* end confdefs.h. */
12371
12372/* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12375#ifdef __cplusplus
12376extern "C"
12377#endif
12378char ffi_call ();
12379int
12380main ()
12381{
12382return ffi_call ();
12383 ;
12384 return 0;
12385}
12386_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012387for ac_lib in '' ffi; do
12388 if test -z "$ac_lib"; then
12389 ac_res="none required"
12390 else
12391 ac_res=-l$ac_lib
12392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12393 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012394 rm -f conftest.$ac_objext conftest$ac_exeext
12395if { (ac_try="$ac_link"
12396case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399esac
12400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_link") 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12409 { (case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12412esac
12413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_try") 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012428 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012429else
12430 echo "$as_me: failed program was:" >&5
12431sed 's/^/| /' conftest.$ac_ext >&5
12432
12433
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435
Bill Wendlingebcceee2009-04-18 11:20:33 +000012436rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012437 conftest$ac_exeext
12438 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012439 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012440fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012441done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012442if test "${ac_cv_search_ffi_call+set}" = set; then
12443 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012444else
12445 ac_cv_search_ffi_call=no
12446fi
12447rm conftest.$ac_ext
12448LIBS=$ac_func_search_save_LIBS
12449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012450{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12451echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012452ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012453if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012456cat >>confdefs.h <<\_ACEOF
12457#define HAVE_FFI_CALL 1
12458_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012459
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012460else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012461 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12462echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12463 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012464fi
12465
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012466fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012468{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12469echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12470if test "${ac_cv_search_mallinfo+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012472else
12473 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012474cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012479/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012480
Reid Spencera773bd52006-08-04 18:18:08 +000012481/* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012484#ifdef __cplusplus
12485extern "C"
12486#endif
John Criswell7a73b802003-06-30 21:59:07 +000012487char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012488int
12489main ()
12490{
Reid Spencera773bd52006-08-04 18:18:08 +000012491return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012492 ;
12493 return 0;
12494}
12495_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012496for ac_lib in '' malloc; do
12497 if test -z "$ac_lib"; then
12498 ac_res="none required"
12499 else
12500 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012502 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012503 rm -f conftest.$ac_objext conftest$ac_exeext
12504if { (ac_try="$ac_link"
12505case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508esac
12509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12518 { (case "(($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_try") 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest$ac_exeext'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012537 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012538else
12539 echo "$as_me: failed program was:" >&5
12540sed 's/^/| /' conftest.$ac_ext >&5
12541
12542
John Criswell7a73b802003-06-30 21:59:07 +000012543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012544
Bill Wendlingebcceee2009-04-18 11:20:33 +000012545rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012546 conftest$ac_exeext
12547 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012548 break
John Criswell7a73b802003-06-30 21:59:07 +000012549fi
Reid Spencera773bd52006-08-04 18:18:08 +000012550done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012551if test "${ac_cv_search_mallinfo+set}" = set; then
12552 :
Reid Spencera773bd52006-08-04 18:18:08 +000012553else
12554 ac_cv_search_mallinfo=no
12555fi
12556rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012557LIBS=$ac_func_search_save_LIBS
12558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012559{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12560echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012561ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012562if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012565cat >>confdefs.h <<\_ACEOF
12566#define HAVE_MALLINFO 1
12567_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012568
12569fi
12570
12571
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012572if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012573
12574{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12575echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12576if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012578else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012579 ac_check_lib_save_LIBS=$LIBS
12580LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012581cat >conftest.$ac_ext <<_ACEOF
12582/* confdefs.h. */
12583_ACEOF
12584cat confdefs.h >>conftest.$ac_ext
12585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012586/* end confdefs.h. */
12587
Reid Spencera773bd52006-08-04 18:18:08 +000012588/* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012591#ifdef __cplusplus
12592extern "C"
12593#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012594char pthread_mutex_init ();
12595int
12596main ()
12597{
Reid Spencera773bd52006-08-04 18:18:08 +000012598return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012599 ;
12600 return 0;
12601}
12602_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012603rm -f conftest.$ac_objext conftest$ac_exeext
12604if { (ac_try="$ac_link"
12605case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>conftest.er1
12611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631esac
12632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012637 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012639 echo "$as_me: failed program was:" >&5
12640sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012643fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012644
Bill Wendlingebcceee2009-04-18 11:20:33 +000012645rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012646 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012647LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012649{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12650echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12651if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012652 cat >>confdefs.h <<_ACEOF
12653#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012654_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012655
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012656 LIBS="-lpthread $LIBS"
12657
Reid Spencer22177fe2005-07-12 15:24:20 +000012658fi
12659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012660 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12661echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12662if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012664else
12665 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012666cat >conftest.$ac_ext <<_ACEOF
12667/* confdefs.h. */
12668_ACEOF
12669cat confdefs.h >>conftest.$ac_ext
12670cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012671/* end confdefs.h. */
12672
Reid Spencera773bd52006-08-04 18:18:08 +000012673/* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012676#ifdef __cplusplus
12677extern "C"
12678#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012679char pthread_mutex_lock ();
12680int
12681main ()
12682{
Reid Spencera773bd52006-08-04 18:18:08 +000012683return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012684 ;
12685 return 0;
12686}
12687_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012688for ac_lib in '' pthread; do
12689 if test -z "$ac_lib"; then
12690 ac_res="none required"
12691 else
12692 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012694 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012695 rm -f conftest.$ac_objext conftest$ac_exeext
12696if { (ac_try="$ac_link"
12697case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700esac
12701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_link") 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; } &&
12719 { ac_try='test -s conftest$ac_exeext'
12720 { (case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12723esac
12724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_try") 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012729 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730else
12731 echo "$as_me: failed program was:" >&5
12732sed 's/^/| /' conftest.$ac_ext >&5
12733
12734
Brian Gaeke5f268f72003-12-05 19:29:01 +000012735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012736
Bill Wendlingebcceee2009-04-18 11:20:33 +000012737rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012738 conftest$ac_exeext
12739 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012740 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012741fi
Reid Spencera773bd52006-08-04 18:18:08 +000012742done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012743if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12744 :
Reid Spencera773bd52006-08-04 18:18:08 +000012745else
12746 ac_cv_search_pthread_mutex_lock=no
12747fi
12748rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012749LIBS=$ac_func_search_save_LIBS
12750fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012751{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12752echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012753ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012754if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012757cat >>confdefs.h <<\_ACEOF
12758#define HAVE_PTHREAD_MUTEX_LOCK 1
12759_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012760
12761fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012763 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12764echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12765if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012767else
12768 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012769cat >conftest.$ac_ext <<_ACEOF
12770/* confdefs.h. */
12771_ACEOF
12772cat confdefs.h >>conftest.$ac_ext
12773cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012774/* end confdefs.h. */
12775
12776/* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12779#ifdef __cplusplus
12780extern "C"
12781#endif
12782char pthread_rwlock_init ();
12783int
12784main ()
12785{
12786return pthread_rwlock_init ();
12787 ;
12788 return 0;
12789}
12790_ACEOF
12791for ac_lib in '' pthread; do
12792 if test -z "$ac_lib"; then
12793 ac_res="none required"
12794 else
12795 ac_res=-l$ac_lib
12796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12797 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012798 rm -f conftest.$ac_objext conftest$ac_exeext
12799if { (ac_try="$ac_link"
12800case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12803esac
12804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_link") 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12813 { (case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816esac
12817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_try") 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } &&
12822 { ac_try='test -s conftest$ac_exeext'
12823 { (case "(($ac_try" in
12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825 *) ac_try_echo=$ac_try;;
12826esac
12827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828 (eval "$ac_try") 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012832 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012833else
12834 echo "$as_me: failed program was:" >&5
12835sed 's/^/| /' conftest.$ac_ext >&5
12836
12837
Owen Andersonde8aed22009-06-16 18:20:20 +000012838fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012839
Owen Andersonde8aed22009-06-16 18:20:20 +000012840rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012841 conftest$ac_exeext
12842 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012843 break
12844fi
12845done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012846if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12847 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012848else
12849 ac_cv_search_pthread_rwlock_init=no
12850fi
12851rm conftest.$ac_ext
12852LIBS=$ac_func_search_save_LIBS
12853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012854{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12855echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012856ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012857if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012860cat >>confdefs.h <<\_ACEOF
12861#define HAVE_PTHREAD_RWLOCK_INIT 1
12862_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012863
12864fi
12865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012866 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12867echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12868if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012870else
12871 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012872cat >conftest.$ac_ext <<_ACEOF
12873/* confdefs.h. */
12874_ACEOF
12875cat confdefs.h >>conftest.$ac_ext
12876cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012877/* end confdefs.h. */
12878
12879/* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882#ifdef __cplusplus
12883extern "C"
12884#endif
12885char pthread_getspecific ();
12886int
12887main ()
12888{
12889return pthread_getspecific ();
12890 ;
12891 return 0;
12892}
12893_ACEOF
12894for ac_lib in '' pthread; do
12895 if test -z "$ac_lib"; then
12896 ac_res="none required"
12897 else
12898 ac_res=-l$ac_lib
12899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12900 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012901 rm -f conftest.$ac_objext conftest$ac_exeext
12902if { (ac_try="$ac_link"
12903case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906esac
12907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_link") 2>conftest.er1
12909 ac_status=$?
12910 grep -v '^ *+' conftest.er1 >conftest.err
12911 rm -f conftest.er1
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919esac
12920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; } &&
12925 { ac_try='test -s conftest$ac_exeext'
12926 { (case "(($ac_try" in
12927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12928 *) ac_try_echo=$ac_try;;
12929esac
12930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12931 (eval "$ac_try") 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012935 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012936else
12937 echo "$as_me: failed program was:" >&5
12938sed 's/^/| /' conftest.$ac_ext >&5
12939
12940
Owen Anderson27fcfe12009-06-25 23:10:26 +000012941fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012942
Owen Anderson27fcfe12009-06-25 23:10:26 +000012943rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012944 conftest$ac_exeext
12945 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012946 break
12947fi
12948done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012949if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12950 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000012951else
12952 ac_cv_search_pthread_getspecific=no
12953fi
12954rm conftest.$ac_ext
12955LIBS=$ac_func_search_save_LIBS
12956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012957{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12958echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000012959ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012960if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963cat >>confdefs.h <<\_ACEOF
12964#define HAVE_PTHREAD_GETSPECIFIC 1
12965_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012966
12967fi
12968
Reid Spencer0a262ba2005-08-24 10:07:20 +000012969fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000012970
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012971
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012972# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012973if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012974 withval=$with_udis86;
12975 USE_UDIS86=1
12976
12977 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000012978 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012979 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12980 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012981
12982{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12983echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12984if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012986else
12987 ac_check_lib_save_LIBS=$LIBS
12988LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012989cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012994/* end confdefs.h. */
12995
12996/* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
12999#ifdef __cplusplus
13000extern "C"
13001#endif
13002char ud_init ();
13003int
13004main ()
13005{
13006return ud_init ();
13007 ;
13008 return 0;
13009}
13010_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013011rm -f conftest.$ac_objext conftest$ac_exeext
13012if { (ac_try="$ac_link"
13013case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016esac
13017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_link") 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13026 { (case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13029esac
13030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031 (eval "$ac_try") 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest$ac_exeext'
13036 { (case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039esac
13040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_try") 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013045 ac_cv_lib_udis86_ud_init=yes
13046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013047 echo "$as_me: failed program was:" >&5
13048sed 's/^/| /' conftest.$ac_ext >&5
13049
13050 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013051fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013052
Bill Wendlingebcceee2009-04-18 11:20:33 +000013053rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013054 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013055LIBS=$ac_check_lib_save_LIBS
13056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013057{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13058echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13059if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013060 cat >>confdefs.h <<_ACEOF
13061#define HAVE_LIBUDIS86 1
13062_ACEOF
13063
13064 LIBS="-ludis86 $LIBS"
13065
13066else
13067
13068 echo "Error! You need to have libudis86 around."
13069 exit -1
13070
13071fi
13072
13073
13074else
13075 USE_UDIS86=0
13076
13077fi
13078
13079
13080cat >>confdefs.h <<_ACEOF
13081#define USE_UDIS86 $USE_UDIS86
13082_ACEOF
13083
13084
13085
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013086# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013087if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013088 withval=$with_oprofile;
13089 USE_OPROFILE=1
13090
13091 case "$withval" in
13092 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013093 no) llvm_cv_oppath=
13094 USE_OPROFILE=0
13095 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013096 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013097 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013098 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013099 case $llvm_cv_os_type in
13100 Linux)
13101 if test -n "$llvm_cv_oppath" ; then
13102 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13103 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13105if test "${ac_cv_search_bfd_init+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013107else
13108 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013109cat >conftest.$ac_ext <<_ACEOF
13110/* confdefs.h. */
13111_ACEOF
13112cat confdefs.h >>conftest.$ac_ext
13113cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013114/* end confdefs.h. */
13115
13116/* Override any GCC internal prototype to avoid an error.
13117 Use char because int might match the return type of a GCC
13118 builtin and then its argument prototype would still apply. */
13119#ifdef __cplusplus
13120extern "C"
13121#endif
13122char bfd_init ();
13123int
13124main ()
13125{
13126return bfd_init ();
13127 ;
13128 return 0;
13129}
13130_ACEOF
13131for ac_lib in '' bfd; do
13132 if test -z "$ac_lib"; then
13133 ac_res="none required"
13134 else
13135 ac_res=-l$ac_lib
13136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13137 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138 rm -f conftest.$ac_objext conftest$ac_exeext
13139if { (ac_try="$ac_link"
13140case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13143esac
13144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_link") 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156esac
13157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest$ac_exeext'
13163 { (case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13166esac
13167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_try") 2>&5
13169 ac_status=$?
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013172 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013173else
13174 echo "$as_me: failed program was:" >&5
13175sed 's/^/| /' conftest.$ac_ext >&5
13176
13177
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013179
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013180rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013181 conftest$ac_exeext
13182 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013183 break
13184fi
13185done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013186if test "${ac_cv_search_bfd_init+set}" = set; then
13187 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013188else
13189 ac_cv_search_bfd_init=no
13190fi
13191rm conftest.$ac_ext
13192LIBS=$ac_func_search_save_LIBS
13193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013194{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13195echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013196ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13199
13200fi
13201
Eli Bendersky61b18512012-03-13 08:33:15 +000013202 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013203echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13204if test "${ac_cv_search_op_open_agent+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013206else
13207 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013208cat >conftest.$ac_ext <<_ACEOF
13209/* confdefs.h. */
13210_ACEOF
13211cat confdefs.h >>conftest.$ac_ext
13212cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013213/* end confdefs.h. */
13214
13215/* Override any GCC internal prototype to avoid an error.
13216 Use char because int might match the return type of a GCC
13217 builtin and then its argument prototype would still apply. */
13218#ifdef __cplusplus
13219extern "C"
13220#endif
13221char op_open_agent ();
13222int
13223main ()
13224{
13225return op_open_agent ();
13226 ;
13227 return 0;
13228}
13229_ACEOF
13230for ac_lib in '' opagent; do
13231 if test -z "$ac_lib"; then
13232 ac_res="none required"
13233 else
13234 ac_res=-l$ac_lib
13235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13236 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013237 rm -f conftest.$ac_objext conftest$ac_exeext
13238if { (ac_try="$ac_link"
13239case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242esac
13243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_link") 2>conftest.er1
13245 ac_status=$?
13246 grep -v '^ *+' conftest.er1 >conftest.err
13247 rm -f conftest.er1
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13252 { (case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255esac
13256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_try") 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest$ac_exeext'
13262 { (case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13265esac
13266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_try") 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013271 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013272else
13273 echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013278
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013279rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280 conftest$ac_exeext
13281 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013282 break
13283fi
13284done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285if test "${ac_cv_search_op_open_agent+set}" = set; then
13286 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013287else
13288 ac_cv_search_op_open_agent=no
13289fi
13290rm conftest.$ac_ext
13291LIBS=$ac_func_search_save_LIBS
13292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13294echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013295ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13298
13299else
13300
Eli Bendersky61b18512012-03-13 08:33:15 +000013301 echo "Error! You need to have libopagent around."
13302 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013303
13304fi
13305
Eli Bendersky61b18512012-03-13 08:33:15 +000013306 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013307 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13308echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13309if test "${ac_cv_header_opagent_h+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311fi
13312{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13313echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13314else
13315 # Is the header compilable?
13316{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13317echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13318cat >conftest.$ac_ext <<_ACEOF
13319/* confdefs.h. */
13320_ACEOF
13321cat confdefs.h >>conftest.$ac_ext
13322cat >>conftest.$ac_ext <<_ACEOF
13323/* end confdefs.h. */
13324$ac_includes_default
13325#include <opagent.h>
13326_ACEOF
13327rm -f conftest.$ac_objext
13328if { (ac_try="$ac_compile"
13329case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332esac
13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_compile") 2>conftest.er1
13335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
13341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345esac
13346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest.$ac_objext'
13352 { (case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13355esac
13356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_try") 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_header_compiler=yes
13362else
13363 echo "$as_me: failed program was:" >&5
13364sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013366 ac_header_compiler=no
13367fi
13368
13369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13371echo "${ECHO_T}$ac_header_compiler" >&6; }
13372
13373# Is the header present?
13374{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13375echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13376cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h. */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
13381/* end confdefs.h. */
13382#include <opagent.h>
13383_ACEOF
13384if { (ac_try="$ac_cpp conftest.$ac_ext"
13385case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13388esac
13389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } >/dev/null; then
13397 if test -s conftest.err; then
13398 ac_cpp_err=$ac_c_preproc_warn_flag
13399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13400 else
13401 ac_cpp_err=
13402 fi
13403else
13404 ac_cpp_err=yes
13405fi
13406if test -z "$ac_cpp_err"; then
13407 ac_header_preproc=yes
13408else
13409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 ac_header_preproc=no
13413fi
13414
13415rm -f conftest.err conftest.$ac_ext
13416{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13417echo "${ECHO_T}$ac_header_preproc" >&6; }
13418
13419# So? What about this header?
13420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13421 yes:no: )
13422 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13423echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13425echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13426 ac_header_preproc=yes
13427 ;;
13428 no:yes:* )
13429 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13430echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13432echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13434echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13435 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13436echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13438echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13440echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13441 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013442## ------------------------------------ ##
13443## Report this to http://llvm.org/bugs/ ##
13444## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013445_ASBOX
13446 ) | sed "s/^/$as_me: WARNING: /" >&2
13447 ;;
13448esac
13449{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13450echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13451if test "${ac_cv_header_opagent_h+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453else
13454 ac_cv_header_opagent_h=$ac_header_preproc
13455fi
13456{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13457echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13458
13459fi
13460if test $ac_cv_header_opagent_h = yes; then
13461 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013462else
13463
Eli Bendersky61b18512012-03-13 08:33:15 +000013464 echo "Error! You need to have opagent.h around."
13465 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013466
13467fi
13468
13469
Eli Bendersky61b18512012-03-13 08:33:15 +000013470 fi ;;
13471 *)
13472 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13473echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13474 { (exit 1); exit 1; }; } ;;
13475 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013476
13477else
13478
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013479 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013480
13481
13482fi
13483
13484
13485cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013486#define LLVM_USE_OPROFILE $USE_OPROFILE
13487_ACEOF
13488
13489
13490
13491# Check whether --with-intel-jitevents was given.
13492if test "${with_intel_jitevents+set}" = set; then
13493 withval=$with_intel_jitevents;
13494 case $llvm_cv_os_type in
13495 Linux|Win32|Cygwin|MingW) ;;
13496 *)
13497 { { echo "$as_me:$LINENO: error:
13498 Intel JIT API support is available on Linux and Windows only.\"" >&5
13499echo "$as_me: error:
13500 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13501 { (exit 1); exit 1; }; } ;;
13502 esac
13503
13504 USE_INTEL_JITEVENTS=1
13505
13506 case "$llvm_cv_target_arch" in
13507 x86) llvm_intel_jitevents_archdir="lib32";;
13508 x86_64) llvm_intel_jitevents_archdir="lib64";;
13509 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13510 exit -1;;
13511 esac
13512 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13513 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13514 case "$withval" in
13515 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13516 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13517 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013518 esac
13519
13520
13521
13522
13523 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
Eric Christopher42dffa52012-08-03 17:45:31 +000013524 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
Eli Bendersky61b18512012-03-13 08:33:15 +000013525
13526 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13527echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13528if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530else
13531 ac_func_search_save_LIBS=$LIBS
13532cat >conftest.$ac_ext <<_ACEOF
13533/* confdefs.h. */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
13537/* end confdefs.h. */
13538
13539/* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
13542#ifdef __cplusplus
13543extern "C"
13544#endif
13545char iJIT_IsProfilingActive ();
13546int
13547main ()
13548{
13549return iJIT_IsProfilingActive ();
13550 ;
13551 return 0;
13552}
13553_ACEOF
13554for ac_lib in '' jitprofiling; do
13555 if test -z "$ac_lib"; then
13556 ac_res="none required"
13557 else
13558 ac_res=-l$ac_lib
13559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13560 fi
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562if { (ac_try="$ac_link"
13563case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566esac
13567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_link") 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579esac
13580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_try") 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest$ac_exeext'
13586 { (case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589esac
13590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_try") 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13596else
13597 echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
13600
13601fi
13602
13603rm -f core conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext
13605 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13606 break
13607fi
13608done
13609if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13610 :
13611else
13612 ac_cv_search_iJIT_IsProfilingActive=no
13613fi
13614rm conftest.$ac_ext
13615LIBS=$ac_func_search_save_LIBS
13616fi
13617{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13618echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13619ac_res=$ac_cv_search_iJIT_IsProfilingActive
13620if test "$ac_res" != no; then
13621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13622
13623else
13624
13625 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13626 exit -1
13627
13628fi
13629
13630 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13631 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13632echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13633if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635fi
13636{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13637echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13638else
13639 # Is the header compilable?
13640{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13641echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13642cat >conftest.$ac_ext <<_ACEOF
13643/* confdefs.h. */
13644_ACEOF
13645cat confdefs.h >>conftest.$ac_ext
13646cat >>conftest.$ac_ext <<_ACEOF
13647/* end confdefs.h. */
13648$ac_includes_default
13649#include <jitprofiling.h>
13650_ACEOF
13651rm -f conftest.$ac_objext
13652if { (ac_try="$ac_compile"
13653case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13656esac
13657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_compile") 2>conftest.er1
13659 ac_status=$?
13660 grep -v '^ *+' conftest.er1 >conftest.err
13661 rm -f conftest.er1
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13666 { (case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13669esac
13670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_try") 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679esac
13680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_header_compiler=yes
13686else
13687 echo "$as_me: failed program was:" >&5
13688sed 's/^/| /' conftest.$ac_ext >&5
13689
13690 ac_header_compiler=no
13691fi
13692
13693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13695echo "${ECHO_T}$ac_header_compiler" >&6; }
13696
13697# Is the header present?
13698{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13699echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13700cat >conftest.$ac_ext <<_ACEOF
13701/* confdefs.h. */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
13705/* end confdefs.h. */
13706#include <jitprofiling.h>
13707_ACEOF
13708if { (ac_try="$ac_cpp conftest.$ac_ext"
13709case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13715 ac_status=$?
13716 grep -v '^ *+' conftest.er1 >conftest.err
13717 rm -f conftest.er1
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } >/dev/null; then
13721 if test -s conftest.err; then
13722 ac_cpp_err=$ac_c_preproc_warn_flag
13723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13724 else
13725 ac_cpp_err=
13726 fi
13727else
13728 ac_cpp_err=yes
13729fi
13730if test -z "$ac_cpp_err"; then
13731 ac_header_preproc=yes
13732else
13733 echo "$as_me: failed program was:" >&5
13734sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 ac_header_preproc=no
13737fi
13738
13739rm -f conftest.err conftest.$ac_ext
13740{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741echo "${ECHO_T}$ac_header_preproc" >&6; }
13742
13743# So? What about this header?
13744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745 yes:no: )
13746 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13747echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13749echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13750 ac_header_preproc=yes
13751 ;;
13752 no:yes:* )
13753 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13754echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13756echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13758echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13760echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13762echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13764echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13765 ( cat <<\_ASBOX
13766## ------------------------------------ ##
13767## Report this to http://llvm.org/bugs/ ##
13768## ------------------------------------ ##
13769_ASBOX
13770 ) | sed "s/^/$as_me: WARNING: /" >&2
13771 ;;
13772esac
13773{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13774echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13775if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13777else
13778 ac_cv_header_jitprofiling_h=$ac_header_preproc
13779fi
13780{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13781echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13782
13783fi
13784if test $ac_cv_header_jitprofiling_h = yes; then
13785 :
13786else
13787
13788 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13789 exit -1
13790
13791fi
13792
13793
13794
13795
13796else
13797
13798 USE_INTEL_JITEVENTS=0
13799
13800
13801fi
13802
13803
13804cat >>confdefs.h <<_ACEOF
13805#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013806_ACEOF
13807
13808
13809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013810
13811
13812
13813
13814
Reid Spencer59473af2004-12-25 07:31:29 +000013815ac_header_dirent=no
13816for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013817 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13818{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13819echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013823 cat >conftest.$ac_ext <<_ACEOF
13824/* confdefs.h. */
13825_ACEOF
13826cat confdefs.h >>conftest.$ac_ext
13827cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013828/* end confdefs.h. */
13829#include <sys/types.h>
13830#include <$ac_hdr>
13831
13832int
13833main ()
13834{
13835if ((DIR *) 0)
13836return 0;
13837 ;
13838 return 0;
13839}
13840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013841rm -f conftest.$ac_objext
13842if { (ac_try="$ac_compile"
13843case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13846esac
13847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_compile") 2>conftest.er1
13849 ac_status=$?
13850 grep -v '^ *+' conftest.er1 >conftest.err
13851 rm -f conftest.er1
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13859esac
13860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest.$ac_objext'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013875 eval "$as_ac_Header=yes"
13876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013877 echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
13880 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013882
Reid Spencera773bd52006-08-04 18:18:08 +000013883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013885ac_res=`eval echo '${'$as_ac_Header'}'`
13886 { echo "$as_me:$LINENO: result: $ac_res" >&5
13887echo "${ECHO_T}$ac_res" >&6; }
13888if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013889 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013890#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013891_ACEOF
13892
13893ac_header_dirent=$ac_hdr; break
13894fi
13895
13896done
13897# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13898if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013899 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13900echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13901if test "${ac_cv_search_opendir+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013903else
13904 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013905cat >conftest.$ac_ext <<_ACEOF
13906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013910/* end confdefs.h. */
13911
Reid Spencera773bd52006-08-04 18:18:08 +000013912/* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013915#ifdef __cplusplus
13916extern "C"
13917#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013918char opendir ();
13919int
13920main ()
13921{
Reid Spencera773bd52006-08-04 18:18:08 +000013922return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013923 ;
13924 return 0;
13925}
13926_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013927for ac_lib in '' dir; do
13928 if test -z "$ac_lib"; then
13929 ac_res="none required"
13930 else
13931 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013933 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013934 rm -f conftest.$ac_objext conftest$ac_exeext
13935if { (ac_try="$ac_link"
13936case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_link") 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952esac
13953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest$ac_exeext'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962esac
13963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013968 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973
Reid Spencer59473af2004-12-25 07:31:29 +000013974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013975
Bill Wendlingebcceee2009-04-18 11:20:33 +000013976rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013977 conftest$ac_exeext
13978 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013979 break
Reid Spencer59473af2004-12-25 07:31:29 +000013980fi
Reid Spencera773bd52006-08-04 18:18:08 +000013981done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013982if test "${ac_cv_search_opendir+set}" = set; then
13983 :
Reid Spencera773bd52006-08-04 18:18:08 +000013984else
13985 ac_cv_search_opendir=no
13986fi
13987rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013988LIBS=$ac_func_search_save_LIBS
13989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013990{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13991echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013992ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013993if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013995
13996fi
13997
13998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013999 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14000echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14001if test "${ac_cv_search_opendir+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014003else
14004 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014005cat >conftest.$ac_ext <<_ACEOF
14006/* confdefs.h. */
14007_ACEOF
14008cat confdefs.h >>conftest.$ac_ext
14009cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014010/* end confdefs.h. */
14011
Reid Spencera773bd52006-08-04 18:18:08 +000014012/* Override any GCC internal prototype to avoid an error.
14013 Use char because int might match the return type of a GCC
14014 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014015#ifdef __cplusplus
14016extern "C"
14017#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014018char opendir ();
14019int
14020main ()
14021{
Reid Spencera773bd52006-08-04 18:18:08 +000014022return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014023 ;
14024 return 0;
14025}
14026_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014027for ac_lib in '' x; do
14028 if test -z "$ac_lib"; then
14029 ac_res="none required"
14030 else
14031 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014033 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014034 rm -f conftest.$ac_objext conftest$ac_exeext
14035if { (ac_try="$ac_link"
14036case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14039esac
14040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_link") 2>conftest.er1
14042 ac_status=$?
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14049 { (case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14052esac
14053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_try") 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest$ac_exeext'
14059 { (case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14062esac
14063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_try") 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014068 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069else
14070 echo "$as_me: failed program was:" >&5
14071sed 's/^/| /' conftest.$ac_ext >&5
14072
14073
Reid Spencer59473af2004-12-25 07:31:29 +000014074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014075
Bill Wendlingebcceee2009-04-18 11:20:33 +000014076rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014077 conftest$ac_exeext
14078 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014079 break
Reid Spencer59473af2004-12-25 07:31:29 +000014080fi
Reid Spencera773bd52006-08-04 18:18:08 +000014081done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014082if test "${ac_cv_search_opendir+set}" = set; then
14083 :
Reid Spencera773bd52006-08-04 18:18:08 +000014084else
14085 ac_cv_search_opendir=no
14086fi
14087rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014088LIBS=$ac_func_search_save_LIBS
14089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14091echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014092ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014093if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014095
14096fi
14097
14098fi
14099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14101echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14102if test "${ac_cv_header_mmap_anon+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014104else
14105 ac_ext=c
14106ac_cpp='$CPP $CPPFLAGS'
14107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109ac_compiler_gnu=$ac_cv_c_compiler_gnu
14110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111 cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h. */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014116/* end confdefs.h. */
14117#include <sys/mman.h>
14118#include <unistd.h>
14119#include <fcntl.h>
14120int
14121main ()
14122{
14123mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14124 ;
14125 return 0;
14126}
14127_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014128rm -f conftest.$ac_objext
14129if { (ac_try="$ac_compile"
14130case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133esac
14134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_compile") 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143 { (case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14146esac
14147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_try") 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest.$ac_objext'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14156esac
14157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014162 ac_cv_header_mmap_anon=yes
14163else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164 echo "$as_me: failed program was:" >&5
14165sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169
Reid Spencera773bd52006-08-04 18:18:08 +000014170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014171 ac_ext=c
14172ac_cpp='$CPP $CPPFLAGS'
14173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14175ac_compiler_gnu=$ac_cv_c_compiler_gnu
14176
14177
14178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14180echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014181if test "$ac_cv_header_mmap_anon" = yes; then
14182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014183cat >>confdefs.h <<\_ACEOF
14184#define HAVE_MMAP_ANONYMOUS 1
14185_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014186
14187fi
14188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014189{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14190echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14191if test "${ac_cv_header_stat_broken+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014194 cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014199/* end confdefs.h. */
14200#include <sys/types.h>
14201#include <sys/stat.h>
14202
Reid Spencera773bd52006-08-04 18:18:08 +000014203#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204# if S_ISBLK (S_IFDIR)
14205You lose.
14206# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014207#endif
14208
Reid Spencera773bd52006-08-04 18:18:08 +000014209#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014210# if S_ISBLK (S_IFCHR)
14211You lose.
14212# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014213#endif
14214
Reid Spencera773bd52006-08-04 18:18:08 +000014215#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014216# if S_ISLNK (S_IFREG)
14217You lose.
14218# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014219#endif
14220
Reid Spencera773bd52006-08-04 18:18:08 +000014221#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014222# if S_ISSOCK (S_IFREG)
14223You lose.
14224# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014225#endif
14226
14227_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14229 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014230 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014231else
14232 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234rm -f conftest*
14235
Reid Spencer59473af2004-12-25 07:31:29 +000014236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14238echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014239if test $ac_cv_header_stat_broken = yes; then
14240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241cat >>confdefs.h <<\_ACEOF
14242#define STAT_MACROS_BROKEN 1
14243_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014244
14245fi
14246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14248echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14249if test "${ac_cv_header_sys_wait_h+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014252 cat >conftest.$ac_ext <<_ACEOF
14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014257/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014258#include <sys/types.h>
14259#include <sys/wait.h>
14260#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014261# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014262#endif
14263#ifndef WIFEXITED
14264# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14265#endif
14266
John Criswell7a73b802003-06-30 21:59:07 +000014267int
14268main ()
14269{
14270 int s;
14271 wait (&s);
14272 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14273 ;
14274 return 0;
14275}
14276_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014277rm -f conftest.$ac_objext
14278if { (ac_try="$ac_compile"
14279case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14282esac
14283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_compile") 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14292 { (case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295esac
14296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_try") 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; } &&
14301 { ac_try='test -s conftest.$ac_objext'
14302 { (case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305esac
14306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_try") 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014311 ac_cv_header_sys_wait_h=yes
14312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014313 echo "$as_me: failed program was:" >&5
14314sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318
Reid Spencera773bd52006-08-04 18:18:08 +000014319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014321{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14322echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014323if test $ac_cv_header_sys_wait_h = yes; then
14324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014325cat >>confdefs.h <<\_ACEOF
14326#define HAVE_SYS_WAIT_H 1
14327_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014328
14329fi
14330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014331{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14332echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14333if test "${ac_cv_header_time+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014336 cat >conftest.$ac_ext <<_ACEOF
14337/* confdefs.h. */
14338_ACEOF
14339cat confdefs.h >>conftest.$ac_ext
14340cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014341/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014342#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014343#include <sys/time.h>
14344#include <time.h>
14345
14346int
14347main ()
14348{
14349if ((struct tm *) 0)
14350return 0;
14351 ;
14352 return 0;
14353}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014354_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355rm -f conftest.$ac_objext
14356if { (ac_try="$ac_compile"
14357case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14360esac
14361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_compile") 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373esac
14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383esac
14384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014389 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014391 echo "$as_me: failed program was:" >&5
14392sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014396
Reid Spencera773bd52006-08-04 18:18:08 +000014397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014399{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14400echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014401if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014403cat >>confdefs.h <<\_ACEOF
14404#define TIME_WITH_SYS_TIME 1
14405_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014406
14407fi
14408
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410
14411
14412
14413
14414
14415
Reid Spencer59473af2004-12-25 07:31:29 +000014416for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014417do
14418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424fi
14425ac_res=`eval echo '${'$as_ac_Header'}'`
14426 { echo "$as_me:$LINENO: result: $ac_res" >&5
14427echo "${ECHO_T}$ac_res" >&6; }
14428else
14429 # Is the header compilable?
14430{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14432cat >conftest.$ac_ext <<_ACEOF
14433/* confdefs.h. */
14434_ACEOF
14435cat confdefs.h >>conftest.$ac_ext
14436cat >>conftest.$ac_ext <<_ACEOF
14437/* end confdefs.h. */
14438$ac_includes_default
14439#include <$ac_header>
14440_ACEOF
14441rm -f conftest.$ac_objext
14442if { (ac_try="$ac_compile"
14443case "(($ac_try" in
14444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445 *) ac_try_echo=$ac_try;;
14446esac
14447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14448 (eval "$ac_compile") 2>conftest.er1
14449 ac_status=$?
14450 grep -v '^ *+' conftest.er1 >conftest.err
14451 rm -f conftest.er1
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14456 { (case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14459esac
14460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_try") 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest.$ac_objext'
14466 { (case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14469esac
14470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_try") 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14475 ac_header_compiler=yes
14476else
14477 echo "$as_me: failed program was:" >&5
14478sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 ac_header_compiler=no
14481fi
14482
14483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14485echo "${ECHO_T}$ac_header_compiler" >&6; }
14486
14487# Is the header present?
14488{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14490cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496#include <$ac_header>
14497_ACEOF
14498if { (ac_try="$ac_cpp conftest.$ac_ext"
14499case "(($ac_try" in
14500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501 *) ac_try_echo=$ac_try;;
14502esac
14503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14505 ac_status=$?
14506 grep -v '^ *+' conftest.er1 >conftest.err
14507 rm -f conftest.er1
14508 cat conftest.err >&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } >/dev/null; then
14511 if test -s conftest.err; then
14512 ac_cpp_err=$ac_c_preproc_warn_flag
14513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14514 else
14515 ac_cpp_err=
14516 fi
14517else
14518 ac_cpp_err=yes
14519fi
14520if test -z "$ac_cpp_err"; then
14521 ac_header_preproc=yes
14522else
14523 echo "$as_me: failed program was:" >&5
14524sed 's/^/| /' conftest.$ac_ext >&5
14525
14526 ac_header_preproc=no
14527fi
14528
14529rm -f conftest.err conftest.$ac_ext
14530{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14531echo "${ECHO_T}$ac_header_preproc" >&6; }
14532
14533# So? What about this header?
14534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14535 yes:no: )
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14540 ac_header_preproc=yes
14541 ;;
14542 no:yes:* )
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14555 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014556## ------------------------------------ ##
14557## Report this to http://llvm.org/bugs/ ##
14558## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014559_ASBOX
14560 ) | sed "s/^/$as_me: WARNING: /" >&2
14561 ;;
14562esac
14563{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567else
14568 eval "$as_ac_Header=\$ac_header_preproc"
14569fi
14570ac_res=`eval echo '${'$as_ac_Header'}'`
14571 { echo "$as_me:$LINENO: result: $ac_res" >&5
14572echo "${ECHO_T}$ac_res" >&6; }
14573
14574fi
14575if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014576 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014578_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014579
14580fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014581
Reid Spencer59473af2004-12-25 07:31:29 +000014582done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014584
14585
14586
14587
14588
14589
Douglas Gregor071d73d2009-05-18 17:21:34 +000014590for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014591do
14592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14598fi
14599ac_res=`eval echo '${'$as_ac_Header'}'`
14600 { echo "$as_me:$LINENO: result: $ac_res" >&5
14601echo "${ECHO_T}$ac_res" >&6; }
14602else
14603 # Is the header compilable?
14604{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14606cat >conftest.$ac_ext <<_ACEOF
14607/* confdefs.h. */
14608_ACEOF
14609cat confdefs.h >>conftest.$ac_ext
14610cat >>conftest.$ac_ext <<_ACEOF
14611/* end confdefs.h. */
14612$ac_includes_default
14613#include <$ac_header>
14614_ACEOF
14615rm -f conftest.$ac_objext
14616if { (ac_try="$ac_compile"
14617case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620esac
14621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_compile") 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14630 { (case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633esac
14634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_try") 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest.$ac_objext'
14640 { (case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643esac
14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_try") 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_header_compiler=yes
14650else
14651 echo "$as_me: failed program was:" >&5
14652sed 's/^/| /' conftest.$ac_ext >&5
14653
14654 ac_header_compiler=no
14655fi
14656
14657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14659echo "${ECHO_T}$ac_header_compiler" >&6; }
14660
14661# Is the header present?
14662{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14664cat >conftest.$ac_ext <<_ACEOF
14665/* confdefs.h. */
14666_ACEOF
14667cat confdefs.h >>conftest.$ac_ext
14668cat >>conftest.$ac_ext <<_ACEOF
14669/* end confdefs.h. */
14670#include <$ac_header>
14671_ACEOF
14672if { (ac_try="$ac_cpp conftest.$ac_ext"
14673case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14676esac
14677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } >/dev/null; then
14685 if test -s conftest.err; then
14686 ac_cpp_err=$ac_c_preproc_warn_flag
14687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14688 else
14689 ac_cpp_err=
14690 fi
14691else
14692 ac_cpp_err=yes
14693fi
14694if test -z "$ac_cpp_err"; then
14695 ac_header_preproc=yes
14696else
14697 echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
14700 ac_header_preproc=no
14701fi
14702
14703rm -f conftest.err conftest.$ac_ext
14704{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14705echo "${ECHO_T}$ac_header_preproc" >&6; }
14706
14707# So? What about this header?
14708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14709 yes:no: )
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14711echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14713echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14714 ac_header_preproc=yes
14715 ;;
14716 no:yes:* )
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14718echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14720echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14722echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14724echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14726echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14728echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14729 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014730## ------------------------------------ ##
14731## Report this to http://llvm.org/bugs/ ##
14732## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014733_ASBOX
14734 ) | sed "s/^/$as_me: WARNING: /" >&2
14735 ;;
14736esac
14737{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742 eval "$as_ac_Header=\$ac_header_preproc"
14743fi
14744ac_res=`eval echo '${'$as_ac_Header'}'`
14745 { echo "$as_me:$LINENO: result: $ac_res" >&5
14746echo "${ECHO_T}$ac_res" >&6; }
14747
14748fi
14749if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014750 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014752_ACEOF
14753
14754fi
14755
14756done
14757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014758
14759
Douglas Gregor071d73d2009-05-18 17:21:34 +000014760for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014761do
14762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768fi
14769ac_res=`eval echo '${'$as_ac_Header'}'`
14770 { echo "$as_me:$LINENO: result: $ac_res" >&5
14771echo "${ECHO_T}$ac_res" >&6; }
14772else
14773 # Is the header compilable?
14774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14776cat >conftest.$ac_ext <<_ACEOF
14777/* confdefs.h. */
14778_ACEOF
14779cat confdefs.h >>conftest.$ac_ext
14780cat >>conftest.$ac_ext <<_ACEOF
14781/* end confdefs.h. */
14782$ac_includes_default
14783#include <$ac_header>
14784_ACEOF
14785rm -f conftest.$ac_objext
14786if { (ac_try="$ac_compile"
14787case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14790esac
14791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792 (eval "$ac_compile") 2>conftest.er1
14793 ac_status=$?
14794 grep -v '^ *+' conftest.er1 >conftest.err
14795 rm -f conftest.er1
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14800 { (case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14803esac
14804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_try") 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } &&
14809 { ac_try='test -s conftest.$ac_objext'
14810 { (case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14813esac
14814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_try") 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_header_compiler=yes
14820else
14821 echo "$as_me: failed program was:" >&5
14822sed 's/^/| /' conftest.$ac_ext >&5
14823
14824 ac_header_compiler=no
14825fi
14826
14827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14829echo "${ECHO_T}$ac_header_compiler" >&6; }
14830
14831# Is the header present?
14832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14834cat >conftest.$ac_ext <<_ACEOF
14835/* confdefs.h. */
14836_ACEOF
14837cat confdefs.h >>conftest.$ac_ext
14838cat >>conftest.$ac_ext <<_ACEOF
14839/* end confdefs.h. */
14840#include <$ac_header>
14841_ACEOF
14842if { (ac_try="$ac_cpp conftest.$ac_ext"
14843case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14846esac
14847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14849 ac_status=$?
14850 grep -v '^ *+' conftest.er1 >conftest.err
14851 rm -f conftest.er1
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } >/dev/null; then
14855 if test -s conftest.err; then
14856 ac_cpp_err=$ac_c_preproc_warn_flag
14857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14858 else
14859 ac_cpp_err=
14860 fi
14861else
14862 ac_cpp_err=yes
14863fi
14864if test -z "$ac_cpp_err"; then
14865 ac_header_preproc=yes
14866else
14867 echo "$as_me: failed program was:" >&5
14868sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 ac_header_preproc=no
14871fi
14872
14873rm -f conftest.err conftest.$ac_ext
14874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14875echo "${ECHO_T}$ac_header_preproc" >&6; }
14876
14877# So? What about this header?
14878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14879 yes:no: )
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14884 ac_header_preproc=yes
14885 ;;
14886 no:yes:* )
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14899 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014900## ------------------------------------ ##
14901## Report this to http://llvm.org/bugs/ ##
14902## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014903_ASBOX
14904 ) | sed "s/^/$as_me: WARNING: /" >&2
14905 ;;
14906esac
14907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14911else
14912 eval "$as_ac_Header=\$ac_header_preproc"
14913fi
14914ac_res=`eval echo '${'$as_ac_Header'}'`
14915 { echo "$as_me:$LINENO: result: $ac_res" >&5
14916echo "${ECHO_T}$ac_res" >&6; }
14917
14918fi
14919if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014920 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014922_ACEOF
14923
14924fi
14925
14926done
Reid Spencer59473af2004-12-25 07:31:29 +000014927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014928
14929
14930
14931
Daniel Dunbar3e462932011-02-03 02:40:02 +000014932
14933for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014934do
14935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14941fi
14942ac_res=`eval echo '${'$as_ac_Header'}'`
14943 { echo "$as_me:$LINENO: result: $ac_res" >&5
14944echo "${ECHO_T}$ac_res" >&6; }
14945else
14946 # Is the header compilable?
14947{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14949cat >conftest.$ac_ext <<_ACEOF
14950/* confdefs.h. */
14951_ACEOF
14952cat confdefs.h >>conftest.$ac_ext
14953cat >>conftest.$ac_ext <<_ACEOF
14954/* end confdefs.h. */
14955$ac_includes_default
14956#include <$ac_header>
14957_ACEOF
14958rm -f conftest.$ac_objext
14959if { (ac_try="$ac_compile"
14960case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963esac
14964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_compile") 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14973 { (case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14976esac
14977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_try") 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986esac
14987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_header_compiler=yes
14993else
14994 echo "$as_me: failed program was:" >&5
14995sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ac_header_compiler=no
14998fi
14999
15000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15002echo "${ECHO_T}$ac_header_compiler" >&6; }
15003
15004# Is the header present?
15005{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15007cat >conftest.$ac_ext <<_ACEOF
15008/* confdefs.h. */
15009_ACEOF
15010cat confdefs.h >>conftest.$ac_ext
15011cat >>conftest.$ac_ext <<_ACEOF
15012/* end confdefs.h. */
15013#include <$ac_header>
15014_ACEOF
15015if { (ac_try="$ac_cpp conftest.$ac_ext"
15016case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15019esac
15020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15022 ac_status=$?
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } >/dev/null; then
15028 if test -s conftest.err; then
15029 ac_cpp_err=$ac_c_preproc_warn_flag
15030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15031 else
15032 ac_cpp_err=
15033 fi
15034else
15035 ac_cpp_err=yes
15036fi
15037if test -z "$ac_cpp_err"; then
15038 ac_header_preproc=yes
15039else
15040 echo "$as_me: failed program was:" >&5
15041sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 ac_header_preproc=no
15044fi
15045
15046rm -f conftest.err conftest.$ac_ext
15047{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15048echo "${ECHO_T}$ac_header_preproc" >&6; }
15049
15050# So? What about this header?
15051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052 yes:no: )
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15057 ac_header_preproc=yes
15058 ;;
15059 no:yes:* )
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15072 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015073## ------------------------------------ ##
15074## Report this to http://llvm.org/bugs/ ##
15075## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076_ASBOX
15077 ) | sed "s/^/$as_me: WARNING: /" >&2
15078 ;;
15079esac
15080{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084else
15085 eval "$as_ac_Header=\$ac_header_preproc"
15086fi
15087ac_res=`eval echo '${'$as_ac_Header'}'`
15088 { echo "$as_me:$LINENO: result: $ac_res" >&5
15089echo "${ECHO_T}$ac_res" >&6; }
15090
15091fi
15092if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015093 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015095_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015096
15097fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015098
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015099done
15100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015101
15102
15103
15104
Douglas Gregor01746742009-05-11 18:05:52 +000015105for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015106do
15107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113fi
15114ac_res=`eval echo '${'$as_ac_Header'}'`
15115 { echo "$as_me:$LINENO: result: $ac_res" >&5
15116echo "${ECHO_T}$ac_res" >&6; }
15117else
15118 # Is the header compilable?
15119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15121cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127$ac_includes_default
15128#include <$ac_header>
15129_ACEOF
15130rm -f conftest.$ac_objext
15131if { (ac_try="$ac_compile"
15132case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135esac
15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_compile") 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145 { (case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148esac
15149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_try") 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158esac
15159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_try") 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_header_compiler=yes
15165else
15166 echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_header_compiler=no
15170fi
15171
15172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15174echo "${ECHO_T}$ac_header_compiler" >&6; }
15175
15176# Is the header present?
15177{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15178echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15179cat >conftest.$ac_ext <<_ACEOF
15180/* confdefs.h. */
15181_ACEOF
15182cat confdefs.h >>conftest.$ac_ext
15183cat >>conftest.$ac_ext <<_ACEOF
15184/* end confdefs.h. */
15185#include <$ac_header>
15186_ACEOF
15187if { (ac_try="$ac_cpp conftest.$ac_ext"
15188case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15191esac
15192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } >/dev/null; then
15200 if test -s conftest.err; then
15201 ac_cpp_err=$ac_c_preproc_warn_flag
15202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15203 else
15204 ac_cpp_err=
15205 fi
15206else
15207 ac_cpp_err=yes
15208fi
15209if test -z "$ac_cpp_err"; then
15210 ac_header_preproc=yes
15211else
15212 echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 ac_header_preproc=no
15216fi
15217
15218rm -f conftest.err conftest.$ac_ext
15219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220echo "${ECHO_T}$ac_header_preproc" >&6; }
15221
15222# So? What about this header?
15223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224 yes:no: )
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229 ac_header_preproc=yes
15230 ;;
15231 no:yes:* )
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15244 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015245## ------------------------------------ ##
15246## Report this to http://llvm.org/bugs/ ##
15247## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248_ASBOX
15249 ) | sed "s/^/$as_me: WARNING: /" >&2
15250 ;;
15251esac
15252{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
15257 eval "$as_ac_Header=\$ac_header_preproc"
15258fi
15259ac_res=`eval echo '${'$as_ac_Header'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261echo "${ECHO_T}$ac_res" >&6; }
15262
15263fi
15264if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015265 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015267_ACEOF
15268
15269fi
15270
15271done
15272
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015273
15274for ac_header in valgrind/valgrind.h
15275do
15276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282fi
15283ac_res=`eval echo '${'$as_ac_Header'}'`
15284 { echo "$as_me:$LINENO: result: $ac_res" >&5
15285echo "${ECHO_T}$ac_res" >&6; }
15286else
15287 # Is the header compilable?
15288{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15290cat >conftest.$ac_ext <<_ACEOF
15291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
15296$ac_includes_default
15297#include <$ac_header>
15298_ACEOF
15299rm -f conftest.$ac_objext
15300if { (ac_try="$ac_compile"
15301case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304esac
15305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_compile") 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15314 { (case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15317esac
15318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_try") 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15327esac
15328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_try") 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_header_compiler=yes
15334else
15335 echo "$as_me: failed program was:" >&5
15336sed 's/^/| /' conftest.$ac_ext >&5
15337
15338 ac_header_compiler=no
15339fi
15340
15341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15342{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15343echo "${ECHO_T}$ac_header_compiler" >&6; }
15344
15345# Is the header present?
15346{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15348cat >conftest.$ac_ext <<_ACEOF
15349/* confdefs.h. */
15350_ACEOF
15351cat confdefs.h >>conftest.$ac_ext
15352cat >>conftest.$ac_ext <<_ACEOF
15353/* end confdefs.h. */
15354#include <$ac_header>
15355_ACEOF
15356if { (ac_try="$ac_cpp conftest.$ac_ext"
15357case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15360esac
15361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } >/dev/null; then
15369 if test -s conftest.err; then
15370 ac_cpp_err=$ac_c_preproc_warn_flag
15371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15372 else
15373 ac_cpp_err=
15374 fi
15375else
15376 ac_cpp_err=yes
15377fi
15378if test -z "$ac_cpp_err"; then
15379 ac_header_preproc=yes
15380else
15381 echo "$as_me: failed program was:" >&5
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
15384 ac_header_preproc=no
15385fi
15386
15387rm -f conftest.err conftest.$ac_ext
15388{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389echo "${ECHO_T}$ac_header_preproc" >&6; }
15390
15391# So? What about this header?
15392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15393 yes:no: )
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398 ac_header_preproc=yes
15399 ;;
15400 no:yes:* )
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15413 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015414## ------------------------------------ ##
15415## Report this to http://llvm.org/bugs/ ##
15416## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015417_ASBOX
15418 ) | sed "s/^/$as_me: WARNING: /" >&2
15419 ;;
15420esac
15421{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425else
15426 eval "$as_ac_Header=\$ac_header_preproc"
15427fi
15428ac_res=`eval echo '${'$as_ac_Header'}'`
15429 { echo "$as_me:$LINENO: result: $ac_res" >&5
15430echo "${ECHO_T}$ac_res" >&6; }
15431
15432fi
15433if test `eval echo '${'$as_ac_Header'}'` = yes; then
15434 cat >>confdefs.h <<_ACEOF
15435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15436_ACEOF
15437
15438fi
15439
15440done
15441
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015442
15443for ac_header in fenv.h
15444do
15445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15451fi
15452ac_res=`eval echo '${'$as_ac_Header'}'`
15453 { echo "$as_me:$LINENO: result: $ac_res" >&5
15454echo "${ECHO_T}$ac_res" >&6; }
15455else
15456 # Is the header compilable?
15457{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15458echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15459cat >conftest.$ac_ext <<_ACEOF
15460/* confdefs.h. */
15461_ACEOF
15462cat confdefs.h >>conftest.$ac_ext
15463cat >>conftest.$ac_ext <<_ACEOF
15464/* end confdefs.h. */
15465$ac_includes_default
15466#include <$ac_header>
15467_ACEOF
15468rm -f conftest.$ac_objext
15469if { (ac_try="$ac_compile"
15470case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473esac
15474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_compile") 2>conftest.er1
15476 ac_status=$?
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
15482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15483 { (case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15486esac
15487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_try") 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (case "(($ac_try" in
15494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15496esac
15497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498 (eval "$ac_try") 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; }; then
15502 ac_header_compiler=yes
15503else
15504 echo "$as_me: failed program was:" >&5
15505sed 's/^/| /' conftest.$ac_ext >&5
15506
15507 ac_header_compiler=no
15508fi
15509
15510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15512echo "${ECHO_T}$ac_header_compiler" >&6; }
15513
15514# Is the header present?
15515{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15517cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
15523#include <$ac_header>
15524_ACEOF
15525if { (ac_try="$ac_cpp conftest.$ac_ext"
15526case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15529esac
15530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15532 ac_status=$?
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } >/dev/null; then
15538 if test -s conftest.err; then
15539 ac_cpp_err=$ac_c_preproc_warn_flag
15540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15541 else
15542 ac_cpp_err=
15543 fi
15544else
15545 ac_cpp_err=yes
15546fi
15547if test -z "$ac_cpp_err"; then
15548 ac_header_preproc=yes
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 ac_header_preproc=no
15554fi
15555
15556rm -f conftest.err conftest.$ac_ext
15557{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558echo "${ECHO_T}$ac_header_preproc" >&6; }
15559
15560# So? What about this header?
15561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562 yes:no: )
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567 ac_header_preproc=yes
15568 ;;
15569 no:yes:* )
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15573echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15577echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15582 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015583## ------------------------------------ ##
15584## Report this to http://llvm.org/bugs/ ##
15585## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015586_ASBOX
15587 ) | sed "s/^/$as_me: WARNING: /" >&2
15588 ;;
15589esac
15590{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594else
15595 eval "$as_ac_Header=\$ac_header_preproc"
15596fi
15597ac_res=`eval echo '${'$as_ac_Header'}'`
15598 { echo "$as_me:$LINENO: result: $ac_res" >&5
15599echo "${ECHO_T}$ac_res" >&6; }
15600
15601fi
15602if test `eval echo '${'$as_ac_Header'}'` = yes; then
15603 cat >>confdefs.h <<_ACEOF
15604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15605_ACEOF
15606
15607fi
15608
15609done
15610
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015611if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015612
15613for ac_header in pthread.h
15614do
15615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621fi
15622ac_res=`eval echo '${'$as_ac_Header'}'`
15623 { echo "$as_me:$LINENO: result: $ac_res" >&5
15624echo "${ECHO_T}$ac_res" >&6; }
15625else
15626 # Is the header compilable?
15627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15629cat >conftest.$ac_ext <<_ACEOF
15630/* confdefs.h. */
15631_ACEOF
15632cat confdefs.h >>conftest.$ac_ext
15633cat >>conftest.$ac_ext <<_ACEOF
15634/* end confdefs.h. */
15635$ac_includes_default
15636#include <$ac_header>
15637_ACEOF
15638rm -f conftest.$ac_objext
15639if { (ac_try="$ac_compile"
15640case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15643esac
15644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_compile") 2>conftest.er1
15646 ac_status=$?
15647 grep -v '^ *+' conftest.er1 >conftest.err
15648 rm -f conftest.er1
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15653 { (case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656esac
15657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_try") 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666esac
15667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_try") 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_header_compiler=yes
15673else
15674 echo "$as_me: failed program was:" >&5
15675sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 ac_header_compiler=no
15678fi
15679
15680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15682echo "${ECHO_T}$ac_header_compiler" >&6; }
15683
15684# Is the header present?
15685{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15687cat >conftest.$ac_ext <<_ACEOF
15688/* confdefs.h. */
15689_ACEOF
15690cat confdefs.h >>conftest.$ac_ext
15691cat >>conftest.$ac_ext <<_ACEOF
15692/* end confdefs.h. */
15693#include <$ac_header>
15694_ACEOF
15695if { (ac_try="$ac_cpp conftest.$ac_ext"
15696case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699esac
15700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } >/dev/null; then
15708 if test -s conftest.err; then
15709 ac_cpp_err=$ac_c_preproc_warn_flag
15710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15711 else
15712 ac_cpp_err=
15713 fi
15714else
15715 ac_cpp_err=yes
15716fi
15717if test -z "$ac_cpp_err"; then
15718 ac_header_preproc=yes
15719else
15720 echo "$as_me: failed program was:" >&5
15721sed 's/^/| /' conftest.$ac_ext >&5
15722
15723 ac_header_preproc=no
15724fi
15725
15726rm -f conftest.err conftest.$ac_ext
15727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728echo "${ECHO_T}$ac_header_preproc" >&6; }
15729
15730# So? What about this header?
15731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15732 yes:no: )
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737 ac_header_preproc=yes
15738 ;;
15739 no:yes:* )
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15752 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015753## ------------------------------------ ##
15754## Report this to http://llvm.org/bugs/ ##
15755## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015756_ASBOX
15757 ) | sed "s/^/$as_me: WARNING: /" >&2
15758 ;;
15759esac
15760{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764else
15765 eval "$as_ac_Header=\$ac_header_preproc"
15766fi
15767ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result: $ac_res" >&5
15769echo "${ECHO_T}$ac_res" >&6; }
15770
15771fi
15772if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015773 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015775_ACEOF
15776 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015777
15778else
15779 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015780
15781fi
15782
Reid Spencerbe3e4192007-08-17 05:45:26 +000015783done
Reid Spencer1000b732006-12-01 00:37:14 +000015784
15785else
15786 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015787
15788fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015789
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015790if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015791
15792
15793for ac_header in ffi.h ffi/ffi.h
15794do
15795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15801fi
15802ac_res=`eval echo '${'$as_ac_Header'}'`
15803 { echo "$as_me:$LINENO: result: $ac_res" >&5
15804echo "${ECHO_T}$ac_res" >&6; }
15805else
15806 # Is the header compilable?
15807{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15809cat >conftest.$ac_ext <<_ACEOF
15810/* confdefs.h. */
15811_ACEOF
15812cat confdefs.h >>conftest.$ac_ext
15813cat >>conftest.$ac_ext <<_ACEOF
15814/* end confdefs.h. */
15815$ac_includes_default
15816#include <$ac_header>
15817_ACEOF
15818rm -f conftest.$ac_objext
15819if { (ac_try="$ac_compile"
15820case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15823esac
15824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_compile") 2>conftest.er1
15826 ac_status=$?
15827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
15832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15833 { (case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836esac
15837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_try") 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest.$ac_objext'
15843 { (case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15846esac
15847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_try") 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_header_compiler=yes
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 ac_header_compiler=no
15858fi
15859
15860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15862echo "${ECHO_T}$ac_header_compiler" >&6; }
15863
15864# Is the header present?
15865{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15867cat >conftest.$ac_ext <<_ACEOF
15868/* confdefs.h. */
15869_ACEOF
15870cat confdefs.h >>conftest.$ac_ext
15871cat >>conftest.$ac_ext <<_ACEOF
15872/* end confdefs.h. */
15873#include <$ac_header>
15874_ACEOF
15875if { (ac_try="$ac_cpp conftest.$ac_ext"
15876case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15879esac
15880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } >/dev/null; then
15888 if test -s conftest.err; then
15889 ac_cpp_err=$ac_c_preproc_warn_flag
15890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15891 else
15892 ac_cpp_err=
15893 fi
15894else
15895 ac_cpp_err=yes
15896fi
15897if test -z "$ac_cpp_err"; then
15898 ac_header_preproc=yes
15899else
15900 echo "$as_me: failed program was:" >&5
15901sed 's/^/| /' conftest.$ac_ext >&5
15902
15903 ac_header_preproc=no
15904fi
15905
15906rm -f conftest.err conftest.$ac_ext
15907{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15908echo "${ECHO_T}$ac_header_preproc" >&6; }
15909
15910# So? What about this header?
15911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15912 yes:no: )
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15917 ac_header_preproc=yes
15918 ;;
15919 no:yes:* )
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15932 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015933## ------------------------------------ ##
15934## Report this to http://llvm.org/bugs/ ##
15935## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015936_ASBOX
15937 ) | sed "s/^/$as_me: WARNING: /" >&2
15938 ;;
15939esac
15940{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15944else
15945 eval "$as_ac_Header=\$ac_header_preproc"
15946fi
15947ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result: $ac_res" >&5
15949echo "${ECHO_T}$ac_res" >&6; }
15950
15951fi
15952if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015953 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015955_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015956
15957fi
15958
15959done
15960
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015961fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015962
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015963
Eric Christopher654dee42010-06-22 21:01:04 +000015964for ac_header in CrashReporterClient.h
15965do
15966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15972fi
15973ac_res=`eval echo '${'$as_ac_Header'}'`
15974 { echo "$as_me:$LINENO: result: $ac_res" >&5
15975echo "${ECHO_T}$ac_res" >&6; }
15976else
15977 # Is the header compilable?
15978{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15979echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15980cat >conftest.$ac_ext <<_ACEOF
15981/* confdefs.h. */
15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */
15986$ac_includes_default
15987#include <$ac_header>
15988_ACEOF
15989rm -f conftest.$ac_objext
15990if { (ac_try="$ac_compile"
15991case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15994esac
15995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_compile") 2>conftest.er1
15997 ac_status=$?
15998 grep -v '^ *+' conftest.er1 >conftest.err
15999 rm -f conftest.er1
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
16003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007esac
16008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16017esac
16018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_header_compiler=yes
16024else
16025 echo "$as_me: failed program was:" >&5
16026sed 's/^/| /' conftest.$ac_ext >&5
16027
16028 ac_header_compiler=no
16029fi
16030
16031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16033echo "${ECHO_T}$ac_header_compiler" >&6; }
16034
16035# Is the header present?
16036{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16038cat >conftest.$ac_ext <<_ACEOF
16039/* confdefs.h. */
16040_ACEOF
16041cat confdefs.h >>conftest.$ac_ext
16042cat >>conftest.$ac_ext <<_ACEOF
16043/* end confdefs.h. */
16044#include <$ac_header>
16045_ACEOF
16046if { (ac_try="$ac_cpp conftest.$ac_ext"
16047case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050esac
16051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } >/dev/null; then
16059 if test -s conftest.err; then
16060 ac_cpp_err=$ac_c_preproc_warn_flag
16061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16062 else
16063 ac_cpp_err=
16064 fi
16065else
16066 ac_cpp_err=yes
16067fi
16068if test -z "$ac_cpp_err"; then
16069 ac_header_preproc=yes
16070else
16071 echo "$as_me: failed program was:" >&5
16072sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 ac_header_preproc=no
16075fi
16076
16077rm -f conftest.err conftest.$ac_ext
16078{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079echo "${ECHO_T}$ac_header_preproc" >&6; }
16080
16081# So? What about this header?
16082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16083 yes:no: )
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16088 ac_header_preproc=yes
16089 ;;
16090 no:yes:* )
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16098echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16103 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016104## ------------------------------------ ##
16105## Report this to http://llvm.org/bugs/ ##
16106## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016107_ASBOX
16108 ) | sed "s/^/$as_me: WARNING: /" >&2
16109 ;;
16110esac
16111{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115else
16116 eval "$as_ac_Header=\$ac_header_preproc"
16117fi
16118ac_res=`eval echo '${'$as_ac_Header'}'`
16119 { echo "$as_me:$LINENO: result: $ac_res" >&5
16120echo "${ECHO_T}$ac_res" >&6; }
16121
16122fi
16123if test `eval echo '${'$as_ac_Header'}'` = yes; then
16124 cat >>confdefs.h <<_ACEOF
16125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16126_ACEOF
16127
16128fi
16129
16130done
16131
16132
Eric Christopher51e57132010-12-07 02:05:42 +000016133{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16134echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016135cat >conftest.$ac_ext <<_ACEOF
16136/* confdefs.h. */
16137_ACEOF
16138cat confdefs.h >>conftest.$ac_ext
16139cat >>conftest.$ac_ext <<_ACEOF
16140/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016141extern const char *__crashreporter_info__;
16142 int main() {
16143 __crashreporter_info__ = "test";
16144 return 0;
16145 }
Eric Christopher481d4022010-12-03 07:45:22 +000016146
Eric Christopher481d4022010-12-03 07:45:22 +000016147_ACEOF
16148rm -f conftest.$ac_objext conftest$ac_exeext
16149if { (ac_try="$ac_link"
16150case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16153esac
16154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_link") 2>conftest.er1
16156 ac_status=$?
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
16162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16163 { (case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16166esac
16167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_try") 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; } &&
16172 { ac_try='test -s conftest$ac_exeext'
16173 { (case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16176esac
16177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_try") 2>&5
16179 ac_status=$?
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016182 { echo "$as_me:$LINENO: result: yes" >&5
16183echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016184
16185cat >>confdefs.h <<\_ACEOF
16186#define HAVE_CRASHREPORTER_INFO 1
16187_ACEOF
16188
Eric Christopher51e57132010-12-07 02:05:42 +000016189else
16190 echo "$as_me: failed program was:" >&5
16191sed 's/^/| /' conftest.$ac_ext >&5
16192
16193 { echo "$as_me:$LINENO: result: no" >&5
16194echo "${ECHO_T}no" >&6; }
16195
16196cat >>confdefs.h <<\_ACEOF
16197#define HAVE_CRASHREPORTER_INFO 0
16198_ACEOF
16199
Eric Christopher481d4022010-12-03 07:45:22 +000016200fi
Eric Christopher654dee42010-06-22 21:01:04 +000016201
Eric Christopher51e57132010-12-07 02:05:42 +000016202rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16204
16205
Reid Spencer8085cff2005-01-16 02:58:39 +000016206
Torok Edwin871384f2010-01-26 08:50:50 +000016207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016208 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16209echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16210if test "${ac_cv_huge_val_sanity+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016212else
16213
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016214 ac_ext=cpp
16215ac_cpp='$CXXCPP $CPPFLAGS'
16216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016219
Eric Christopherc7718502010-03-02 05:06:54 +000016220 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016221 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016222 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016223 ac_cv_huge_val_sanity=yes
16224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016225 cat >conftest.$ac_ext <<_ACEOF
16226/* confdefs.h. */
16227_ACEOF
16228cat confdefs.h >>conftest.$ac_ext
16229cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016230/* end confdefs.h. */
16231#include <math.h>
16232int
16233main ()
16234{
16235double x = HUGE_VAL; return x != x;
16236 ;
16237 return 0;
16238}
16239_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016240rm -f conftest$ac_exeext
16241if { (ac_try="$ac_link"
16242case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16245esac
16246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_link") 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254esac
16255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016260 ac_cv_huge_val_sanity=yes
16261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016262 echo "$as_me: program exited with status $ac_status" >&5
16263echo "$as_me: failed program was:" >&5
16264sed 's/^/| /' conftest.$ac_ext >&5
16265
16266( exit $ac_status )
16267ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencerb2ed05262006-11-03 18:04:08 +000016270fi
16271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016272
Eric Christopherc7718502010-03-02 05:06:54 +000016273 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016274 ac_ext=c
16275ac_cpp='$CPP $CPPFLAGS'
16276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278ac_compiler_gnu=$ac_cv_c_compiler_gnu
16279
16280
16281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016282{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16283echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016284 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16285
16286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016287{ echo "$as_me:$LINENO: checking for pid_t" >&5
16288echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16289if test "${ac_cv_type_pid_t+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16291else
16292 cat >conftest.$ac_ext <<_ACEOF
16293/* confdefs.h. */
16294_ACEOF
16295cat confdefs.h >>conftest.$ac_ext
16296cat >>conftest.$ac_ext <<_ACEOF
16297/* end confdefs.h. */
16298$ac_includes_default
16299typedef pid_t ac__type_new_;
16300int
16301main ()
16302{
16303if ((ac__type_new_ *) 0)
16304 return 0;
16305if (sizeof (ac__type_new_))
16306 return 0;
16307 ;
16308 return 0;
16309}
16310_ACEOF
16311rm -f conftest.$ac_objext
16312if { (ac_try="$ac_compile"
16313case "(($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_compile") 2>conftest.er1
16319 ac_status=$?
16320 grep -v '^ *+' conftest.er1 >conftest.err
16321 rm -f conftest.er1
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } &&
16325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16326 { (case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16329esac
16330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_try") 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; } &&
16335 { ac_try='test -s conftest.$ac_objext'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_cv_type_pid_t=yes
16346else
16347 echo "$as_me: failed program was:" >&5
16348sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016350 ac_cv_type_pid_t=no
16351fi
16352
16353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16354fi
16355{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16356echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16357if test $ac_cv_type_pid_t = yes; then
16358 :
John Criswell7a73b802003-06-30 21:59:07 +000016359else
16360
16361cat >>confdefs.h <<_ACEOF
16362#define pid_t int
16363_ACEOF
16364
16365fi
16366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016367{ echo "$as_me:$LINENO: checking for size_t" >&5
16368echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16369if test "${ac_cv_type_size_t+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16371else
16372 cat >conftest.$ac_ext <<_ACEOF
16373/* confdefs.h. */
16374_ACEOF
16375cat confdefs.h >>conftest.$ac_ext
16376cat >>conftest.$ac_ext <<_ACEOF
16377/* end confdefs.h. */
16378$ac_includes_default
16379typedef size_t ac__type_new_;
16380int
16381main ()
16382{
16383if ((ac__type_new_ *) 0)
16384 return 0;
16385if (sizeof (ac__type_new_))
16386 return 0;
16387 ;
16388 return 0;
16389}
16390_ACEOF
16391rm -f conftest.$ac_objext
16392if { (ac_try="$ac_compile"
16393case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396esac
16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16399 ac_status=$?
16400 grep -v '^ *+' conftest.er1 >conftest.err
16401 rm -f conftest.er1
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419esac
16420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_cv_type_size_t=yes
16426else
16427 echo "$as_me: failed program was:" >&5
16428sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016430 ac_cv_type_size_t=no
16431fi
16432
16433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434fi
16435{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16436echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16437if test $ac_cv_type_size_t = yes; then
16438 :
John Criswell7a73b802003-06-30 21:59:07 +000016439else
16440
16441cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016442#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016443_ACEOF
16444
16445fi
16446
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016447
16448cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016449#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016450_ACEOF
16451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016452{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16453echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16454if test "${ac_cv_struct_tm+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016457 cat >conftest.$ac_ext <<_ACEOF
16458/* confdefs.h. */
16459_ACEOF
16460cat confdefs.h >>conftest.$ac_ext
16461cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016462/* end confdefs.h. */
16463#include <sys/types.h>
16464#include <time.h>
16465
16466int
16467main ()
16468{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016469struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016470 ;
16471 return 0;
16472}
16473_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016474rm -f conftest.$ac_objext
16475if { (ac_try="$ac_compile"
16476case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16479esac
16480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_compile") 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16489 { (case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492esac
16493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_try") 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16502esac
16503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_try") 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016508 ac_cv_struct_tm=time.h
16509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016510 echo "$as_me: failed program was:" >&5
16511sed 's/^/| /' conftest.$ac_ext >&5
16512
16513 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016514fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016515
Reid Spencera773bd52006-08-04 18:18:08 +000016516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016518{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16519echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016520if test $ac_cv_struct_tm = sys/time.h; then
16521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016522cat >>confdefs.h <<\_ACEOF
16523#define TM_IN_SYS_TIME 1
16524_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016525
16526fi
16527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016528{ echo "$as_me:$LINENO: checking for int64_t" >&5
16529echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16530if test "${ac_cv_type_int64_t+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16532else
16533 cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h. */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h. */
16539$ac_includes_default
16540typedef int64_t ac__type_new_;
16541int
16542main ()
16543{
16544if ((ac__type_new_ *) 0)
16545 return 0;
16546if (sizeof (ac__type_new_))
16547 return 0;
16548 ;
16549 return 0;
16550}
16551_ACEOF
16552rm -f conftest.$ac_objext
16553if { (ac_try="$ac_compile"
16554case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557esac
16558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_compile") 2>conftest.er1
16560 ac_status=$?
16561 grep -v '^ *+' conftest.er1 >conftest.err
16562 rm -f conftest.er1
16563 cat conftest.err >&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } &&
16566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16567 { (case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16570esac
16571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_try") 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; } &&
16576 { ac_try='test -s conftest.$ac_objext'
16577 { (case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16580esac
16581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_try") 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_type_int64_t=yes
16587else
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 ac_cv_type_int64_t=no
16592fi
16593
16594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595fi
16596{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16597echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16598if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016599
16600cat >>confdefs.h <<_ACEOF
16601#define HAVE_INT64_T 1
16602_ACEOF
16603
16604
16605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016606 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16607echo "$as_me: error: Type int64_t required but not found" >&2;}
16608 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016609fi
16610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016611{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16612echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16613if test "${ac_cv_type_uint64_t+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16615else
16616 cat >conftest.$ac_ext <<_ACEOF
16617/* confdefs.h. */
16618_ACEOF
16619cat confdefs.h >>conftest.$ac_ext
16620cat >>conftest.$ac_ext <<_ACEOF
16621/* end confdefs.h. */
16622$ac_includes_default
16623typedef uint64_t ac__type_new_;
16624int
16625main ()
16626{
16627if ((ac__type_new_ *) 0)
16628 return 0;
16629if (sizeof (ac__type_new_))
16630 return 0;
16631 ;
16632 return 0;
16633}
16634_ACEOF
16635rm -f conftest.$ac_objext
16636if { (ac_try="$ac_compile"
16637case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640esac
16641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_compile") 2>conftest.er1
16643 ac_status=$?
16644 grep -v '^ *+' conftest.er1 >conftest.err
16645 rm -f conftest.er1
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16650 { (case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653esac
16654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_try") 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; } &&
16659 { ac_try='test -s conftest.$ac_objext'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16663esac
16664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 ac_cv_type_uint64_t=yes
16670else
16671 echo "$as_me: failed program was:" >&5
16672sed 's/^/| /' conftest.$ac_ext >&5
16673
16674 ac_cv_type_uint64_t=no
16675fi
16676
16677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678fi
16679{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16680echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16681if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016682
16683cat >>confdefs.h <<_ACEOF
16684#define HAVE_UINT64_T 1
16685_ACEOF
16686
16687
16688else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016689 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16690echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16691if test "${ac_cv_type_u_int64_t+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693else
16694 cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700$ac_includes_default
16701typedef u_int64_t ac__type_new_;
16702int
16703main ()
16704{
16705if ((ac__type_new_ *) 0)
16706 return 0;
16707if (sizeof (ac__type_new_))
16708 return 0;
16709 ;
16710 return 0;
16711}
16712_ACEOF
16713rm -f conftest.$ac_objext
16714if { (ac_try="$ac_compile"
16715case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_compile") 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728 { (case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16731esac
16732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_try") 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741esac
16742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_try") 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_type_u_int64_t=yes
16748else
16749 echo "$as_me: failed program was:" >&5
16750sed 's/^/| /' conftest.$ac_ext >&5
16751
16752 ac_cv_type_u_int64_t=no
16753fi
16754
16755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756fi
16757{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16758echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16759if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016760
16761cat >>confdefs.h <<_ACEOF
16762#define HAVE_U_INT64_T 1
16763_ACEOF
16764
16765
Misha Brukmanceca9042004-09-02 23:02:30 +000016766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016767 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16768echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16769 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016770fi
16771
John Criswell679ff312004-09-02 18:44:44 +000016772fi
16773
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016774
16775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016776
16777
16778
16779
16780
16781
16782
Reid Spencerdf3be822006-01-23 08:15:53 +000016783for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016784do
16785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16786{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790else
16791 cat >conftest.$ac_ext <<_ACEOF
16792/* confdefs.h. */
16793_ACEOF
16794cat confdefs.h >>conftest.$ac_ext
16795cat >>conftest.$ac_ext <<_ACEOF
16796/* end confdefs.h. */
16797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16799#define $ac_func innocuous_$ac_func
16800
16801/* System header to define __stub macros and hopefully few prototypes,
16802 which can conflict with char $ac_func (); below.
16803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16804 <limits.h> exists even on freestanding compilers. */
16805
16806#ifdef __STDC__
16807# include <limits.h>
16808#else
16809# include <assert.h>
16810#endif
16811
16812#undef $ac_func
16813
16814/* Override any GCC internal prototype to avoid an error.
16815 Use char because int might match the return type of a GCC
16816 builtin and then its argument prototype would still apply. */
16817#ifdef __cplusplus
16818extern "C"
16819#endif
16820char $ac_func ();
16821/* The GNU C library defines this for functions which it implements
16822 to always fail with ENOSYS. Some functions are actually named
16823 something starting with __ and the normal name is an alias. */
16824#if defined __stub_$ac_func || defined __stub___$ac_func
16825choke me
16826#endif
16827
16828int
16829main ()
16830{
16831return $ac_func ();
16832 ;
16833 return 0;
16834}
16835_ACEOF
16836rm -f conftest.$ac_objext conftest$ac_exeext
16837if { (ac_try="$ac_link"
16838case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841esac
16842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_link") 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16854esac
16855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest$ac_exeext'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864esac
16865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_try") 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 eval "$as_ac_var=yes"
16871else
16872 echo "$as_me: failed program was:" >&5
16873sed 's/^/| /' conftest.$ac_ext >&5
16874
16875 eval "$as_ac_var=no"
16876fi
16877
16878rm -f core conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16880fi
16881ac_res=`eval echo '${'$as_ac_var'}'`
16882 { echo "$as_me:$LINENO: result: $ac_res" >&5
16883echo "${ECHO_T}$ac_res" >&6; }
16884if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016885 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016887_ACEOF
16888
16889fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016890done
John Criswell7a73b802003-06-30 21:59:07 +000016891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016892
16893
16894
16895
Reid Spencer96cf5872007-07-13 10:05:30 +000016896for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016897do
16898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16899{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16901if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16903else
16904 cat >conftest.$ac_ext <<_ACEOF
16905/* confdefs.h. */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h. */
16910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16912#define $ac_func innocuous_$ac_func
16913
16914/* System header to define __stub macros and hopefully few prototypes,
16915 which can conflict with char $ac_func (); below.
16916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917 <limits.h> exists even on freestanding compilers. */
16918
16919#ifdef __STDC__
16920# include <limits.h>
16921#else
16922# include <assert.h>
16923#endif
16924
16925#undef $ac_func
16926
16927/* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16930#ifdef __cplusplus
16931extern "C"
16932#endif
16933char $ac_func ();
16934/* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937#if defined __stub_$ac_func || defined __stub___$ac_func
16938choke me
16939#endif
16940
16941int
16942main ()
16943{
16944return $ac_func ();
16945 ;
16946 return 0;
16947}
16948_ACEOF
16949rm -f conftest.$ac_objext conftest$ac_exeext
16950if { (ac_try="$ac_link"
16951case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954esac
16955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_link") 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964 { (case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967esac
16968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_try") 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16977esac
16978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_try") 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 eval "$as_ac_var=yes"
16984else
16985 echo "$as_me: failed program was:" >&5
16986sed 's/^/| /' conftest.$ac_ext >&5
16987
16988 eval "$as_ac_var=no"
16989fi
16990
16991rm -f core conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
16993fi
16994ac_res=`eval echo '${'$as_ac_var'}'`
16995 { echo "$as_me:$LINENO: result: $ac_res" >&5
16996echo "${ECHO_T}$ac_res" >&6; }
16997if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016998 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017000_ACEOF
17001
17002fi
17003done
17004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017005
17006
17007
17008
17009
Reid Spencerb90645c2007-02-16 19:17:20 +000017010for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017011do
17012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17017else
17018 cat >conftest.$ac_ext <<_ACEOF
17019/* confdefs.h. */
17020_ACEOF
17021cat confdefs.h >>conftest.$ac_ext
17022cat >>conftest.$ac_ext <<_ACEOF
17023/* end confdefs.h. */
17024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17026#define $ac_func innocuous_$ac_func
17027
17028/* System header to define __stub macros and hopefully few prototypes,
17029 which can conflict with char $ac_func (); below.
17030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17031 <limits.h> exists even on freestanding compilers. */
17032
17033#ifdef __STDC__
17034# include <limits.h>
17035#else
17036# include <assert.h>
17037#endif
17038
17039#undef $ac_func
17040
17041/* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
17044#ifdef __cplusplus
17045extern "C"
17046#endif
17047char $ac_func ();
17048/* The GNU C library defines this for functions which it implements
17049 to always fail with ENOSYS. Some functions are actually named
17050 something starting with __ and the normal name is an alias. */
17051#if defined __stub_$ac_func || defined __stub___$ac_func
17052choke me
17053#endif
17054
17055int
17056main ()
17057{
17058return $ac_func ();
17059 ;
17060 return 0;
17061}
17062_ACEOF
17063rm -f conftest.$ac_objext conftest$ac_exeext
17064if { (ac_try="$ac_link"
17065case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068esac
17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_link") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078 { (case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081esac
17082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_try") 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest$ac_exeext'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091esac
17092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 eval "$as_ac_var=yes"
17098else
17099 echo "$as_me: failed program was:" >&5
17100sed 's/^/| /' conftest.$ac_ext >&5
17101
17102 eval "$as_ac_var=no"
17103fi
17104
17105rm -f core conftest.err conftest.$ac_objext \
17106 conftest$ac_exeext conftest.$ac_ext
17107fi
17108ac_res=`eval echo '${'$as_ac_var'}'`
17109 { echo "$as_me:$LINENO: result: $ac_res" >&5
17110echo "${ECHO_T}$ac_res" >&6; }
17111if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017112 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017114_ACEOF
17115
17116fi
17117done
17118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017119
17120
17121
Reid Spencerb90645c2007-02-16 19:17:20 +000017122for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017123do
17124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17129else
17130 cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
17136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17138#define $ac_func innocuous_$ac_func
17139
17140/* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char $ac_func (); below.
17142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143 <limits.h> exists even on freestanding compilers. */
17144
17145#ifdef __STDC__
17146# include <limits.h>
17147#else
17148# include <assert.h>
17149#endif
17150
17151#undef $ac_func
17152
17153/* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17156#ifdef __cplusplus
17157extern "C"
17158#endif
17159char $ac_func ();
17160/* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
17163#if defined __stub_$ac_func || defined __stub___$ac_func
17164choke me
17165#endif
17166
17167int
17168main ()
17169{
17170return $ac_func ();
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext conftest$ac_exeext
17176if { (ac_try="$ac_link"
17177case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180esac
17181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193esac
17194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 eval "$as_ac_var=yes"
17210else
17211 echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214 eval "$as_ac_var=no"
17215fi
17216
17217rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219fi
17220ac_res=`eval echo '${'$as_ac_var'}'`
17221 { echo "$as_me:$LINENO: result: $ac_res" >&5
17222echo "${ECHO_T}$ac_res" >&6; }
17223if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017224 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017226_ACEOF
17227
17228fi
17229done
17230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017231
17232
17233
17234
17235
Eric Christophere4291822010-04-16 05:14:21 +000017236
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017237
17238for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017239do
17240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17241{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17245else
17246 cat >conftest.$ac_ext <<_ACEOF
17247/* confdefs.h. */
17248_ACEOF
17249cat confdefs.h >>conftest.$ac_ext
17250cat >>conftest.$ac_ext <<_ACEOF
17251/* end confdefs.h. */
17252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17254#define $ac_func innocuous_$ac_func
17255
17256/* System header to define __stub macros and hopefully few prototypes,
17257 which can conflict with char $ac_func (); below.
17258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259 <limits.h> exists even on freestanding compilers. */
17260
17261#ifdef __STDC__
17262# include <limits.h>
17263#else
17264# include <assert.h>
17265#endif
17266
17267#undef $ac_func
17268
17269/* Override any GCC internal prototype to avoid an error.
17270 Use char because int might match the return type of a GCC
17271 builtin and then its argument prototype would still apply. */
17272#ifdef __cplusplus
17273extern "C"
17274#endif
17275char $ac_func ();
17276/* The GNU C library defines this for functions which it implements
17277 to always fail with ENOSYS. Some functions are actually named
17278 something starting with __ and the normal name is an alias. */
17279#if defined __stub_$ac_func || defined __stub___$ac_func
17280choke me
17281#endif
17282
17283int
17284main ()
17285{
17286return $ac_func ();
17287 ;
17288 return 0;
17289}
17290_ACEOF
17291rm -f conftest.$ac_objext conftest$ac_exeext
17292if { (ac_try="$ac_link"
17293case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_link") 2>conftest.er1
17299 ac_status=$?
17300 grep -v '^ *+' conftest.er1 >conftest.err
17301 rm -f conftest.er1
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17306 { (case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309esac
17310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_try") 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest$ac_exeext'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319esac
17320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 eval "$as_ac_var=yes"
17326else
17327 echo "$as_me: failed program was:" >&5
17328sed 's/^/| /' conftest.$ac_ext >&5
17329
17330 eval "$as_ac_var=no"
17331fi
17332
17333rm -f core conftest.err conftest.$ac_objext \
17334 conftest$ac_exeext conftest.$ac_ext
17335fi
17336ac_res=`eval echo '${'$as_ac_var'}'`
17337 { echo "$as_me:$LINENO: result: $ac_res" >&5
17338echo "${ECHO_T}$ac_res" >&6; }
17339if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017340 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017342_ACEOF
17343
17344fi
17345done
Reid Spencerdf3be822006-01-23 08:15:53 +000017346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017347
17348
17349
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017350
17351for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017352do
17353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17354{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17356if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358else
17359 cat >conftest.$ac_ext <<_ACEOF
17360/* confdefs.h. */
17361_ACEOF
17362cat confdefs.h >>conftest.$ac_ext
17363cat >>conftest.$ac_ext <<_ACEOF
17364/* end confdefs.h. */
17365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17367#define $ac_func innocuous_$ac_func
17368
17369/* System header to define __stub macros and hopefully few prototypes,
17370 which can conflict with char $ac_func (); below.
17371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372 <limits.h> exists even on freestanding compilers. */
17373
17374#ifdef __STDC__
17375# include <limits.h>
17376#else
17377# include <assert.h>
17378#endif
17379
17380#undef $ac_func
17381
17382/* Override any GCC internal prototype to avoid an error.
17383 Use char because int might match the return type of a GCC
17384 builtin and then its argument prototype would still apply. */
17385#ifdef __cplusplus
17386extern "C"
17387#endif
17388char $ac_func ();
17389/* The GNU C library defines this for functions which it implements
17390 to always fail with ENOSYS. Some functions are actually named
17391 something starting with __ and the normal name is an alias. */
17392#if defined __stub_$ac_func || defined __stub___$ac_func
17393choke me
17394#endif
17395
17396int
17397main ()
17398{
17399return $ac_func ();
17400 ;
17401 return 0;
17402}
17403_ACEOF
17404rm -f conftest.$ac_objext conftest$ac_exeext
17405if { (ac_try="$ac_link"
17406case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409esac
17410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
17412 ac_status=$?
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419 { (case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17422esac
17423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_try") 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest$ac_exeext'
17429 { (case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17432esac
17433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_try") 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 eval "$as_ac_var=yes"
17439else
17440 echo "$as_me: failed program was:" >&5
17441sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 eval "$as_ac_var=no"
17444fi
17445
17446rm -f core conftest.err conftest.$ac_objext \
17447 conftest$ac_exeext conftest.$ac_ext
17448fi
17449ac_res=`eval echo '${'$as_ac_var'}'`
17450 { echo "$as_me:$LINENO: result: $ac_res" >&5
17451echo "${ECHO_T}$ac_res" >&6; }
17452if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017453 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017455_ACEOF
17456
17457fi
17458done
17459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017460
17461
17462
17463
Chris Lattner511f11d2005-11-14 07:25:50 +000017464for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017465do
17466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17467{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17469if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471else
17472 cat >conftest.$ac_ext <<_ACEOF
17473/* confdefs.h. */
17474_ACEOF
17475cat confdefs.h >>conftest.$ac_ext
17476cat >>conftest.$ac_ext <<_ACEOF
17477/* end confdefs.h. */
17478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480#define $ac_func innocuous_$ac_func
17481
17482/* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char $ac_func (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
17486
17487#ifdef __STDC__
17488# include <limits.h>
17489#else
17490# include <assert.h>
17491#endif
17492
17493#undef $ac_func
17494
17495/* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17498#ifdef __cplusplus
17499extern "C"
17500#endif
17501char $ac_func ();
17502/* The GNU C library defines this for functions which it implements
17503 to always fail with ENOSYS. Some functions are actually named
17504 something starting with __ and the normal name is an alias. */
17505#if defined __stub_$ac_func || defined __stub___$ac_func
17506choke me
17507#endif
17508
17509int
17510main ()
17511{
17512return $ac_func ();
17513 ;
17514 return 0;
17515}
17516_ACEOF
17517rm -f conftest.$ac_objext conftest$ac_exeext
17518if { (ac_try="$ac_link"
17519case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17522esac
17523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_link") 2>conftest.er1
17525 ac_status=$?
17526 grep -v '^ *+' conftest.er1 >conftest.err
17527 rm -f conftest.er1
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
17531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17532 { (case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17535esac
17536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_try") 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17545esac
17546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_try") 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551 eval "$as_ac_var=yes"
17552else
17553 echo "$as_me: failed program was:" >&5
17554sed 's/^/| /' conftest.$ac_ext >&5
17555
17556 eval "$as_ac_var=no"
17557fi
17558
17559rm -f core conftest.err conftest.$ac_objext \
17560 conftest$ac_exeext conftest.$ac_ext
17561fi
17562ac_res=`eval echo '${'$as_ac_var'}'`
17563 { echo "$as_me:$LINENO: result: $ac_res" >&5
17564echo "${ECHO_T}$ac_res" >&6; }
17565if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017566 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017568_ACEOF
17569
17570fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017571done
John Criswell7a73b802003-06-30 21:59:07 +000017572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017573
17574
17575
17576
Daniel Dunbar3e462932011-02-03 02:40:02 +000017577
17578for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017579do
17580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17581{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17583if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17585else
17586 cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594#define $ac_func innocuous_$ac_func
17595
17596/* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char $ac_func (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17600
17601#ifdef __STDC__
17602# include <limits.h>
17603#else
17604# include <assert.h>
17605#endif
17606
17607#undef $ac_func
17608
17609/* Override any GCC internal prototype to avoid an error.
17610 Use char because int might match the return type of a GCC
17611 builtin and then its argument prototype would still apply. */
17612#ifdef __cplusplus
17613extern "C"
17614#endif
17615char $ac_func ();
17616/* The GNU C library defines this for functions which it implements
17617 to always fail with ENOSYS. Some functions are actually named
17618 something starting with __ and the normal name is an alias. */
17619#if defined __stub_$ac_func || defined __stub___$ac_func
17620choke me
17621#endif
17622
17623int
17624main ()
17625{
17626return $ac_func ();
17627 ;
17628 return 0;
17629}
17630_ACEOF
17631rm -f conftest.$ac_objext conftest$ac_exeext
17632if { (ac_try="$ac_link"
17633case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17636esac
17637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>conftest.er1
17639 ac_status=$?
17640 grep -v '^ *+' conftest.er1 >conftest.err
17641 rm -f conftest.er1
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659esac
17660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 eval "$as_ac_var=yes"
17666else
17667 echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 eval "$as_ac_var=no"
17671fi
17672
17673rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17675fi
17676ac_res=`eval echo '${'$as_ac_var'}'`
17677 { echo "$as_me:$LINENO: result: $ac_res" >&5
17678echo "${ECHO_T}$ac_res" >&6; }
17679if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017680 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017682_ACEOF
17683
17684fi
17685done
17686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017687{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17688echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17689if test "${llvm_cv_c_printf_a+set}" = set; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017691else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017692 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017693ac_cpp='$CPP $CPPFLAGS'
17694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696ac_compiler_gnu=$ac_cv_c_compiler_gnu
17697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017698 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017699 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017700else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017701 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017703 /* confdefs.h. */
17704_ACEOF
17705cat confdefs.h >>conftest.$ac_ext
17706cat >>conftest.$ac_ext <<_ACEOF
17707/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017708
John Criswella0137d32003-10-13 16:22:01 +000017709#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017710#include <stdlib.h>
17711
John Criswella0137d32003-10-13 16:22:01 +000017712int
17713main ()
17714{
17715
Reid Spencer2706f8c2004-09-19 23:53:36 +000017716volatile double A, B;
17717char Buffer[100];
17718A = 1;
17719A /= 10.0;
17720sprintf(Buffer, "%a", A);
17721B = atof(Buffer);
17722if (A != B)
17723 return (1);
17724if (A != 0x1.999999999999ap-4)
17725 return (1);
17726return (0);
John Criswella0137d32003-10-13 16:22:01 +000017727 ;
17728 return 0;
17729}
17730_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017731rm -f conftest$ac_exeext
17732if { (ac_try="$ac_link"
17733case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17742 { (case "(($ac_try" in
17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744 *) ac_try_echo=$ac_try;;
17745esac
17746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747 (eval "$ac_try") 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017751 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017753 echo "$as_me: program exited with status $ac_status" >&5
17754echo "$as_me: failed program was:" >&5
17755sed 's/^/| /' conftest.$ac_ext >&5
17756
17757( exit $ac_status )
17758llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017759fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000017761fi
Reid Spencera773bd52006-08-04 18:18:08 +000017762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017763
Reid Spencer2706f8c2004-09-19 23:53:36 +000017764 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017765ac_cpp='$CPP $CPPFLAGS'
17766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17768ac_compiler_gnu=$ac_cv_c_compiler_gnu
17769
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017770fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017771{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17772echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017773 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017775cat >>confdefs.h <<\_ACEOF
17776#define HAVE_PRINTF_A 1
17777_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017778
Reid Spencer2706f8c2004-09-19 23:53:36 +000017779 fi
John Criswella0137d32003-10-13 16:22:01 +000017780
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017782{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17783echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17784if test "${ac_cv_func_rand48+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017786else
Reid Spencera773bd52006-08-04 18:18:08 +000017787 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017788ac_cpp='$CXXCPP $CPPFLAGS'
17789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017793 cat >conftest.$ac_ext <<_ACEOF
17794/* confdefs.h. */
17795_ACEOF
17796cat confdefs.h >>conftest.$ac_ext
17797cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017798/* end confdefs.h. */
17799#include <stdlib.h>
17800int
17801main ()
17802{
17803srand48(0);lrand48();drand48();
17804 ;
17805 return 0;
17806}
17807_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017808rm -f conftest.$ac_objext
17809if { (ac_try="$ac_compile"
17810case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813esac
17814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_compile") 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17823 { (case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17826esac
17827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_try") 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836esac
17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_try") 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017842 ac_cv_func_rand48=yes
17843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017844 echo "$as_me: failed program was:" >&5
17845sed 's/^/| /' conftest.$ac_ext >&5
17846
17847 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017848fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017849
Reid Spencera773bd52006-08-04 18:18:08 +000017850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017851 ac_ext=c
17852ac_cpp='$CPP $CPPFLAGS'
17853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17855ac_compiler_gnu=$ac_cv_c_compiler_gnu
17856
17857fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017858{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17859echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017860
17861if test "$ac_cv_func_rand48" = "yes" ; then
17862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017863cat >>confdefs.h <<\_ACEOF
17864#define HAVE_RAND48 1
17865_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017866
17867fi
John Criswell0021c312004-02-13 21:57:29 +000017868
17869
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017870{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17871echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17872if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17874else
17875 cat >conftest.$ac_ext <<_ACEOF
17876/* confdefs.h. */
17877_ACEOF
17878cat confdefs.h >>conftest.$ac_ext
17879cat >>conftest.$ac_ext <<_ACEOF
17880/* end confdefs.h. */
17881$ac_includes_default
17882int
17883main ()
17884{
17885#ifndef strerror_s
17886 char *p = (char *) strerror_s;
17887 return !p;
17888#endif
17889
17890 ;
17891 return 0;
17892}
17893_ACEOF
17894rm -f conftest.$ac_objext
17895if { (ac_try="$ac_compile"
17896case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17899esac
17900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_compile") 2>conftest.er1
17902 ac_status=$?
17903 grep -v '^ *+' conftest.er1 >conftest.err
17904 rm -f conftest.er1
17905 cat conftest.err >&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
17908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17909 { (case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912esac
17913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_try") 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest.$ac_objext'
17919 { (case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17922esac
17923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_try") 2>&5
17925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_cv_have_decl_strerror_s=yes
17929else
17930 echo "$as_me: failed program was:" >&5
17931sed 's/^/| /' conftest.$ac_ext >&5
17932
17933 ac_cv_have_decl_strerror_s=no
17934fi
17935
17936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937fi
17938{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17939echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17940if test $ac_cv_have_decl_strerror_s = yes; then
17941
17942cat >>confdefs.h <<_ACEOF
17943#define HAVE_DECL_STRERROR_S 1
17944_ACEOF
17945
17946
17947else
17948 cat >>confdefs.h <<_ACEOF
17949#define HAVE_DECL_STRERROR_S 0
17950_ACEOF
17951
17952
17953fi
17954
17955
17956
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017957if test "$llvm_cv_os_type" = "MingW" ; then
17958 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17959echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17960if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17962else
17963 ac_check_lib_save_LIBS=$LIBS
17964LIBS="-lgcc $LIBS"
17965cat >conftest.$ac_ext <<_ACEOF
17966/* confdefs.h. */
17967_ACEOF
17968cat confdefs.h >>conftest.$ac_ext
17969cat >>conftest.$ac_ext <<_ACEOF
17970/* end confdefs.h. */
17971
17972/* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17975#ifdef __cplusplus
17976extern "C"
17977#endif
17978char _alloca ();
17979int
17980main ()
17981{
17982return _alloca ();
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest.$ac_objext conftest$ac_exeext
17988if { (ac_try="$ac_link"
17989case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_link") 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18005esac
18006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015esac
18016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_lib_gcc__alloca=yes
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 ac_cv_lib_gcc__alloca=no
18027fi
18028
18029rm -f core conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18031LIBS=$ac_check_lib_save_LIBS
18032fi
18033{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18034echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18035if test $ac_cv_lib_gcc__alloca = yes; then
18036
18037cat >>confdefs.h <<\_ACEOF
18038#define HAVE__ALLOCA 1
18039_ACEOF
18040
18041fi
18042
18043 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18044echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18045if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047else
18048 ac_check_lib_save_LIBS=$LIBS
18049LIBS="-lgcc $LIBS"
18050cat >conftest.$ac_ext <<_ACEOF
18051/* confdefs.h. */
18052_ACEOF
18053cat confdefs.h >>conftest.$ac_ext
18054cat >>conftest.$ac_ext <<_ACEOF
18055/* end confdefs.h. */
18056
18057/* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18060#ifdef __cplusplus
18061extern "C"
18062#endif
18063char __alloca ();
18064int
18065main ()
18066{
18067return __alloca ();
18068 ;
18069 return 0;
18070}
18071_ACEOF
18072rm -f conftest.$ac_objext conftest$ac_exeext
18073if { (ac_try="$ac_link"
18074case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18077esac
18078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_link") 2>conftest.er1
18080 ac_status=$?
18081 grep -v '^ *+' conftest.er1 >conftest.err
18082 rm -f conftest.er1
18083 cat conftest.err >&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } &&
18086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18087 { (case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18090esac
18091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_try") 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest$ac_exeext'
18097 { (case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100esac
18101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_lib_gcc___alloca=yes
18107else
18108 echo "$as_me: failed program was:" >&5
18109sed 's/^/| /' conftest.$ac_ext >&5
18110
18111 ac_cv_lib_gcc___alloca=no
18112fi
18113
18114rm -f core conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
18116LIBS=$ac_check_lib_save_LIBS
18117fi
18118{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18119echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18120if test $ac_cv_lib_gcc___alloca = yes; then
18121
18122cat >>confdefs.h <<\_ACEOF
18123#define HAVE___ALLOCA 1
18124_ACEOF
18125
18126fi
18127
18128 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18129echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18130if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132else
18133 ac_check_lib_save_LIBS=$LIBS
18134LIBS="-lgcc $LIBS"
18135cat >conftest.$ac_ext <<_ACEOF
18136/* confdefs.h. */
18137_ACEOF
18138cat confdefs.h >>conftest.$ac_ext
18139cat >>conftest.$ac_ext <<_ACEOF
18140/* end confdefs.h. */
18141
18142/* Override any GCC internal prototype to avoid an error.
18143 Use char because int might match the return type of a GCC
18144 builtin and then its argument prototype would still apply. */
18145#ifdef __cplusplus
18146extern "C"
18147#endif
18148char __chkstk ();
18149int
18150main ()
18151{
18152return __chkstk ();
18153 ;
18154 return 0;
18155}
18156_ACEOF
18157rm -f conftest.$ac_objext conftest$ac_exeext
18158if { (ac_try="$ac_link"
18159case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18162esac
18163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_link") 2>conftest.er1
18165 ac_status=$?
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175esac
18176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest$ac_exeext'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18185esac
18186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_cv_lib_gcc___chkstk=yes
18192else
18193 echo "$as_me: failed program was:" >&5
18194sed 's/^/| /' conftest.$ac_ext >&5
18195
18196 ac_cv_lib_gcc___chkstk=no
18197fi
18198
18199rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18201LIBS=$ac_check_lib_save_LIBS
18202fi
18203{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18204echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18205if test $ac_cv_lib_gcc___chkstk = yes; then
18206
18207cat >>confdefs.h <<\_ACEOF
18208#define HAVE___CHKSTK 1
18209_ACEOF
18210
18211fi
18212
18213 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18214echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18215if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217else
18218 ac_check_lib_save_LIBS=$LIBS
18219LIBS="-lgcc $LIBS"
18220cat >conftest.$ac_ext <<_ACEOF
18221/* confdefs.h. */
18222_ACEOF
18223cat confdefs.h >>conftest.$ac_ext
18224cat >>conftest.$ac_ext <<_ACEOF
18225/* end confdefs.h. */
18226
18227/* Override any GCC internal prototype to avoid an error.
18228 Use char because int might match the return type of a GCC
18229 builtin and then its argument prototype would still apply. */
18230#ifdef __cplusplus
18231extern "C"
18232#endif
18233char ___chkstk ();
18234int
18235main ()
18236{
18237return ___chkstk ();
18238 ;
18239 return 0;
18240}
18241_ACEOF
18242rm -f conftest.$ac_objext conftest$ac_exeext
18243if { (ac_try="$ac_link"
18244case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18247esac
18248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_link") 2>conftest.er1
18250 ac_status=$?
18251 grep -v '^ *+' conftest.er1 >conftest.err
18252 rm -f conftest.er1
18253 cat conftest.err >&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } &&
18256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18257 { (case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18260esac
18261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_try") 2>&5
18263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; } &&
18266 { ac_try='test -s conftest$ac_exeext'
18267 { (case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18270esac
18271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_try") 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; }; then
18276 ac_cv_lib_gcc____chkstk=yes
18277else
18278 echo "$as_me: failed program was:" >&5
18279sed 's/^/| /' conftest.$ac_ext >&5
18280
18281 ac_cv_lib_gcc____chkstk=no
18282fi
18283
18284rm -f core conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18286LIBS=$ac_check_lib_save_LIBS
18287fi
18288{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18289echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18290if test $ac_cv_lib_gcc____chkstk = yes; then
18291
18292cat >>confdefs.h <<\_ACEOF
18293#define HAVE____CHKSTK 1
18294_ACEOF
18295
18296fi
18297
18298
18299 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18300echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18301if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18303else
18304 ac_check_lib_save_LIBS=$LIBS
18305LIBS="-lgcc $LIBS"
18306cat >conftest.$ac_ext <<_ACEOF
18307/* confdefs.h. */
18308_ACEOF
18309cat confdefs.h >>conftest.$ac_ext
18310cat >>conftest.$ac_ext <<_ACEOF
18311/* end confdefs.h. */
18312
18313/* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18316#ifdef __cplusplus
18317extern "C"
18318#endif
18319char __ashldi3 ();
18320int
18321main ()
18322{
18323return __ashldi3 ();
18324 ;
18325 return 0;
18326}
18327_ACEOF
18328rm -f conftest.$ac_objext conftest$ac_exeext
18329if { (ac_try="$ac_link"
18330case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333esac
18334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_link") 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18346esac
18347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest$ac_exeext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18356esac
18357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_lib_gcc___ashldi3=yes
18363else
18364 echo "$as_me: failed program was:" >&5
18365sed 's/^/| /' conftest.$ac_ext >&5
18366
18367 ac_cv_lib_gcc___ashldi3=no
18368fi
18369
18370rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372LIBS=$ac_check_lib_save_LIBS
18373fi
18374{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18375echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18376if test $ac_cv_lib_gcc___ashldi3 = yes; then
18377
18378cat >>confdefs.h <<\_ACEOF
18379#define HAVE___ASHLDI3 1
18380_ACEOF
18381
18382fi
18383
18384 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18385echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18386if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18388else
18389 ac_check_lib_save_LIBS=$LIBS
18390LIBS="-lgcc $LIBS"
18391cat >conftest.$ac_ext <<_ACEOF
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397
18398/* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18401#ifdef __cplusplus
18402extern "C"
18403#endif
18404char __ashrdi3 ();
18405int
18406main ()
18407{
18408return __ashrdi3 ();
18409 ;
18410 return 0;
18411}
18412_ACEOF
18413rm -f conftest.$ac_objext conftest$ac_exeext
18414if { (ac_try="$ac_link"
18415case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18418esac
18419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_link") 2>conftest.er1
18421 ac_status=$?
18422 grep -v '^ *+' conftest.er1 >conftest.err
18423 rm -f conftest.er1
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } &&
18427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18428 { (case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18431esac
18432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_try") 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest$ac_exeext'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18441esac
18442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_lib_gcc___ashrdi3=yes
18448else
18449 echo "$as_me: failed program was:" >&5
18450sed 's/^/| /' conftest.$ac_ext >&5
18451
18452 ac_cv_lib_gcc___ashrdi3=no
18453fi
18454
18455rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457LIBS=$ac_check_lib_save_LIBS
18458fi
18459{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18460echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18461if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18462
18463cat >>confdefs.h <<\_ACEOF
18464#define HAVE___ASHRDI3 1
18465_ACEOF
18466
18467fi
18468
18469 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18470echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18471if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18473else
18474 ac_check_lib_save_LIBS=$LIBS
18475LIBS="-lgcc $LIBS"
18476cat >conftest.$ac_ext <<_ACEOF
18477/* confdefs.h. */
18478_ACEOF
18479cat confdefs.h >>conftest.$ac_ext
18480cat >>conftest.$ac_ext <<_ACEOF
18481/* end confdefs.h. */
18482
18483/* Override any GCC internal prototype to avoid an error.
18484 Use char because int might match the return type of a GCC
18485 builtin and then its argument prototype would still apply. */
18486#ifdef __cplusplus
18487extern "C"
18488#endif
18489char __divdi3 ();
18490int
18491main ()
18492{
18493return __divdi3 ();
18494 ;
18495 return 0;
18496}
18497_ACEOF
18498rm -f conftest.$ac_objext conftest$ac_exeext
18499if { (ac_try="$ac_link"
18500case "(($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_link") 2>conftest.er1
18506 ac_status=$?
18507 grep -v '^ *+' conftest.er1 >conftest.err
18508 rm -f conftest.er1
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516esac
18517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest$ac_exeext'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526esac
18527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_cv_lib_gcc___divdi3=yes
18533else
18534 echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537 ac_cv_lib_gcc___divdi3=no
18538fi
18539
18540rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18542LIBS=$ac_check_lib_save_LIBS
18543fi
18544{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18545echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18546if test $ac_cv_lib_gcc___divdi3 = yes; then
18547
18548cat >>confdefs.h <<\_ACEOF
18549#define HAVE___DIVDI3 1
18550_ACEOF
18551
18552fi
18553
18554 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18555echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18556if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18558else
18559 ac_check_lib_save_LIBS=$LIBS
18560LIBS="-lgcc $LIBS"
18561cat >conftest.$ac_ext <<_ACEOF
18562/* confdefs.h. */
18563_ACEOF
18564cat confdefs.h >>conftest.$ac_ext
18565cat >>conftest.$ac_ext <<_ACEOF
18566/* end confdefs.h. */
18567
18568/* Override any GCC internal prototype to avoid an error.
18569 Use char because int might match the return type of a GCC
18570 builtin and then its argument prototype would still apply. */
18571#ifdef __cplusplus
18572extern "C"
18573#endif
18574char __fixdfdi ();
18575int
18576main ()
18577{
18578return __fixdfdi ();
18579 ;
18580 return 0;
18581}
18582_ACEOF
18583rm -f conftest.$ac_objext conftest$ac_exeext
18584if { (ac_try="$ac_link"
18585case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18588esac
18589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_link") 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598 { (case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18601esac
18602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_try") 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; } &&
18607 { ac_try='test -s conftest$ac_exeext'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18611esac
18612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_try") 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 ac_cv_lib_gcc___fixdfdi=yes
18618else
18619 echo "$as_me: failed program was:" >&5
18620sed 's/^/| /' conftest.$ac_ext >&5
18621
18622 ac_cv_lib_gcc___fixdfdi=no
18623fi
18624
18625rm -f core conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627LIBS=$ac_check_lib_save_LIBS
18628fi
18629{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18630echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18631if test $ac_cv_lib_gcc___fixdfdi = yes; then
18632
18633cat >>confdefs.h <<\_ACEOF
18634#define HAVE___FIXDFDI 1
18635_ACEOF
18636
18637fi
18638
18639 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18640echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18641if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643else
18644 ac_check_lib_save_LIBS=$LIBS
18645LIBS="-lgcc $LIBS"
18646cat >conftest.$ac_ext <<_ACEOF
18647/* confdefs.h. */
18648_ACEOF
18649cat confdefs.h >>conftest.$ac_ext
18650cat >>conftest.$ac_ext <<_ACEOF
18651/* end confdefs.h. */
18652
18653/* Override any GCC internal prototype to avoid an error.
18654 Use char because int might match the return type of a GCC
18655 builtin and then its argument prototype would still apply. */
18656#ifdef __cplusplus
18657extern "C"
18658#endif
18659char __fixsfdi ();
18660int
18661main ()
18662{
18663return __fixsfdi ();
18664 ;
18665 return 0;
18666}
18667_ACEOF
18668rm -f conftest.$ac_objext conftest$ac_exeext
18669if { (ac_try="$ac_link"
18670case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18673esac
18674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_link") 2>conftest.er1
18676 ac_status=$?
18677 grep -v '^ *+' conftest.er1 >conftest.err
18678 rm -f conftest.er1
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686esac
18687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s 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
18702 ac_cv_lib_gcc___fixsfdi=yes
18703else
18704 echo "$as_me: failed program was:" >&5
18705sed 's/^/| /' conftest.$ac_ext >&5
18706
18707 ac_cv_lib_gcc___fixsfdi=no
18708fi
18709
18710rm -f core conftest.err conftest.$ac_objext \
18711 conftest$ac_exeext conftest.$ac_ext
18712LIBS=$ac_check_lib_save_LIBS
18713fi
18714{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18715echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18716if test $ac_cv_lib_gcc___fixsfdi = yes; then
18717
18718cat >>confdefs.h <<\_ACEOF
18719#define HAVE___FIXSFDI 1
18720_ACEOF
18721
18722fi
18723
18724 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18725echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18726if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18728else
18729 ac_check_lib_save_LIBS=$LIBS
18730LIBS="-lgcc $LIBS"
18731cat >conftest.$ac_ext <<_ACEOF
18732/* confdefs.h. */
18733_ACEOF
18734cat confdefs.h >>conftest.$ac_ext
18735cat >>conftest.$ac_ext <<_ACEOF
18736/* end confdefs.h. */
18737
18738/* Override any GCC internal prototype to avoid an error.
18739 Use char because int might match the return type of a GCC
18740 builtin and then its argument prototype would still apply. */
18741#ifdef __cplusplus
18742extern "C"
18743#endif
18744char __floatdidf ();
18745int
18746main ()
18747{
18748return __floatdidf ();
18749 ;
18750 return 0;
18751}
18752_ACEOF
18753rm -f conftest.$ac_objext conftest$ac_exeext
18754if { (ac_try="$ac_link"
18755case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18758esac
18759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_link") 2>conftest.er1
18761 ac_status=$?
18762 grep -v '^ *+' conftest.er1 >conftest.err
18763 rm -f conftest.er1
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
18767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18768 { (case "(($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_try") 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; } &&
18777 { ac_try='test -s conftest$ac_exeext'
18778 { (case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18781esac
18782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_try") 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 ac_cv_lib_gcc___floatdidf=yes
18788else
18789 echo "$as_me: failed program was:" >&5
18790sed 's/^/| /' conftest.$ac_ext >&5
18791
18792 ac_cv_lib_gcc___floatdidf=no
18793fi
18794
18795rm -f core conftest.err conftest.$ac_objext \
18796 conftest$ac_exeext conftest.$ac_ext
18797LIBS=$ac_check_lib_save_LIBS
18798fi
18799{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18800echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18801if test $ac_cv_lib_gcc___floatdidf = yes; then
18802
18803cat >>confdefs.h <<\_ACEOF
18804#define HAVE___FLOATDIDF 1
18805_ACEOF
18806
18807fi
18808
18809 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18810echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18811if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813else
18814 ac_check_lib_save_LIBS=$LIBS
18815LIBS="-lgcc $LIBS"
18816cat >conftest.$ac_ext <<_ACEOF
18817/* confdefs.h. */
18818_ACEOF
18819cat confdefs.h >>conftest.$ac_ext
18820cat >>conftest.$ac_ext <<_ACEOF
18821/* end confdefs.h. */
18822
18823/* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18826#ifdef __cplusplus
18827extern "C"
18828#endif
18829char __lshrdi3 ();
18830int
18831main ()
18832{
18833return __lshrdi3 ();
18834 ;
18835 return 0;
18836}
18837_ACEOF
18838rm -f conftest.$ac_objext conftest$ac_exeext
18839if { (ac_try="$ac_link"
18840case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843esac
18844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18853 { (case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856esac
18857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_try") 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest$ac_exeext'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866esac
18867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_cv_lib_gcc___lshrdi3=yes
18873else
18874 echo "$as_me: failed program was:" >&5
18875sed 's/^/| /' conftest.$ac_ext >&5
18876
18877 ac_cv_lib_gcc___lshrdi3=no
18878fi
18879
18880rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882LIBS=$ac_check_lib_save_LIBS
18883fi
18884{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18885echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18886if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18887
18888cat >>confdefs.h <<\_ACEOF
18889#define HAVE___LSHRDI3 1
18890_ACEOF
18891
18892fi
18893
18894 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18895echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18896if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898else
18899 ac_check_lib_save_LIBS=$LIBS
18900LIBS="-lgcc $LIBS"
18901cat >conftest.$ac_ext <<_ACEOF
18902/* confdefs.h. */
18903_ACEOF
18904cat confdefs.h >>conftest.$ac_ext
18905cat >>conftest.$ac_ext <<_ACEOF
18906/* end confdefs.h. */
18907
18908/* Override any GCC internal prototype to avoid an error.
18909 Use char because int might match the return type of a GCC
18910 builtin and then its argument prototype would still apply. */
18911#ifdef __cplusplus
18912extern "C"
18913#endif
18914char __moddi3 ();
18915int
18916main ()
18917{
18918return __moddi3 ();
18919 ;
18920 return 0;
18921}
18922_ACEOF
18923rm -f conftest.$ac_objext conftest$ac_exeext
18924if { (ac_try="$ac_link"
18925case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18928esac
18929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_link") 2>conftest.er1
18931 ac_status=$?
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
18937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18938 { (case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18941esac
18942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_try") 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest$ac_exeext'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18951esac
18952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_cv_lib_gcc___moddi3=yes
18958else
18959 echo "$as_me: failed program was:" >&5
18960sed 's/^/| /' conftest.$ac_ext >&5
18961
18962 ac_cv_lib_gcc___moddi3=no
18963fi
18964
18965rm -f core conftest.err conftest.$ac_objext \
18966 conftest$ac_exeext conftest.$ac_ext
18967LIBS=$ac_check_lib_save_LIBS
18968fi
18969{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18970echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18971if test $ac_cv_lib_gcc___moddi3 = yes; then
18972
18973cat >>confdefs.h <<\_ACEOF
18974#define HAVE___MODDI3 1
18975_ACEOF
18976
18977fi
18978
18979 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18980echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18981if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18983else
18984 ac_check_lib_save_LIBS=$LIBS
18985LIBS="-lgcc $LIBS"
18986cat >conftest.$ac_ext <<_ACEOF
18987/* confdefs.h. */
18988_ACEOF
18989cat confdefs.h >>conftest.$ac_ext
18990cat >>conftest.$ac_ext <<_ACEOF
18991/* end confdefs.h. */
18992
18993/* Override any GCC internal prototype to avoid an error.
18994 Use char because int might match the return type of a GCC
18995 builtin and then its argument prototype would still apply. */
18996#ifdef __cplusplus
18997extern "C"
18998#endif
18999char __udivdi3 ();
19000int
19001main ()
19002{
19003return __udivdi3 ();
19004 ;
19005 return 0;
19006}
19007_ACEOF
19008rm -f conftest.$ac_objext conftest$ac_exeext
19009if { (ac_try="$ac_link"
19010case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19013esac
19014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015 (eval "$ac_link") 2>conftest.er1
19016 ac_status=$?
19017 grep -v '^ *+' conftest.er1 >conftest.err
19018 rm -f conftest.er1
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19023 { (case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19026esac
19027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_try") 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; } &&
19032 { ac_try='test -s conftest$ac_exeext'
19033 { (case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19036esac
19037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_try") 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_lib_gcc___udivdi3=yes
19043else
19044 echo "$as_me: failed program was:" >&5
19045sed 's/^/| /' conftest.$ac_ext >&5
19046
19047 ac_cv_lib_gcc___udivdi3=no
19048fi
19049
19050rm -f core conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052LIBS=$ac_check_lib_save_LIBS
19053fi
19054{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19055echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19056if test $ac_cv_lib_gcc___udivdi3 = yes; then
19057
19058cat >>confdefs.h <<\_ACEOF
19059#define HAVE___UDIVDI3 1
19060_ACEOF
19061
19062fi
19063
19064 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19065echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19066if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068else
19069 ac_check_lib_save_LIBS=$LIBS
19070LIBS="-lgcc $LIBS"
19071cat >conftest.$ac_ext <<_ACEOF
19072/* confdefs.h. */
19073_ACEOF
19074cat confdefs.h >>conftest.$ac_ext
19075cat >>conftest.$ac_ext <<_ACEOF
19076/* end confdefs.h. */
19077
19078/* Override any GCC internal prototype to avoid an error.
19079 Use char because int might match the return type of a GCC
19080 builtin and then its argument prototype would still apply. */
19081#ifdef __cplusplus
19082extern "C"
19083#endif
19084char __umoddi3 ();
19085int
19086main ()
19087{
19088return __umoddi3 ();
19089 ;
19090 return 0;
19091}
19092_ACEOF
19093rm -f conftest.$ac_objext conftest$ac_exeext
19094if { (ac_try="$ac_link"
19095case "(($ac_try" in
19096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097 *) ac_try_echo=$ac_try;;
19098esac
19099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19100 (eval "$ac_link") 2>conftest.er1
19101 ac_status=$?
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19108 { (case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19111esac
19112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_try") 2>&5
19114 ac_status=$?
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } &&
19117 { ac_try='test -s conftest$ac_exeext'
19118 { (case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121esac
19122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_try") 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 ac_cv_lib_gcc___umoddi3=yes
19128else
19129 echo "$as_me: failed program was:" >&5
19130sed 's/^/| /' conftest.$ac_ext >&5
19131
19132 ac_cv_lib_gcc___umoddi3=no
19133fi
19134
19135rm -f core conftest.err conftest.$ac_objext \
19136 conftest$ac_exeext conftest.$ac_ext
19137LIBS=$ac_check_lib_save_LIBS
19138fi
19139{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19140echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19141if test $ac_cv_lib_gcc___umoddi3 = yes; then
19142
19143cat >>confdefs.h <<\_ACEOF
19144#define HAVE___UMODDI3 1
19145_ACEOF
19146
19147fi
19148
19149
19150 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19151echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19152if test "${ac_cv_lib_gcc___main+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19154else
19155 ac_check_lib_save_LIBS=$LIBS
19156LIBS="-lgcc $LIBS"
19157cat >conftest.$ac_ext <<_ACEOF
19158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
19163
19164/* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19167#ifdef __cplusplus
19168extern "C"
19169#endif
19170char __main ();
19171int
19172main ()
19173{
19174return __main ();
19175 ;
19176 return 0;
19177}
19178_ACEOF
19179rm -f conftest.$ac_objext conftest$ac_exeext
19180if { (ac_try="$ac_link"
19181case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184esac
19185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19197esac
19198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest$ac_exeext'
19204 { (case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19207esac
19208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_try") 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_cv_lib_gcc___main=yes
19214else
19215 echo "$as_me: failed program was:" >&5
19216sed 's/^/| /' conftest.$ac_ext >&5
19217
19218 ac_cv_lib_gcc___main=no
19219fi
19220
19221rm -f core conftest.err conftest.$ac_objext \
19222 conftest$ac_exeext conftest.$ac_ext
19223LIBS=$ac_check_lib_save_LIBS
19224fi
19225{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19226echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19227if test $ac_cv_lib_gcc___main = yes; then
19228
19229cat >>confdefs.h <<\_ACEOF
19230#define HAVE___MAIN 1
19231_ACEOF
19232
19233fi
19234
19235 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19236echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19237if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19239else
19240 ac_check_lib_save_LIBS=$LIBS
19241LIBS="-lgcc $LIBS"
19242cat >conftest.$ac_ext <<_ACEOF
19243/* confdefs.h. */
19244_ACEOF
19245cat confdefs.h >>conftest.$ac_ext
19246cat >>conftest.$ac_ext <<_ACEOF
19247/* end confdefs.h. */
19248
19249/* Override any GCC internal prototype to avoid an error.
19250 Use char because int might match the return type of a GCC
19251 builtin and then its argument prototype would still apply. */
19252#ifdef __cplusplus
19253extern "C"
19254#endif
19255char __cmpdi2 ();
19256int
19257main ()
19258{
19259return __cmpdi2 ();
19260 ;
19261 return 0;
19262}
19263_ACEOF
19264rm -f conftest.$ac_objext conftest$ac_exeext
19265if { (ac_try="$ac_link"
19266case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269esac
19270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_link") 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282esac
19283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest$ac_exeext'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19292esac
19293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_lib_gcc___cmpdi2=yes
19299else
19300 echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303 ac_cv_lib_gcc___cmpdi2=no
19304fi
19305
19306rm -f core conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19308LIBS=$ac_check_lib_save_LIBS
19309fi
19310{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19311echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19312if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19313
19314cat >>confdefs.h <<\_ACEOF
19315#define HAVE___CMPDI2 1
19316_ACEOF
19317
19318fi
19319
19320fi
19321
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019322if test "$llvm_cv_os_type" = "MingW" ; then
19323 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19324echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19325 cat >conftest.$ac_ext <<_ACEOF
19326#include <windows.h>
19327#include <imagehlp.h>
19328extern void foo(PENUMLOADED_MODULES_CALLBACK);
19329extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19330_ACEOF
19331rm -f conftest.$ac_objext
19332if { (ac_try="$ac_compile"
19333case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19336esac
19337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_compile") 2>conftest.er1
19339 ac_status=$?
19340 grep -v '^ *+' conftest.er1 >conftest.err
19341 rm -f conftest.er1
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } &&
19345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19346 { (case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19349esac
19350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_try") 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest.$ac_objext'
19356 { (case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19359esac
19360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_try") 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365
19366 { echo "$as_me:$LINENO: result: yes" >&5
19367echo "${ECHO_T}yes" >&6; }
19368 llvm_cv_win32_elmcb_pcstr="PCSTR"
19369
19370else
19371 echo "$as_me: failed program was:" >&5
19372sed 's/^/| /' conftest.$ac_ext >&5
19373
19374
19375 { echo "$as_me:$LINENO: result: no" >&5
19376echo "${ECHO_T}no" >&6; }
19377 llvm_cv_win32_elmcb_pcstr="PSTR"
19378
19379fi
19380
19381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19382
19383cat >>confdefs.h <<_ACEOF
19384#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19385_ACEOF
19386
19387fi
19388
Torok Edwin871384f2010-01-26 08:50:50 +000019389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019390{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19391echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19392if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019394else
Reid Spencera773bd52006-08-04 18:18:08 +000019395 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019396ac_cpp='$CXXCPP $CPPFLAGS'
19397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019401 cat >conftest.$ac_ext <<_ACEOF
19402/* confdefs.h. */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019406/* end confdefs.h. */
19407#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019408int
19409main ()
19410{
19411float f; isnan(f);
19412 ;
19413 return 0;
19414}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019415_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019416rm -f conftest.$ac_objext
19417if { (ac_try="$ac_compile"
19418case "(($ac_try" in
19419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19421esac
19422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423 (eval "$ac_compile") 2>conftest.er1
19424 ac_status=$?
19425 grep -v '^ *+' conftest.er1 >conftest.err
19426 rm -f conftest.er1
19427 cat conftest.err >&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19431 { (case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19434esac
19435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_try") 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest.$ac_objext'
19441 { (case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444esac
19445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_try") 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019450 ac_cv_func_isnan_in_math_h=yes
19451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019452 echo "$as_me: failed program was:" >&5
19453sed 's/^/| /' conftest.$ac_ext >&5
19454
19455 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019457
Reid Spencera773bd52006-08-04 18:18:08 +000019458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019459 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019460ac_cpp='$CPP $CPPFLAGS'
19461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19463ac_compiler_gnu=$ac_cv_c_compiler_gnu
19464
19465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019466{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19467echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019468
19469
19470if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019472cat >>confdefs.h <<\_ACEOF
19473#define HAVE_ISNAN_IN_MATH_H 1
19474_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019475
Reid Spencerabec8f92004-10-27 23:03:44 +000019476fi
19477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019478{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19479echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19480if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019482else
Reid Spencera773bd52006-08-04 18:18:08 +000019483 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019484ac_cpp='$CXXCPP $CPPFLAGS'
19485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019489 cat >conftest.$ac_ext <<_ACEOF
19490/* confdefs.h. */
19491_ACEOF
19492cat confdefs.h >>conftest.$ac_ext
19493cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019494/* end confdefs.h. */
19495#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019496int
19497main ()
19498{
19499float f; isnan(f);
19500 ;
19501 return 0;
19502}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019504rm -f conftest.$ac_objext
19505if { (ac_try="$ac_compile"
19506case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_compile") 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522esac
19523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532esac
19533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019538 ac_cv_func_isnan_in_cmath=yes
19539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019544fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019545
Reid Spencera773bd52006-08-04 18:18:08 +000019546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019547 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019548ac_cpp='$CPP $CPPFLAGS'
19549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552
19553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019554{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19555echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019556
19557if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019559cat >>confdefs.h <<\_ACEOF
19560#define HAVE_ISNAN_IN_CMATH 1
19561_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019562
Reid Spencerabec8f92004-10-27 23:03:44 +000019563fi
19564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019565{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19566echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19567if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019569else
Reid Spencera773bd52006-08-04 18:18:08 +000019570 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019571ac_cpp='$CXXCPP $CPPFLAGS'
19572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019576 cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019581/* end confdefs.h. */
19582#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019583int
19584main ()
19585{
19586float f; std::isnan(f);
19587 ;
19588 return 0;
19589}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019590_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019591rm -f conftest.$ac_objext
19592if { (ac_try="$ac_compile"
19593case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596esac
19597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_compile") 2>conftest.er1
19599 ac_status=$?
19600 grep -v '^ *+' conftest.er1 >conftest.err
19601 rm -f conftest.er1
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19606 { (case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19609esac
19610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_try") 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019625 ac_cv_func_std_isnan_in_cmath=yes
19626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019627 echo "$as_me: failed program was:" >&5
19628sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019632
Reid Spencera773bd52006-08-04 18:18:08 +000019633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019634 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019635ac_cpp='$CPP $CPPFLAGS'
19636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638ac_compiler_gnu=$ac_cv_c_compiler_gnu
19639
19640fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019641{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19642echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019643
19644if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019646cat >>confdefs.h <<\_ACEOF
19647#define HAVE_STD_ISNAN_IN_CMATH 1
19648_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019649
Reid Spencerabec8f92004-10-27 23:03:44 +000019650fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019651
19652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019653{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19654echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19655if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019657else
Reid Spencera773bd52006-08-04 18:18:08 +000019658 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019659ac_cpp='$CXXCPP $CPPFLAGS'
19660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664 cat >conftest.$ac_ext <<_ACEOF
19665/* confdefs.h. */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019669/* end confdefs.h. */
19670#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019671int
19672main ()
19673{
19674float f; isinf(f);
19675 ;
19676 return 0;
19677}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019678_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019679rm -f conftest.$ac_objext
19680if { (ac_try="$ac_compile"
19681case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19684esac
19685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_compile") 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19697esac
19698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest.$ac_objext'
19704 { (case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707esac
19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_try") 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019713 ac_cv_func_isinf_in_math_h=yes
19714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019715 echo "$as_me: failed program was:" >&5
19716sed 's/^/| /' conftest.$ac_ext >&5
19717
19718 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019720
Reid Spencera773bd52006-08-04 18:18:08 +000019721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019722 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019723ac_cpp='$CPP $CPPFLAGS'
19724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726ac_compiler_gnu=$ac_cv_c_compiler_gnu
19727
19728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019729{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19730echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019731
19732if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019734cat >>confdefs.h <<\_ACEOF
19735#define HAVE_ISINF_IN_MATH_H 1
19736_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019737
Reid Spencerabec8f92004-10-27 23:03:44 +000019738fi
19739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019740{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19741echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19742if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019744else
Reid Spencera773bd52006-08-04 18:18:08 +000019745 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019746ac_cpp='$CXXCPP $CPPFLAGS'
19747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019751 cat >conftest.$ac_ext <<_ACEOF
19752/* confdefs.h. */
19753_ACEOF
19754cat confdefs.h >>conftest.$ac_ext
19755cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019756/* end confdefs.h. */
19757#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019758int
19759main ()
19760{
19761float f; isinf(f);
19762 ;
19763 return 0;
19764}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019765_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019766rm -f conftest.$ac_objext
19767if { (ac_try="$ac_compile"
19768case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19771esac
19772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_compile") 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19784esac
19785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest.$ac_objext'
19791 { (case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19794esac
19795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_try") 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019800 ac_cv_func_isinf_in_cmath=yes
19801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019802 echo "$as_me: failed program was:" >&5
19803sed 's/^/| /' conftest.$ac_ext >&5
19804
19805 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019807
Reid Spencera773bd52006-08-04 18:18:08 +000019808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019809 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019810ac_cpp='$CPP $CPPFLAGS'
19811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813ac_compiler_gnu=$ac_cv_c_compiler_gnu
19814
19815fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019816{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19817echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019818
19819if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019821cat >>confdefs.h <<\_ACEOF
19822#define HAVE_ISINF_IN_CMATH 1
19823_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019824
Reid Spencerabec8f92004-10-27 23:03:44 +000019825fi
19826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019827{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19828echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19829if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019831else
Reid Spencera773bd52006-08-04 18:18:08 +000019832 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019833ac_cpp='$CXXCPP $CPPFLAGS'
19834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019838 cat >conftest.$ac_ext <<_ACEOF
19839/* confdefs.h. */
19840_ACEOF
19841cat confdefs.h >>conftest.$ac_ext
19842cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019843/* end confdefs.h. */
19844#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019845int
19846main ()
19847{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019848float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019849 ;
19850 return 0;
19851}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019852_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019853rm -f conftest.$ac_objext
19854if { (ac_try="$ac_compile"
19855case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19858esac
19859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_compile") 2>conftest.er1
19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871esac
19872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19881esac
19882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_try") 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019887 ac_cv_func_std_isinf_in_cmath=yes
19888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019889 echo "$as_me: failed program was:" >&5
19890sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019893fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019894
Reid Spencera773bd52006-08-04 18:18:08 +000019895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019896 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019897ac_cpp='$CPP $CPPFLAGS'
19898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19900ac_compiler_gnu=$ac_cv_c_compiler_gnu
19901
19902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019903{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19904echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019905
19906if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019908cat >>confdefs.h <<\_ACEOF
19909#define HAVE_STD_ISINF_IN_CMATH 1
19910_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019911
Reid Spencerabec8f92004-10-27 23:03:44 +000019912fi
19913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019914{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19915echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19916if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019918else
Reid Spencera773bd52006-08-04 18:18:08 +000019919 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019920ac_cpp='$CXXCPP $CPPFLAGS'
19921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019925 cat >conftest.$ac_ext <<_ACEOF
19926/* confdefs.h. */
19927_ACEOF
19928cat confdefs.h >>conftest.$ac_ext
19929cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019930/* end confdefs.h. */
19931#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019932int
19933main ()
19934{
19935float f; finite(f);
19936 ;
19937 return 0;
19938}
Brian Gaeked59a6472004-07-21 03:33:58 +000019939_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019940rm -f conftest.$ac_objext
19941if { (ac_try="$ac_compile"
19942case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19945esac
19946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947 (eval "$ac_compile") 2>conftest.er1
19948 ac_status=$?
19949 grep -v '^ *+' conftest.er1 >conftest.err
19950 rm -f conftest.er1
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } &&
19954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19955 { (case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19958esac
19959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_try") 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; } &&
19964 { ac_try='test -s conftest.$ac_objext'
19965 { (case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968esac
19969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_try") 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019974 ac_cv_func_finite_in_ieeefp_h=yes
19975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019976 echo "$as_me: failed program was:" >&5
19977sed 's/^/| /' conftest.$ac_ext >&5
19978
19979 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019981
Reid Spencera773bd52006-08-04 18:18:08 +000019982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019983 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019984ac_cpp='$CPP $CPPFLAGS'
19985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19987ac_compiler_gnu=$ac_cv_c_compiler_gnu
19988
19989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019990{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19991echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019992
Brian Gaeke6802b552004-10-28 05:06:45 +000019993if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019995cat >>confdefs.h <<\_ACEOF
19996#define HAVE_FINITE_IN_IEEEFP_H 1
19997_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019998
Reid Spencerabec8f92004-10-27 23:03:44 +000019999fi
20000
20001
20002
Reid Spencer30fe5262007-01-20 07:48:49 +000020003if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020004
20005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020006for ac_header in stdlib.h unistd.h
20007do
20008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014fi
20015ac_res=`eval echo '${'$as_ac_Header'}'`
20016 { echo "$as_me:$LINENO: result: $ac_res" >&5
20017echo "${ECHO_T}$ac_res" >&6; }
20018else
20019 # Is the header compilable?
20020{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20021echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20022cat >conftest.$ac_ext <<_ACEOF
20023/* confdefs.h. */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h. */
20028$ac_includes_default
20029#include <$ac_header>
20030_ACEOF
20031rm -f conftest.$ac_objext
20032if { (ac_try="$ac_compile"
20033case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036esac
20037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_compile") 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20046 { (case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20049esac
20050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_try") 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
20056 { (case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20059esac
20060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_try") 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_header_compiler=yes
20066else
20067 echo "$as_me: failed program was:" >&5
20068sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070 ac_header_compiler=no
20071fi
20072
20073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20074{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20075echo "${ECHO_T}$ac_header_compiler" >&6; }
20076
20077# Is the header present?
20078{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20080cat >conftest.$ac_ext <<_ACEOF
20081/* confdefs.h. */
20082_ACEOF
20083cat confdefs.h >>conftest.$ac_ext
20084cat >>conftest.$ac_ext <<_ACEOF
20085/* end confdefs.h. */
20086#include <$ac_header>
20087_ACEOF
20088if { (ac_try="$ac_cpp conftest.$ac_ext"
20089case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20092esac
20093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20095 ac_status=$?
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } >/dev/null; then
20101 if test -s conftest.err; then
20102 ac_cpp_err=$ac_c_preproc_warn_flag
20103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20104 else
20105 ac_cpp_err=
20106 fi
20107else
20108 ac_cpp_err=yes
20109fi
20110if test -z "$ac_cpp_err"; then
20111 ac_header_preproc=yes
20112else
20113 echo "$as_me: failed program was:" >&5
20114sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ac_header_preproc=no
20117fi
20118
20119rm -f conftest.err conftest.$ac_ext
20120{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20121echo "${ECHO_T}$ac_header_preproc" >&6; }
20122
20123# So? What about this header?
20124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20125 yes:no: )
20126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20130 ac_header_preproc=yes
20131 ;;
20132 no:yes:* )
20133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20145 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020146## ------------------------------------ ##
20147## Report this to http://llvm.org/bugs/ ##
20148## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020149_ASBOX
20150 ) | sed "s/^/$as_me: WARNING: /" >&2
20151 ;;
20152esac
20153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157else
20158 eval "$as_ac_Header=\$ac_header_preproc"
20159fi
20160ac_res=`eval echo '${'$as_ac_Header'}'`
20161 { echo "$as_me:$LINENO: result: $ac_res" >&5
20162echo "${ECHO_T}$ac_res" >&6; }
20163
20164fi
20165if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020166 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020168_ACEOF
20169
20170fi
20171
20172done
20173
20174
20175for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020176do
20177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20180if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20182else
20183 cat >conftest.$ac_ext <<_ACEOF
20184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
20189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191#define $ac_func innocuous_$ac_func
20192
20193/* System header to define __stub macros and hopefully few prototypes,
20194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196 <limits.h> exists even on freestanding compilers. */
20197
20198#ifdef __STDC__
20199# include <limits.h>
20200#else
20201# include <assert.h>
20202#endif
20203
20204#undef $ac_func
20205
20206/* Override any GCC internal prototype to avoid an error.
20207 Use char because int might match the return type of a GCC
20208 builtin and then its argument prototype would still apply. */
20209#ifdef __cplusplus
20210extern "C"
20211#endif
20212char $ac_func ();
20213/* The GNU C library defines this for functions which it implements
20214 to always fail with ENOSYS. Some functions are actually named
20215 something starting with __ and the normal name is an alias. */
20216#if defined __stub_$ac_func || defined __stub___$ac_func
20217choke me
20218#endif
20219
20220int
20221main ()
20222{
20223return $ac_func ();
20224 ;
20225 return 0;
20226}
20227_ACEOF
20228rm -f conftest.$ac_objext conftest$ac_exeext
20229if { (ac_try="$ac_link"
20230case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233esac
20234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246esac
20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try='test -s conftest$ac_exeext'
20253 { (case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20256esac
20257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_try") 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 eval "$as_ac_var=yes"
20263else
20264 echo "$as_me: failed program was:" >&5
20265sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 eval "$as_ac_var=no"
20268fi
20269
20270rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20272fi
20273ac_res=`eval echo '${'$as_ac_var'}'`
20274 { echo "$as_me:$LINENO: result: $ac_res" >&5
20275echo "${ECHO_T}$ac_res" >&6; }
20276if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020277 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020279_ACEOF
20280
20281fi
20282done
20283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020284{ echo "$as_me:$LINENO: checking for working mmap" >&5
20285echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20286if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020289 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020290 ac_cv_func_mmap_fixed_mapped=no
20291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020292 cat >conftest.$ac_ext <<_ACEOF
20293/* confdefs.h. */
20294_ACEOF
20295cat confdefs.h >>conftest.$ac_ext
20296cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020298$ac_includes_default
20299/* malloc might have been renamed as rpl_malloc. */
20300#undef malloc
20301
20302/* Thanks to Mike Haertel and Jim Avera for this test.
20303 Here is a matrix of mmap possibilities:
20304 mmap private not fixed
20305 mmap private fixed at somewhere currently unmapped
20306 mmap private fixed at somewhere already mapped
20307 mmap shared not fixed
20308 mmap shared fixed at somewhere currently unmapped
20309 mmap shared fixed at somewhere already mapped
20310 For private mappings, we should verify that changes cannot be read()
20311 back from the file, nor mmap's back from the file at a different
20312 address. (There have been systems where private was not correctly
20313 implemented like the infamous i386 svr4.0, and systems where the
20314 VM page cache was not coherent with the file system buffer cache
20315 like early versions of FreeBSD and possibly contemporary NetBSD.)
20316 For shared mappings, we should conversely verify that changes get
20317 propagated back to all the places they're supposed to be.
20318
20319 Grep wants private fixed already mapped.
20320 The main things grep needs to know about mmap are:
20321 * does it exist and is it safe to write into the mmap'd area
20322 * how to use it (BSD variants) */
20323
20324#include <fcntl.h>
20325#include <sys/mman.h>
20326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020327#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020328char *malloc ();
20329#endif
20330
20331/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020332#if !HAVE_GETPAGESIZE
20333/* Assume that all systems that can run configure have sys/param.h. */
20334# if !HAVE_SYS_PARAM_H
20335# define HAVE_SYS_PARAM_H 1
20336# endif
20337
John Criswell7a73b802003-06-30 21:59:07 +000020338# ifdef _SC_PAGESIZE
20339# define getpagesize() sysconf(_SC_PAGESIZE)
20340# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020341# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020342# include <sys/param.h>
20343# ifdef EXEC_PAGESIZE
20344# define getpagesize() EXEC_PAGESIZE
20345# else /* no EXEC_PAGESIZE */
20346# ifdef NBPG
20347# define getpagesize() NBPG * CLSIZE
20348# ifndef CLSIZE
20349# define CLSIZE 1
20350# endif /* no CLSIZE */
20351# else /* no NBPG */
20352# ifdef NBPC
20353# define getpagesize() NBPC
20354# else /* no NBPC */
20355# ifdef PAGESIZE
20356# define getpagesize() PAGESIZE
20357# endif /* PAGESIZE */
20358# endif /* no NBPC */
20359# endif /* no NBPG */
20360# endif /* no EXEC_PAGESIZE */
20361# else /* no HAVE_SYS_PARAM_H */
20362# define getpagesize() 8192 /* punt totally */
20363# endif /* no HAVE_SYS_PARAM_H */
20364# endif /* no _SC_PAGESIZE */
20365
20366#endif /* no HAVE_GETPAGESIZE */
20367
20368int
20369main ()
20370{
20371 char *data, *data2, *data3;
20372 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020373 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020374
20375 pagesize = getpagesize ();
20376
20377 /* First, make a file with some known garbage in it. */
20378 data = (char *) malloc (pagesize);
20379 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020380 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020381 for (i = 0; i < pagesize; ++i)
20382 *(data + i) = rand ();
20383 umask (0);
20384 fd = creat ("conftest.mmap", 0600);
20385 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020386 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020387 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020388 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020389 close (fd);
20390
20391 /* Next, try to mmap the file at a fixed address which already has
20392 something else allocated at it. If we can, also make sure that
20393 we see the same garbage. */
20394 fd = open ("conftest.mmap", O_RDWR);
20395 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396 return 1;
20397 data2 = (char *) malloc (2 * pagesize);
20398 if (!data2)
20399 return 1;
20400 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020401 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020402 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020403 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020404 for (i = 0; i < pagesize; ++i)
20405 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020406 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020407
20408 /* Finally, make sure that changes to the mapped area do not
20409 percolate back to the file as seen by read(). (This is a bug on
20410 some variants of i386 svr4.0.) */
20411 for (i = 0; i < pagesize; ++i)
20412 *(data2 + i) = *(data2 + i) + 1;
20413 data3 = (char *) malloc (pagesize);
20414 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020415 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020416 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020417 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020418 for (i = 0; i < pagesize; ++i)
20419 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020420 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020421 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020422 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020423}
20424_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020425rm -f conftest$ac_exeext
20426if { (ac_try="$ac_link"
20427case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20430esac
20431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_link") 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20436 { (case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20439esac
20440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_try") 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020445 ac_cv_func_mmap_fixed_mapped=yes
20446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020447 echo "$as_me: program exited with status $ac_status" >&5
20448echo "$as_me: failed program was:" >&5
20449sed 's/^/| /' conftest.$ac_ext >&5
20450
20451( exit $ac_status )
20452ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020455fi
Reid Spencera773bd52006-08-04 18:18:08 +000020456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457
John Criswell7a73b802003-06-30 21:59:07 +000020458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020459{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20460echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020461if test $ac_cv_func_mmap_fixed_mapped = yes; then
20462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020463cat >>confdefs.h <<\_ACEOF
20464#define HAVE_MMAP 1
20465_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020466
20467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020468rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020470 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20471echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20472if test "${ac_cv_func_mmap_file+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020474else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020475 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020476ac_cpp='$CPP $CPPFLAGS'
20477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479ac_compiler_gnu=$ac_cv_c_compiler_gnu
20480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020482 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020484 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020486 /* confdefs.h. */
20487_ACEOF
20488cat confdefs.h >>conftest.$ac_ext
20489cat >>conftest.$ac_ext <<_ACEOF
20490/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020491
John Criswell7a73b802003-06-30 21:59:07 +000020492#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020493#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020494#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020495
20496int
20497main ()
20498{
John Criswell7a73b802003-06-30 21:59:07 +000020499
20500 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020501 fd = creat ("foo",0777);
20502 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20503 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020504 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020505 ;
20506 return 0;
20507}
John Criswell7a73b802003-06-30 21:59:07 +000020508_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020509rm -f conftest$ac_exeext
20510if { (ac_try="$ac_link"
20511case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20514esac
20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_link") 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20520 { (case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20523esac
20524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_try") 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020529 ac_cv_func_mmap_file=yes
20530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020531 echo "$as_me: program exited with status $ac_status" >&5
20532echo "$as_me: failed program was:" >&5
20533sed 's/^/| /' conftest.$ac_ext >&5
20534
20535( exit $ac_status )
20536ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020539fi
Reid Spencera773bd52006-08-04 18:18:08 +000020540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541
John Criswell7a73b802003-06-30 21:59:07 +000020542 ac_ext=c
20543ac_cpp='$CPP $CPPFLAGS'
20544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20546ac_compiler_gnu=$ac_cv_c_compiler_gnu
20547
20548
20549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020550{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20551echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020552if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020554cat >>confdefs.h <<\_ACEOF
20555#define HAVE_MMAP_FILE
20556_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020557
20558 MMAP_FILE=yes
20559
20560fi
20561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020562 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20563echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20564if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020566else
Reid Spencer582a23c2004-12-29 07:07:57 +000020567 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020568 ac_cv_need_dev_zero_for_mmap=yes
20569 else
20570 ac_cv_need_dev_zero_for_mmap=no
20571 fi
20572
20573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20575echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020576if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578cat >>confdefs.h <<\_ACEOF
20579#define NEED_DEV_ZERO_FOR_MMAP 1
20580_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020581
20582fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020583
Reid Spencer30fe5262007-01-20 07:48:49 +000020584 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20585 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20587echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020588 fi
20589 if test "$ac_cv_func_mmap_file" = "no"
20590 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020591 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20592echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020593 fi
John Criswellb13092b2003-07-22 21:00:24 +000020594fi
John Criswell7a73b802003-06-30 21:59:07 +000020595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020596{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20597echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020598ac_ext=cpp
20599ac_cpp='$CXXCPP $CPPFLAGS'
20600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020604cat >conftest.$ac_ext <<_ACEOF
20605/* confdefs.h. */
20606_ACEOF
20607cat confdefs.h >>conftest.$ac_ext
20608cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020609/* end confdefs.h. */
20610int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020611 volatile unsigned long val = 1;
20612 __sync_synchronize();
20613 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020614 __sync_add_and_fetch(&val, 1);
20615 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020616 return 0;
20617 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020618
20619_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020620rm -f conftest.$ac_objext conftest$ac_exeext
20621if { (ac_try="$ac_link"
20622case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20625esac
20626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_link") 2>conftest.er1
20628 ac_status=$?
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
20634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20635 { (case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20638esac
20639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_try") 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; } &&
20644 { ac_try='test -s conftest$ac_exeext'
20645 { (case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648esac
20649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_try") 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020654 ac_ext=c
20655ac_cpp='$CPP $CPPFLAGS'
20656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20658ac_compiler_gnu=$ac_cv_c_compiler_gnu
20659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020660 { echo "$as_me:$LINENO: result: yes" >&5
20661echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020663cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020664#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020665_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020666
Owen Andersond4b272b2009-05-18 23:58:51 +000020667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020668 echo "$as_me: failed program was:" >&5
20669sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671 { echo "$as_me:$LINENO: result: no" >&5
20672echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020674cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020675#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020676_ACEOF
20677
20678 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20679echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020681
Owen Andersond4b272b2009-05-18 23:58:51 +000020682rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020684
John Criswell7a73b802003-06-30 21:59:07 +000020685
Nick Lewycky4372e692009-09-29 06:18:23 +000020686if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020687 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20688echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20689if test "${llvm_cv_linux_mixed+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020691else
20692 ac_ext=c
20693ac_cpp='$CPP $CPPFLAGS'
20694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696ac_compiler_gnu=$ac_cv_c_compiler_gnu
20697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020698 cat >conftest.$ac_ext <<_ACEOF
20699/* confdefs.h. */
20700_ACEOF
20701cat confdefs.h >>conftest.$ac_ext
20702cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020703/* end confdefs.h. */
20704#ifndef __x86_64__
20705 error: Not x86-64 even if uname says so!
20706 #endif
20707
20708int
20709main ()
20710{
20711
20712 ;
20713 return 0;
20714}
20715_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716rm -f conftest.$ac_objext
20717if { (ac_try="$ac_compile"
20718case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721esac
20722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20724 ac_status=$?
20725 grep -v '^ *+' conftest.er1 >conftest.err
20726 rm -f conftest.er1
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } &&
20730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20731 { (case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734esac
20735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_try") 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest.$ac_objext'
20741 { (case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20744esac
20745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_try") 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020750 llvm_cv_linux_mixed=no
20751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020752 echo "$as_me: failed program was:" >&5
20753sed 's/^/| /' conftest.$ac_ext >&5
20754
20755 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020757
Nick Lewycky4372e692009-09-29 06:18:23 +000020758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 ac_ext=c
20760ac_cpp='$CPP $CPPFLAGS'
20761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763ac_compiler_gnu=$ac_cv_c_compiler_gnu
20764
20765
20766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020767{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20768echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020769
20770 if test "$llvm_cv_linux_mixed" = "yes"; then
20771 llvm_cv_target_arch="x86"
20772 ARCH="x86"
20773 fi
20774fi
20775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020776
Reid Spencer9372f152007-07-30 20:13:24 +000020777for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778do
20779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20780{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20782if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20784else
20785 cat >conftest.$ac_ext <<_ACEOF
20786/* confdefs.h. */
20787_ACEOF
20788cat confdefs.h >>conftest.$ac_ext
20789cat >>conftest.$ac_ext <<_ACEOF
20790/* end confdefs.h. */
20791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20793#define $ac_func innocuous_$ac_func
20794
20795/* System header to define __stub macros and hopefully few prototypes,
20796 which can conflict with char $ac_func (); below.
20797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20798 <limits.h> exists even on freestanding compilers. */
20799
20800#ifdef __STDC__
20801# include <limits.h>
20802#else
20803# include <assert.h>
20804#endif
20805
20806#undef $ac_func
20807
20808/* Override any GCC internal prototype to avoid an error.
20809 Use char because int might match the return type of a GCC
20810 builtin and then its argument prototype would still apply. */
20811#ifdef __cplusplus
20812extern "C"
20813#endif
20814char $ac_func ();
20815/* The GNU C library defines this for functions which it implements
20816 to always fail with ENOSYS. Some functions are actually named
20817 something starting with __ and the normal name is an alias. */
20818#if defined __stub_$ac_func || defined __stub___$ac_func
20819choke me
20820#endif
20821
20822int
20823main ()
20824{
20825return $ac_func ();
20826 ;
20827 return 0;
20828}
20829_ACEOF
20830rm -f conftest.$ac_objext conftest$ac_exeext
20831if { (ac_try="$ac_link"
20832case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20835esac
20836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_link") 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20845 { (case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848esac
20849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_try") 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; } &&
20854 { ac_try='test -s conftest$ac_exeext'
20855 { (case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20858esac
20859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860 (eval "$ac_try") 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
20864 eval "$as_ac_var=yes"
20865else
20866 echo "$as_me: failed program was:" >&5
20867sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 eval "$as_ac_var=no"
20870fi
20871
20872rm -f core conftest.err conftest.$ac_objext \
20873 conftest$ac_exeext conftest.$ac_ext
20874fi
20875ac_res=`eval echo '${'$as_ac_var'}'`
20876 { echo "$as_me:$LINENO: result: $ac_res" >&5
20877echo "${ECHO_T}$ac_res" >&6; }
20878if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020879 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020881_ACEOF
20882
20883fi
20884done
20885
20886
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020887SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020888
20889
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020890SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20891
20892
Jeff Cohen28783c32007-01-12 18:22:38 +000020893if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020894 prefix="/usr/local"
20895fi
Reid Spencere9de0912004-08-20 09:03:57 +000020896eval LLVM_PREFIX="${prefix}";
20897eval LLVM_BINDIR="${prefix}/bin";
20898eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020899eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020900eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020901eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020902eval LLVM_INCLUDEDIR="${prefix}/include";
20903eval LLVM_INFODIR="${prefix}/info";
20904eval LLVM_MANDIR="${prefix}/man";
20905LLVM_CONFIGTIME=`date`
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000020917if test "${ENABLE_TIMESTAMPS}" = "0"; then
20918 LLVM_CONFIGTIME="(timestamp not enabled)"
20919fi
20920
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020921
Reid Spencere9de0912004-08-20 09:03:57 +000020922cat >>confdefs.h <<_ACEOF
20923#define LLVM_PREFIX "$LLVM_PREFIX"
20924_ACEOF
20925
20926
20927cat >>confdefs.h <<_ACEOF
20928#define LLVM_BINDIR "$LLVM_BINDIR"
20929_ACEOF
20930
20931
20932cat >>confdefs.h <<_ACEOF
20933#define LLVM_LIBDIR "$LLVM_LIBDIR"
20934_ACEOF
20935
20936
20937cat >>confdefs.h <<_ACEOF
20938#define LLVM_DATADIR "$LLVM_DATADIR"
20939_ACEOF
20940
20941
20942cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020943#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020944_ACEOF
20945
20946
20947cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020948#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020949_ACEOF
20950
20951
20952cat >>confdefs.h <<_ACEOF
20953#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20954_ACEOF
20955
20956
20957cat >>confdefs.h <<_ACEOF
20958#define LLVM_INFODIR "$LLVM_INFODIR"
20959_ACEOF
20960
20961
20962cat >>confdefs.h <<_ACEOF
20963#define LLVM_MANDIR "$LLVM_MANDIR"
20964_ACEOF
20965
20966
20967cat >>confdefs.h <<_ACEOF
20968#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20969_ACEOF
20970
20971
Eric Christopher790e11c2007-12-01 00:34:39 +000020972cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000020973#define LLVM_HOSTTRIPLE "$host"
20974_ACEOF
20975
20976
20977cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020978#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020979_ACEOF
20980
20981
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020982if test "$BINDINGS_TO_BUILD" = auto ; then
20983 BINDINGS_TO_BUILD=""
20984 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20985 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20986 fi
20987fi
20988BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20989
20990
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020991ALL_BINDINGS=ocaml
20992
20993
Gordon Henriksenf0915682007-10-02 16:42:22 +000020994binding_prereqs_failed=0
20995for a_binding in $BINDINGS_TO_BUILD ; do
20996 case "$a_binding" in
20997 ocaml)
20998 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020999 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21000echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000021001 binding_prereqs_failed=1
21002 fi
21003 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21005echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000021006 binding_prereqs_failed=1
21007 fi
21008 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021009 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21010echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000021011 fi
21012 if test "x$with_ocaml_libdir" != xauto ; then
21013 OCAML_LIBDIR=$with_ocaml_libdir
21014
21015 else
21016 ocaml_stdlib="`"$OCAMLC" -where`"
21017 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21018 then
21019 # ocaml stdlib is beneath our prefix; use stdlib
21020 OCAML_LIBDIR=$ocaml_stdlib
21021
21022 else
21023 # ocaml stdlib is outside our prefix; use libdir/ocaml
21024 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21025
21026 fi
21027 fi
21028 ;;
21029 esac
21030done
21031if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021032 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21033echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21034 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021035fi
21036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021037{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21038echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21039if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021041else
21042 ac_ext=cpp
21043ac_cpp='$CXXCPP $CPPFLAGS'
21044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21047
21048 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021049 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021050 cat >conftest.$ac_ext <<_ACEOF
21051/* confdefs.h. */
21052_ACEOF
21053cat confdefs.h >>conftest.$ac_ext
21054cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021055/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021056template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021057int
21058main ()
21059{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021060X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021061 ;
21062 return 0;
21063}
21064_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021065rm -f conftest.$ac_objext
21066if { (ac_try="$ac_compile"
21067case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21070esac
21071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
21079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21080 { (case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21083esac
21084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_try") 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; } &&
21089 { ac_try='test -s conftest.$ac_objext'
21090 { (case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21093esac
21094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_try") 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021099 llvm_cv_cxx_visibility_inlines_hidden=yes
21100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021101 echo "$as_me: failed program was:" >&5
21102sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021106
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108 CXXFLAGS="$oldcxxflags"
21109 ac_ext=c
21110ac_cpp='$CPP $CPPFLAGS'
21111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113ac_compiler_gnu=$ac_cv_c_compiler_gnu
21114
21115
21116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021117{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21118echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021119if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21120 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21121
21122else
21123 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21124
21125fi
21126
Gordon Henriksenf0915682007-10-02 16:42:22 +000021127
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021128if test "$llvm_cv_link_use_r" = "yes" ; then
21129 RPATH="-Wl,-R"
21130else
21131 RPATH="-Wl,-rpath"
21132fi
21133
21134
21135if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21136 RDYNAMIC="-Wl,-export-dynamic"
21137else
21138 RDYNAMIC=""
21139fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021140
21141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021142
Eric Christophera1cba682010-08-08 02:44:25 +000021143ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021144
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021145
21146
21147
21148
21149
Douglas Gregor1555a232009-06-16 20:12:29 +000021150ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21151
21152ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21153
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021154ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21155
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021156ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21157
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021158ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021159
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021160
Reid Spencera773bd52006-08-04 18:18:08 +000021161ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021162
Eric Christopher360fa9a2011-10-26 00:42:12 +000021163
Reid Spencerea949cf2006-08-16 00:45:38 +000021164ac_config_files="$ac_config_files llvm.spec"
21165
21166
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021167ac_config_files="$ac_config_files docs/doxygen.cfg"
21168
Eric Christopher63c09512012-02-02 00:16:55 +000021169
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021170if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021171 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021172fi
Eric Christopher63c09512012-02-02 00:16:55 +000021173if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021174 configh="include/clang/Config/config.h"
21175 doxy="docs/doxygen.cfg"
21176 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021177
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021178 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021179
21180fi
21181
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021182ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021183
Eric Christopher360fa9a2011-10-26 00:42:12 +000021184
Reid Spencera773bd52006-08-04 18:18:08 +000021185ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021186
Reid Spencera773bd52006-08-04 18:18:08 +000021187ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021188
21189
Reid Spencera773bd52006-08-04 18:18:08 +000021190ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021191
21192
Reid Spencera773bd52006-08-04 18:18:08 +000021193ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021194
21195
Reid Spencera773bd52006-08-04 18:18:08 +000021196ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021197
21198
Reid Spencer8b2e1412006-11-17 03:32:33 +000021199ac_config_commands="$ac_config_commands runtime/Makefile"
21200
21201
Reid Spencera773bd52006-08-04 18:18:08 +000021202ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021203
21204
Reid Spencera773bd52006-08-04 18:18:08 +000021205ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021206
21207
Bill Wendlingf24eb392009-01-04 23:12:30 +000021208ac_config_commands="$ac_config_commands unittests/Makefile"
21209
21210
Reid Spencera773bd52006-08-04 18:18:08 +000021211ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021212
21213
Reid Spencera773bd52006-08-04 18:18:08 +000021214ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021215
21216
Reid Spencera773bd52006-08-04 18:18:08 +000021217ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021218
21219
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021220ac_config_commands="$ac_config_commands bindings/Makefile"
21221
21222
21223ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21224
21225
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021226
John Criswell7a73b802003-06-30 21:59:07 +000021227cat >confcache <<\_ACEOF
21228# This file is a shell script that caches the results of configure
21229# tests run on this system so they can be shared between configure
21230# scripts and configure runs, see configure's option --config-cache.
21231# It is not useful on other systems. If it contains results you don't
21232# want to keep, you may remove or edit it.
21233#
21234# config.status only pays attention to the cache file if you give it
21235# the --recheck option to rerun configure.
21236#
John Criswell0c38eaf2003-09-10 15:17:25 +000021237# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021238# loading this file, other *unset* `ac_cv_foo' will be assigned the
21239# following values.
21240
21241_ACEOF
21242
21243# The following way of writing the cache mishandles newlines in values,
21244# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021245# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021246# Ultrix sh set writes to stderr and can't be redirected directly,
21247# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021248(
21249 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21250 eval ac_val=\$$ac_var
21251 case $ac_val in #(
21252 *${as_nl}*)
21253 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021254 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21255echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021256 esac
21257 case $ac_var in #(
21258 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021259 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021260 esac ;;
21261 esac
21262 done
21263
John Criswell7a73b802003-06-30 21:59:07 +000021264 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21266 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267 # `set' does not quote correctly, so add quotes (double-quote
21268 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021269 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021270 "s/'/'\\\\''/g;
21271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021272 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021273 *)
21274 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021277 esac |
21278 sort
21279) |
John Criswell7a73b802003-06-30 21:59:07 +000021280 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021281 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021282 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021283 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21285 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21287 :end' >>confcache
21288if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21289 if test -w "$cache_file"; then
21290 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021291 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21292echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021293 cat confcache >$cache_file
21294 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021295 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21296echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021297 fi
21298fi
21299rm -f confcache
21300
21301test "x$prefix" = xNONE && prefix=$ac_default_prefix
21302# Let make expand exec_prefix.
21303test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21304
John Criswell7a73b802003-06-30 21:59:07 +000021305DEFS=-DHAVE_CONFIG_H
21306
John Criswell0c38eaf2003-09-10 15:17:25 +000021307ac_libobjs=
21308ac_ltlibobjs=
21309for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21310 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021312 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21314 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021315 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21316 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021317done
21318LIBOBJS=$ac_libobjs
21319
21320LTLIBOBJS=$ac_ltlibobjs
21321
21322
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021323if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021324 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21325Usually this means the macro was only invoked conditionally." >&5
21326echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21327Usually this means the macro was only invoked conditionally." >&2;}
21328 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021329fi
21330if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021331 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21332Usually this means the macro was only invoked conditionally." >&5
21333echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21334Usually this means the macro was only invoked conditionally." >&2;}
21335 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021336fi
John Criswell7a73b802003-06-30 21:59:07 +000021337
21338: ${CONFIG_STATUS=./config.status}
21339ac_clean_files_save=$ac_clean_files
21340ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021341{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21342echo "$as_me: creating $CONFIG_STATUS" >&6;}
21343cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021344#! $SHELL
21345# Generated by $as_me.
21346# Run this file to recreate the current configuration.
21347# Compiler output produced by configure, useful for debugging
21348# configure, is in config.log if it exists.
21349
21350debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021351ac_cs_recheck=false
21352ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021353SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021354_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356cat >>$CONFIG_STATUS <<\_ACEOF
21357## --------------------- ##
21358## M4sh Initialization. ##
21359## --------------------- ##
21360
21361# Be Bourne compatible
21362if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021363 emulate sh
21364 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021365 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021366 # is contrary to our usage. Disable this feature.
21367 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021368 setopt NO_GLOB_SUBST
21369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021370 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021371fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021372BIN_SH=xpg4; export BIN_SH # for Tru64
21373DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021374
John Criswell7a73b802003-06-30 21:59:07 +000021375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021376# PATH needs CR
21377# Avoid depending upon Character Ranges.
21378as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21379as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21380as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21381as_cr_digits='0123456789'
21382as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021383
21384# The user is always right.
21385if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021386 echo "#! /bin/sh" >conf$$.sh
21387 echo "exit 0" >>conf$$.sh
21388 chmod +x conf$$.sh
21389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21390 PATH_SEPARATOR=';'
21391 else
21392 PATH_SEPARATOR=:
21393 fi
21394 rm -f conf$$.sh
21395fi
21396
21397# Support unset when possible.
21398if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21399 as_unset=unset
21400else
21401 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021402fi
John Criswell7a73b802003-06-30 21:59:07 +000021403
Reid Spencera773bd52006-08-04 18:18:08 +000021404
21405# IFS
21406# We need space, tab and new line, in precisely that order. Quoting is
21407# there to prevent editors from complaining about space-tab.
21408# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21409# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021410as_nl='
21411'
Reid Spencera773bd52006-08-04 18:18:08 +000021412IFS=" "" $as_nl"
21413
21414# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021415case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021416 *[\\/]* ) as_myself=$0 ;;
21417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021418for as_dir in $PATH
21419do
21420 IFS=$as_save_IFS
21421 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021422 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21423done
Reid Spencera773bd52006-08-04 18:18:08 +000021424IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021425
Reid Spencera773bd52006-08-04 18:18:08 +000021426 ;;
21427esac
21428# We did not find ourselves, most probably we were run as `sh COMMAND'
21429# in which case we are not to be found in the path.
21430if test "x$as_myself" = x; then
21431 as_myself=$0
21432fi
21433if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021434 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21435 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021436fi
21437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021438# Work around bugs in pre-3.0 UWIN ksh.
21439for as_var in ENV MAIL MAILPATH
21440do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021441done
21442PS1='$ '
21443PS2='> '
21444PS4='+ '
21445
21446# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021447for as_var in \
21448 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21449 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21450 LC_TELEPHONE LC_TIME
21451do
21452 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21453 eval $as_var=C; export $as_var
21454 else
21455 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021456 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021457done
Torok Edwin871384f2010-01-26 08:50:50 +000021458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021459# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021460if expr a : '\(a\)' >/dev/null 2>&1 &&
21461 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21462 as_expr=expr
21463else
21464 as_expr=false
21465fi
21466
21467if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21468 as_basename=basename
21469else
21470 as_basename=false
21471fi
21472
21473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021474# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021475as_me=`$as_basename -- "$0" ||
21476$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21477 X"$0" : 'X\(//\)$' \| \
21478 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021479echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021480 sed '/^.*\/\([^/][^/]*\)\/*$/{
21481 s//\1/
21482 q
21483 }
21484 /^X\/\(\/\/\)$/{
21485 s//\1/
21486 q
21487 }
21488 /^X\/\(\/\).*/{
21489 s//\1/
21490 q
21491 }
21492 s/.*/./; q'`
21493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021494# CDPATH.
21495$as_unset CDPATH
21496
21497
21498
21499 as_lineno_1=$LINENO
21500 as_lineno_2=$LINENO
21501 test "x$as_lineno_1" != "x$as_lineno_2" &&
21502 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21503
21504 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21505 # uniformly replaced by the line number. The first 'sed' inserts a
21506 # line-number line after each line using $LINENO; the second 'sed'
21507 # does the real work. The second script uses 'N' to pair each
21508 # line-number line with the line containing $LINENO, and appends
21509 # trailing '-' during substitution so that $LINENO is not a special
21510 # case at line end.
21511 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21512 # scripts with optimization help from Paolo Bonzini. Blame Lee
21513 # E. McMahon (1931-1989) for sed's syntax. :-)
21514 sed -n '
21515 p
21516 /[$]LINENO/=
21517 ' <$as_myself |
21518 sed '
21519 s/[$]LINENO.*/&-/
21520 t lineno
21521 b
21522 :lineno
21523 N
21524 :loop
21525 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21526 t loop
21527 s/-\n.*//
21528 ' >$as_me.lineno &&
21529 chmod +x "$as_me.lineno" ||
21530 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21531 { (exit 1); exit 1; }; }
21532
21533 # Don't try to exec as it changes $[0], causing all sort of problems
21534 # (the dirname of $[0] is not the place where we might find the
21535 # original and so on. Autoconf is especially sensitive to this).
21536 . "./$as_me.lineno"
21537 # Exit status is that of the last command.
21538 exit
21539}
21540
21541
21542if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21543 as_dirname=dirname
21544else
21545 as_dirname=false
21546fi
Reid Spencera773bd52006-08-04 18:18:08 +000021547
21548ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021550-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021552 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021553 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021554 esac;;
21555*)
21556 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021557esac
21558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559if expr a : '\(a\)' >/dev/null 2>&1 &&
21560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21561 as_expr=expr
21562else
21563 as_expr=false
21564fi
21565
John Criswell7a73b802003-06-30 21:59:07 +000021566rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021567if test -d conf$$.dir; then
21568 rm -f conf$$.dir/conf$$.file
21569else
21570 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021571 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573echo >conf$$.file
21574if ln -s conf$$.file conf$$ 2>/dev/null; then
21575 as_ln_s='ln -s'
21576 # ... but there are two gotchas:
21577 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21578 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21579 # In both cases, we have to default to `cp -p'.
21580 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021581 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582elif ln conf$$.file conf$$ 2>/dev/null; then
21583 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021584else
21585 as_ln_s='cp -p'
21586fi
Reid Spencera773bd52006-08-04 18:18:08 +000021587rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21588rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021589
John Criswell0c38eaf2003-09-10 15:17:25 +000021590if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021591 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021592else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021593 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021594 as_mkdir_p=false
21595fi
21596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21598# systems may use methods other than mode bits to determine executability.
21599cat >conf$$.file <<_ASEOF
21600#! /bin/sh
21601exit 0
21602_ASEOF
21603chmod +x conf$$.file
21604if test -x conf$$.file >/dev/null 2>&1; then
21605 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021607 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021609rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021610
21611# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021612as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021613
21614# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021615as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021616
21617
John Criswell7a73b802003-06-30 21:59:07 +000021618exec 6>&1
21619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021621# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021622# values after options handling.
21623ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021624This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021626
21627 CONFIG_FILES = $CONFIG_FILES
21628 CONFIG_HEADERS = $CONFIG_HEADERS
21629 CONFIG_LINKS = $CONFIG_LINKS
21630 CONFIG_COMMANDS = $CONFIG_COMMANDS
21631 $ $0 $@
21632
Reid Spencera773bd52006-08-04 18:18:08 +000021633on `(hostname || uname -n) 2>/dev/null | sed 1q`
21634"
21635
John Criswell7a73b802003-06-30 21:59:07 +000021636_ACEOF
21637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021638cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021639# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021640config_files="$ac_config_files"
21641config_headers="$ac_config_headers"
21642config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021643
Reid Spencera773bd52006-08-04 18:18:08 +000021644_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021646cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021647ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021648\`$as_me' instantiates files from templates according to the
21649current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021651Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021652
21653 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021654 -V, --version print version number, then exit
21655 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021656 -d, --debug don't remove temporary files
21657 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021658 --file=FILE[:TEMPLATE]
21659 instantiate the configuration file FILE
21660 --header=FILE[:TEMPLATE]
21661 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021662
21663Configuration files:
21664$config_files
21665
21666Configuration headers:
21667$config_headers
21668
John Criswellc764fbc2003-09-06 15:17:13 +000021669Configuration commands:
21670$config_commands
21671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021673
Reid Spencera773bd52006-08-04 18:18:08 +000021674_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021675cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021676ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021677LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021678configured by $0, generated by GNU Autoconf 2.60,
21679 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021681Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021682This config.status script is free software; the Free Software Foundation
21683gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021684
21685ac_pwd='$ac_pwd'
21686srcdir='$srcdir'
21687INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021688_ACEOF
21689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021690cat >>$CONFIG_STATUS <<\_ACEOF
21691# If no file are specified by the user, then we need to provide default
21692# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021693ac_need_defaults=:
21694while test $# != 0
21695do
21696 case $1 in
21697 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021698 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21699 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021700 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021702 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021703 ac_option=$1
21704 ac_optarg=$2
21705 ac_shift=shift
21706 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021707 esac
21708
John Criswell0c38eaf2003-09-10 15:17:25 +000021709 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021710 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021711 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21712 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021713 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021714 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021715 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021716 debug=: ;;
21717 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021718 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021720 ac_need_defaults=false;;
21721 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021722 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021724 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021725 --he | --h)
21726 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021727 { echo "$as_me: error: ambiguous option: $1
21728Try \`$0 --help' for more information." >&2
21729 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021730 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021731 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21734 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021735
21736 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021737 -*) { echo "$as_me: error: unrecognized option: $1
21738Try \`$0 --help' for more information." >&2
21739 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021741 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021742 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021743
21744 esac
21745 shift
21746done
21747
John Criswell0c38eaf2003-09-10 15:17:25 +000021748ac_configure_extra_args=
21749
21750if $ac_cs_silent; then
21751 exec 6>/dev/null
21752 ac_configure_extra_args="$ac_configure_extra_args --silent"
21753fi
21754
21755_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021757if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21759 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021760 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021761 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021762fi
21763
John Criswell7a73b802003-06-30 21:59:07 +000021764_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021765cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021766exec 5>>config.log
21767{
21768 echo
21769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21770## Running $as_me. ##
21771_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021773} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021774
Reid Spencera773bd52006-08-04 18:18:08 +000021775_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021776cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021777#
Reid Spencera773bd52006-08-04 18:18:08 +000021778# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021779#
Reid Spencerc0682832005-02-24 19:05:19 +000021780llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021781
21782_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021784cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021785
21786# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021787for ac_config_target in $ac_config_targets
21788do
Reid Spencera773bd52006-08-04 18:18:08 +000021789 case $ac_config_target in
21790 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021791 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021792 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21793 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021794 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021795 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021796 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021797 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021798 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021799 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021800 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21801 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021802 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021803 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21804 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21805 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21806 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21807 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021808 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021809 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21810 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021811 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021812 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21813 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21814 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021815 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21816 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021818 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21819echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21820 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021821 esac
21822done
21823
Reid Spencera773bd52006-08-04 18:18:08 +000021824
John Criswell7a73b802003-06-30 21:59:07 +000021825# If the user did not use the arguments to specify the items to instantiate,
21826# then the envvar interface is used. Set only those that are not.
21827# We use the long form for the default assignment because of an extremely
21828# bizarre bug on SunOS 4.1.3.
21829if $ac_need_defaults; then
21830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021832 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021833fi
21834
John Criswell0c38eaf2003-09-10 15:17:25 +000021835# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021836# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021837# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021838# Hook for its removal unless debugging.
21839# Note that there is a small window in which the directory will not be cleaned:
21840# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021841$debug ||
21842{
Reid Spencera773bd52006-08-04 18:18:08 +000021843 tmp=
21844 trap 'exit_status=$?
21845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21846' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021848}
John Criswell7a73b802003-06-30 21:59:07 +000021849# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021850
John Criswell7a73b802003-06-30 21:59:07 +000021851{
Reid Spencera773bd52006-08-04 18:18:08 +000021852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021853 test -n "$tmp" && test -d "$tmp"
21854} ||
21855{
Reid Spencera773bd52006-08-04 18:18:08 +000021856 tmp=./conf$$-$RANDOM
21857 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021858} ||
21859{
21860 echo "$me: cannot create a temporary directory in ." >&2
21861 { (exit 1); exit 1; }
21862}
John Criswell7a73b802003-06-30 21:59:07 +000021863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864#
21865# Set up the sed scripts for CONFIG_FILES section.
21866#
21867
21868# No need to generate the scripts if there are no CONFIG_FILES.
21869# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021870if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021871
21872_ACEOF
21873
Reid Spencera773bd52006-08-04 18:18:08 +000021874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875
Reid Spencera773bd52006-08-04 18:18:08 +000021876ac_delim='%!_!# '
21877for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878 cat >conf$$subs.sed <<_ACEOF
21879SHELL!$SHELL$ac_delim
21880PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21881PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21882PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21883PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21884PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21885PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21886exec_prefix!$exec_prefix$ac_delim
21887prefix!$prefix$ac_delim
21888program_transform_name!$program_transform_name$ac_delim
21889bindir!$bindir$ac_delim
21890sbindir!$sbindir$ac_delim
21891libexecdir!$libexecdir$ac_delim
21892datarootdir!$datarootdir$ac_delim
21893datadir!$datadir$ac_delim
21894sysconfdir!$sysconfdir$ac_delim
21895sharedstatedir!$sharedstatedir$ac_delim
21896localstatedir!$localstatedir$ac_delim
21897includedir!$includedir$ac_delim
21898oldincludedir!$oldincludedir$ac_delim
21899docdir!$docdir$ac_delim
21900infodir!$infodir$ac_delim
21901htmldir!$htmldir$ac_delim
21902dvidir!$dvidir$ac_delim
21903pdfdir!$pdfdir$ac_delim
21904psdir!$psdir$ac_delim
21905libdir!$libdir$ac_delim
21906localedir!$localedir$ac_delim
21907mandir!$mandir$ac_delim
21908DEFS!$DEFS$ac_delim
21909ECHO_C!$ECHO_C$ac_delim
21910ECHO_N!$ECHO_N$ac_delim
21911ECHO_T!$ECHO_T$ac_delim
21912LIBS!$LIBS$ac_delim
21913build_alias!$build_alias$ac_delim
21914host_alias!$host_alias$ac_delim
21915target_alias!$target_alias$ac_delim
21916LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021917CC!$CC$ac_delim
21918CFLAGS!$CFLAGS$ac_delim
21919LDFLAGS!$LDFLAGS$ac_delim
21920CPPFLAGS!$CPPFLAGS$ac_delim
21921ac_ct_CC!$ac_ct_CC$ac_delim
21922EXEEXT!$EXEEXT$ac_delim
21923OBJEXT!$OBJEXT$ac_delim
21924CXX!$CXX$ac_delim
21925CXXFLAGS!$CXXFLAGS$ac_delim
21926ac_ct_CXX!$ac_ct_CXX$ac_delim
21927CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021928subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021929ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21930LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021931build!$build$ac_delim
21932build_cpu!$build_cpu$ac_delim
21933build_vendor!$build_vendor$ac_delim
21934build_os!$build_os$ac_delim
21935host!$host$ac_delim
21936host_cpu!$host_cpu$ac_delim
21937host_vendor!$host_vendor$ac_delim
21938host_os!$host_os$ac_delim
21939target!$target$ac_delim
21940target_cpu!$target_cpu$ac_delim
21941target_vendor!$target_vendor$ac_delim
21942target_os!$target_os$ac_delim
21943OS!$OS$ac_delim
21944HOST_OS!$HOST_OS$ac_delim
21945TARGET_OS!$TARGET_OS$ac_delim
21946LINKALL!$LINKALL$ac_delim
21947NOLINKALL!$NOLINKALL$ac_delim
21948LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21949LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21950ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021951HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953GREP!$GREP$ac_delim
21954EGREP!$EGREP$ac_delim
21955LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21956BUILD_CC!$BUILD_CC$ac_delim
21957BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21958BUILD_CXX!$BUILD_CXX$ac_delim
21959CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021960ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000021961ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021962ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21963ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21964DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21965ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21966EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21967DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21968DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21969JIT!$JIT$ac_delim
21970TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021971ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021972ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021973LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021974ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021976_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021978 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021979 break
21980 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021981 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21982echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21983 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021984 else
21985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021986 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021987done
21988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021989ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21990if test -n "$ac_eof"; then
21991 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21992 ac_eof=`expr $ac_eof + 1`
21993fi
21994
21995cat >>$CONFIG_STATUS <<_ACEOF
21996cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021998_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021999sed '
22000s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22001s/^/s,@/; s/!/@,|#_!!_#|/
22002:n
22003t n
22004s/'"$ac_delim"'$/,g/; t
22005s/$/\\/; p
22006N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22007' >>$CONFIG_STATUS <conf$$subs.sed
22008rm -f conf$$subs.sed
22009cat >>$CONFIG_STATUS <<_ACEOF
22010CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012
22013
22014ac_delim='%!_!# '
22015for ac_last_try in false false false false false :; do
22016 cat >conf$$subs.sed <<_ACEOF
Eric Christopher82120022012-08-03 19:47:14 +000022017ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022018ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022019ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022020TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22021LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22022LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022023LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022024LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022025OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022026EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022027EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022028CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022029BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022030INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022031NM!$NM$ac_delim
22032ifGNUmake!$ifGNUmake$ac_delim
22033LN_S!$LN_S$ac_delim
22034CMP!$CMP$ac_delim
22035CP!$CP$ac_delim
22036DATE!$DATE$ac_delim
22037FIND!$FIND$ac_delim
22038MKDIR!$MKDIR$ac_delim
22039MV!$MV$ac_delim
22040RANLIB!$RANLIB$ac_delim
22041AR!$AR$ac_delim
22042RM!$RM$ac_delim
22043SED!$SED$ac_delim
22044TAR!$TAR$ac_delim
22045BINPWD!$BINPWD$ac_delim
22046GRAPHVIZ!$GRAPHVIZ$ac_delim
22047DOT!$DOT$ac_delim
22048FDP!$FDP$ac_delim
22049NEATO!$NEATO$ac_delim
22050TWOPI!$TWOPI$ac_delim
22051CIRCO!$CIRCO$ac_delim
22052GV!$GV$ac_delim
22053DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022054XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022055INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22056INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22057INSTALL_DATA!$INSTALL_DATA$ac_delim
22058BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022059CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022060DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022061GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022062GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022063PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022064ZIP!$ZIP$ac_delim
22065OCAMLC!$OCAMLC$ac_delim
22066OCAMLOPT!$OCAMLOPT$ac_delim
22067OCAMLDEP!$OCAMLDEP$ac_delim
22068OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022069GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022070HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022071INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22072INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22073CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22074CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22075LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022076NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22077NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022078COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022079USE_UDIS86!$USE_UDIS86$ac_delim
22080USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022081USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22082INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22083INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022084HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22085HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22086MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022087SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022088SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022089LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22090LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22091LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22092LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22093LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22094LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22095LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22096LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22097LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22098LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22099BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22100ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022101OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22102ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22103RPATH!$RPATH$ac_delim
22104RDYNAMIC!$RDYNAMIC$ac_delim
22105LIBOBJS!$LIBOBJS$ac_delim
22106LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022107_ACEOF
22108
Eric Christopher82120022012-08-03 19:47:14 +000022109 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022110 break
22111 elif $ac_last_try; then
22112 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22113echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22114 { (exit 1); exit 1; }; }
22115 else
22116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22117 fi
22118done
22119
22120ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22121if test -n "$ac_eof"; then
22122 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22123 ac_eof=`expr $ac_eof + 1`
22124fi
22125
22126cat >>$CONFIG_STATUS <<_ACEOF
22127cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22129_ACEOF
22130sed '
22131s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22132s/^/s,@/; s/!/@,|#_!!_#|/
22133:n
22134t n
22135s/'"$ac_delim"'$/,g/; t
22136s/$/\\/; p
22137N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22138' >>$CONFIG_STATUS <conf$$subs.sed
22139rm -f conf$$subs.sed
22140cat >>$CONFIG_STATUS <<_ACEOF
22141:end
22142s/|#_!!_#|//g
22143CEOF$ac_eof
22144_ACEOF
22145
22146
Reid Spencera773bd52006-08-04 18:18:08 +000022147# VPATH may cause trouble with some makes, so we remove $(srcdir),
22148# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22149# trailing colons and then remove the whole line if VPATH becomes empty
22150# (actually we leave an empty line to preserve line numbers).
22151if test "x$srcdir" = x.; then
22152 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22153s/:*\$(srcdir):*/:/
22154s/:*\${srcdir}:*/:/
22155s/:*@srcdir@:*/:/
22156s/^\([^=]*=[ ]*\):*/\1/
22157s/:*$//
22158s/^[^=]*=[ ]*$//
22159}'
22160fi
22161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022162cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022163fi # test -n "$CONFIG_FILES"
22164
Reid Spencera773bd52006-08-04 18:18:08 +000022165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022166for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022167do
22168 case $ac_tag in
22169 :[FHLC]) ac_mode=$ac_tag; continue;;
22170 esac
22171 case $ac_mode$ac_tag in
22172 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022173 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22174echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22175 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022176 :[FH]-) ac_tag=-:-;;
22177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22178 esac
22179 ac_save_IFS=$IFS
22180 IFS=:
22181 set x $ac_tag
22182 IFS=$ac_save_IFS
22183 shift
22184 ac_file=$1
22185 shift
22186
22187 case $ac_mode in
22188 :L) ac_source=$1;;
22189 :[FH])
22190 ac_file_inputs=
22191 for ac_f
22192 do
22193 case $ac_f in
22194 -) ac_f="$tmp/stdin";;
22195 *) # Look for the file first in the build tree, then in the source tree
22196 # (if the path is not absolute). The absolute path cannot be DOS-style,
22197 # because $ac_f cannot contain `:'.
22198 test -f "$ac_f" ||
22199 case $ac_f in
22200 [\\/$]*) false;;
22201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22202 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022203 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22204echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22205 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022206 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022207 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022208 done
22209
22210 # Let's still pretend it is `configure' which instantiates (i.e., don't
22211 # use $as_me), people would be surprised to read:
22212 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022213 configure_input="Generated from "`IFS=:
22214 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022215 if test x"$ac_file" != x-; then
22216 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022217 { echo "$as_me:$LINENO: creating $ac_file" >&5
22218echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022219 fi
22220
22221 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022222 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022223 esac
22224 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022225 esac
22226
Reid Spencera773bd52006-08-04 18:18:08 +000022227 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022228$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022229 X"$ac_file" : 'X\(//\)[^/]' \| \
22230 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22234 s//\1/
22235 q
22236 }
22237 /^X\(\/\/\)[^/].*/{
22238 s//\1/
22239 q
22240 }
22241 /^X\(\/\/\)$/{
22242 s//\1/
22243 q
22244 }
22245 /^X\(\/\).*/{
22246 s//\1/
22247 q
22248 }
22249 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022250 { as_dir="$ac_dir"
22251 case $as_dir in #(
22252 -*) as_dir=./$as_dir;;
22253 esac
22254 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22255 as_dirs=
22256 while :; do
22257 case $as_dir in #(
22258 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22259 *) as_qdir=$as_dir;;
22260 esac
22261 as_dirs="'$as_qdir' $as_dirs"
22262 as_dir=`$as_dirname -- "$as_dir" ||
22263$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22264 X"$as_dir" : 'X\(//\)[^/]' \| \
22265 X"$as_dir" : 'X\(//\)$' \| \
22266 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22267echo X"$as_dir" |
22268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22269 s//\1/
22270 q
22271 }
22272 /^X\(\/\/\)[^/].*/{
22273 s//\1/
22274 q
22275 }
22276 /^X\(\/\/\)$/{
22277 s//\1/
22278 q
22279 }
22280 /^X\(\/\).*/{
22281 s//\1/
22282 q
22283 }
22284 s/.*/./; q'`
22285 test -d "$as_dir" && break
22286 done
22287 test -z "$as_dirs" || eval "mkdir $as_dirs"
22288 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22289echo "$as_me: error: cannot create directory $as_dir" >&2;}
22290 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022291 ac_builddir=.
22292
Reid Spencera773bd52006-08-04 18:18:08 +000022293case "$ac_dir" in
22294.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22295*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022296 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022297 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022299 case $ac_top_builddir_sub in
22300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22302 esac ;;
22303esac
22304ac_abs_top_builddir=$ac_pwd
22305ac_abs_builddir=$ac_pwd$ac_dir_suffix
22306# for backward compatibility:
22307ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022308
22309case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022310 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022311 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022312 ac_top_srcdir=$ac_top_builddir_sub
22313 ac_abs_top_srcdir=$ac_pwd ;;
22314 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022315 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022316 ac_top_srcdir=$srcdir
22317 ac_abs_top_srcdir=$srcdir ;;
22318 *) # Relative name.
22319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22320 ac_top_srcdir=$ac_top_build_prefix$srcdir
22321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022322esac
Reid Spencera773bd52006-08-04 18:18:08 +000022323ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022324
John Criswell7a73b802003-06-30 21:59:07 +000022325
Reid Spencera773bd52006-08-04 18:18:08 +000022326 case $ac_mode in
22327 :F)
22328 #
22329 # CONFIG_FILE
22330 #
John Criswell7a73b802003-06-30 21:59:07 +000022331
22332 case $INSTALL in
22333 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022334 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022335 esac
John Criswell7a73b802003-06-30 21:59:07 +000022336_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022338cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022339# If the template does not know about datarootdir, expand it.
22340# FIXME: This hack should be removed a few years after 2.60.
22341ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022342
22343case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022344 p
22345 q
22346}
22347/@datadir@/p
22348/@docdir@/p
22349/@infodir@/p
22350/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022351/@mandir@/p
22352' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022353*datarootdir*) ac_datarootdir_seen=yes;;
22354*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022355 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22356echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022358cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022359 ac_datarootdir_hack='
22360 s&@datadir@&$datadir&g
22361 s&@docdir@&$docdir&g
22362 s&@infodir@&$infodir&g
22363 s&@localedir@&$localedir&g
22364 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022365 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022366esac
22367_ACEOF
22368
22369# Neutralize VPATH when `$srcdir' = `.'.
22370# Shell code in configure.ac might set extrasub.
22371# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022372cat >>$CONFIG_STATUS <<_ACEOF
22373 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022374$extrasub
22375_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022376cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022377:t
22378/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022379s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022380s&@top_builddir@&$ac_top_builddir_sub&;t t
22381s&@srcdir@&$ac_srcdir&;t t
22382s&@abs_srcdir@&$ac_abs_srcdir&;t t
22383s&@top_srcdir@&$ac_top_srcdir&;t t
22384s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22385s&@builddir@&$ac_builddir&;t t
22386s&@abs_builddir@&$ac_abs_builddir&;t t
22387s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22388s&@INSTALL@&$ac_INSTALL&;t t
22389$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022390" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022391
Reid Spencera773bd52006-08-04 18:18:08 +000022392test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22393 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22394 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022395 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022396which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022397echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022398which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022399
Reid Spencera773bd52006-08-04 18:18:08 +000022400 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022401 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022402 -) cat "$tmp/out"; rm -f "$tmp/out";;
22403 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22404 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022405 ;;
22406 :H)
22407 #
22408 # CONFIG_HEADER
22409 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022410_ACEOF
22411
22412# Transform confdefs.h into a sed script `conftest.defines', that
22413# substitutes the proper values into config.h.in to produce config.h.
22414rm -f conftest.defines conftest.tail
22415# First, append a space to every undef/define line, to ease matching.
22416echo 's/$/ /' >conftest.defines
22417# Then, protect against being on the right side of a sed subst, or in
22418# an unquoted here document, in config.status. If some macros were
22419# called several times there might be several #defines for the same
22420# symbol, which is useless. But do not sort them, since the last
22421# AC_DEFINE must be honored.
22422ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22423# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22424# NAME is the cpp macro being defined, VALUE is the value it is being given.
22425# PARAMS is the parameter list in the macro definition--in most cases, it's
22426# just an empty string.
22427ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22428ac_dB='\\)[ (].*,\\1define\\2'
22429ac_dC=' '
22430ac_dD=' ,'
22431
22432uniq confdefs.h |
22433 sed -n '
22434 t rset
22435 :rset
22436 s/^[ ]*#[ ]*define[ ][ ]*//
22437 t ok
22438 d
22439 :ok
22440 s/[\\&,]/\\&/g
22441 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22442 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22443 ' >>conftest.defines
22444
22445# Remove the space that was appended to ease matching.
22446# Then replace #undef with comments. This is necessary, for
22447# example, in the case of _POSIX_SOURCE, which is predefined and required
22448# on some systems where configure will not decide to define it.
22449# (The regexp can be short, since the line contains either #define or #undef.)
22450echo 's/ $//
22451s,^[ #]*u.*,/* & */,' >>conftest.defines
22452
22453# Break up conftest.defines:
22454ac_max_sed_lines=50
22455
22456# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22457# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22458# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22459# et cetera.
22460ac_in='$ac_file_inputs'
22461ac_out='"$tmp/out1"'
22462ac_nxt='"$tmp/out2"'
22463
22464while :
22465do
22466 # Write a here document:
22467 cat >>$CONFIG_STATUS <<_ACEOF
22468 # First, check the format of the line:
22469 cat >"\$tmp/defines.sed" <<\\CEOF
22470/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22471/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22472b
22473:def
22474_ACEOF
22475 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22476 echo 'CEOF
22477 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22478 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22479 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22480 grep . conftest.tail >/dev/null || break
22481 rm -f conftest.defines
22482 mv conftest.tail conftest.defines
22483done
22484rm -f conftest.defines conftest.tail
22485
22486echo "ac_result=$ac_in" >>$CONFIG_STATUS
22487cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022488 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022489 echo "/* $configure_input */" >"$tmp/config.h"
22490 cat "$ac_result" >>"$tmp/config.h"
22491 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22492 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22493echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022494 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022495 rm -f $ac_file
22496 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022497 fi
22498 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022499 echo "/* $configure_input */"
22500 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022501 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022502 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022503 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022505 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22506echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022507 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022508 esac
John Criswell7a73b802003-06-30 21:59:07 +000022509
Reid Spencera773bd52006-08-04 18:18:08 +000022510
22511 case $ac_file$ac_mode in
22512 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022513 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022514 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022515 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022516 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022517 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022518 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022519 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022520 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022521 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022522 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022523 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022524 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022525 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022526 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022527 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022528 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022529 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022530 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022531 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022532 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022533 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022534 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022535 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022536 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022537 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022538
22539 esac
22540done # for ac_tag
22541
John Criswell7a73b802003-06-30 21:59:07 +000022542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022543{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022545chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022546ac_clean_files=$ac_clean_files_save
22547
22548
22549# configure is writing to config.log, and then calls config.status.
22550# config.status does its own redirection, appending to config.log.
22551# Unfortunately, on DOS this fails, as config.log is still kept open
22552# by configure, so config.status won't be able to write to it; its
22553# output is simply discarded. So we exec the FD to /dev/null,
22554# effectively closing config.log, so it can be properly (re)opened and
22555# appended to by config.status. When coming back to configure, we
22556# need to make the FD available again.
22557if test "$no_create" != yes; then
22558 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022559 ac_config_status_args=
22560 test "$silent" = yes &&
22561 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022562 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022564 exec 5>>config.log
22565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22566 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022567 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022568fi
22569
John Criswell12399a12003-09-30 15:55:44 +000022570#
22571# CONFIG_SUBDIRS section.
22572#
22573if test "$no_recursion" != yes; then
22574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022575 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022576 ac_sub_configure_args=
22577 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022578 eval "set x $ac_configure_args"
22579 shift
22580 for ac_arg
22581 do
John Criswell12399a12003-09-30 15:55:44 +000022582 if test -n "$ac_prev"; then
22583 ac_prev=
22584 continue
22585 fi
22586 case $ac_arg in
22587 -cache-file | --cache-file | --cache-fil | --cache-fi \
22588 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22589 ac_prev=cache_file ;;
22590 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22591 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22592 | --c=*)
22593 ;;
22594 --config-cache | -C)
22595 ;;
22596 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22597 ac_prev=srcdir ;;
22598 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22599 ;;
22600 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22601 ac_prev=prefix ;;
22602 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22603 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022604 *)
22605 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022606 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022607 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022608 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022609 esac
22610 done
22611
22612 # Always prepend --prefix to ensure using the same prefix
22613 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022614 ac_arg="--prefix=$prefix"
22615 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022616 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022617 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022618 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022619
22620 ac_popdir=`pwd`
22621 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22622
22623 # Do not complain, so a configure script can configure whichever
22624 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022625 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022626
Reid Spencera773bd52006-08-04 18:18:08 +000022627 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022628 echo "$as_me:$LINENO: $ac_msg" >&5
22629 echo "$ac_msg" >&6
22630 { as_dir="$ac_dir"
22631 case $as_dir in #(
22632 -*) as_dir=./$as_dir;;
22633 esac
22634 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22635 as_dirs=
22636 while :; do
22637 case $as_dir in #(
22638 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22639 *) as_qdir=$as_dir;;
22640 esac
22641 as_dirs="'$as_qdir' $as_dirs"
22642 as_dir=`$as_dirname -- "$as_dir" ||
22643$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22644 X"$as_dir" : 'X\(//\)[^/]' \| \
22645 X"$as_dir" : 'X\(//\)$' \| \
22646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22647echo X"$as_dir" |
22648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22649 s//\1/
22650 q
22651 }
22652 /^X\(\/\/\)[^/].*/{
22653 s//\1/
22654 q
22655 }
22656 /^X\(\/\/\)$/{
22657 s//\1/
22658 q
22659 }
22660 /^X\(\/\).*/{
22661 s//\1/
22662 q
22663 }
22664 s/.*/./; q'`
22665 test -d "$as_dir" && break
22666 done
22667 test -z "$as_dirs" || eval "mkdir $as_dirs"
22668 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22669echo "$as_me: error: cannot create directory $as_dir" >&2;}
22670 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022671 ac_builddir=.
22672
Reid Spencera773bd52006-08-04 18:18:08 +000022673case "$ac_dir" in
22674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22675*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022677 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022678 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022679 case $ac_top_builddir_sub in
22680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22682 esac ;;
22683esac
22684ac_abs_top_builddir=$ac_pwd
22685ac_abs_builddir=$ac_pwd$ac_dir_suffix
22686# for backward compatibility:
22687ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022688
22689case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022690 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022691 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022692 ac_top_srcdir=$ac_top_builddir_sub
22693 ac_abs_top_srcdir=$ac_pwd ;;
22694 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022695 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022696 ac_top_srcdir=$srcdir
22697 ac_abs_top_srcdir=$srcdir ;;
22698 *) # Relative name.
22699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22700 ac_top_srcdir=$ac_top_build_prefix$srcdir
22701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022702esac
Reid Spencera773bd52006-08-04 18:18:08 +000022703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022704
22705
Reid Spencera773bd52006-08-04 18:18:08 +000022706 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022707
22708 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022709 if test -f "$ac_srcdir/configure.gnu"; then
22710 ac_sub_configure=$ac_srcdir/configure.gnu
22711 elif test -f "$ac_srcdir/configure"; then
22712 ac_sub_configure=$ac_srcdir/configure
22713 elif test -f "$ac_srcdir/configure.in"; then
22714 # This should be Cygnus configure.
22715 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022716 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022717 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22718echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022719 ac_sub_configure=
22720 fi
22721
22722 # The recursion is here.
22723 if test -n "$ac_sub_configure"; then
22724 # Make the cache file name correct relative to the subdirectory.
22725 case $cache_file in
22726 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022727 *) # Relative name.
22728 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022729 esac
22730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022731 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22732echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell12399a12003-09-30 15:55:44 +000022733 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022734 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22735 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022736 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22737echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22738 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022739 fi
22740
Reid Spencera773bd52006-08-04 18:18:08 +000022741 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022742 done
22743fi
22744